Example #1
0
?>
            </strong> </div>
        </div>
        <!--  /Sidebar widget -->
      
        <!--  Sidebar widget -->
        <div class="wpsd postbox">
          <h3><?php 
_e('Server Check', 'wpsd');
?>
</h3>
          <div class="inside">
            <ul>
            <?php 
$check = wpsd_get_img('check', 'float:left;margin:0px 5px 0px 0px;');
$uncheck = wpsd_get_img('uncheck', 'float:left;margin:0px 5px 0px 0px;');
echo '<li>';
echo ini_get('safe_mode') ? $uncheck . __('Safe mode: on', 'wpsd') : $check . __('Safe mode: off', 'wpsd');
echo '</li>';
echo '<li>';
echo function_exists('curl_init') ? $check . __('Curl installed: yes', 'wpsd') : $uncheck . __('Curl installed: no', 'wpsd');
echo '</li>';
echo '<li>';
echo function_exists('stats_get_api_key') || defined('JETPACK__API_VERSION') ? $check . __('Stats plugin: installed', 'wpsd') : $uncheck . __('Stats plugin: <a href="http://wordpress.org/extend/plugins/jetpack/" target="_blank" title="Install the WordPress.com Jetpack plugin">not installed</a>', 'wpsd');
echo '</li>';
echo '<li>';
echo is_writable(wpsd_get_cache_path()) ? $check . __('Cache directory writable: yes', 'wpsd') : $uncheck . __('Cache directory writable: no', 'wpsd');
echo '</li>';
$base = get_template_directory();
$theme_data = implode('', file($base . DIRECTORY_SEPARATOR . 'footer.php'));
echo '<li>';
Example #2
0
/**
 * wpsd_go function.
 * 
 * @access public
 * @param mixed $link
 * @param string $title. (default: '')
 * @return void
 */
function wpsd_go($link, $title = '')
{
    ?>
	<a href="<?php 
    echo $link;
    ?>
" target="_blank" title="<?php 
    echo $title;
    ?>
"><?php 
    echo wpsd_get_img('link-go-icon', 'vertical-align:bottom;width:24px;height:24px;');
    ?>
</a>
<?php 
}