示例#1
0
文件: backups.php 项目: akochnov/fts
        esc_html_e('You are about to delete a restore to a backup created on:', 'my-wp-backup');
        ?>
</p>
			    <ul class="ul-disc">
				    <li><strong><?php 
        echo esc_html(date('F j, Y, g:i a', $backup['timestamp']));
        ?>
</strong></li>
			    </ul>
			    <label for="restore-method"><?php 
        esc_html_e('Select where to restore the backup from:', 'my-wp-backup');
        ?>
</label><br><br>
			    <select name="method" id="restore-method">
				    <?php 
        wpb_select_options($backup->available_destinations());
        ?>
			    </select><br><br>
			    <?php 
        submit_button('Start', null, 'submit', false);
        ?>
			    <a class="button button-cancel" href="<?php 
        echo esc_attr(Admin::get_page_url('backup'));
        ?>
"><?php 
        esc_html_e('Cancel', 'my-wp-backup');
        ?>
</a>
		    </form>

	    <?php 
示例#2
0
文件: jobs.php 项目: akochnov/fts
    ?>
</label></th>
								<td><input id="smtp-port" name="my-wp-backup-jobs[reporter_options][mail][smtp_port]" value="<?php 
    echo esc_attr($job['reporter_options']['mail']['smtp_port']);
    ?>
" type="text"/></td>
							</tr>
							<tr>
								<th scope="row"><label for="smtp-security"><?php 
    esc_html_e('Protocol', 'my-wp-backup');
    ?>
</label></th>
								<td>
									<select id="smtp-security" name="my-wp-backup-jobs[reporter_options][mail][smtp_protocol]">
										<?php 
    wpb_select_options(array('none' => __('None', 'my-wp-backup'), 'tls' => 'TLS', 'ssl' => 'SSL'), $job['reporter_options']['mail']['smtp_protocol']);
    ?>
									</select>
								</td>
							</tr>
							<tr>
								<th scope="row"><label for="smtp-username"><?php 
    esc_html_e('Username', 'my-wp-backup');
    ?>
</label></th>
								<td><input id="smtp-username" name="my-wp-backup-jobs[reporter_options][mail][smtp_username]" value="<?php 
    echo esc_attr($job['reporter_options']['mail']['smtp_username']);
    ?>
" type="text"/></td>
							</tr>
							<tr>