示例#1
0
function weaverii_admin_pro()
{
    $opts = array(array('name' => 'Administrative Opts', 'id' => 'maintab3', 'type' => 'header0', 'info' => 'Weaver II Pro Administrative Options', 'help' => 'help.html#ProAdminOpts'), array('name' => 'Use Inline CSS', 'id' => '_wii_inline_style', 'type' => '+checkbox', 'info' => 'Generate in-line CSS code rather than using style-weaverii.css file. ♦'), array('name' => 'Development Mode', 'id' => '_wii_development_mode', 'type' => '+checkbox', 'info' => 'Run in development mode. Uses in-line CSS and displays the diagnostic information enabled below when developing
		  a new custom theme. TURN OFF FOR PRODUCTION SITES! &diams;'), array('name' => '<small>Trace Page Templates</small>', 'id' => '_wii_diag_trace_templates', 'type' => '+checkbox', 'info' => 'Displays a label for each page template called (e.g., index, category, page, etc.). &diams;'), array('name' => '<small>Trace Sidebars</small>', 'id' => '_wii_diag_trace_sidebars', 'type' => '+checkbox', 'info' => 'Displays a label for sidebar displayed. &diams;'), array('name' => '<small>Show Area Borders</small>', 'id' => '_wii_diag_borders', 'type' => '+checkbox', 'info' => 'Show a 1px red border around most major &lt;div&gt;s. Overrides other borders. &diams;'), array('name' => '<small>Show Page Generation Time</small>', 'id' => '_weaverii_diag_timer', 'type' => '+checkbox', 'info' => 'Show page generation time at bottom of page. &diams;'), array('name' => '#070<small>Show Mobile Device Info</small>', 'id' => '_wii_diag_trace_mobile', 'type' => '+checkbox', 'info' => 'Shows info about display device at top of page. &diams;'), array('name' => 'Shortcodes & Features', 'id' => 'maintab2', 'type' => 'header0', 'info' => 'Selectively Enable/Disable Weaver II Pro Shortcodes and Features', 'help' => 'help.html#ProShortcodes'), array('name' => 'Note:', 'id' => 'wii_pshc', 'type' => 'note', 'info' => 'These enable/disabe Weaver Pro Shortcodes. See the Dashboard Appearance->Shortcodes + Pro panel.'), array('name' => 'Disable Header Gadgets', 'id' => '_wii_hide_headergadgets', 'type' => '+checkbox', 'info' => 'Header Gadgets - Place links, images, and text over the header; directly or with [weaver_gadget] &diams;'), array('name' => 'Disable Link Buttons', 'id' => '_wii_hide_linkbuttons', 'type' => '+checkbox', 'info' => 'Link Buttons - [weaver_buttons] + Widget to display link image buttons you define &diams;'), array('name' => 'Disable Social Buttons', 'id' => '_wii_hide_socialbuttons', 'type' => '+checkbox', 'info' => 'Social Buttons - [weaver_social] + Widget to display icon links to most current social sites &diams;'), array('name' => 'Disable Slider', 'id' => '_wii_hide_slider', 'type' => '+checkbox', 'info' => 'Slider - [weaver_slider] - place sliding image menus in header, sidebar, or content area &diams;'), array('name' => 'Disable Extra Menus', 'id' => '_wii_hide_extramenus', 'type' => '+checkbox', 'info' => 'Extra Menu [weaver_extra_menu] + Vertical Menu Widget - add new menus almost anywhere &diams;'), array('name' => 'Disable Widget Area', 'id' => '_wii_hide_widgetarea', 'type' => '+checkbox', 'info' => 'Widget Area - [weaver_widget_area] - add new widget area almost anywhere, including in pages and posts &diams;'), array('name' => 'Disable Search Form', 'id' => '_wii_hide_searchbox', 'type' => '+checkbox', 'info' => 'Search Form - [weaver_search] - add a search form wherever you want &diams;'), array('name' => 'Disable Show Feed', 'id' => '_wii_hide_showfeed', 'type' => '+checkbox', 'info' => 'Show Feed - [weaver_show_feed] - show an external RSS feed styled to match your own posts &diams;'), array('name' => 'Disable Popup Link', 'id' => '_wii_hide_popuplink', 'type' => '+checkbox', 'info' => 'Popup Link - [weaver_popup_link] - Define a link to a popup window &diams;'), array('name' => 'Disable Show/Hide Text', 'id' => '_wii_hide_showhide', 'type' => '+checkbox', 'info' => 'Show/Hide - [weaver_showhide] - adds button to show/hide text such as lyrics or spoilers &diams;'), array('name' => 'Disable Comment Policy', 'id' => '_wii_hide_commentpolicy', 'type' => '+checkbox', 'info' => 'Comment Policy - add comment policy or terms right before the submit comment button &diams;'), array('name' => 'Disable Shortcoder', 'id' => '_wii_hide_shortcoder', 'type' => '+checkbox', 'info' => 'Shortcoder - [weaver_sc] - define your own short code: add standard text or other content using a shortcode &diams;'), array('name' => 'Enable PHP', 'id' => '_wii_show_php', 'type' => '+checkbox', 'info' => 'PHP - [weaver_php] - add PHP whereever you need it &diams;'), array('name' => 'Enable Total CSS Options', 'id' => '_wii_show_totalcss', 'type' => '+checkbox', 'info' => 'Total CSS - define custom CSS for virtually every important element of your theme &diams;'));
    ?>
<h3>Weaver II Pro Features <?php 
    weaverii_help_link('help.html#WeaverIIPro', 'Help for Admin Options');
    ?>
</h3>
<?php 
    if (!weaverii_init_base()) {
        ?>
<p>Weaver II Pro adds features to Weaver II, but is now being retired. Rather than designing new sites using
<em>Weaver II</em>, [lease switch to our new theme: <strong>Weaver Xtreme.</strong></p>
<h3>Visit <?php 
        weaverii_site('', 'http://weavertheme.com', 'Weaver Theme');
        ?>
WeaverTheme.com</a>
now to learn all about <em>Weaver Xtreme</em>.</strong>
</h3>
	<p>After over 5 years as one of the best WordPress themes available, <em>Weaver II</em> is being phased out.
	We will continue to provide critical updates for the foreseeable future, but we <strong>highly</strong> recommend
	switching to our latest, improved theme - <em>Weaver Xtreme</em>.
	</p>
<?php 
        weaverii_form_show_options($opts);
        return;
    }
    // to here, have pro features
    ?>
<h3>Weaver II Pro Features - You are using Weaver II Pro. Thank you.</h3>
<p>After over 5 years as one of the best WordPress themes available, <em>Weaver II Pro</em> is being phased out.
	We will continue to provide critical updates for the foreseeable future, but we <strong>highly</strong> recommend
	switching to our latest, improved theme - <em>Weaver Xtreme</em>, and its premium version, <em>Weaver Xtreme Plus</em>.
</p>
<?php 
    weaverii_sapi_submit();
    weaverii_hide_advanced('begin');
    weaverii_form_show_options($opts);
    ?>

 <p><strong><a href="<?php 
    echo site_url('/wp-admin/themes.php?page=WeaverII_Shortcodes');
    ?>
"><em>More Weaver II Pro Options and Shortcodes</em></a></strong></p>

<p style="max-width:700px;"><small>Note: The above options allow you to selectively enable and disable the listed Weaver II Pro shortcodes and
features. Disabling a feature will optomize the speed of your site. Any difference will be very small, but might
give a slight improvment for heavily loaded sites.</small>
	<br /><br />
	<?php 
    echo 'Memory: ' . round(memory_get_usage() / 1024 / 1024, 2) . ' of ' . (int) ini_get('memory_limit') . 'M ';
    ?>
</p>
<?php 
    weaverii_sapi_submit();
    (int) ini_get('memory_limit');
    weaverii_hide_advanced('end');
}
function weaverii_facebook_action()
{
    ?>
   <div class="wvr-option-subheader"><span style="color:blue;font-size:larger;"><b>Preferred Image for Facebook</b></span></div><br />
    <p>Facebook and other sites will display a possibly arbitrarily chosen thumbnail for your site when it is used in a
    link on those sites. If <em>you</em> specify an image to use here, then that image, plus other OpenGraph site information
    for Facebook, will be added to your site's &lt;head&gt; using the proper &lt;meta&gt; tags. We recommend you do this as
    it gives you control, and helps when someone links to your site on Facebook. (<em>Note: some SEO plugins will perform
    this same function, so you might want to leave this blank and use the SEO features instead.</em>) Facebook says:
    The image must be at least 50px by 50px, although a minimum 200px by 200px is preferred and 1500px by 1500px
    is recommended for the best possible user experience. The image can have a maximum aspect ratio of 3:1.
    (Note: image sizes must be no more than 5MB in size.) <small>After saving settings,
    enter this site's URL on <?php 
    weaverii_site('/tools/debug', 'http://developers.facebook.com');
    ?>
this page</a> to have Facebook update the information it saves for your site.</small> &diams;</p>
    <p>

<?php 
    $imgsrc = weaverii_getopt('_wii_imgsrc_url');
    if ($imgsrc != '') {
        echo '<img src="' . $imgsrc . '" height="40px" alt="imgsrc" />&nbsp;';
    }
    ?>
<strong>Image URL: </strong>
    <textarea name="<?php 
    weaverii_sapi_main_name('_wii_imgsrc_url');
    ?>
" id="_wii_imgsrc_url" rows=1 style="width: 350px"><?php 
    echo esc_textarea(weaverii_getopt('_wii_imgsrc_url'));
    ?>
</textarea><?php 
    weaverii_media_lib_button('_wii_imgsrc_url');
    ?>
&nbsp;&nbsp;Full path to Site's preferred image
    </p><br />
<?php 
}
示例#3
0
function weaverii_clear_messages()
{
    ?>
<form style="float:right;margin-right:15px;" name="clearweaverii_form" method="post">
	<?php 
    if (true || !weaverii_init_base()) {
        echo '<strong style="border:1px solid blue;background:yellow;padding:4px;margin-right:15px;">';
        weaverii_site('', '//weavertheme.com/weaver-xtreme/', 'Weaver Xtreme');
        echo 'Move to Weaver Xtreme!</a> </strong>';
    }
    ?>
	<span class="submit"><input type="submit" name="weaver_clear_messages" value="Clear Messages"/></span>
	<?php 
    weaverii_nonce_field('weaver_clear_messages');
    ?>
</form> <!-- wii_resetweaverii_form -->
<?php 
}
示例#4
0
function weaverii_mainopts_fonts()
{
    $opts = array(array('type' => 'submit'), array('name' => 'Fonts', 'id' => 'mainopts_fonts', 'type' => 'header', 'info' => 'Fonts', 'help' => 'help.html#Fonts'), array('name' => 'Content Font', 'id' => 'wii_content_font', 'type' => 'selectold', 'info' => 'Font used for most content and widget text (Default: "Times New Roman", Times, serif;)', 'value' => array('', '"Helvetica Neue", Helvetica, sans-serif', 'Arial,Helvetica,sans-serif', 'Verdana,Arial,sans-serif', 'Tahoma, Arial,sans-serif', '"Arial Black",Arial,sans-serif', '"Avant Garde",Arial,sans-serif', '"Comic Sans MS",Arial,sans-serif', 'Impact,Arial,sans-serif', '"Trebuchet MS", Helvetica, sans-serif', '"Century Gothic",Arial,sans-serif', '"Lucida Grande",Arial,sans-serif', 'Univers,Arial,sans-serif', '"Times New Roman",Times,serif', '"Bitstream Charter",Times,serif', 'Georgia,Times,serif', 'Palatino,Times,serif', 'Bookman,Times,serif', 'Garamond,Times,serif', '"Courier New",Courier', '"Andale Mono",Courier')), array('name' => 'Titles Font', 'id' => 'wii_title_font', 'type' => 'selectold', 'info' => 'Font used for post, page, and widget titles, info labels, and menus. (Default: "Helvetica Neue", Helvetica, Arial, sans-serif;)', 'value' => array('', '"Helvetica Neue", Helvetica, sans-serif', 'Arial,Helvetica,sans-serif', 'Verdana,Arial,sans-serif', 'Tahoma, Arial,sans-serif', '"Arial Black",Arial,sans-serif', '"Avant Garde",Arial,sans-serif', '"Comic Sans MS",Arial,sans-serif', 'Impact,Arial,sans-serif', '"Trebuchet MS", Helvetica, sans-serif', '"Century Gothic",Arial,sans-serif', '"Lucida Grande",Arial,sans-serif', 'Univers,Arial,sans-serif', '"Times New Roman",Times,serif', '"Bitstream Charter",Times,serif', 'Georgia,Times,serif', 'Palatino,Times,serif', 'Bookman,Times,serif', 'Garamond,Times,serif', '"Courier New",Courier', '"Andale Mono",Courier')), array('name' => 'Site Base Font Size', 'id' => 'wii_site_fontsize_int', 'type' => 'val_px', 'info' => 'Set the Base Font size. All other font sizes are calculated as a percentage of this size. (Default: 12px)'), array('name' => 'Site Base Line Height', 'id' => 'wii_site_line_height_dec', 'type' => 'text', 'info' => 'Set the Base line-height. Most other line heights based on this multiplier. (Default: 1.5 - no units)'), array('name' => '#080Site Base Font Size - Mobile', 'id' => 'wii_site_fontsize_mobile_int', 'type' => 'val_px', 'info' => 'Set the Base Font size for Mobile Devices. (Default: 12px)'));
    ?>
<p>
	Define <strong>Fonts</strong> for Content and Titles, as well as base Font Size and Line Spacing. Pro Version supports
	setting fonts for specific objects, as well as using <strong>Google Fonts</strong>.
</p>
<?php 
    weaverii_form_show_options($opts);
    if (weaverii_init_base()) {
        weaverii_fonts_pro_admin();
    } else {
        ?>
<h3>Weaver II Pro Font Control</h3>
<p>The Weaver II Pro Font Control panel gives you fine tuned control over the fonts various elements of your site will use.
	You can use a set of standard Web fonts, or for total flexibility, you can use <em>any</em> of the free
	<?php 
        weaverii_site('/webfonts', 'http://www.google.com');
        ?>
<strong>Google Web Fonts</strong></a>. In addition to the
	two general areas available in the basic Weaver II version, the Pro version lets you set the font of virtually every
	text element on your site. You can also specify font size, style, and other attributes.
	<p>
<?php 
    }
}
示例#5
0
function weaverii_admin_help()
{
    $tdir = get_template_directory_uri();
    $readme = $tdir . "/help/help.html";
    ?>
	<span style="font-size:larger;font-weight:bold;padding-right:70px;">Weaver II Help</span>

<small><strong>Media Library Picker Tool:</strong></small>&nbsp;<input name="wii_media_url" type="text" style="width:400px;height:22px;" class="regular-text" name="wii_media_url"
				id="wii_media_url" value="Paste media URL here that you can then Copy/Paste elsewhere." />
				<?php 
    weaverii_media_lib_button('wii_media_url');
    ?>
	<p>You will notice
	<?php 
    weaverii_help_link('help.html#top', weaverii_t_('Weaver II Help'));
    ?>
	next to many options and option sections on the Weaver Admin tabs. Clicking the ? will open the Weaver Help
	file to the appropriate place.</p>

	<p>More help is available at the <?php 
    weaverii_site();
    ?>
<strong>Weaver Theme web site</strong></a>, which includes
	a support forum.</p>
<?php 
    do_action('weaverii_child_help');
    ?>
<div style="float:left;width:40%;padding-right:3%">
<?php 
    echo "<div class=\"wvr-help\"><h2><b><a href=\"{$readme}\" target=\"_blank\">Weaver II Theme Documentation</a></b></h2>\n<h3>Table of Contents</h3>\n\t  <ul>\n\t  <li><a href=\"{$readme}#get_started\" target=\"_blank\">How to get started</a></li>\n\t  <li><a href=\"{$readme}#DesignHints\" target=\"_blank\">Design Hints</a></li>\n\t  <li><a href=\"{$readme}#homepage\" target=\"_blank\">All About Your Site's Home Page</a></li>\n\t  <li><a href=\"{$readme}#PredefinedThemes\" target=\"_blank\">Weaver Predefined Subthemes</a></li>\n\t  <li><a href=\"{$readme}#MainOptions\" target=\"_blank\">Weaver Main Options</a>\n\t\t<ul>\n\t\t  <li><a href=\"{$readme}#GenApp\" target=\"_blank\">General Appearance</a></li>\n\t\t  <li><a href=\"{$readme}#layout\" target=\"_blank\">Layout</a></li>\n\t\t  <li><a href=\"{$readme}#WidgetAreas\" target=\"_blank\">Widget Areas</a></li>\n\t\t  <li><a href=\"{$readme}#HeaderOpt\" target=\"_blank\">Header Options</a></li>\n\t\t  <li><a href=\"{$readme}#HeaderWidgetArea\" target=\"_blank\">Header Horizontal Widget Area</a></li>\n\t\t  <li><a href=\"{$readme}#MenuBar\" target=\"_blank\">Menu Bar and Info Bar</a></li>\n\t\t  <li><a href=\"{$readme}#Links\" target=\"_blank\">Links</a></li>\n\t\t  <li><a href=\"{$readme}#ContentAreas\" target=\"_blank\">Content Areas</a></li>\n\t\t  <li><a href=\"{$readme}#PPSpecifics\" target=\"_blank\">Post Specifics</a></li>\n\t\t  <ul>\n\t\t\t<li><a href=\"{$readme}#FeaturedImage\" target=\"_blank\">The Featured Image</a></li>\n\t\t\t<li><a href=\"{$readme}#CustomInfo\" target=\"_blank\">Custom Post Info Lines</a></li>\n\t\t  </ul>\n\t\t  <li><a href=\"{$readme}#FooterOpt\" target=\"_blank\">Footer</a></li>\n\t\t  <li><a href=\"{$readme}#Fonts\" target=\"_blank\">Fonts</a></li>\n\t\t</ul>\n\t  </li>\n\t  <li><a href=\"{$readme}#AdvancedOptions\" target=\"_blank\">Weaver Advanced Options</a>\n\t  <ul>\n\t  <li><a href=\"{$readme}#HeadSection\" target=\"_blank\">Site\n\t\t  &lt;HEAD&gt;\nSection</a></li>\n\t  <li><a href=\"{$readme}#HTMLInsertion\" target=\"_blank\">HTML Code Insertion Areas</a></li>\n\t  <li><a href=\"{$readme}#pageTemplateOptions\" target=\"_blank\">Page Templates</a></li>\n\t  <li><a href=\"{$readme}#ArchivePages\" target=\"_blank\">Archive-type Pages</a></li>\n\t  <li><a href=\"{$readme}#BackgroundImages\" target=\"_blank\">Background images</a></li>\n\t  <li><a href=\"{$readme}#Mobile\" target=\"_blank\">Mobile</a></li>\n\t  <li><a href=\"{$readme}#SEO\" target=\"_blank\">SEO</a></li>\n\t  <li><a href=\"{$readme}#AdvSiteOptions\" target=\"_blank\">Site Options</a></li>\n\t  </ul>\n\t  </li>\n\t  <li><a href=\"{$readme}#AdminOptions\" target=\"_blank\">Admin Options</a></li>\n\t  <li><a href=\"{$readme}#WeaverIIPro\" target=\"_blank\">Weaver II Pro</a></li>\n\t  <li><a href=\"{$readme}#ProShortcodes\" target=\"_blank\">Shortcodes</a></li>\n\t  <li><a href=\"{$readme}#SaveRestore\" target=\"_blank\">Save/Restore Themes</a></li>\n\t  <li><a href=\"{$readme}#PageTemplates\" target=\"_blank\">Weaver Page Templates</a></li>\n\t  <ul>\n\t\t<li><a href=\"{$readme}#PerPostTemplate\" target=\"_blank\">Settings for \"Page with Posts\" Template</a></li>\n\t  </ul>\n\t  <li><a href=\"{$readme}#editstyling\" target=\"_blank\">Post/Page Editor Styling</a>\n\t  <li><a href=\"{$readme}#raw_html\" target=\"_blank\">Entering Raw HTML and Scripts </a>\n\t  <li><a href=\"{$readme}#post_formats\" target=\"_blank\">Post Formats </a>\n\t  <li><a href=\"{$readme}#PerPage\" target=\"_blank\">Per Page and Per Post Options</a>\n\t\t<ul>\n\t\t  <li><a href=\"{$readme}#perpoststyle\" target=\"_blank\">Per Post Style</a></li>\n\t\t  <li><a href=\"{$readme}#shortcodes\" target=\"_blank\">Weaver Shortcodes</a></li>\n\t\t  <ul>\n\t\t\t\t<li><a href=\"{$readme}#breadcrumbs\" target=\"_blank\">[weaver_breadcrumbs]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#headerimage\" target=\"_blank\">[weaver_header_image]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#schtml\" target=\"_blank\">[weaver_html]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#scdiv\" target=\"_blank\">[div]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#sciframe\" target=\"_blank\">[weaver_iframe]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#pagenav\" target=\"_blank\">[weaver_pagenav]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showhidemobile\" target=\"_blank\">[weaver_show_if_mobile] / [weaver_hide_if_mobile]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showhideloggedin\" target=\"_blank\">[weaver_show_if_logged_in] / [weaver_hide_if_logged_in]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#showposts\" target=\"_blank\">[weaver_show_posts]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#sitetitlesc\" target=\"_blank\">[weaver_site_desc]</a></li>\n\t\t\t\t<li><a href=\"{$readme}#video\" target=\"_blank\">[weaver_vimeo], [weaver_youtube]</a></li>\n\t\t  </ul>\n\t\t</ul>\n\t  <li><a href=\"{$readme}#CustomMenus\" target=\"_blank\">Custom Menus</a></li>\n\t  <li><a href=\"{$readme}#plugins\" target=\"_blank\">Built-in Support for Other Plugins</a></li>\n\t  <li><a href=\"{$readme}#quickcache\" target=\"_blank\">Compatible Caching Plugins</a></li>\n\t  <li><a href=\"{$readme}#language_support\" target=\"_blank\">Using Weaver in your language</a></li>\n\t  <li><a href=\"{$readme}#ie\" target=\"_blank\">Internet Explorer Compatibility</a></li>\n\t  <li><a href=\"{$readme}#TechNotes\" target=\"_blank\">Technical Notes</a></li>\n\t  <li><a href=\"{$readme}#divhierarchy\" target=\"_blank\">Weaver HTML&lt;div&gt;Hierarchy</a></li>\n\t  <li><a href=\"{$readme}#Version1_0\" target=\"_blank\">Release Notes</a></li>\n\t  <li><a href=\"{$readme}#UpgradingWeaver\" target=\"_blank\">Upgrading from Weaver</a>\n\t  <ul>\n\t  <li><a href=\"{$readme}#oldnewdiff\" target=\"_blank\">Differences between Weaver and Weaver II</a></li>\n\t<li><a href=\"{$readme}#conversion\" target=\"_blank\">The Conversion Process</a></li>\n\t<li><a href=\"{$readme}#newsidebars\" target=\"_blank\">The New Sidebars</a></li>\n\t<li><a href=\"{$readme}#converttemplates\" target=\"_blank\">Converting Page Templates</a></li>\n\t  </ul>\n\t  </li>\n\t</ul></div>\n";
    ?>
</div>
<div style="float:left;width:42%;padding-right:1%">
	<h2><b><a href="<?php 
    echo $tdir . '/help/css-help.html';
    ?>
" target="blank">CSS HELP</a></b></h2>
	<p>A short CSS Tutorial</p>
	<h2><b><a href="<?php 
    echo $tdir . '/help/weaverii_snippets.html';
    ?>
" target="blank">SNIPPETS</a></b></h2>
	<p><strong>CSS Snippets for styling your Weaver II theme</strong>
	<ul>
  <li>Change Any Font Size</li>
  <li>Change the Comment Bubble</li>
  <li>Change Margins of Footer Widget Areas</li>
  <li>When you make the Footer (#colophon) Last</li>
  <li>Hide Divider Lines on Vertical Menu</li>
  <li>Post Information Line Icons</li>
  <li>Alternate Menu Bar Gradient</li>
  <li>Styling Menus</li>
</ul>
<p style="font-size:8px">Versions: Weaver II V <?php 
    echo weaverii_getopt('wii_version_id');
    ?>
 | Settings: <?php 
    echo weaverii_getopt('wii_style_version');
    ?>
 | Saved Settings: <?php 
    echo (int) weaverii_getopt('wii_saved_settings');
    ?>
</p>
</div>


<div style="clear:both;"></div>

<?php 
}
function weaverii_fonts_pro_admin()
{
    /* options - these are coded into Weaver II
         'wii_post_pretitle', 'wii_post_prebody', 'wii_post_postbody'
       */
    global $weaverii_fonts_defs;
    $weaverii_std_fonts = array('', 'Google Web Font', '"Helvetica Neue", Helvetica, sans-serif', 'Arial,Helvetica,sans-serif', 'Verdana,Arial,sans-serif', 'Tahoma, Arial,sans-serif', '"Arial Black",Arial,sans-serif', '"Avant Garde",Arial,sans-serif', '"Comic Sans MS",Arial,sans-serif', 'Impact,Arial,sans-serif', '"Trebuchet MS", Helvetica, sans-serif', '"Century Gothic",Arial,sans-serif', '"Lucida Grande",Arial,sans-serif', 'Univers,Arial,sans-serif', '"Times New Roman",Times,serif', '"Bitstream Charter",Times,serif', 'Georgia,Times,serif', 'Palatino,Times,serif', 'Bookman,Times,serif', 'Garamond,Times,serif', '"Courier New",Courier', '"Andale Mono",Courier');
    ?>
<script language="javascript" type="text/javascript">

  function weaverii_copy_google_3_4()
  {
    var cur = jQuery('#fonts_google_font_list').val();
    var g3 = jQuery('#font_google_link').val();
    var g4 = jQuery('#font_google_font_code').val();
    var add = g3 + '<!-- ' + g4 + " -->";
    if (cur && cur.indexOf(add) >= 0) {
	alert("That Google Font Definition already added.");
	return;
    }
    var fix = cur + add + "\n";
    jQuery('#fonts_google_font_list').val(fix);
  }

  function weaverii_generate_font_css() {
    var font_font_family = jQuery("#font_font_family").val();
    var font_font_weight = jQuery("#font_font_weight").val();
    var font_font_style = jQuery("#font_font_style").val();
    var font_font_variant = jQuery("#font_font_variant").val();
    var font_font_size = jQuery("#font_font_size").val();
    var font_font_size_value = jQuery("#font_font_size_value").val();
    var font_font_size_units = jQuery("#font_font_size_units").val();
    var g3 = jQuery('#font_google_link').val();
    var g4 = jQuery('#font_google_font_code').val();

    var css = '{';
    if (g4 && g3 && font_font_family == 'Google Web Font' ) {
	css += g4;
    } else if (font_font_family) {
	css += 'font-family:' + font_font_family + ';';
    }

    if (font_font_weight) css += 'font-weight:' + font_font_weight + ';';
    if (font_font_style) css += 'font-style:' + font_font_style + ';';
    if (font_font_variant) css += 'font-variant:' + font_font_variant + ';';

    if (font_font_size_value) css += 'font-size:' + font_font_size_value + font_font_size_units + ';';
    else if (font_font_size) css += 'font-size:' + font_font_size + ';';

    css += '}';
    jQuery('#font_generate_font_code').val(css);
  }
  function weaverii_copy_font_css(destinationid)
  {
    var css = jQuery('#font_generate_font_code').val();
    var cur = jQuery("#"+destinationid).val();
    var paste = cur + css;
    jQuery("#"+destinationid).val(paste);
  }
</script>


    <div><a name="fonts_top"></a>
    <p class='wvr-option-section'>Weaver II Pro - Font Control <?php 
    weaveriip_help_link('pro-help.html#font_control', 'Font control help');
    ?>
</p>
<?php 
    if (weaverii_hide_advanced()) {
        echo '<p>Advanced Font Control options hidden.</p><div style="display:none;">';
    }
    echo '&nbsp;|&nbsp;';
    $count = 0;
    foreach ($weaverii_fonts_defs as $option => $row) {
        if ($row['id'][0] == '_') {
            echo '<a href="#' . $row['id'] . '">' . $row['label'] . '</a>&nbsp;|&nbsp;';
        } else {
            $count++;
        }
    }
    $tdir = weaverii_relative_url('') . 'includes/pro/';
    $readme = $tdir . 'pro-help.html';
    ?>
<a href="<?php 
    echo $readme;
    ?>
#font_control" target="_blank"><strong>Font Control Help</strong></a>&nbsp;|
<br />
    <p>The Weaver II Pro Font Control panel gives you fine tuned control over the fonts various elements of your site will use.
    You can use a set of standard Web fonts, or for total flexibility, you can use <em>any</em> of the free
    <?php 
    weaverii_site('/webfonts', 'http://www.google.com', 'Google Web Fonts');
    ?>
<strong>Google Web Fonts</strong></a>. Once you
    get the hang of using this interface, it is quite easy to specify fonts. However, there is a small learning curve,
    and you really should read the complete instructions in the
    <a href="<?php 
    echo $readme;
    ?>
#font_control" target="_blank">Weaver II Help document</a>!
    </p>
    <p>For best results, <strong>please</strong> follow <span style="color:red;">Steps 1, 2, 3, and 4</span> for each font you want to use. Read
    the instructions for each step carefully.</p>
    <hr />

 	<fieldset class="options">
	    <span style="font-weight:bold; color:blue;">Weaver II Font Style Generator</span>
	    &nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php 
    echo $readme;
    ?>
#font_control" target="_blank"><strong>Font Control Help</strong></a><br /><br />
	    <h3><span style="color:red; text-decoration:underline;font-weight:bold;font-size:larger;">Step 1.</span> Specify Font Family and Attributes</h3>
	   <p>You may specify a standard Web font by using the "Specify Standard Font Family" pull-down on the left below,
	   or you may use any Google font by first selecting "Google Web Font" on the left, then filling in 3 and 4 in the
	   Google box on the right. You can use the Font-Weight, Font Style, etc., for either a standard or a Google Font.
	   Then follow Steps 2, 3, and 4 for either standard or Google fonts. You can repeat this process (Steps 1 to 4) to specify
	   different fonts for different elements.</p>

	<div style="float:left;"><span style="font-weight:bold; color:green;">Specify Standard Font Family</span><br />
	    &nbsp;&nbsp;
<?php 
    weaverii_select('font_font_family', $weaverii_std_fonts);
    ?>
	    <span style="font-weight:bold;color:red;">&nbsp;-OR-&nbsp;</span><br /><hr />
	    <span style="font-weight:bold; color:green;">Font-Weight: </span>
<?php 
    weaverii_select('font_font_weight', array('', 'normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900'));
    ?>
	    <br />
	    <span style="font-weight:bold; color:green;">Font Style: &nbsp;&nbsp;</span>
<?php 
    weaverii_select('font_font_style', array('', 'normal', 'italic', 'oblique'));
    ?>
	    <br />
	    <span style="font-weight:bold; color:green;">Font Variant: </span>
<?php 
    weaverii_select('font_font_variant', array('', 'normal', 'small-caps'));
    ?>
	    <br />

	    <span style="font-weight:bold; color:green;">Font Size: &nbsp;&nbsp;&nbsp;</span>
<?php 
    weaverii_select('font_font_size', array('', 'Specify value', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'smaller', 'larger'));
    ?>
	    <br />
	    Font Size value:
	    <input type="text" style="width:34px;height:24px;" class="regular-text" name="<?php 
    weaverii_sapi_main_name('font_font_size_value');
    ?>
"
                id="font_font_size_value" value="<?php 
    weaverii_esc_textarea(weaverii_getopt('font_font_size_value'));
    ?>
" />
<?php 
    weaverii_select('font_font_size_units', array('em', 'pc', 'pt', 'px', '%'));
    ?>
	</div>
	<div style="float:left;border:1px solid #aaa;padding:4px;">
    &nbsp;<span style="font-weight:bold; color:green;">Specify Google Web Font Family</span>
    <br /><ol>
	<li><strong>&larr;</strong> Select "Google Web Font" from "<strong>Specify Standard Font Family</strong>" pull-down list on the left.</li>
	<li>Go to <?php 
    weaverii_site('/webfonts', 'http://www.google.com', 'Google Web Fonts');
    ?>
<strong>Google Web Fonts</strong></a> site to select a font.
	Open the font's <strong><em>Quick-use</em></strong> page.</li>
	<li>Paste Quick-use <strong>#3 &lt;link&gt;</strong> code here:
	<textarea name="<?php 
    weaverii_sapi_main_name('font_google_link');
    ?>
" id="font_google_link" rows=2 style="width: 300px"><?php 
    weaverii_esc_textarea(weaverii_getopt('font_google_link'));
    ?>
</textarea></li>
	<li>Paste Quick-use <strong>#4 CSS</strong> code here: &nbsp;&nbsp;
	<textarea name="<?php 
    weaverii_sapi_main_name('font_google_font_code');
    ?>
" id="font_google_font_code" rows=1 style="width: 300px"><?php 
    weaverii_esc_textarea(weaverii_getopt('font_google_font_code'));
    ?>
</textarea></li>
	<li>Click the<em>Generate Font CSS Definition</em> button,<br /> then click the<em>Paste current Google #3 and #4 to list of Available Google fonts</em> and <em>Save Settings</em> <br />if you plan to use this Google Web Font on your site.</li>
    </ol>
    </div><div style="clear:both;"></div>
    <br /><div></div>
    <div>
    <h3><span style="color:red; text-decoration:underline;font-weight:bold;font-size:larger;">Step 2.</span> &nbsp;<input id="generate_css" class= "js_button" type="button" value="Click Here to Generate Font CSS Definition" onclick="weaverii_generate_font_css()" /> &nbsp;
    <small>&larr; Click this button to generate a CSS definition you can paste into the different font areas below.</small></h3>
    <textarea name="<?php 
    weaverii_sapi_main_name('font_generate_font_code');
    ?>
" id="font_generate_font_code" readonly rows=1 style="width: 800px;background:#eee;"><?php 
    weaverii_esc_textarea(weaverii_getopt('font_generate_font_code'));
    ?>
</textarea><br/>
    <strong style="color:#a04;">Paste above CSS code into style boxes in the Weaver II Font Options section below.</strong> <small>No need to Copy, just click the Paste CSS button. Getting just "{}"? <strong>Re-read</strong> the Step 1 directions!</small></div>
    <br />
    </fieldset>
	<?php 
    weaverii_sapi_submit('', '', false);
    ?>
	The above Font Style Generator settings will be saved when you Save Settings, but they generally are used
	on a one-shot basis.
	<hr />

    <fieldset class="options">
	<span style="font-weight:bold; color:blue;">Weaver II Font Options</span><br />
	<h3><span style="color:red; text-decoration:underline;font-weight:bold;font-size:larger;">Step 3.</span> Define font definition load path for Google Fonts you use</h3>
	<p><strong>If</strong> you are using any Google Fonts, you <strong><em>MUST</em></strong> add the definitions you pasted into #3 and #4 above
	to the "Available Google Fonts" box below so that your site will be able to load the Google Fonts. If you are just using
	standard web font families, then you can skip this step.</p>


	<p><input id="copy_google" class= "js_button" type="button" value="Click Here to Paste current Google #3 and #4 to Available Google fonts list" onclick="weaverii_copy_google_3_4()" />&nbsp;&nbsp;<strong style="color:red;">Important!</strong> You still must click the "Save Settings" button to save the Google Font definitions in the Available Google Fonts setting!</p>

	<table class="optiontable">
	    <tr>
	    <th scope="row" align="right"><span style="color:green;">Available Google Fonts:</span><br />
	    <small style="font-weight:normal;">List of Google fonts that will be available for use on your site.
	    You can copy/paste the "font-family: ..." CSS code into any of the sections below if you need to later.</small></th>
	    <td ><textarea name="<?php 
    weaverii_sapi_main_name('fonts_google_font_list');
    ?>
" id='fonts_google_font_list' rows=4 style="width: 620px"><?php 
    weaverii_esc_textarea(weaverii_getopt('fonts_google_font_list'));
    ?>
</textarea></td>
	    </tr>
	</table>

	<h3><span style="color:red; text-decoration:underline;font-weight:bold;font-size:larger;">Step 4.</span> Paste Font CSS Defintions into Boxes of items you want to specify</h3>
	<p>You can now use the "Paste CSS" buttons next to specific text items to use the currently defined font in the "Step 2"
	Font CSS Definition. You need to change that definition for each different font you use. The same applies to "Step 3" if
	your are using Google Fonts.</p>
	<table class="optiontable">

<?php 
    foreach ($weaverii_fonts_defs as $option => $val) {
        weaverii_fonts_row($val);
    }
    ?>
    <tr><td>&nbsp;</td></tr>
    <tr>
	<th scope="row" align="right" style="color:green;">Fonts Box Lines:&nbsp;</th>
	<td>
	    <input type="text" style="width:30px;height:22px;" class="regular-text" name="<?php 
    weaverii_sapi_main_name('fonts_edit_lines');
    ?>
"
                id="fonts_edit_lines" value="<?php 
    weaverii_esc_textarea(weaverii_getopt('fonts_edit_lines'));
    ?>
" />
	    <small>Number of lines to display in each edit box on this page.</small>
	</td>
    </tr>
	</table>
	</fieldset>
	<br />
    <hr />
    </div>
<?php 
    if (weaverii_hide_advanced()) {
        echo '</div>';
    }
}
function weaverii_adv_site_opts()
{
    ?>
	<div class="wvr-option-header">Site Options
	<?php 
    weaverii_help_link('help.html#AdvSiteOptions', 'Help on Advanced Site Options');
    ?>
</div><br />
	These options are available to fine tune various aspects of your site. Technically, these features
	are not part of the theme styling, but cover other aspects of site functionality. <strong>NOTE:</strong>
	The <em>FavIcon</em> and <em>Preferred Image for Facebook</em> options will be displayed only for
	Weaver II Pro or if you have the "Weaver II Theme Extras" plugin installed.<br /><hr /><br />
   <!-- ======== -->
<?php 
    weaverii_free_hidden_opt('_wii_favicon_url');
    do_action('weaverii_favicon');
    weaverii_free_hidden_opt('_wii_imgsrc_url');
    do_action('weaverii_facebook');
    ?>
	<div class="wvr-option-subheader"><span style="color:blue;font-size:larger;"><b>Home Page</b></span></div>
	<p>WordPress allows you to specify what page is used for your home page - either the standard WordPress blog,
	or a static page (which can be a Weaver "Page with Posts" page). How to set the Front page displays options
	is not totally obvious - please see the Weaver Help topic for a more complete explanation.</p>
	<p>You can set the front page on the Dashboard <em>Settings&rarr;Reading panel</em>:
	<a href="<?php 
    echo esc_url(home_url('/') . 'wp-admin/options-reading.php');
    ?>
"><strong>Set Front Page Displays</strong></a></p><br />

	<div class="wvr-option-subheader"><span style="color:blue;font-size:larger;"><b>Author Avatars</b></span></div>
	<p>For the best look, your site should support Avatars - a small image associated with
	a contributors e-mail address. <?php 
    weaverii_site('', '<?php weaverii_site(); ?>');
    ?>
Gravatar.com</a>
	is probably the most popular Avatar support, and is closely associated with WordPress. You should set up a Gravatar for
	the main authors of your blog. For contributors without any avatar, you can select an automatically
	generated avatar from several options found on the
	<a href="<?php 
    echo esc_url(home_url('/') . 'wp-admin/options-discussion.php');
    ?>
">
	<strong>Settings&rarr;Discussion</strong></a> panel.
	</p>
	<hr />
<?php 
    do_action('weaverii_child_siteoptions');
}
示例#8
0
function weaverii_admin_pro()
{
    $opts = array(array('name' => 'Administrative Opts', 'id' => 'maintab3', 'type' => 'header0', 'info' => 'Weaver II Pro Administrative Options', 'help' => 'help.html#ProAdminOpts'), array('name' => 'Use Inline CSS', 'id' => '_wii_inline_style', 'type' => '+checkbox', 'info' => 'Generate in-line CSS code rather than using style-weaverii.css file. &diams;'), array('name' => 'Development Mode', 'id' => '_wii_development_mode', 'type' => '+checkbox', 'info' => 'Run in development mode. Uses in-line CSS and displays the diagnostic information enabled below when developing
		  a new custom theme. TURN OFF FOR PRODUCTION SITES! &diams;'), array('name' => '<small>Trace Page Templates</small>', 'id' => '_wii_diag_trace_templates', 'type' => '+checkbox', 'info' => 'Displays a label for each page template called (e.g., index, category, page, etc.). &diams;'), array('name' => '<small>Trace Sidebars</small>', 'id' => '_wii_diag_trace_sidebars', 'type' => '+checkbox', 'info' => 'Displays a label for sidebar displayed. &diams;'), array('name' => '<small>Show Area Borders</small>', 'id' => '_wii_diag_borders', 'type' => '+checkbox', 'info' => 'Show a 1px red border around most major &lt;div&gt;s. Overrides other borders. &diams;'), array('name' => '<small>Show Page Generation Time</small>', 'id' => '_weaverii_diag_timer', 'type' => '+checkbox', 'info' => 'Show page generation time at bottom of page. &diams;'), array('name' => '#070<small>Show Mobile Device Info</small>', 'id' => '_wii_diag_trace_mobile', 'type' => '+checkbox', 'info' => 'Shows info about display device at top of page. &diams;'), array('name' => 'Shortcodes & Features', 'id' => 'maintab2', 'type' => 'header0', 'info' => 'Selectively Enable/Disable Weaver II Pro Shortcodes and Features', 'help' => 'help.html#ProShortcodes'), array('name' => 'Note:', 'id' => 'wii_pshc', 'type' => 'note', 'info' => 'These enable/disabe Weaver Pro Shortcodes. See the Dashboard Appearance->Shortcodes + Pro panel.'), array('name' => 'Disable Header Gadgets', 'id' => '_wii_hide_headergadgets', 'type' => '+checkbox', 'info' => 'Header Gadgets - Place links, images, and text over the header; directly or with [weaver_gadget] &diams;'), array('name' => 'Disable Link Buttons', 'id' => '_wii_hide_linkbuttons', 'type' => '+checkbox', 'info' => 'Link Buttons - [weaver_buttons] + Widget to display link image buttons you define &diams;'), array('name' => 'Disable Social Buttons', 'id' => '_wii_hide_socialbuttons', 'type' => '+checkbox', 'info' => 'Social Buttons - [weaver_social] + Widget to display icon links to most current social sites &diams;'), array('name' => 'Disable Slider', 'id' => '_wii_hide_slider', 'type' => '+checkbox', 'info' => 'Slider - [weaver_slider] - place sliding image menus in header, sidebar, or content area &diams;'), array('name' => 'Disable Extra Menus', 'id' => '_wii_hide_extramenus', 'type' => '+checkbox', 'info' => 'Extra Menu [weaver_extra_menu] + Vertical Menu Widget - add new menus almost anywhere &diams;'), array('name' => 'Disable Widget Area', 'id' => '_wii_hide_widgetarea', 'type' => '+checkbox', 'info' => 'Widget Area - [weaver_widget_area] - add new widget area almost anywhere, including in pages and posts &diams;'), array('name' => 'Disable Search Form', 'id' => '_wii_hide_searchbox', 'type' => '+checkbox', 'info' => 'Search Form - [weaver_search] - add a search form wherever you want &diams;'), array('name' => 'Disable Show Feed', 'id' => '_wii_hide_showfeed', 'type' => '+checkbox', 'info' => 'Show Feed - [weaver_show_feed] - show an external RSS feed styled to match your own posts &diams;'), array('name' => 'Disable Popup Link', 'id' => '_wii_hide_popuplink', 'type' => '+checkbox', 'info' => 'Popup Link - [weaver_popup_link] - Define a link to a popup window &diams;'), array('name' => 'Disable Show/Hide Text', 'id' => '_wii_hide_showhide', 'type' => '+checkbox', 'info' => 'Show/Hide - [weaver_showhide] - adds button to show/hide text such as lyrics or spoilers &diams;'), array('name' => 'Disable Comment Policy', 'id' => '_wii_hide_commentpolicy', 'type' => '+checkbox', 'info' => 'Comment Policy - add comment policy or terms right before the submit comment button &diams;'), array('name' => 'Disable Shortcoder', 'id' => '_wii_hide_shortcoder', 'type' => '+checkbox', 'info' => 'Shortcoder - [weaver_sc] - define your own short code: add standard text or other content using a shortcode &diams;'), array('name' => 'Enable PHP', 'id' => '_wii_show_php', 'type' => '+checkbox', 'info' => 'PHP - [weaver_php] - add PHP whereever you need it &diams;'), array('name' => 'Enable Total CSS Options', 'id' => '_wii_show_totalcss', 'type' => '+checkbox', 'info' => 'Total CSS - define custom CSS for virtually every important element of your theme &diams;'));
    ?>
<h3>Weaver II Pro Features <?php 
    weaverii_help_link('help.html#WeaverIIPro', 'Help for Admin Options');
    ?>
</h3>
<?php 
    if (!weaverii_init_base()) {
        ?>
<h3>Get <em style="color:blue;">Weaver II Pro</em> to add powerful new features to Weaver II</h3>
<p>
<?php 
        weaverii_site('', 'http://pro.weavertheme.com', 'Weaver II Pro');
        ?>
<img class="alignleft" style="padding-right:20px;" title="Weaver II Pro" src="<?php 
        echo weaverii_relative_url('images/wiipro.jpg');
        ?>
" alt="Weaver II Pro" width="200" height="62" /></a>
<span style="color:blue; font-weight:bold;">Get Weaver II Pro Now!</span>
<br /></br />
<strong>Visit <?php 
        weaverii_site('', 'http://pro.weavertheme.com', 'Weaver II Pro');
        ?>
pro.WeaverTheme.com</a>
now to get your copy of <em>Weaver II Pro</em>.</strong>
</p>
<br />

	<p>You can extend Weaver II's features by upgrading to the Weaver II Pro Version. In addition to activating
	all the grayed out options you've probably noticed on the various options tabs, you will get the following
	new shortcodes, plus other features to fine tune your site. And Weaver II Pro offers the
	ultimate in mobile theme customization, allowing a completely different look for mobile devices.
	</p>
<?php 
        weaverii_form_show_options($opts);
        return;
    }
    // to here, have pro features
    echo '<h3>Weaver II Pro Features - You are using Weaver II Pro. Thank you.</h3>' . "\n";
    weaverii_sapi_submit();
    weaverii_hide_advanced('begin');
    weaverii_form_show_options($opts);
    ?>

 <p><strong><a href="<?php 
    echo site_url('/wp-admin/themes.php?page=WeaverII_Shortcodes');
    ?>
"><em>More Weaver II Pro Options and Shortcodes</em></a></strong></p>

<p style="max-width:700px;"><small>Note: The above options allow you to selectively enable and disable the listed Weaver II Pro shortcodes and
features. Disabling a feature will optomize the speed of your site. Any difference will be very small, but might
give a slight improvment for heavily loaded sites.</small>
	<br /><br />
	<?php 
    echo 'Memory: ' . round(memory_get_usage() / 1024 / 1024, 2) . ' of ' . (int) ini_get('memory_limit') . 'M ';
    ?>
</p>
<?php 
    weaverii_sapi_submit();
    (int) ini_get('memory_limit');
    weaverii_hide_advanced('end');
}
示例#9
0
function weaverii_admin_subthemes()
{
    ?>

<h3>Predefined Weaver II Subthemes
<?php 
    weaverii_help_link('help.html#PredefinedThemes', 'Help for Weaver II Predefined Themes');
    ?>
<small style="font-weight:normal;font-size:10px;">&nbsp;&larr; You can click the ?'s found throughout Weaver II admin pages for context specific help.</small></h3>
<b>Welcome to Weaver II</b>

<p>Weaver II gives you extreme control of your WordPress blog appearance using the
different admin tabs here. This tab lets you get a quick start by picking one of the many
predefined subthemes. Once you've picked a starter theme, use the <em>Main Options</em> and <em>Advanced Options</em>
tabs to tweak the theme to be whatever you like. After you have a theme you're happy with,
you can save it from the Save/Restore tab. The <em>Help</em> tab has much more <b>useful</b> information.</p>

<p>We realize Weaver II has a <strong>lot</strong> of options. To help make it easier to get started,
you can click the "Hide Advanced Options" button found on the right side of the screen wherever a
"Save Options" button is found, and a simplified set of options will be displayed. Just click the "Show All Options" button
to once again show all options.</p>


<h3 class="wvr-option-subheader" style="color:red;font-style:italic">Visit our
<?php 
    weaverii_site('/subthemes/');
    ?>
website</a> for even more great looking subthemes!</h3>
<table><tr><td><img src="<?php 
    echo weaverii_relative_url('/images/');
    ?>
addon_themes.png" alt="addons" /></td>
<td><p style="margin-left:10px;">All the subthemes included here provide a great starting point, but we're trying hard to make even more great looking subthemes available for you to try. Click to check out our
<?php 
    weaverii_site('/subthemes/');
    ?>
<strong>Subthemes</strong></a> page now on the main Weaver II website.
</p></td></tr></table>

<?php 
    if (!has_action('weaverii_child_show_extrathemes')) {
        echo '<p>We suggest that you download the Weaver II Theme Extras Plugin for easy access to new subthemes.</p>';
    }
    do_action('weaverii_child_show_extrathemes');
    ?>

<h3 class="wvr-option-subheader">Get started by trying one of the predefined subthemes!</h3>
<?php 
    $theme_dir = trailingslashit(WP_CONTENT_DIR) . 'themes/' . get_template() . '/subthemes/';
    $theme_list = array();
    if ($media_dir = opendir($theme_dir)) {
        // build the list of themes from directory
        while ($m_file = readdir($media_dir)) {
            $len = strlen($m_file);
            $base = substr($m_file, 0, $len - 4);
            $ext = $len > 4 ? substr($m_file, $len - 4, 4) : '';
            if ($ext == '.w2t') {
                $theme_list[] = $base;
            }
        }
    }
    if (!empty($theme_list)) {
        weaverii_st_pick_theme($theme_list);
        // show the theme picker
    } else {
        echo "<h3>WARNING: Your version of Weaver II is likely installed incorrectly. Unable to find subtheme defiitions.</h3>\n";
    }
}
示例#10
0
<?php 
    if (!weaverii_getopt('_wii_hide_poweredby')) {
        ?>
		<span id="site-generator">
		<a href="<?php 
        echo esc_url(__('http://wordpress.org/', 'weaver-ii'));
        ?>
" title="wordpress.org" rel="generator" target="_blank"><?php 
        printf(__('Proudly powered by %s', 'weaver-ii'), 'WordPress');
        ?>
</a>&nbsp;
<?php 
        echo WEAVERII_THEMENAME;
        ?>
 by <?php 
        weaverii_site();
        ?>
WP Weaver</a>
		</span> <!-- #site-generator -->
<?php 
    }
    weaverii_mobile_toggle('footer');
    // display toggle button
    ?>
		</div><!-- #site-ig-wrap -->
		<div class="weaver-clear"></div>
	  </div>
	</footer><!-- #colophon -->
<?php 
}
// end if !hide_footer