Example #1
0
/**
 * Create and display plugin help tab content: "Layout Extras".
 *
 * @since 2.0.0
 *
 * @uses  ddw_gle_help_content_sub_head()
 * @uses  genesis_get_layout()
 */
function ddw_gle_help_content_post_type_support()
{
    ddw_gle_help_content_sub_head(__('Additional Post Type Support', 'genesis-layout-extras'));
    echo '<h4>' . __('Add Genesis Inpost options for public Custom Post Types', 'genesis-layout-extras') . ':</h4>' . '<p><blockquote>' . __('A lot of plugins with post types already integrate good with Genesis but lack support for inpost screen meta boxes. That is especially needed for layout options support.', 'genesis-layout-extras') . ' ' . sprintf(__('To solve this, you can add global support for all %s custom post types below, or, if you want, only for specific post types you need for the project.', 'genesis-layout-extras'), '<em>' . __('public', 'genesis-layout-extras') . '</em>') . ' ' . __('As a bonus, the inpost SEO and Script meta boxes are included as well. You might need those, too :).', 'genesis-layout-extras') . '</blockquote></p>';
    if (class_exists('Genesis_Admin_CPT_Archive_Settings') && ddw_gle_check_cpts()) {
        echo '<h4>' . __('Add Genesis Archive Settings for public Custom Post Types', 'genesis-layout-extras') . ':</h4>' . '<p><blockquote>' . sprintf(__('This optional Genesis feature can now be enabled with this plugin in global way for all public custom post types that were registered with archive support (%s).', 'genesis-layout-extras'), '<code>\'has_archive\' => true</code>') . ' ' . __('Alternatively, you can also only activate that for specific post types you need for the project.', 'genesis-layout-extras') . ' &mdash; ' . __('These archive settings allow for setting of: archive/page title, detailed introductory texts, SEO settings and layout options.', 'genesis-layout-extras') . '</blockquote></p>';
        if (ddw_gle_supported_plugins() || ddw_gle_supported_child_themes()) {
            echo '<p><blockquote>' . __('Note: The layout settings for archives done via these Genesis Archive settings and/or the content archive settings of THIS plugin (see below) do just the same. So you decide which one you use. Nothing could break, and it does no harm. So, enjoy your content archives (settings)!', 'genesis-layout-extras') . ' :)</blockquote></p>';
        }
        // end if supported plugins/child themes check
    }
    // end if Genesis 2.0+, plus not-builtin post types check
}
Example #2
0
    /**
     * Plugin Information Metabox.
     *
     * @since 2.0.0
     */
    function gle_plugin_information_metabox()
    {
        /** Begin form code unix: strtotime( '1375645023' ) */
        ?>

		<p>
			<strong><?php 
        _e('Genesis Layout Extras', 'genesis-layout-extras');
        ?>
</strong> <?php 
        _e('by', 'genesis-layout-extras');
        ?>
 <a href="' . esc_url( GLE_URL_PLUGIN ) . '" target="_new" title="David Decker - DECKERWEB &amp; wpAUTOBAHN.com">David Decker - DECKERWEB &amp; wpAUTOBAHN.com</a>
		</p>

		<p>
			<strong><?php 
        _e('Version:', 'genesis-layout-extras');
        ?>
</strong> <?php 
        echo esc_attr(ddw_gle_plugin_get_data('Version'));
        ?>
 <?php 
        echo '&middot;';
        ?>
 <strong><?php 
        _e('Released:', 'genesis-layout-extras');
        ?>
</strong> <?php 
        echo date_i18n(_x('F j, Y', 'Translators: plugin release date format', 'genesis-layout-extras'), '1375693200');
        ?>
		</p>

		<p>
			<span class="description"><?php 
        echo sprintf(__('Support for this plugin is provided via %sour support forum%s.', 'genesis-layout-extras'), '<a href="' . esc_url(GLE_URL_FORUM) . '">', '</a>');
        echo ' &mdash; ';
        ?>
<a href="<?php 
        echo esc_url(GLE_URL_TRANSLATE);
        ?>
" target="_new" title="<?php 
        _e('Free Translations Platform', 'genesis-layout-extras');
        ?>
"><?php 
        _e('Free Translations Platform', 'genesis-layout-extras');
        ?>
</a>
			<br /><br /><?php 
        echo sprintf(__('General support for the Genesis Framework you can get at %s.', 'genesis-layout-extras'), '<a href="http://deckerweb.de/go/studiopress-support/">My.StudioPress.com</a>');
        ?>
</span>
		</p>

		<hr class="div" />

		<h4>&rarr; <?php 
        _e('Table of Content', 'genesis-layout-extras');
        ?>
:</h4>

		<ul>
			<?php 
        if (ddw_gle_core_sidebars_exists('sidebar')) {
            ?>
				<li><a href="#gle-layouts-metabox"><?php 
            _e('Additional Layouts', 'genesis-layout-extras');
            ?>
&hellip;</a></li>
			<?php 
        }
        ?>

			<?php 
        if (ddw_gle_check_cpts()) {
            ?>
				<li><a href="#gle-post-type-support-metabox"><?php 
            _e('Additional Post Type Support', 'genesis-layout-extras');
            ?>
&hellip;</a></li>
			<?php 
        }
        ?>

			<li><a href="#genesis-layout-extras-box"><?php 
        _e('Layouts for WordPress Default Cases', 'genesis-layout-extras');
        ?>
&hellip;</a></li>

			<?php 
        if (ddw_gle_supported_plugins()) {
            ?>
				<li><a href="#genesis-layout-extras-box-cpts"><?php 
            _e('Custom Post Types by Plugins', 'genesis-layout-extras');
            ?>
&hellip;</a></li>
			<?php 
        }
        ?>

			<?php 
        if (ddw_gle_supported_child_themes()) {
            ?>
				<li><a href="#genesis-layout-extras-box-childthemes"><?php 
            _e('Custom Post Types by Child Themes', 'genesis-layout-extras');
            ?>
&hellip;</a></li>
			<?php 
        }
        ?>

			<?php 
        if (current_user_can('administrator') && !GLE_NO_EXPORT_IMPORT_INFO) {
            ?>
				<li><a href="#gle-export-import"><?php 
            _e('Export/ Import Info', 'genesis-layout-extras');
            ?>
&hellip;</a></li>
			<?php 
        }
        ?>
		</ul>

		<?php 
        if (!ddw_gle_core_sidebars_exists('sidebar')) {
            // additional user info
            ?>
			<p>
				<blockquote><span class="description"><small><?php 
            _e('Note: Additional layout options only become available here if the Primary Sidebar may not have been unregistered.', 'genesis-layout-extras');
            if (current_user_can('install_plugins')) {
                ?>
 <?php 
                _e('In such a case, just check your child theme, other plugins or other code snippets.', 'genesis-layout-extras');
            }
            ?>
</small></span></blockquote>
			</p>
		<?php 
        }
        ?>

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