コード例 #1
0
ファイル: mainOptionsHtml.php プロジェクト: VSVS/vs_wp_4.0
    <div class="excludeOpt">
    <?php 
echo langBup::_('Exclude:');
echo htmlBup::text('opt_values[exclude]', array('attrs' => 'class="excludeInput" title="If entering multiple files/directories, then separate them with commas."', 'value' => frameBup::_()->getModule('options')->get('exclude')));
?>
    </div>
  
    <div class="emailOpt">
    <table>
     <tr>
    	<td width="120"><?php 
echo langBup::_('Email notification:');
?>
</td>
        <td><?php 
echo htmlBup::checkbox('opt_values[email_ch]', array('attrs' => 'class="bupCheckboxNotUnCheck"', 'value' => 1, 'checked' => frameBup::_()->getModule('options')->getValueType('email') ? 'checked' : ''));
?>
</td>
     </tr>
    </table>
    	<div class="emailAddress" <?php 
echo frameBup::_()->getModule('options')->getValueType('email') ? '' : 'style="display:none"';
?>
 >
        	<?php 
echo htmlBup::text('opt_values[email]', array('attrs' => 'class="excludeInput" placeholder="*****@*****.**" title=""', 'value' => frameBup::_()->getModule('options')->get('email')));
?>
        </div>
    </div>
    
</div>
コード例 #2
0
ファイル: fieldAdapter.php プロジェクト: VSVS/vs_wp_4.0
 public static function taxDataHtml($field)
 {
     $listOfDest = array();
     if (!is_array($field->value)) {
         if (empty($field->value)) {
             $field->value = array();
         } else {
             $field->value = (array) json_decode($field->value, true);
         }
     }
     foreach (self::$userfieldDest as $d) {
         $listOfDest[] = array('id' => $d, 'text' => $d, 'checked' => is_array($field->value['dest']) && in_array($d, $field->value['dest']));
     }
     $categories = frameBup::_()->getModule('products')->getCategories();
     $brands = frameBup::_()->getModule('products')->getBrands();
     $cOptions = array();
     $bOptions = array();
     if (!empty($categories)) {
         if (!is_array($field->value['categories'])) {
             $field->value['categories'] = array();
         }
         foreach ($categories as $c) {
             $cOptions[] = array('id' => $c->term_taxonomy_id, 'text' => $c->cat_name, 'checked' => in_array($c->term_taxonomy_id, $field->value['categories']));
         }
     }
     if (!empty($brands)) {
         if (!is_array($field->value['brands'])) {
             $field->value['brands'] = array();
         }
         foreach ($brands as $b) {
             $bOptions[] = array('id' => $b->term_taxonomy_id, 'text' => $b->cat_name, 'checked' => in_array($b->term_taxonomy_id, $field->value['brands']));
         }
     }
     return '<div>' . langBup::_('Apply To') . '
         <div id="tax_address">
             <b>' . langBup::_('Address') . '</b><br />
             ' . langBup::_('Destination') . ':' . htmlBup::checkboxlist('params[dest]', array('optionsBup' => $listOfDest)) . '<br />
             ' . langBup::_('Country') . ':' . htmlBup::countryList('params[country]', array('notSelected' => true, 'value' => $field->value['country'])) . '<br />
         </div>
         <div id="tax_category">
             <b>' . langBup::_('Categories') . '</b><br />
             ' . (empty($cOptions) ? langBup::_('You have no categories') : htmlBup::checkboxlist('params[categories][]', array('optionsBup' => $cOptions))) . '<br />
                 <b>' . langBup::_('Brands') . '</b><br />
             ' . (empty($bOptions) ? langBup::_('You have no brands') : htmlBup::checkboxlist('params[brands][]', array('optionsBup' => $bOptions))) . '<br />
         </div>
         <div>' . langBup::_('Tax Rate') . ': ' . htmlBup::text('params[rate]', array('value' => $field->value['rate'])) . '</div>
         <div>' . langBup::_('Absolute') . ': ' . htmlBup::checkbox('params[absolute]', array('checked' => $field->value['absolute'])) . '</div>
     </div>';
 }
