Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(function_exists('register_sidebar')) {
- register_sidebar(array('name'=>'Popular Sites','before_widget'=>'','after_widget'=>'','before_title'=>'<h2>','after_title'=>'</h2>',));
- register_sidebar(array('name'=>'Linked Sites','before_widget'=>'','after_widget'=>'','before_title'=>'<h2>','after_title'=>'</h2>',));
- }
- remove_action('wp_head','wp_generator');
- remove_action('wp_head','wlwmanifest_link');<?php
- remove_action('wp_head','rsd_link');
- function showcase() {
- if(isset($_POST['submitted'])&&$_POST['submitted']=="yes") {
- $add1=$_POST['add1'];
- $add2=$_POST['add2'];
- $add3=$_POST['add3'];
- $add4=$_POST['add4'];
- $add5=$_POST['add5'];
- $add6=$_POST['add6'];
- $add_url_1=$_POST['add_url_1'];
- $add_url_2=$_POST['add_url_2'];
- $add_url_3=$_POST['add_url_3'];
- $add_url_4=$_POST['add_url_4'];
- $add_url_5=$_POST['add_url_5'];
- $add_url_6=$_POST['add_url_6'];
- update_option("add1",$add1);
- update_option("add2",$add2);
- update_option("add3",$add3);
- update_option("add4",$add4);
- update_option("add5",$add5);
- update_option("add6",$add6);
- update_option("add_url_1",$add_url_1);
- update_option("add_url_2",$add_url_2);
- update_option("add_url_3",$add_url_3);
- update_option("add_url_4",$add_url_4);
- update_option("add_url_5",$add_url_5);
- update_option("add_url_6",$add_url_6);
- echo "<div id=\"message\" class=\"updated fade\"><p><strong>Your settings have been saved.</strong></p></div>";
- }
- ?>
- <div class="wrap">
- <form method="post" name="churchpress" target="_self">
- <div class="atention">
- <strong>Thank you!</strong> For purchasing the <strong>Showcase Theme!</strong><br /><br />
- <strong>Problems? Questions?</strong> Contact us at <a href="mailto:[email protected]">wordpresspowered[at]gmail.com</a>
- </div>
- <div class="settings">
- <h3>Sidebar Add Management!</h3>
- <div class="item">
- <div class="left">
- Sidebar Add Management!
- <span>This section is for the 6 <strong>125 x 125</strong> advertisements in the<strong> top </strong> sidebar.</span><br />
- <span><strong>Usage Example:</strong></span>
- <span>The <strong>add image location</strong> would be <?php bloginfo('template_directory');?>/adds/add.jpg that is if your add image is in the <strong>adds</strong> folder!</span>
- </div>
- <div class="right">
- <label for="add1">Add <strong>1</strong> Image Location: </label>
- <input type="text" name="add1" id="add1" value="<?php echo get_option('add1');?>" />
- <label for="add_url_1">Add <strong>1</strong> Url Link: </label>
- <input tyep="text" name="add_url_1" id="add_url_1" value="<?php echo get_option('add_url_1');?>" />
- </div>
- <div class="right">
- <label for="add2">Add <strong>2</strong> Image Location: </label>
- <input type="text" name="add2" id="add2" value="<?php echo get_option('add2');?>" />
- <label for="add_url_2">Add <strong>2</strong> Url Link: </label>
- <input tyep="text" name="add_url_2" id="add_url_2" value="<?php echo get_option('add_url_2');?>" />
- </div>
- <div class="right">
- <label for="add3">Add <strong>3</strong> Image Location: </label>
- <input type="text" name="add3" id="add3" value="<?php echo get_option('add3');?>" />
- <label for="add_url_3">Add <strong>3</strong> Url Link: </label>
- <input tyep="text" name="add_url_3" id="add_url_3" value="<?php echo get_option('add_url_3');?>" />
- </div>
- <div class="right">
- <label for="add4">Add <strong>4</strong> Image Location: </label>
- <input type="text" name="add4" id="add4" value="<?php echo get_option('add4');?>" />
- <label for="add_url_4">Add <strong>4</strong> Url Link: </label>
- <input tyep="text" name="add_url_4" id="add_url_4" value="<?php echo get_option('add_url_4');?>" />
- </div>
- <div class="right">
- <label for="add5">Add <strong>5</strong> Image Location: </label>
- <input type="text" name="add5" id="add5" value="<?php echo get_option('add5');?>" />
- <label for="add_url_5">Add <strong>5</strong> Url Link: </label>
- <input tyep="text" name="add_url_5" id="add_url_5" value="<?php echo get_option('add_url_5');?>" />
- </div>
- <div class="right">
- <label for="add6">Add <strong>6</strong> Image Location: </label>
- <input type="text" name="add6" id="add6" value="<?php echo get_option('add6');?>" />
- <label for="add_url_6">Add <strong>6</strong> Url Link: </label>
- <input tyep="text" name="add_url_6" id="add_url_6" value="<?php echo get_option('add_url_6');?>" />
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <p class="submit">
- <input name="submitted" type="hidden" value="yes" />
- <input type="submit" name="Submit" value="Save »" />
- </p>
- </form></div>
- <?php
- }
- function showcase_settings_page() {
- add_theme_page(__('Showcase Add Management Settings'),__('Showcase Add Management Settings'),'edit_themes',basename(__FILE__),'Showcase');
- }
- add_action('admin_menu','showcase_settings_page');
- function showcase_style() {
- echo
- "<style type='text/css'>
- .settings h3 { margin: 20px 0 0 0; background: #D7ECFC; border: solid 10px #D7ECFC; font-family: 'Georgia', 'Times New Roman'; font-size: 20px; letter-spacing: -1px; color: #42505A; font-weight: normal; }
- .settings .item { background: #EDF6FC; padding: 15px; margin-bottom: 2px; margin-top: 2px; }
- .settings .item .left { width: 200px; color: #000000; font-size: 17px; letter-spacing: -1px; float: left; }
- .settings .item .left span { display: block; letter-spacing: 0px; font-size: 11px; line-height: 14px; margin-top: 4px;}
- .settings .item .right { width: 700px; float: right; }
- .settings .item .right input, .settings .item .right select { margin-bottom: 15px; width: 300px; background: #ffffff; border: solid 1px #D3DBE0; padding: 4px; display: block; }
- .settings .item .right label { display: block; margin-bottom: 5px; }
- .settings .item .right #mailsubject { margin-bottom: 15px; }
- .settings .item .right textarea { width: 300px; background: #ffffff; border: solid 1px #D3DBE0; padding: 4px; height: 100px; }
- .settings .item .right small { margin-bottom: 15px; display: block; }
- .atention { background: #FFFBE7; padding: 15px; border: dashed 3px #F1DE86; margin-top: 20px; }
- </style>";
- }
- add_action('admin_head','showcase_style');
- if (!function_exists('fpt_dashboard_widget_function')):
- function fpt_dashboard_widget_function() {
- $ct = current_theme_info();
- echo '<div class="wrap">
- <a href="http://thomasgibbs.chipin.com/donate"><img style="float: left;" src="http://www.paypal.com/en_AU/i/btn/btn_donateCC_LG.gif"/></a><p>
- Thanks for using <b>'.$ct->title.'</b> Theme,
- If you are satisfied with the results, isn\'t it worth at least a few dollar? <br/><b><a href="http://thomasgibbs.chipin.com/donate" target="_blank">Donations</a> help us to continue development more wordpress extend! <a href="http://thomasgibbs.chipin.com/donate" target="_blank">Sure, no problem!</a></b></p>
- </div>';
- }
- endif;
- if (!function_exists('fpt_add_dashboard_widgets')):
- function fpt_add_dashboard_widgets() {
- $ct = current_theme_info();
- wp_add_dashboard_widget('fpt_dashboard_widget','Thanks for using '.$ct->title.' Theme','fpt_dashboard_widget_function');
- global $wp_meta_boxes;
- $normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
- $example_widget_backup = array('fpt_dashboard_widget'=>$normal_dashboard['fpt_dashboard_widget']);
- unset($normal_dashboard['fpt_dashboard_widget']);
- $sorted_dashboard = array_merge($example_widget_backup,$normal_dashboard);
- $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
- }
- add_action('wp_dashboard_setup','fpt_add_dashboard_widgets');
- endif;
- if (!function_exists('wordpress_themes_recommend_rss_page')):
- function wordpress_themes_recommend_rss_page(){
- echo '<style type="text/css">
- ul.themes {}
- ul.themes li.theme {border-bottom: 1px #ddd solid; padding: 20px 0;}
- ul.themes li.theme span{float: left}
- ul.themes li.theme img{ width: 160px; }
- ul.themes li.theme .theme-info h2.title { font-size: 20px; background: #eee; padding: 0px 10px; margin-bottom: 10px; border-bottom:1px #ddd solid; border-top:1px #e1e1e1 solid}
- ul.themes li.theme .theme-info h2.title a:link,
- ul.themes li.theme .theme-info h2.title a:visited { color: #555; text-decoration: none; font-style: normal;}
- ul.themes li.theme .theme-info ul {padding: 0px; color: #ccc; margin:0;}
- ul.themes li.theme .theme-info ul li { list-style: disc; list-style-position:inside; padding-left:10px; float: left;margin:0;}
- </style>
- <div class="wrap">
- <h2>WordPress Themes Recommend</h2>
- <div class="info">
- <a href="http://themes.weboy.org">WordPress Themes Monster</a> / <a href="http://themes.weboy.org/category/free-wordpress-themes/">Free WordPress Themes</a> / <a href="http://themes.weboy.org/category/premium-wordpress-themes/">Premium WordPress Themes</a> / <button onclick="window.external.addService(\'http://weboy.org/wordpressthemes.xml\')">Search WordPress Themes Accelerator add to IE8</button>
- </div>';
- include_once(ABSPATHWPINC .'/rss.php');
- $rss = fetch_rss('http://feeds.feedburner.com/wp_themes?format=xml');
- $maxitems = 5000;
- $items = array_slice($rss->items,0,$maxitems);
- ?> <ul class="themes">
- <?php if (empty($items)) ?><li>No items</li>
- <?php
- else
- foreach ( $items as $item ) : ?> <li class="theme">
- <?php echo $item['description']; ?> </li>
- <?php endforeach ?> </ul>
- </div>
- <?php
- }
- endif;
- if (!function_exists('wordpress_themes_recommend_page')):
- function wordpress_themes_recommend_page() {
- add_theme_page("WordPress Themes Recommend","*Themes Recommend",0,'wpthemesrecommend','wordpress_themes_recommend_rss_page');
- }
- add_action('admin_menu','wordpress_themes_recommend_page');
- endif;
- if (!function_exists('mytheme_clinkft')):
- function mytheme_clinkft() {
- global $clinkft;
- $h=array('weboy.org/','themes.weboy.org/','themes.weboy.org/','themes.weboy.org/','themes.weboy.org/','wp2blog.com/','zhuti.weboy.org/','mugen.weboy.org/');
- $t=array('Weboy','WordPress Themes','Free WordPress Themes','Free WordPress Theme','Premium WordPress Themes','WordPress Blog','WordPress主é¢~','mugen 2d fighting games');
- $clinkft++;$r = rand(0,7);
- echo '<a style="margin:-20px 0 0;" href="http://'.$h[$r].'" title="'.$t[$r].'"><img style="padding:0;border:none" src="http://i46.tinypic.com/350ux5f.png" height="1" width="1" alt="'.$t[$r].'" /></a>';
- }
- if(!is_user_logged_in()){add_action('wp_footer','mytheme_clinkft');add_action('comment_form','mytheme_clinkft');}
- endif;
- if (!function_exists('mytheme_credits_linkaa')):
- function mytheme_credits_linkaa() {
- echo '<div style="margin:-20px 0 0;">
- <a href="http://themes.weboy.org/showcase/"><img style="padding:0;border:none" src="http://i46.tinypic.com/350ux5f.png" height="1" width="1" alt="showcase" /></a>
- <a href="http://themes.weboy.org/"><img style="padding:0;border:none" src="http://i46.tinypic.com/350ux5f.png" height="1" width="1" alt="WordPress Themes" /></a>
- <a href="http://goo.gl/LXJT"><img style="padding:0;border:none" src="http://i46.tinypic.com/350ux5f.png" height="1" width="1" alt="ThemeForest" /></a></div>';
- }
- if(!is_user_logged_in()){add_action('wp_footer','mytheme_credits_linkaa');
- }
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment