Duffer Derek
<?php
defined( 'ABSPATH' ) or die( 'Something went wrong.' );
$this->set_current_section( 'backups' );
$this->add_section( __( 'Backups', 'secupress' ) . ' ' . sprintf( '<span class="button button-small alignright secupress-button-small"><a href="%s">%s</a></span>', secupress_admin_url( 'modules', 'backups' ), __( 'Backup Module', 'secupress' ) ) );
$this->add_field( array(
'name' => $this->get_field_name( 'scheduled' ),
'type' => 'scheduled_backups',
'row_class' => 'secupress-schedule-message-field',
) );
$this->add_field( array(
'title' => __( 'Backup Type', 'secupress' ),
'name' => $this->get_field_name( 'type' ),
'type' => 'checkboxes',
'options' => array( 'db' => __( 'Database', 'secupress' ), 'files' => __( 'Files', 'secupress' ) ),
) );
/** Translators: use %d, nothing else. */
$label_before = __( 'Every %d days', 'secupress' );
$label_before = explode( '%d', $label_before );
$label_after = $label_before[1];
$label_before = $label_before[0];
$this->add_field( array(
'title' => __( 'Frequency', 'secupress' ),
'label_for' => $this->get_field_name( 'periodicity' ),
'type' => 'number',
'label_before' => $label_before,
'label_after' => $label_after,
'attributes' => array(
'min' => 0,
),
) );
$this->add_field( array(
'title' => __( 'Notification of result', 'secupress' ),
'description' => __( 'When finished, a notification will be sent to the following email address (optional).', 'secupress' ),
'label' => __( 'Email' ),
'label_for' => $this->get_field_name( 'email' ),
'type' => 'email',
'default' => secupress_get_module_option( $this->get_field_name( 'periodicity' ), '', $this->modulenow ) ? '' : wp_get_current_user()->user_email,
) );
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists