function wp_linkmove_sidebar()
{
    global $hc_author, $hc_authorurl, $hc_plugin, $hc_pluginversion, $hc_pluginurl;
    ?>
		<style type="text/css">
				
		a.hc_button {
			padding:4px;
			display:block;
			padding-left:25px;
			background-repeat:no-repeat;
			background-position:5px 50%;
			text-decoration:none;
			border:none;
		}
		
		a.hc_button:hover {
			border-bottom-width:1px;
		}

		a.hc_pluginHome {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/hcsem_name16.ico);
		}
		
		</style>

		<div class="postbox-container" style="width:2%;">
		</div>
		<div class="postbox-container" style="width:21%;">
			<div class="metabox-holder">	
				<div class="meta-box-sortables">			

	     <div id="hc_smres" class="postbox">
			<h3 class="hndle"><span >关于链接平移</span></h3>
			  <div class="inside">
			            <a class="hc_button hc_pluginHome" href="<?php 
    echo $hc_authorurl;
    ?>
">黄聪(作者博客)</a>
						<a class="hc_button hc_pluginHome" href="<?php 
    echo $hc_pluginurl;
    ?>
">链接地址</a>
				</div>
			</div>

			</div>
			</div>
			</div>
		<?php 
}
Exemple #2
0
/** Baidu sitemap page **/
function baidu_sitemap_optionpage()
{
    /** Perform any action **/
    if (isset($_POST["action"])) {
        if ($_POST["action"] == 'build_options') {
            update_baidu_sitemap();
        }
        if ($_POST["action"] == 'build_xml') {
            build_baidu_sitemap();
        }
    }
    /** Definition **/
    echo '<div class="wrap"><div style="background: url(' . GetPluginUrl() . 'img/liucheng_name32.png) no-repeat;" class="icon32"><br /></div>';
    echo '<h2>Baidu Sitemap Generator</h2>';
    /** Introduction **/
    echo '<p>' . _e('This pulgin generates a Baidu XML-Sitemap for WordPress Blog. Also Build a real Static Sitemap-Page for all Search Engine.', 'baidu_sitemap') . '</p>';
    /** show the option Form **/
    baidu_sitemap_form();
    //test_form();
    /** Show the plugins Author **/
    lc_sidebar();
    //echo '</div>';
}
Exemple #3
0
/** wp_linkmove page **/
function wp_linkmove_optionpage()
{
    /** Perform any action **/
    if (isset($_POST["action"])) {
        update_wp_linkmove();
    }
    /** Definition **/
    echo '<div class="wrap"><div style="background: url(' . GetPluginUrl() . 'img/hcsem_name32.png) no-repeat;" class="icon32"><br /></div>';
    echo '<h2>链接平移</h2>';
    /** Introduction **/
    echo '<p>启用该插件,可以让你博客的链接当鼠标放置于上方时出现平移效果。</p>';
    wp_linkmove_form();
    wp_linkmove_sidebar();
}
function lc_sidebar()
{
    global $lc_author, $lc_authorurl, $lc_plugin, $lc_pluginversion, $lc_pluginurl;
    ?>
		<style type="text/css">
				
		a.lc_button {
			padding:4px;
			display:block;
			padding-left:25px;
			background-repeat:no-repeat;
			background-position:5px 50%;
			text-decoration:none;
			border:none;
		}
		
		a.lc_button:hover {
			border-bottom-width:1px;
		}

		a.lc_donatePayPal {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/icon-paypal.gif);
		}
		
		a.lc_donateFavorite {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/favorite_icon.png);
		}
		
		a.lc_pluginHome {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/liucheng_name16.png);
		}
		
		a.lc_pluginList {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/icon-email.gif);
		}
		
		a.lc_pluginBugs {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/rss_icon.png);
		}
		
		a.lc_resBaidu {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/baidu.png);
		}
		
		a.lc_resRss {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/rss_icon.png);
		}
		
		a.lc_resWordpress {
			background-image:url(<?php 
    echo GetPluginUrl();
    ?>
img/wordpress_icon2.png);
		}
		
		</style>

		<div class="postbox-container" style="width:2%;">
		</div>
		<div class="postbox-container" style="width:21%;">
			<div class="metabox-holder">	
				<div class="meta-box-sortables">			

	     <div id="lc_smres" class="postbox">
			<h3 class="hndle"><span ><?php 
    _e('About Baidu-Sitemap:', 'baidu_sitemap');
    ?>
</span></h3>
			  <div class="inside">
			            <a class="lc_button lc_pluginHome" href="<?php 
    echo $lc_authorurl;
    ?>
" target="_blank"><?php 
    _e('zhenglc(Author Homepage)', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Plugin Homepage', 'baidu_sitemap');
    ?>
</a>
                        <a class="lc_button lc_resBaidu" href="http://zhanzhang.baidu.com/" target="_blank"><?php 
    _e('Baidu Zhanzhang', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_resRss" href="http://liucheng.name/884/" target="_blank"><?php 
    _e('FAQ', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginBugs" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Report a Bug', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_donateFavorite" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Suggest a Feature', 'baidu_sitemap');
    ?>
</a>
				</div>
			</div>

	     <div id="lc_smres" class="postbox">
			<h3 class="hndle"><span ><?php 
    _e('Donations: ', 'baidu_sitemap');
    ?>
</span></h3>
			  <div class="inside">
			            <a class="lc_button lc_resWordpress" href="<?php 
    echo $lc_pluginurl;
    ?>
"><?php 
    _e('Not yet. you would be the first!', 'baidu_sitemap');
    ?>
</a>
				</div>
			</div>

	     <div id="lc_smres" class="postbox">
			<h3 class="hndle"><span ><?php 
    _e('Multi-Language Support: ', 'baidu_sitemap');
    ?>
</span></h3>
			  <div class="inside">
			            <a class="lc_button lc_resRss" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('English', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Simplified Chinese', 'baidu_sitemap');
    ?>
</a>
                        <a class="lc_button lc_resRss" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Traditional Chinese', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_resRss" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Japanese', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_resRss" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Korean', 'baidu_sitemap');
    ?>
</a>
				</div>
			</div>

	     <div id="lc_smres" class="postbox">
			<h3 class="hndle"><span ><?php 
    _e('My Other Plugin:', 'baidu_sitemap');
    ?>
</span></h3>
			  <div class="inside">
			            <a class="lc_button lc_pluginHome" href="<?php 
    echo $lc_pluginurl;
    ?>
" target="_blank"><?php 
    _e('Baidu-Sitemap', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="http://liucheng.name/789/" target="_blank"><?php 
    _e('WP KeywordLink', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="http://liucheng.name/947/" target="_blank"><?php 
    _e('Lc.Archivers', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="http://liucheng.name/1256/" target="_blank"><?php 
    _e('wp-today', 'baidu_sitemap');
    ?>
</a>
						<a class="lc_button lc_pluginHome" href="http://liucheng.name/1166/" target="_blank"><?php 
    _e('wp-christmas', 'baidu_sitemap');
    ?>
</a>
				</div>
			</div>

			</div>
			</div>
			</div>
		<?php 
}