/** * * @TODO document * */ function import_export($oid, $o) { ?> <div class="pl_form"> <form method="post" class="pl_account_info fix"> <div class="pl_account_info_pad"> <div class="pl_account_form fix"> <div class="plform_title"> <h2>PageLines Export Settings</h2> </div> <input type="hidden" name="form_submitted" value="export_settings_form" /> <?php echo $this->superlink(__('Export Settings File ↓', 'pagelines'), 'blue', 'export_settings_form', 'submit'); ?> <div class="clear"></div> </div> </div> </form> <form method="post" enctype="multipart/form-data" class="pl_account_info fix"> <div class="pl_account_info_pad"> <div class="pl_account_form"> <div class="plform_title"> <h2>PageLines Import Settings</h2> </div> <input type="hidden" name="form_submitted" value="import_settings_form" /> <?php $input = $this->input_checkbox('pagelines_templates', 'pagelines_templates', 'checked'); echo $this->input_label_inline('pagelines_templates', $input, __('Import Template Settings', 'pagelines')); $input = $this->input_checkbox('pagelines_settings', 'pagelines_settings', 'checked'); echo $this->input_label_inline('pagelines_settings', $input, __('Import Primary Settings', 'pagelines')); $input = $this->input_checkbox('pagelines_special', 'pagelines_special', 'checked'); echo $this->input_label_inline('pagelines_special', $input, __('Import Special Meta Settings', 'pagelines')); $input = $this->input_checkbox('pagelines_layout', 'pagelines_layout', 'checked'); echo $this->input_label_inline('pagelines_layout', $input, __('Import Layout Configuration', 'pagelines')); echo '<input type="file" class="file_uploader text_input" name="file" id="settings-file" /><div class="clear"></div>'; echo $this->superlink(__('Import Settings To Install ↑', 'pagelines'), 'blue', 'import_settings_form', 'submit', 'onClick="return ConfirmImportSettings();"'); pl_action_confirm('ConfirmImportSettings', __('Are you sure? This will overwrite your current settings and configurations with the information in this file!', 'pagelines')); ?> </form> </div> <div class="clear"></div> </div> </div> <?php }
/** * * @TODO document * */ function basic_reset() { ?> <form method="post"> <div class="optionrestore fix"> <?php echo OptEngine::input_hidden('the_pl_setting', 'the_pl_setting', $this->set['settings']); if ($this->set['reset_cb']) { echo OptEngine::input_hidden('reset_callback', 'reset_callback', $this->set['reset_cb']); } echo OptEngine::superlink(sprintf(__('Restore %s To Default', 'pagelines'), strip_tags($this->set['title'])), 'grey', 'reset-options', 'submit', 'onClick="return ConfirmRestore();"', 'pl_reset_settings'); pl_action_confirm('ConfirmRestore', __('Are you sure? This will restore these settings to default.', 'pagelines')); ?> <div class="ortext"><?php _e('Use this button to restore these settings to default.', 'pagelines'); ?> </div> </div> </form> <?php }
/** * Option Interface Footer * */ function build_footer(){?> <div id="optionsfooter"> <div class="hl"></div> <div class="theinputs"> <input class="button-secondary reset-options" type="submit" name="<?php epanel_option_name('reset'); ?>" onClick="return ConfirmRestore();" value="Restore Theme Settings" style="float:left;"/> <?php pl_action_confirm('ConfirmRestore', 'Are you sure? This will restore your theme options settings to default.');?> <input class="button-primary" type="submit" name="submit" value="<?php _e('Save Theme Settings', 'epanel');?>" /> </div> <div class="clear"></div> </div> </form> <div class="metabox-holder" style="width:930px;"> <div class="postbox-container-new"> <div id="settings-importexport" class="postbox"> <div class="handlediv" title="Click to toggle"><br></div><h3 class="hndle"><span><?php echo $theme_data['Title'];?> Theme Settings Import & Export</span></h3> <div class="inside"> <div class="importandexport" style="padding-left:15px;"> <div class="one_half"> <h4><?php _e('Export Theme Settings', 'epanel'); ?></h4> <p class="fix"> <a class="button-secondary download-button" href="<?php echo admin_url('admin.php?page=epanel&download=settings'); ?>">Download Theme Settings</a> </p> </div> <div class="one_half last"> <h4><?php _e('Import Theme Settings', 'epanel'); ?></h4> <form method="post" enctype="multipart/form-data"> <input type="hidden" name="settings_upload" value="settings" /> <p class="form_input"> <input type="file" class="text_input" name="file" id="settings-file" /> <input class="button-secondary" type="submit" value="Upload New Settings" onClick="return ConfirmImportSettings();" /> </p> </form> <?php pl_action_confirm('ConfirmImportSettings', 'Are you sure? This will overwrite your current settings and configurations with the information in this file!');?> </div> </div> <div class="clearboth"></div> </div> </div> </div> </div> </td></tr></tbody></table> <div class="clear"></div> <script type="text/javascript">/*<![CDATA[*/ jQuery(document).ready(function(){ jQuery('.framework_loading').hide(); }); /*]]>*/</script> </div> <?php }
/** * Option Interface Footer * */ function build_footer(){?> <div id="optionsfooter"> <div class="hl"></div> <div class="theinputs"> <?php if(VPRO):?><a class="admin_footerlink" href="http://www.pagelines.com/feedback/" target="_blank"><?php _e('Customer Feedback Form »', 'pagelines');?></a><?php endif;?> <input class="button-primary" type="submit" name="submit" value="<?php _e('Save Options', 'pagelines');?>" /> </div> <div class="clear"></div> </div> <div class="optionrestore"> <h4><?php _e('Restore Settings', 'pagelines'); ?></h4> <p> <div class="context"><input class="button-secondary reset-options" type="submit" name="<?php pagelines_option_name('reset'); ?>" onClick="return ConfirmRestore();" value="Restore Options To Default" />Use this button to restore settings to their defaults. (Note: Restore template and layout information on their individual pages.)</div> <?php pl_action_confirm('ConfirmRestore', 'Are you sure? This will restore your settings information to default.');?> </p> </div> <!-- close entire form --> </form> <div class="optionrestore restore_column_holder fix"> <div class="restore_column_split"> <h4><?php _e('Export Settings', 'pagelines'); ?></h4> <p class="fix"> <a class="button-secondary download-button" href="<?php echo admin_url('admin.php?page=pagelines&download=settings'); ?>">Download Theme Settings</a> </p> </div> <div class="restore_column_split"> <h4><?php _e('Import Settings', 'pagelines'); ?></h4> <form method="post" enctype="multipart/form-data"> <input type="hidden" name="settings_upload" value="settings" /> <p class="form_input"> <input type="file" class="text_input" name="file" id="settings-file" /> <input class="button-secondary" type="submit" value="Upload New Settings" onClick="return ConfirmImportSettings();" /> </p> </form> <?php pl_action_confirm('ConfirmImportSettings', 'Are you sure? This will overwrite your current settings and configurations with the information in this file!');?> </div> </div> </td></tr></tbody></table> <div class="clear"></div> <script type="text/javascript">/*<![CDATA[*/ jQuery(document).ready(function(){ jQuery('.framework_loading').hide(); }); /*]]>*/</script> </div> <?php }