コード例 #3
0
ファイル: backupOptions.php プロジェクト: carlyns/RESUSblog
echo htmlBup::text('opt_values[warehouse]', array('attrs' => 'class="input-regular" id="warehouseInput" style="width: 100% !important"', 'value' => str_replace('\\', '/', frameBup::_()->getModule('options')->get('warehouse'))));
?>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <i class="fa fa-question supsystic-tooltip" title="<?php 
_e('If the checkbox has been set up, then the backup path must be specified in the Warehouse field against the root directory, where the WordPress is installed. if the checkbox has been off, then the backup path must be specified in the Warehouse field against the disk root."', BUP_LANG_CODE);
?>
"></i>
                            <?php 
_e('Use relative path', BUP_LANG_CODE);
?>
                            <div style="float: right">
                                <?php 
echo htmlBup::checkbox('__toggleWarehouseAbs', array('attrs' => 'class="bupCheckbox wareabs" id="warehouseToggle"', 'checked' => frameBup::_()->getModule('options')->get('warehouse_abs') == 1 ? 'checked' : ''));
?>
                            <div
                            <input type="hidden" value="<?php 
echo frameBup::_()->getModule('options')->get('warehouse_abs');
?>
" name="opt_values[warehouse_abs]">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <i class="fa fa-question supsystic-tooltip" title="<?php 
_e('Path to directory, where will be stored backup files.', BUP_LANG_CODE);
?>
"></i>
                            <span id="abspath"><?php 
コード例 #4
0
ファイル: schedulePage.php プロジェクト: VSVS/vs_wp_4.0
                                        <td><?php 
echo htmlBup::checkbox('sch_values[sch_every_day_twice]', array('attrs' => 'class="bupScheduleCheckbox"', 'value' => 1, 'checked' => $this->getModel()->everyChecked('sch_every_day_twice')));
?>
</td>
                                    </tr>
                                    <tr>
                                        <td>every week</td>
                                        <td><?php 
echo htmlBup::checkbox('sch_values[sch_every_week]', array('attrs' => 'class="bupScheduleCheckbox"', 'value' => 1, 'checked' => $this->getModel()->everyChecked('sch_every_week')));
?>
</td>
                                    </tr>
                                    <tr>
                                        <td>every month</td>
                                        <td><?php 
echo htmlBup::checkbox('sch_values[sch_every_month]', array('attrs' => 'class="bupScheduleCheckbox"', 'value' => 1, 'checked' => $this->getModel()->everyChecked('sch_every_month')));
?>
</td>
                                    </tr>
                                    </table>
                                  </div>
                                </fieldset>
                                
                                <fieldset class="bupScheluleFieldset"><legend><strong>Destination</strong></legend>
                                  <div class="paddingSchedule">
                                    <table>
                                    <?php 
//foreach($this->destination as $key=>$value){
?>
                                   <!-- <tr>
                                        <td width="120"><?php 
コード例 #5
0
ファイル: backup.index.php プロジェクト: carlyns/RESUSblog
?>
                        </td>
                    </tr>
                    <tr>
                        <th class="col-w-30perc"><?php 
_e('Force Update', BUP_LANG_CODE);
?>
</th>
                        <td class="col-w-1perc">
                            <i class="fa fa-question supsystic-tooltip" title="<?php 
_e('When backup is performed, the labels are usually put at the beginning of the file dump, such as: WordPress version for the backup; WordPress data-base version for the backup; the plugin version for the backup. At recovering, if the force has been off, the backup will not be performed, because it will constantly pop up with the message, that the version is incorrect (the version of WordPress, the version of WordPress data-base or the plugin version). If the force has been on, there will be no such system check and the recovery will be performed.', BUP_LANG_CODE);
?>
"></i>
                        </td>
                        <td class="col-w-1perc"><?php 
echo htmlBup::checkbox('opt_values[force_update]', array('attrs' => 'class="bupCheckbox bupSaveRestoreSetting" data-setting-key="force_update"', 'value' => '1', 'checked' => frameBup::_()->getModule('options')->get('force_update') == 1 ? 'checked' : ''));
?>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- Log modal window start  -->
            <div id="bupShowLogDlg" title="<?php 
_e('Backup Log:', BUP_LANG_CODE);
?>
">
                <p id="bupLogText" style="margin-top: 0"></p>
            </div>
            <!-- Log modal window end  -->

            <!-- Migrate promo modal window start  -->