本文整理汇总了PHP中BackWPup::get_wizards方法的典型用法代码示例。如果您正苦于以下问题:PHP BackWPup::get_wizards方法的具体用法?PHP BackWPup::get_wizards怎么用?PHP BackWPup::get_wizards使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BackWPup
的用法示例。
在下文中一共展示了BackWPup::get_wizards方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: page
/**
* Print the markup.
*
* @return void
*/
public static function page()
{
// get wizards
$wizards = BackWPup::get_wizards();
?>
<div class="wrap" id="backwpup-page">
<h2><span id="backwpup-page-icon"> </span><?php
echo sprintf(__('%s Dashboard', 'backwpup'), BackWPup::get_plugin_data('name'));
?>
</h2>
<?php
BackWPup_Admin::display_messages();
if (class_exists('BackWPup_Pro', FALSE)) {
?>
<div class="backwpup-welcome backwpup-max-width">
<h3><?php
_ex('Planning backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('BackWPup’s job wizards make planning and scheduling your backup jobs a breeze.', 'backwpup');
echo ' ';
_e('Use your backup archives to save your entire WordPress installation including <code>/wp-content/</code>. Push them to an external storage service if you don’t want to save the backups on the same server.', 'backwpup');
?>
</p>
<h3><?php
_ex('Restoring backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('With a single backup archive you are able to restore an installation. Use a tool like phpMyAdmin or a plugin like <a href="http://wordpress.org/plugins/adminer/" target="_blank">Adminer</a> to restore your database backup files.', 'backwpup');
?>
</p>
<h3><?php
_ex('Ready to set up a backup job?', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
printf(__('Use one of the wizards to plan a backup, or use <a href="%s">expert mode</a> for full control over all options.', 'backwpup'), network_admin_url('admin.php') . '?page=backwpupeditjob');
echo ' ';
_e('<strong>Please note: You are solely responsible for the security of your data; the authors of this plugin are not.</strong>', 'backwpup');
?>
</p>
</div>
<?php
} else {
?>
<div class="backwpup-welcome backwpup-max-width">
<h3><?php
_ex('Planning backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('Use the short links in the <strong>First steps</strong> box to plan and schedule backup jobs.', 'backwpup');
echo ' ';
_e('Use your backup archives to save your entire WordPress installation including <code>/wp-content/</code>. Push them to an external storage service if you don’t want to save the backups on the same server.', 'backwpup');
?>
</p>
<h3><?php
_ex('Restoring backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('With a single backup archive you are able to restore an installation. Use a tool like phpMyAdmin or a plugin like <a href="http://wordpress.org/plugins/adminer/" target="_blank">Adminer</a> to restore your database backup files.', 'backwpup');
?>
</p>
<h3><?php
_ex('Ready to set up a backup job?', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
printf(__('<a href="%s">Add a new backup job</a> and plan what you want to save.', 'backwpup'), network_admin_url('admin.php') . '?page=backwpupeditjob');
?>
<br /><?php
_e('<strong>Please note: You are solely responsible for the security of your data; the authors of this plugin are not.</strong>', 'backwpup');
?>
</p>
</div>
<?php
}
if (current_user_can('backwpup_jobs_edit') && current_user_can('backwpup_logs') && current_user_can('backwpup_jobs_start')) {
?>
<div id="backwpup-first-steps" class="metabox-holder postbox backwpup-floated-postbox">
<h3 class="hndle"><span><?php
_e('First Steps', 'backwpup');
?>
</span></h3>
<div class="inside">
<ul>
<?php
if (class_exists('BackWPup_Pro', FALSE)) {
?>
<li type="1"><a href="<?php
echo wp_nonce_url(network_admin_url('admin.php') . '?page=backwpupwizard&wizard_start=SYSTEMTEST', 'wizard');
?>
//.........这里部分代码省略.........
示例2: page
/**
* Print the markup.
*
* @return void
*/
public static function page()
{
// get wizards
$wizards = BackWPup::get_wizards();
?>
<div class="wrap" id="backwpup-page">
<h2><span id="backwpup-page-icon"> </span><?php
echo sprintf(__('%s Dashboard', 'backwpup'), BackWPup::get_plugin_data('name'));
?>
</h2>
<?php
BackWPup_Admin::display_messages();
if (class_exists('BackWPup_Pro', FALSE)) {
?>
<div class="backwpup-welcome backwpup-max-width">
<h3><?php
_ex('Planning backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('BackWPup’s job wizards make planning and scheduling your backup jobs a breeze.', 'backwpup');
echo ' ';
_e('Use your backup archives to save your entire WordPress installation including <code>/wp-content/</code>. Push them to an external storage service if you don’t want to save the backups on the same server.', 'backwpup');
?>
</p>
<h3><?php
_ex('Restoring backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('With a single backup archive you are able to restore an installation. Use a tool like phpMyAdmin or a plugin like <a href="http://wordpress.org/plugins/adminer/" target="_blank">Adminer</a> to restore your database backup files.', 'backwpup');
?>
</p>
<h3><?php
_ex('Ready to set up a backup job?', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
printf(__('Use one of the wizards to plan a backup, or use <a href="%s">expert mode</a> for full control over all options.', 'backwpup'), network_admin_url('admin.php') . '?page=backwpupeditjob');
echo ' ';
_e('<strong>Please note: You are solely responsible for the security of your data; the authors of this plugin are not.</strong>', 'backwpup');
?>
</p>
</div>
<?php
} else {
?>
<div class="backwpup-welcome backwpup-max-width">
<h3><?php
_ex('Planning backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('Use the short links in the <strong>First steps</strong> box to plan and schedule backup jobs.', 'backwpup');
echo ' ';
_e('Use your backup archives to save your entire WordPress installation including <code>/wp-content/</code>. Push them to an external storage service if you don’t want to save the backups on the same server.', 'backwpup');
?>
</p>
<h3><?php
_ex('Restoring backups', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
_e('With a single backup archive you are able to restore an installation. Use a tool like phpMyAdmin or a plugin like <a href="http://wordpress.org/plugins/adminer/" target="_blank">Adminer</a> to restore your database backup files.', 'backwpup');
?>
</p>
<h3><?php
_ex('Ready to set up a backup job?', 'Dashboard heading', 'backwpup');
?>
</h3>
<p><?php
printf(__('<a href="%s">Add a new backup job</a> and plan what you want to save.', 'backwpup'), network_admin_url('admin.php') . '?page=backwpupeditjob');
?>
<br /><?php
_e('<strong>Please note: You are solely responsible for the security of your data; the authors of this plugin are not.</strong>', 'backwpup');
?>
</p>
</div>
<?php
}
if (current_user_can('backwpup_jobs_edit') && current_user_can('backwpup_logs') && current_user_can('backwpup_jobs_start')) {
?>
<div id="backwpup-first-steps" class="metabox-holder postbox backwpup-floated-postbox">
<h3 class="hndle"><span><?php
_e('First Steps', 'backwpup');
?>
</span></h3>
<div class="inside">
<ul>
<?php
if (class_exists('BackWPup_Pro', FALSE)) {
?>
<li type="1"><a href="<?php
echo wp_nonce_url(network_admin_url('admin.php') . '?page=backwpupwizard&wizard_start=SYSTEMTEST', 'wizard');
?>
//.........这里部分代码省略.........