function weaverii_tx_sc_admin()
{
    ?>

<h2 style="color:blue;">Weaver II Theme Extras and Shortcodes</h2>
<?php 
    if (function_exists('weaveriip_has_show_posts')) {
        weaveriip_breadcrumbs_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_headerimg_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_sc_html_admin();
        ?>
 <br /><hr /><?php 
        weaveriip_sc_div_admin();
        ?>
 <br /><hr /><?php 
        weaveriip_sc_iframe_admin();
        ?>
 <br /><hr /><?php 
        weaveriip_pagenav_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_showhide_mobile_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_showhide_logged_in_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_show_posts_admin();
        ?>
 <br /><hr /> <?php 
        weaveriip_sitetitle_admin();
        ?>
 <br /> <?php 
        weaveriip_video_admin();
        ?>
 <br /> <?php 
    } else {
        echo "Weaver II - Shortcodes...";
    }
    ?>
<hr />
<h2 style="color:blue;">Weaver II Pro Shortcodes</h2>
<strong>The Weaver II Pro Version offers the following shortcodes and features as well:</strong>
<br />
<ul>
    <li>Header Gadgets - Images/Text over Header</li>
    <li>Link Buttons - shortcode & widget</li>
    <li>Social Buttons - shortcode & widget</li>
    <li>Weaver Slider Menu Shortcode</li>
    <li>Extra Menus Shortcode</li>
    <li>Widget Area Shortcode</li>
    <li>Search Form Shortcode</li>
    <li>Show Feed Shortcode</li>
    <li>Popup Link Shortcode</li>
    <li>Show/Hide Shortcode</li>
    <li>Comment Policy</li>
    <li>Shortcoder</li>
    <li>Include PHP Shortcode</li>
    <li>Total CSS</li>

</ul>

<?php 
}
Exemplo n.º 2
0
function weaverii_pro_sc_admin()
{
    weaverii_pro_submits();
    // process submits
    ?>

<p><strong style="font-size:130%;">Weaver II Pro Shortcode Admin</strong> <span style="float:right;color:white;background:#57A;padding:4px;font-weight:bold;"><a href="<?php 
    echo site_url('/wp-admin/themes.php?page=WeaverII');
    ?>
" style="color:white;text-decoration:none;">Weaver II Admin</a></span>

<?php 
    do_action('weaverii_ex_load_descriptions');
    // add basic shortcode descriptions from Weaver II Theme Extras plugin
    ?>
<div id="tabwrap_plus" style="padding-left:5px;">
    <div id="tab-container-plus" class='yetiisub'>
	<ul id="tab-container-plus-nav" class='yetiisub'>

    <li><a href="#btab22" style="background:#D6D9FF;" title="Header Gadgets - Images/Text over Header"><?php 
    echo weaverii_t_('Header Gadgets');
    ?>
</a></li>
	<li><a href="#btab20" style="background:#D6D9FF;" title="Link Buttons - shortcode & widget"><?php 
    echo weaverii_t_('Link Buttons');
    ?>
</a></li>
    <li><a href="#btab21" style="background:#D6D9FF;" title="Social Buttons - shortcode & widget"><?php 
    echo weaverii_t_('Social Buttons');
    ?>
</a></li>

    <li><a href="#mtab10" style="background:#FFE8B9;" title="Weaver Slider Menu Shortcode"><?php 
    echo weaverii_t_('Slider Menu');
    ?>
</a></li>
    <li><a href="#mtab11"  style="background:#FFE8B9;" title="Extra Menus Shortcode"><?php 
    echo weaverii_t_('Extra Menus');
    ?>
</a></li>
    <li><a href="#sctabbread" style="background:#FFCC33;" title="Breadcrumbs Shortcode"><?php 
    echo weaverii_t_('Breadcrumbs');
    ?>
</a></li>
    <li><a href="#sctabhdr" style="background:#FFCC33;" title="Header Image Shortcode"><?php 
    echo weaverii_t_('Header Img');
    ?>
</a></li>
    <li><a href="#sctabhtml" style="background:#FFCC33;" title="HTML Shortcode"><?php 
    echo weaverii_t_('HTML');
    ?>
</a></li>
    <li><a href="#sctabdiv" style="background:#FFCC33;" title="DIV Shortcode"><?php 
    echo weaverii_t_('div,span');
    ?>
</a></li>
    <li><a href="#sctabiframe" style="background:#FFCC33;" title="iframe Shortcode"><?php 
    echo weaverii_t_('iframe');
    ?>
</a></li>
    <li><a href="#sctabpgnv" style="background:#FFCC33;" title="PageNav Shortcode"><?php 
    echo weaverii_t_('Page Nav');
    ?>
</a></li>

    <li><a href="#sctabmobile" style="background:#FFCC33;" title="Show/Hide Mobile Shortcodes"><?php 
    echo weaverii_t_('Show/Hide Mobile');
    ?>
</a></li>
    <li><a href="#sctabloggedin" style="background:#FFCC33;" title="Show/Hide Logged In Shortcodes"><?php 
    echo weaverii_t_('Show/Hide Logged In');
    ?>
</a></li>
    <li><a href="#sctabsp" style="background:#FFCC33;" title="Show Posts Shortcode"><?php 
    echo weaverii_t_('Show Posts');
    ?>
</a></li>
    <li><a href="#sctabstitle" style="background:#FFCC33;" title="Site Title/Desc Shortcodes"><?php 
    echo weaverii_t_('Site Title/Desc');
    ?>
</a></li>
    <li><a href="#sctabvodep" style="background:#FFCC33;" title="Video Shortcodes"><?php 
    echo weaverii_t_('Video');
    ?>
</a></li>


    <li><a href="#sctab36" style="background:#FAFAAC;" title="Widget Area Shortcode"><?php 
    echo weaverii_t_('Widget Area');
    ?>
</a></li>
            <li><a href="#sctab37" style="background:#FAFAAC;" title="Search Form Shortcode"><?php 
    echo weaverii_t_('Search Form');
    ?>
</a></li>
            <li><a href="#sctab34" style="background:#FAFAAC;" title="Show Feed Shortcode"><?php 
    echo weaverii_t_('Show Feed');
    ?>
</a></li>

            <li><a href="#sctab31" style="background:#FAFAAC;" title="Popup Link Shortcode"><?php 
    echo weaverii_t_('Popup Link');
    ?>
</a></li>
            <li><a href="#sctab32" style="background:#FAFAAC;" title="Show/Hide Shortcode"><?php 
    echo weaverii_t_('Show/Hide Text');
    ?>
</a></li>
            <li><a href="#sctab33" style="background:#FAFAAC;" title="Comment Policy"><?php 
    echo weaverii_t_('Comment Policy');
    ?>
</a></li>
	    <li><a href="#sctab38" style="background:#FAFAAC;" title="Shortcoder"><?php 
    echo weaverii_t_('Shortcoder');
    ?>
</a></li>
            <li><a href="#sctab35" style="background:#FAFAAC;" title="Include PHP Shortcode"><?php 
    echo weaverii_t_('PHP');
    ?>
</a></li>

	    <li><a href="#xtab22" style="background:#D4FAC3;" title="Total CSS"><?php 
    echo weaverii_t_('Total CSS');
    ?>
</a></li>

	    <li><a href="#xtab5" style="background:#FCDEE4;"><?php 
    echo weaverii_t_('Shortcode Help');
    ?>
</a></li>
	</ul>

<?php 
    /* IMPORTANT - in spite of the id's, these MUST be in the correct order - the same as the above list... */
    ?>
	<div id="btab22" class="tab_plus" > <!-- Header Gadgets -->
<?php 
    if (function_exists('weaveriip_has_header_gadgets')) {
        require_once 'weaverii-pro-admin-headerg.php';
        weaveriip_headergadget_admin();
    } else {
        echo "<p class='wvr-option-section'>Header Gadgets - <small>Links, Images & Text over the Header</small></p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
	</div>
	        <div id="btab20" class="tab_plus" > <!-- Link Buttons -->
<?php 
    if (function_exists('weaveriip_has_linkbuttons')) {
        require_once 'weaverii-pro-admin-linkbuttons.php';
        weaveriip_buttons_admin();
    } else {
        echo "<p class='wvr-option-section'>Link Buttons - [weaver_buttons] + Widget</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
	</div>

        <div id="btab21" class="tab_plus" > <!-- Social Buttons -->
<?php 
    if (function_exists('weaveriip_has_socialbuttons')) {
        require_once 'weaverii-pro-admin-social.php';
        weaveriip_social_admin();
    } else {
        echo "<p class='wvr-option-section'>Social Buttons - [weaver_social] Shortcode and Widget</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

	<div id="mtab10" class="tab_plus" > <!-- Slider -->
<?php 
    if (function_exists('weaveriip_has_slider')) {
        require_once 'weaverii-pro-admin-slider.php';
        weaveriip_slider_admin();
    } else {
        echo "<p class='wvr-option-section'>Slider Menu Shortcode - [weaver_slider]</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
	</div>

        <div id="mtab11" class="tab_plus" > <!-- Extra Menus -->
<?php 
    if (function_exists('weaveriip_has_extra_menu')) {
        require_once 'weaverii-pro-admin-extramenu.php';
        weaveriip_extra_menu_admin();
    } else {
        echo "<p class='wvr-option-section'>Extra Menu Shortcode - [weaver_extra_menu] + Vertical Menu Widget</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
	</div>

	<div id="sctabsp" class="tab_plus" > <!-- Breadcrumbs -->
<?php 
    if (function_exists('weaveriip_has_breadcrumbs')) {
        weaveriip_breadcrumbs_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabhdr" class="tab_plus" > <!-- Header Image -->
<?php 
    if (function_exists('weaveriip_has_headerimg')) {
        weaveriip_headerimg_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>


	<div id="sctabhtml" class="tab_plus" > <!-- HTML -->
<?php 
    if (function_exists('weaveriip_has_sc_html')) {
        weaveriip_sc_html_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabdiv" class="tab_plus" > <!-- DIV -->
<?php 
    if (function_exists('weaveriip_has_sc_div')) {
        weaveriip_sc_div_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabiframe" class="tab_plus" > <!-- iframe -->
<?php 
    if (function_exists('weaveriip_has_sc_iframe')) {
        weaveriip_sc_iframe_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>


	<div id="sctabpgnv" class="tab_plus" > <!-- Page Nav -->
<?php 
    if (function_exists('weaveriip_has_pagenav')) {
        weaveriip_pagenav_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabmobile" class="tab_plus" > <!-- Show/Hide Mobile -->
<?php 
    if (function_exists('weaveriip_has_showhide_mobile')) {
        weaveriip_showhide_mobile_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabloggedin" class="tab_plus" > <!-- Show/Hide Logged In -->
<?php 
    if (function_exists('weaveriip_has_showhide_logged_in')) {
        weaveriip_showhide_logged_in_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabbread" class="tab_plus" > <!-- Show Posts -->
<?php 
    if (function_exists('weaveriip_has_show_posts')) {
        weaveriip_show_posts_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

	<div id="sctabstitle" class="tab_plus" > <!-- Site Title/Description -->
<?php 
    if (function_exists('weaveriip_has_sitetitle')) {
        weaveriip_sitetitle_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>


	<div id="sctabvodep" class="tab_plus" > <!-- Video -->
<?php 
    if (function_exists('weaveriip_has_video')) {
        weaveriip_video_admin();
    } else {
        echo '<h4>Please install and activate the Weaver II Theme Extras Plugin - it is available at <a href="http://wordpress.org/plugins/weaver-ii-theme-extras/" target="_blank">WordPress.org</a>.</h4>';
    }
    ?>
        </div>

        <div id="sctab36" class="tab_plus" > <!-- Widget Area -->
<?php 
    if (function_exists('weaveriip_has_widget_area')) {
        weaveriip_widget_area_admin();
    } else {
        echo "<p class='wvr-option-section'>Widget Area - [weaver_widget_area]</p>\n            <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab37" class="tab_plus" > <!-- Search -->
<?php 
    if (function_exists('weaveriip_has_search')) {
        weaveriip_search_admin();
    } else {
        echo "<p class='wvr-option-section'>Search Form - [weaver_search]</p>\n            <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab34" class="tab_plus" > <!-- Show Feed -->
<?php 
    if (function_exists('weaveriip_feed_admin')) {
        weaveriip_feed_admin();
    } else {
        echo "<p class='wvr-option-section'>Show Feed - [weaver_feed]</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab31" class="tab_plus" > <!-- Popup Link -->
<?php 
    if (function_exists('weaveriip_has_popup_link')) {
        weaveriip_popup_link_admin();
    } else {
        echo "<p class='wvr-option-section'>Popup Link - [weaver_popup_link]</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab32" class="tab_plus" > <!-- Show/Hide -->
<?php 
    if (function_exists('weaveriip_has_showhide')) {
        weaveriip_showhide_admin();
    } else {
        echo "<p class='wvr-option-section'>Weaver Show/Hide - [weaver_showhide] </p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab33" class="tab_plus" > <!-- Comment Policy -->
<?php 
    if (function_exists('weaveriip_has_disclaimer')) {
        weaveriip_disclaimer_admin();
    } else {
        echo "<p class='wvr-option-section'>Weaver II Pro Comment Disclaimer</p>\n            <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab38" class="tab_plus" > <!-- Shortcoder -->
<?php 
    if (function_exists('weaveriip_has_shortcoder')) {
        require_once 'weaverii-pro-admin-shortcoder.php';
        weaveriip_shortcoder_admin();
    } else {
        echo "<p class='wvr-option-section'>Weaver II Pro Shortcoder</p>\n            <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n";
    }
    ?>
        </div>

        <div id="sctab35" class="tab_plus" > <!-- PHP -->
<?php 
    if (function_exists('weaveriip_has_php')) {
        weaveriip_php_admin();
    } else {
        echo "<p class='wvr-option-section'>PHP - [weaver_php]</p>\n                <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n\t\t<p>The <em>PHP shortcode is an advanced option that allows for\n\t\tinsertion of PHP code into any Weaver HTML area.</p>\n";
    }
    ?>
        </div>

	<div id="xtab22" class="tab_plus" >
<?php 
    if (function_exists('weaveriip_has_totalcss_admin')) {
        weaveriip_totalcss_admin();
    } else {
        echo "<p class='wvr-option-section'>Weaver II Pro Total CSS</p>\n            <p style='font-weight:bold;'>Option disabled. See Weaver II Admin&rarr;Weaver II Pro tab to enable it.</p>\n" . "<p>The <em>Total CSS option is an advanced option that allows custom CSS for\n\t    almost every CSS tag used by Weaver.</p>\n";
    }
    ?>
	</div>

        <div id="xtab5" class="tab_plus" >
	    <?php 
    require_once 'weaverii-pro-help.php';
    weaveriip_help_admin();
    ?>
	</div>

    </div>
</div> <!-- #tabwrap_plus -->

<script type="text/javascript">
	var tabber2 = new Yetii({
	id: 'tab-container-plus',
	tabclass: 'tab_plus',
	persist: true
	});
</script>

<?php 
}