Ejemplo n.º 1
0
/**
 * Create and display plugin help tab content.
 *
 * @since 1.0.0
 *
 * @uses  ddw_gest_plugin_get_data() To display various data of this plugin.
 */
function ddw_gest_help_content()
{
    echo '<h3>' . __('Plugin', 'genesis-extra-settings-transporter') . ': ' . __('Genesis Extra Settings Transporter', 'genesis-extra-settings-transporter') . ' <small>v' . esc_attr(ddw_gest_plugin_get_data('Version')) . '</small></h3>';
    echo '<h4><em>' . __('A Typical Workflow Example', 'genesis-extra-settings-transporter') . '</em></h4>' . '<p><em>' . __('Transfer settings from a development install to the live/ production install.', 'genesis-extra-settings-transporter') . '</em></p>' . '<blockquote><p><strong>' . __('Prerequisites/ Requirements', 'genesis-extra-settings-transporter') . ':</strong></p>' . '<ul>' . '<li>' . sprintf(__('On BOTH sites/ installations you have installed & activated for example the (great) %s child theme, plus the following plugins:', 'genesis-extra-settings-transporter'), '&raquo;' . __('Curtail', 'genesis-extra-settings-transporter') . '&laquo;') . ' Genesis Layout Extras, Genesis Responsive Slider, Genesis Simple Hooks, Genesis Simple Sidebars.</li>' . '<li>' . sprintf(__('On BOTH sites/ installations you have installed & activated this plugin, %s.', 'genesis-extra-settings-transporter'), '&raquo;' . __('Genesis Extra Settings Transporter', 'genesis-extra-settings-transporter') . '&laquo;') . '</li>' . '<li>' . __('It\'s recommended to have THE VERY SAME VERSIONS installed on the original site and also the receiving site. Reason: sometimes settings differ between plugin or child theme versions. So with making sure you have the same versions installed you just ensure the correct settings are included within the export file.', 'genesis-extra-settings-transporter') . '</li>' . '</ul>' . '<p><strong>' . __('Transfer', 'genesis-extra-settings-transporter') . ':</strong></p>' . '<ul>' . '<li>' . sprintf(__('On the development install: Just make an Export file via %s admin page:', 'genesis-extra-settings-transporter'), '&raquo;' . __('Genesis &#x2192; Import/Export', 'genesis-extra-settings-transporter') . '&laquo;') . '</li>' . '<li>' . sprintf(__('In the %s section there enable all checkboxes you need.', 'genesis-extra-settings-transporter'), '&raquo;' . __('Export', 'genesis-extra-settings-transporter') . '&laquo;') . '</li>' . '<li>' . sprintf(__('Save the %s file to your computer.', 'genesis-extra-settings-transporter'), '<code>.JSON</code>') . '</li>' . '<li>' . sprintf(__('On the live/ production site, just import this %s file and you\'re done!', 'genesis-extra-settings-transporter'), '<code>.JSON</code>') . '</li>' . '</ul></blockquote>';
    echo '<hr class="div" />';
    echo '<p><strong>' . __('What is supported?', 'genesis-extra-settings-transporter') . '</strong></p>' . '<ul>' . '<li><a href="' . esc_url(GEST_URL_SUPPORTED_PLUGINS) . '" target="_new">' . __('List of all supported plugins', 'genesis-extra-settings-transporter') . '</a></li>' . '<li><a href="' . esc_url(GEST_URL_SUPPORTED_CHILD_THEMES) . '" target="_new">' . __('List of all supported child themes', 'genesis-extra-settings-transporter') . '</a></li>' . '</ul>';
    echo '<hr class="div" />';
    echo ddw_gest_plugin_help_content_faq();
    echo '<p><strong>' . __('Important plugin links:', 'genesis-extra-settings-transporter') . '</strong>' . '<br /><a href="' . esc_url(GEST_URL_PLUGIN) . '" target="_new" title="' . __('Plugin website', 'genesis-extra-settings-transporter') . '">' . __('Plugin website', 'genesis-extra-settings-transporter') . '</a> | <a href="' . esc_url(GEST_URL_WPORG_FAQ) . '" target="_new" title="' . __('FAQ', 'genesis-extra-settings-transporter') . '">' . __('FAQ', 'genesis-extra-settings-transporter') . '</a> | <a href="' . esc_url(GEST_URL_WPORG_FORUM) . '" target="_new" title="' . __('Support', 'genesis-extra-settings-transporter') . '">' . __('Support', 'genesis-extra-settings-transporter') . '</a> | <a href="' . esc_url(GEST_URL_TRANSLATE) . '" target="_new" title="' . __('Translations', 'genesis-extra-settings-transporter') . '">' . __('Translations', 'genesis-extra-settings-transporter') . '</a> | <a href="' . esc_url(GEST_URL_DONATE) . '" target="_new" title="' . __('Donate', 'genesis-extra-settings-transporter') . '"><strong>' . __('Donate', 'genesis-extra-settings-transporter') . '</strong></a></p>';
    echo '<p><a href="http://www.opensource.org/licenses/gpl-license.php" target="_new" title="' . esc_attr(GEST_PLUGIN_LICENSE) . '">' . esc_attr(GEST_PLUGIN_LICENSE) . '</a> &copy; ' . date('Y') . ' <a href="' . esc_url(ddw_gest_plugin_get_data('AuthorURI')) . '" target="_new" title="' . esc_attr__(ddw_gest_plugin_get_data('Author')) . '">' . esc_attr__(ddw_gest_plugin_get_data('Author')) . '</a></p>';
}
Ejemplo n.º 2
0
/**
 * Adds an extra info message at the bottom of the Genesis Exporter page,
 *    informing the user that there's no warranty supplied for the use of this plugin!
 *
 * @since  1.0.0
 *
 * @uses   ddw_gest_plugin_help_content_faq()
 *
 * @global mixed $gest_plugins_notice, $gest_ct_notice
 */
function ddw_gest_exporter_notice()
{
    global $gest_plugins_notice, $gest_ct_notice;
    /** Bail early if no supported plugins or child themes are active */
    if ('no_child_themes' == $gest_ct_notice && 'no_plugins_active' == $gest_plugins_notice) {
        return;
    }
    /** Begin table code */
    ?>

		<tr>
			<th scope="row"><h4>&rarr; <?php 
    echo sprintf(__('Notes for the %s plugin', 'genesis-extra-settings-transporter'), '&raquo;' . __('Genesis Extra Settings Transporter', 'genesis-extra-settings-transporter') . '&laquo;');
    ?>
:</h4></th>
				<td>
					<p><br /><?php 
    echo sprintf(__('Check boxes in the Exporter section above that have a label with the prefix %s or %s are from that plugin.', 'genesis-extra-settings-transporter'), '<code>' . GEST_PLUGIN_STRING . '</code>', '<code>' . GEST_CHILD_THEME_STRING . '</code>');
    ?>
</p>
					<p><?php 
    _e('There\'s NO warranty supplied when you use this plugin, all at your own risk!', 'genesis-extra-settings-transporter');
    ?>
					</p>
					<?php 
    echo ddw_gest_plugin_help_content_faq();
    ?>
				</td>
		</tr>

	<?php 
    /** ^End table code */
}