Ejemplo n.º 1
0
    public static function meta_box_preview($object, $data)
    {
        ?>
			<div class="alternate no_underline" style="margin:5px 0 0 0;padding:5px;">
				<div class="preview-wrapper" id="custom_edit" style="display:<?php 
        if (Skype_Online_Status::$config['button_theme'] == 'custom_edit') {
            echo 'block';
        } else {
            echo 'none';
        }
        ?>
;margin:0;padding:0">
					<div style="height:38px;border-bottom:1px dotted grey;margin:0 0 5px 0"><?php 
        _e('Custom...', 'skype-online-status');
        _e(' (edit under advanced options)', 'skype-online-status');
        ?>
</div>
					<div class="custom_edit_preview"><?php 
        echo Skype_Online_Status::parse_theme(Skype_Online_Status::$preview_options);
        ?>
</div>
				</div>
				<?php 
        echo Skype_Online_Status::$previews;
        ?>
			</div>
			<p><?php 
        _e('Note:', 'skype-online-status');
        ?>
 <?php 
        _e('The preview button uses the Skype Test Call service to allow testing its function.', 'skype-online-status');
        ?>
</p>
		<?php 
    }
Ejemplo n.º 2
0
 public static function add_menu()
 {
     /* Register our plugin page */
     self::$pagehook = add_submenu_page('options-general.php', __('Skype Legacy Buttons', 'skype-online-status'), __('Skype Buttons', 'skype-online-status'), 'manage_options', SOSPLUGINFILE, array(__CLASS__, 'skype_options'));
     /* Using registered $page handle to hook script load */
     add_action('load-' . self::$pagehook, array(__CLASS__, 'scripts_admin'));
 }
Ejemplo n.º 3
0
?>
" scrolling="auto" allowtransparency="yes" style="margin:0;padding:0;border:0;width:100%;height:600px"></iframe>
		<p style="text-align:right"><a href="#wphead"><?php 
_e('Top');
?>
</a></p>

	<?php 
if (defined('WP_DEBUG') && WP_DEBUG) {
    echo "<h3>DEBUG INFO</h3>\n\t\t<div style=\"width:32%;float:left\"><h4>Old database values</h4><textarea readonly=\"readonly\" style=\"width:100%;height:600px\">";
    foreach (Skype_Online_Status::$config as $key => $value) {
        echo $key . " => " . stripslashes(htmlspecialchars($value)) . "\r\n";
    }
    unset($value);
    echo "</textarea></div>\n\t\t<div style=\"width:32%;margin:0 2%;float:left\"><h4>Updated to</h4><textarea readonly=\"readonly\" style=\"width:100%;height:600px\">";
    if (!empty($_POST['skype_status_update']) || !empty($_POST['skype_status_reset'])) {
        foreach ($option as $key => $value) {
            echo $key . " => " . stripslashes(htmlspecialchars($value)) . "\r\n";
        }
        unset($value);
    }
    echo "</textarea></div>\n\t\t<div style=\"width:32%;float:left\"><h4>Default values</h4><textarea readonly=\"readonly\" style=\"width:100%;height:600px\">";
    foreach (Skype_Online_Status::get_default_values() as $key => $value) {
        echo $key . " => " . stripslashes(htmlspecialchars($value)) . "\r\n";
    }
    unset($value);
    echo "</textarea></div><div style=\"clear:both\"></div>\n\t\t<div id=\"globals\"><h4>Pluging global values and flags</h4> \n\t\t<p>SOSVERSION=" . SOSVERSION . "<br />SOSVERSION_DATE=" . SOSVERSION_DATE . "</p>\n\t\t</div>";
}
?>
	</div> <!-- #notes -->
Ejemplo n.º 4
0
function get_skype_status($args = '')
{
    echo Skype_Online_Status::skype_status($args);
}