daily pastebin goal
62%
SHARE
TWEET

Dave Schroeder Customize functions.php

a guest Mar 7th, 2013 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * PageLines Customize functions.php.
  4.  *
  5.  * @author Simon Prosser
  6.  */
  7. /*
  8. // ---- ADDING NEW TEMPLATES ---- //
  9.  
  10.         Want another page template for drag and drop? Easy :)
  11.         1. Add File called page.[page-id].php to this folder.
  12.         2. Add Template Name: Your Page Name to that file ( see page.base.php for an example. )
  13.         3. Thats it! We do the rest for you!
  14.        
  15. // ---- ADDING NEW SECTIONS ---- //
  16.  
  17.         Adding new sections is really easy in 2.0
  18.         1. Copy your section.[sectionname].php file into the sections folder
  19.         2. It will be auto loaded for you.
  20.         3. You can now enable/disable the section in the extensions menu.
  21.  
  22. // FILTERS EXAMPLE ---------//
  23.  
  24.         // The following filter will add the font  Ubuntu into the font array $thefoundry.
  25.         // This makes the font available to the framework and the user via the admin panel.
  26. */
  27. add_filter ( 'pagelines_foundry', 'my_google_font' );
  28.  
  29. function my_google_font( $thefoundry ) {
  30.         $myfont = array( 'Ubuntu' => array(
  31.                         'name' => 'Ubuntu',
  32.                         'family' => '"Ubuntu", arial, serif',
  33.                         'web_safe' => true,
  34.                         'google' => true,
  35.                         'monospace' => false
  36.                         )
  37.                 );
  38.         return array_merge( $thefoundry, $myfont );
  39. }
  40. /*
  41. // ====================================================
  42. // = YOUR FUNCTIONS - Where you should add your code  =
  43. // ====================================================
  44. */
  45.  
  46. add_filter( 'pagelines_features_target', function() { return 'target="_blank"'; } );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top