<?php if ($data_items) { $settings_field_name = 'export'; include_once get_template_directory() . '/includes/admin/templates/part-settings-select.php'; } ?> <?php /** * Set submit button with name = backup_action and value = export * NOTE: When clicking this button, only THIS value is being sent, other submit button values are IGNORED. */ //submit_button( __('Start Export', 'cc2'), 'primary large', 'backup_action', false, array('value' => 'export', 'id' => 'init-settings-export') ); proper_submit_button(__('Start Export', 'cc2'), 'primary large', 'backup_action', false, array('value' => 'export', 'id' => 'init-settings-export')); ?> <?php } ?> <?php if (!empty($export_data)) { ?> <div class="result"> <p> <label class="result-title" for="export-data-result" data-for-id="export-data-result">Exported settings:</label> <textarea class="large-text" rows="15" cols="45" id="export-data-result"><?php echo trim($export_data); ?> </textarea><br />
?> <div class="backup-settings settings-reset"> <p><?php echo __('Reset all or just selected settings.', 'cc2'); ?> </p> <?php if (!empty($data_items)) { $settings_field_name = 'reset'; include get_template_directory() . '/includes/admin/templates/part-settings-select.php'; ?> <?php proper_submit_button(__('Reset settings', 'cc2'), 'delete', 'backup_action', false, array('value' => 'reset', 'id' => 'init-settings-reset')); ?> <?php } ?> <?php if (isset($result_reset)) { ?> <div id="reset-result"> <p><?php echo sprintf(__('%s the following data:', 'cc2'), 'Reset'); ?> </p>
" /></li> <?php } ?> <?php } ?> </ol> <p><?php proper_submit_button(__('No, abort now!', 'cc2'), 'abort large', 'settings_reset_confirm', false, array('value' => 'nope', 'id' => 'init-settings-confirm-abort')); ?> <?php proper_submit_button(__('Yes, please reset!', 'cc2'), 'delete large', 'settings_reset_confirm', false, array('value' => 'yes', 'id' => 'init-settings-confirm-continue')); ?> </p> <?php } else { ?> <p><?php _e('Nothing to do here. NO settings selected.', 'cc2'); ?> </p> <?php } ?> </div>
" /> <label for="<?php echo sanitize_key('old-setting-' . $strSettingKey); ?> "><?php echo $strSettingDescription; ?> </label> </li> <?php } ?> </ul> <p><?php proper_submit_button(__('Import selected data', 'cc2'), 'primary large', 'step', false, array('value' => 'update-script')); ?> </p> </div> </div> </div><!-- /.feature-section --> <?php } ?> <!-- slideshow + color schemes + customizer options --> <div class="changelog about-integrations">
if (empty($import_result)) { ?> <p class="description"><label for="field-import-data"><?php _e('Copy + paste the data you want to import into the following text field:', 'cc2'); ?> </label></p> <p><textarea class="large-text" rows="10" cols="50" name="import_data" id="field-import-data"></textarea> <?php /** * Set submit button with name = backup_action and value = import * NOTE: When clicking this button, only THIS value is being sent, other submit button values are IGNORED. */ proper_submit_button(__('Start Import', 'cc2'), 'primary large', 'backup_action', true, array('value' => 'import', 'id' => 'init-settings-import')); } else { ?> <?php if (!empty($import_result) && is_array($import_result)) { ?> <div class="updated"> <p><?php _e('Successfully imported all settings.', 'cc2'); ?> </p> </div> <p class="import-message"> <strong><?php printf(__('%s the following data:', 'cc2'), 'Imported');
} ?> </li> <?php } ?> </ul> </div> <?php } ?> <p> <label> <input type="checkbox" name="update_test_run" value="yes" <?php checked($_POST['update_test_run'], 'yes'); ?> /> <?php _e('Test run', 'cc2'); ?> </label> <?php proper_submit_button(__('Import Old Options', 'cc2'), 'primary large', 'update_action', false, array('value' => 'yes', 'id' => 'init-update-script')); ?> </p> </div>
?> ) center 10% no-repeat; display: block; height: 250px; max-width: 80%; margin: 2em 0; border: 10px solid #efefef; box-shadow: 1px 1px 4px #aaa"> </div> <div class="about-text cc2-about-text"> <p><?php printf(__('Welcome and thanks for installing Custom Community %s!', 'cc2'), $version); ?> </p> </div> <p class="cc2-welcome-actions"> <?php proper_submit_button(__('Customize Theme', 'cc2'), 'primary link', 'welcome-action-customize', false, array('href' => $theme_customize_url)); ?> <?php proper_submit_button(__('Settings', 'cc2'), 'primary link', 'welcome-action-settings', false, array('href' => $theme_settings_url)); ?> <?php proper_submit_button(__('Documentation', 'cc2'), 'primary link', 'welcome-action-rtfm', false, array('href' => $theme_rtfm_url)); ?> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://f2w.de/cc2" data-text="Professional-grade responsive, Bootstrap-based, extremely adaptable WordPress Customizer theme." data-via="Themekraft" data-size="large" data-hashtags="Themekraft">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </p>