Guest User

Untitled

a guest
Mar 12th, 2013
18
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. add_filter( 'pagelines_site_logo', 'my_logo_url' );
  42. function my_logo_url( $site_logo ) {
  43. return '<a class="plbrand" href="http://barringtoncrossfit.com/hours-map-barringtont-fitness-training/" title="">
  44. <img class="mainlogo-img" src="http://barringtoncrossfit.com/wp-content/uploads/2013/03/LInk_emtty-space-for-header.png" alt="" /></a>';
  45.  
  46. }
  47.  
  48. /*
  49. // ====================================================
  50. // = YOUR FUNCTIONS - Where you should add your code =
  51. // ====================================================
  52. */
RAW Paste Data