Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: BBPress header footer code
- Plugin URI: http://luc.saint-elie.com
- Description: Adds header and footer elements in BBPress.
- Author: Luc Saint-Elie
- Author URI: http://luc.saint-elie.com
- Version: 0.1a
- */
- /**************************************
- HEADER AND FOOTER CONTENT
- ***************************************/
- function bbpress_footer_code() { ?>
- <!-- PASTE YOUR OWN HTML CODE HERE -->
- <div style="border-top: 1px solid #ccc;
- margin: auto;
- color: #666;
- font-size: 1.0em;
- letter-spacing: 2px;
- text-transform: uppercase;
- padding-top: 10px;
- clear: both;
- text-align: center;
- width: 760px;">
- <!-- Site Meter -->
- <script type="text/javascript" src="http://s17.sitemeter.com/js/counter.js?site=xxxx">
- </script>
- <noscript>
- <a href="http://s17.sitemeter.com/stats.asp?site=xxxx" target="_top">
- <img src="http://s17.sitemeter.com/meter.asp?site=xxxx" alt="Site Meter" border="0"/></a>
- </noscript>
- <!-- Copyright (c)2006 Site Meter -->
- </div>
- <!-- END OF YOUR OWN HTML CODE -->
- <?php }
- function bbpress_header_code() { ?>
- <!-- PASTE YOUR OWN HTML CODE HERE -->
- <!-- custom header elements -->
- <meta name="description" content="" />
- <meta name="keywords" content="" />
- <meta name="ICBM" content="" />
- <meta name="DC.title" content="" />
- <meta name="language" content="" />
- <meta name="author" content="" />
- <meta name="copyright" content="" />
- <meta name="robots" content="" />
- <meta name="revisit-after" content="" />
- <meta name="document-class" content="" />
- <meta name="document-classification" content="" />
- <meta name="document-rights" content="" />
- <meta name="document-type" content="" />
- <meta name="document-rating" content="" />
- <meta name="document-distribution" content="" />
- <meta name="document-state" content="" />
- <meta name="cache-control" content="no-cache" />
- <meta http-equiv="cache-control" content="no-cache" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta content="true" name="MSSmartTagsPreventParsing" />
- <!-- /custom header elements -->
- <!-- END OF YOUR OWN HTML CODE -->
- <?php }
- /**************************************
- CONFIGURATION PAGE (not really used)
- ***************************************/
- function bbpress_footer_code_configuration_page(){?>
- <h2><?php _e('Header Footer Configuration'); ?></h2>
- <?php _e('No setting (yet ?), you need to edit directly the plug in file.'); ?>
- <?php }
- function header_footer_code_configuration_page_add() {
- bb_admin_add_submenu(__('Header Footer Configuration'), 'use_keys', 'header_footer_code_configuration_page');
- }
- /**************************************
- ACTIONS
- ***************************************/
- add_action( "bb_foot", "bbpress_footer_code" );
- add_action( "bb_head", "bbpress_header_code" );
- add_action('bb_admin_menu_generator', 'header_footer_code_configuration_page_add');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement