Advertisement
Guest User

youtube error

a guest
May 2nd, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.33 KB | None | 0 0
  1. <?php
  2.     require_once TEMPLATEPATH . '/lib/Themater.php';
  3.     $theme = new Themater('UpStream');
  4.     $theme->options['includes'] = array('featuredposts', 'social_profiles');
  5.    
  6.     $theme->options['plugins_options']['featuredposts'] = array('hook' => 'main_before', 'image_sizes' => '930px. x 300px.', 'effect' => 'fade');
  7.     if($theme->is_admin_user()) {
  8.         unset($theme->admin_options['Ads']);
  9.     }
  10.    
  11.     if($theme->is_admin_user()) {
  12.         unset($theme->admin_options['Layout']['content']['featured_image_settings_homepage']);
  13.         unset($theme->admin_options['Layout']['content']['featured_image_width']);
  14.         unset($theme->admin_options['Layout']['content']['featured_image_height']);
  15.         unset($theme->admin_options['Layout']['content']['featured_image_position']);
  16.     }
  17.    
  18.     // Footer widgets
  19.     $theme->admin_option('Layout',
  20.         'Footer Widgets Enabled?', 'footer_widgets',
  21.         'checkbox', 'true',
  22.         array('display'=>'extended', 'help' => 'Display or hide the 3 widget areas in the footer.', 'priority' => '15')
  23.     );
  24.  
  25.  
  26.     $theme->load();
  27.    
  28.     register_sidebar(array(
  29.         'name' => __('Primary Sidebar', 'themater'),
  30.         'id' => 'sidebar_primary',
  31.         'description' => __('The primary sidebar widget area', 'themater'),
  32.         'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
  33.         'after_widget' => '</li></ul>',
  34.         'before_title' => '<h3 class="widgettitle">',
  35.         'after_title' => '</h3>'
  36.     ));
  37.    
  38.    
  39.     $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
  40.    
  41.     function sidebar_primary_default_widgets ()
  42.     {
  43.         global $theme;
  44.        
  45.         $theme->display_widget('Search');
  46.         $theme->display_widget('SocialProfiles');
  47.         $theme->display_widget('Banners125', array('banners' => array('<a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemes.co" target="_blank"><img src="http://freewpthemes.co/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
  48.         $theme->display_widget('Facebook', array('url'=> 'http://www.facebook.com/NewWpThemesCom'));
  49.         $theme->display_widget('Tabs');
  50.         $theme->display_widget('Tweets', array('username'=> 'NewWpThemes'));
  51.         $theme->display_widget('Archives');
  52.         $theme->display_widget('Tag_Cloud');
  53.         $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
  54.     }
  55.    
  56.     // Register the footer widgets only if they are enabled from the FlexiPanel
  57.     if($theme->display('footer_widgets')) {
  58.         register_sidebar(array(
  59.             'name' => 'Footer Widget Area 1',
  60.             'id' => 'footer_1',
  61.             'description' => 'The footer #1 widget area',
  62.             'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
  63.             'after_widget' => '</li></ul>',
  64.             'before_title' => '<h3 class="widgettitle">',
  65.             'after_title' => '</h3>'
  66.         ));
  67.        
  68.         register_sidebar(array(
  69.             'name' => 'Footer Widget Area 2',
  70.             'id' => 'footer_2',
  71.             'description' => 'The footer #2 widget area',
  72.             'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
  73.             'after_widget' => '</li></ul>',
  74.             'before_title' => '<h3 class="widgettitle">',
  75.             'after_title' => '</h3>'
  76.         ));
  77.        
  78.         register_sidebar(array(
  79.             'name' => 'Footer Widget Area 3',
  80.             'id' => 'footer_3',
  81.             'description' => 'The footer #3 widget area',
  82.             'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
  83.             'after_widget' => '</li></ul>',
  84.             'before_title' => '<h3 class="widgettitle">',
  85.             'after_title' => '</h3>'
  86.         ));
  87.        
  88.         $theme->add_hook('footer_1', 'footer_1_default_widgets');
  89.         $theme->add_hook('footer_2', 'footer_2_default_widgets');
  90.         $theme->add_hook('footer_3', 'footer_3_default_widgets');
  91.        
  92.         function footer_1_default_widgets ()
  93.         {
  94.             global $theme;
  95.             $theme->display_widget('Links');
  96.         }
  97.        
  98.         function footer_2_default_widgets ()
  99.         {
  100.             global $theme;
  101.             $theme->display_widget('Search');
  102.             $theme->display_widget('Tag_Cloud');
  103.         }
  104.        
  105.         function footer_3_default_widgets ()
  106.         {
  107.             global $theme;
  108.             $theme->display_widget('Text', array('title' => 'Contact', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nis.<br /><br /> <span style="font-weight: bold;">Our Company Inc.</span><br />2458 S . 124 St.Suite 47<br />Town City 21447<br />Phone: 124-457-1178<br />Fax: 565-478-1445'));
  109.         }
  110.     }
  111.  
  112.    
  113.     function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="http://projectserverhosting.com/enterprise-project-management/">Enterprise Project management</a> | Thanks to <a href="http://businessemailhosting.com/">Email Hosting</a>, <a href="http://virtualdesktoponline.com/cloud-desktop/">Cloud Desktop</a> and <a href="http://mssharepointhosting.com/hosted-sharepoint/">Hosted SharePoint</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
  114. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement