Exemplo n.º 1
0
function weaverii_put_rule_if_not_checked($sout, $id, $rule)
{
    // put just a rule if not checked
    if (!weaverii_getopt_checked($id)) {
        weaverii_f_write($sout, $rule . "\n");
    }
}
Exemplo n.º 2
0
<?php 
weaverii_get_sidebar_top('index');
?>
			<div id="content" class = "cf" role="main">

<?php 
if (have_posts()) {
    $paged = weaverii_get_page();
    weaverii_content_nav('nav-above');
    $col = 0;
    $num_cols = weaverii_use_mobile('mobile') ? 1 : weaverii_getopt('wii_blog_cols');
    if (!$num_cols || $num_cols > 3) {
        $num_cols = 1;
    }
    $sticky_one = weaverii_getopt_checked('wii_blog_sticky_one') && $paged <= 1;
    $first_one = weaverii_getopt_checked('wii_blog_first_one') && $paged <= 1;
    $masonry_wrap = false;
    // need this for one-column posts
    /* Start the Loop */
    weaverii_post_count_clear();
    while (have_posts()) {
        the_post();
        weaverii_post_count_bump();
        if (is_sticky() && $sticky_one) {
            get_template_part('content', get_post_format());
        } else {
            if ($first_one) {
                get_template_part('content', get_post_format());
                $first_one = false;
            } else {
                if (!$masonry_wrap) {
Exemplo n.º 3
0
<?php

if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_trace_template(__FILE__);
?>
<a id="page-bottom"></a>
<?php 
if (weaverii_getopt_checked('wii_hide_final')) {
    echo '<div id="weaver-final" class="weaver-final-raw wvr-hide-bang">';
} else {
    echo '<div id="weaver-final" class="weaver-final-raw">';
}
wp_footer();
?>
</div> <!-- #wii_final -->
</body>
</html>
Exemplo n.º 4
0
if (strlen($extra) > 0) {
    // want to display some areas
    $xarea = 'per-page-' . $extra;
    // retrieve meta value
    if (!is_active_sidebar($xarea)) {
        ?>
		<h3>*** Note: Per Page widget area: <?php 
        echo $extra;
        ?>
 not found. You've likely mistyped the name or haven't defined the area yet. Using default area. ***</h3>
<?php 
        $xarea = '';
    }
}
$harea = $xarea ? $xarea : 'header-widget-area';
if (is_active_sidebar($harea) && !(!is_front_page() && !is_home() && weaverii_getopt_checked('_wii_hdr_widg_frontpage')) && !weaverii_is_checked_page_opt('ttw-hide-header-widget')) {
    // weaver header widget area
    // header-widget-1
    // wii_hdr_widg_1 -- _bgcolor _w_int _w_mobile_int
    // wii_hdr_widg_bgcolor wii_hdr_widg_h_int wii_hdr_widg_w_int wii_hdr_widg_hide_mobile
    ?>
		<div id="sidebar_header" class="sidebar-header">
<?php 
    weaverii_trace_sidebar(__FILE__);
    // here, we duplicate the functionality of dynamic_sidebar so we can add our own styling
    for (;;) {
        // so we can break instead of return
        global $wp_registered_sidebars, $wp_registered_widgets;
        $index = sanitize_title($harea);
        foreach ((array) $wp_registered_sidebars as $key => $value) {
            if (sanitize_title($value['name']) == $index) {
Exemplo n.º 5
0
function weaverii_enqueue_scripts()
{
    // action definition
    // need to know the page template for some conditional script inclusion
    global $weaverii_cur_template;
    $weaverii_cur_template = is_page() ? get_page_template() : 'nonpage';
    $vers = weaverii_getopt('wii_style_version');
    if (!$vers) {
        $vers = '1';
    } else {
        $vers = sprintf("%d", $vers);
    }
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // emit Weaver js vars - must be here, before scripts
    // generate JS values for Weaver JS Lib
    echo '<script type="text/javascript">';
    echo 'var weaverIsMobile=' . (weaverii_use_mobile('mobile') ? 'true;' : 'false;');
    echo 'var weaverIsSimMobile=' . (weaverii_sim_mobile() && weaverii_in_mobile_view() && !weaverii_use_mobile('tablet') ? 'true;' : 'false;');
    echo 'var weaverIsStacked=' . (strpos(weaverii_getopt('_wii_mode_mobile'), 'nostack') === false ? 'true;' : 'false;');
    $tw = weaverii_getopt('wii_theme_width_int');
    if (!$tw) {
        $tw = 940;
    }
    echo 'var weaverThemeWidth=' . $tw . ';';
    $threshold = weaverii_getopt('wii_mobile_slide_threshold');
    $threshold = $threshold != '' ? $threshold : '640';
    echo 'var weaverMenuThreshold=' . $threshold . ';';
    echo 'var weaverHideMenuBar=' . (weaverii_getopt('wii_hide_menu_bar') ? 'true;' : 'false;');
    echo 'var weaverMobileDisabled=' . (weaverii_getopt('_wii_mobile_disable') ? 'true;' : 'false;');
    echo 'var weaverFlowToBottom=' . (weaverii_getopt_checked('wvr_flow_to_bottom') ? 'true;' : 'false;');
    echo 'var weaverHideTooltip=' . (weaverii_getopt('wii_hide_tooltip') ? 'true;' : 'false;');
    echo 'var weaverUseSuperfish=' . (weaverii_getopt('wii_use_superfish') ? 'true;' : 'false;');
    echo "</script>\n";
    //-- Weaver js lib - requires jQuery...
    wp_enqueue_script('weaverJSLib', get_template_directory_uri() . '/js/weaverjslib' . WEAVER_MINIFY . '.js', array('jquery'), WEAVERII_VERSION, true);
    // dynamic settings for menu fixer
    $default_selector = 'li:has(ul) > a';
    $default_selector_leaf = 'li li li:not(:has(ul)) > a';
    $params = array('selector' => apply_filters('weaver_menu_selector', $default_selector), 'selector_leaf' => apply_filters('weaver_menu_selector_leaf', $default_selector_leaf));
    wp_localize_script('weaverJSLib', 'weaver_menu_params', $params);
    //-- HTML Page template prettify
    if (is_page_template('paget-html.php')) {
        wp_enqueue_script('weaverPrettify', get_template_directory_uri() . '/js/theme/prettify' . WEAVER_MINIFY . '.js', array(), WEAVERII_VERSION, true);
    }
    // only for html page
    // include scripts from pro
    if (function_exists('weaverii_pro_enqueue_scripts')) {
        weaverii_pro_enqueue_scripts($vers);
    }
}
Exemplo n.º 6
0
			<nav id="nav-below">
				<h3 class="assistive-text"><?php 
echo __('Image navigation', 'weaver-ii');
?>
</h3>
				<span class="nav-previous"><?php 
previous_image_link(false, __('&larr; Previous', 'weaver-ii'));
?>
</span>
				<span class="nav-next"><?php 
next_image_link(false, __('Next &rarr;', 'weaver-ii'));
?>
</span>
			</nav><!-- #nav-below -->

				<?php 
if (weaverii_getopt_checked('wii_allow_attachment_comments')) {
    comments_template();
}
?>

			</div><!-- #content -->
<?php 
weaverii_get_sidebar_bottom('image');
?>
		</div><!-- #container -->
		</div><!-- #container_wrap -->

<?php 
weaverii_get_sidebar_right('image');
weaverii_get_footer('image');
Exemplo n.º 7
0
function weaverii_pro_opt_cache($switch = null)
{
    // load the options cache - from regular or mobile depending...
    global $weaverii_pro_opts;
    if (isset($switch)) {
        $weaverii_pro_opts = $switch;
    } else {
        if (!$weaverii_pro_opts) {
            $weaverii_pro_opts = apply_filters('weaverii_switch_theme_pro', get_option(apply_filters('weaver_options', 'weaverii_pro'), array()));
        }
    }
    if (weaverii_getopt_checked('_wii_mobile_alt_theme') && !is_admin() && weaverii_use_mobile('mobile')) {
        $weaverii_pro_opts = get_option(apply_filters('weaver_options', 'weaverii_pro_mobile'));
        if ($weaverii_pro_opts === false) {
            $weaverii_pro_opts = get_option(apply_filters('weaver_options', 'weaverii_pro'));
        }
    }
}
Exemplo n.º 8
0
function weaverii_trace_sidebar($msg)
{
    if (weaverii_dev_mode() && weaverii_getopt_checked('_wii_diag_trace_sidebars')) {
        $fixed = strstr($msg, '/weaver');
        if (!$fixed) {
            $fixed = $msg;
        }
        echo '<h3 style="background:#afa;color:blue;">*' . $fixed . "*</h3>\n";
    }
}
Exemplo n.º 9
0
function weaverii_st_pick_theme($list_in)
{
    // output the form to select a file list from weaverii-subthemes directory
    $list = $list_in;
    natcasesort($list);
    $cur_theme = weaverii_getopt('wii_theme_filename');
    if (!$cur_theme) {
        $cur_theme = 'antique-ivory';
    }
    // the default theme
    ?>
<form enctype="multipart/form-data" name='pick_theme' method='post'>
	&nbsp;&nbsp;<strong>Click a Radio Button below to select a subtheme: &nbsp;</strong>
	<span style="padding-left:100px;">Current theme: <strong>
<?php 
    $cur_addon = weaverii_getopt('wii_addon_name');
    if ($cur_addon == '') {
        echo ucwords(str_replace('-', ' ', $cur_theme));
    } else {
        echo 'Add-on Subheme: ' . ucwords(str_replace('-', ' ', $cur_addon));
        $cur_theme = '';
    }
    ?>
	</strong></span>

	<br /><br /><span class='submit'><input name="set_subtheme" type="submit" value="Set to Selected Subtheme" /></span>&nbsp;
	<small style="color:#b00;"><strong>Note:</strong> Selecting a new subtheme will change only theme related settings. Most Advanced Options will be retained.
	You can use the Save/Restore tab to save a copy of all your current settings first.</small><br /><br />
<?php 
    weaverii_nonce_field('set_subtheme');
    $thumbs = weaverii_relative_url('/subthemes/');
    foreach ($list as $addon) {
        $name = ucwords(str_replace('-', ' ', $addon));
        ?>
		<div style="float:left; width:200px;">
			<label><input type="radio" name="wii_theme_picked"
<?php 
        echo 'value="' . $addon . '" ' . ($cur_theme == $addon ? 'checked' : '') . '/> <strong>' . $name . '</strong><br />';
        if (!weaverii_getopt('_wii_hide_theme_thumbs')) {
            echo '<img style="border: 1px solid gray; margin: 5px 0px 10px 0px;" src="' . $thumbs . $addon . '.jpg" width="150px" height="113px" alt="thumb" /></label></div>' . "\n";
        } else {
            echo "</label></div>\n";
        }
    }
    if (!weaverii_getopt_checked('_wii_hide_theme_thumbs')) {
        ?>
	<div style="clear:both;"></div>
	<span class='submit' style='padding-top:6px;'><input name="set_subtheme" type="submit" value="Set to Selected Subtheme" /></span>
<?php 
    }
    ?>

	</form>
	<div style="clear:both;padding-top:6px;"></div>

	<form enctype="multipart/form-data" name='hide_thumbs_form' method='post'>
<?php 
    $hide_msg = weaverii_getopt('_wii_hide_theme_thumbs') ? 'Show Subtheme Thumbnails' : 'Hide Subtheme Thumbnails';
    ?>
	<input name="hide_thumbs" type="submit" value="<?php 
    echo $hide_msg;
    ?>
" />
<?php 
    weaverii_nonce_field('hide_thumbs');
    ?>
	</form>
	<div style="clear:both;"></div>
<?php 
}
Exemplo n.º 10
0
function weaverii_perform_check()
{
    ?>
<div style="background:#FFFF88;border:3px solid green;font-size:larger;padding:0 10px 0 10px; width:80%;margin-top:15px;margin-bottom:10px;">
	<p style="font-weight:normal;"><strong>Checking Weaver II for possible problems.</strong> This will check for some potential problems, but it is
	not a comprehensive check. Most messages are informational warnings, but things that should be fixed are marked ERROR.</p>
	<ul style="list-style-type:disc;list-style-position:inside;">
<?php 
    echo '<li>' . weaverii_check_version(true) . "</li>\n";
    // version
    global $wp_version;
    // see about file system
    if (function_exists('get_filesystem_method')) {
        // this is available to check
        $type = get_filesystem_method(array());
        // lets see if we have direct or ftpx
        if ($type == 'ftpext') {
            // supposed to be using ftp access
            ?>
	<li>Please note: your site server is configured so that WordPress requires "FTP File Access" to update themes,
	plugins, and other files. If your site host is a private server, VPS, or other system where your site is secure from other
	users, <em>this is not an issue</em>. If, on the other hand, your site is using shared hosting, then it might
	be vulnerable to attack from other users who share your server. We <strong>strongly</strong> advise that you contact
	your hosting company and see if your site can be configured more securely, and if not, change hosting companies.
	Most modern shared hosting companies can provide "suPHP", "fastCGI", or other tools that allow shared
	serving without compromising file security.
<?php 
            if (weaverii_init_base()) {
                ?>
	<br /><br />
	For Weaver II Pro, the "FTP File Access" requirement may cause issues with creating css and saved-settings files.
	You may want to add FTP credentials to your wp-config.php file.
<?php 
            }
            ?>
	</li>
<?php 
        }
    }
    if (!weaverii_init_base() && !function_exists('weaverii_extras_shortcodes_installed')) {
        echo "<li><strong>WARNING:</strong> You do not have the <em>Weaver II Theme Extras</em> plugin\n\t\tinstalled. It provides important and useful shortcodes for Weaver II. Please open the\n\t\t<strong>Shortcodes/Plugins</strong> tab for more information.</li>";
    }
    // option combinations
    if (weaverii_getopt('wii_wrap_shadow') && !weaverii_getopt('wii_page_bgcolor')) {
        // MUST have wrapper page bg set
        ?>
	<li><span style="color:red;font-weight:bold">ERROR:</span> You have specified "Wrap site with shadow" but
have not provided a backgroud color for "Wrapper Page BG". This combination may not display correctly
on IE7 and IE8. Please provide a Wrapper Page BG color.</li>
<?php 
    }
    // plugins
    weaverii_check_cache_plugins('<li>', '</li>');
    // Cache check
    weaverii_check_mobile_plugins('<li>', '</li>');
    // Check for mobile plugin themes
    $seo = '';
    if (function_exists('aioseop_get_version')) {
        $seo = 'All in One SEO Pack';
    }
    if (function_exists('su_wp_incompat_notice')) {
        $seo = 'SEO Ultimate';
    }
    if (class_exists('gregsHighPerformanceSEO')) {
        $seo = 'Greg\'s High Performance SEO';
    }
    if (class_exists('EcordiaContentOptimizer')) {
        $seo = 'Scribe SEO';
    }
    if ($seo) {
        echo '<li>You are using the SEO plugin <em>' . $seo . '</em>';
        '</em>. Be sure you have filled in the SEO plugin settings</li>';
    }
    if (function_exists('wpseo_get_value')) {
        echo '<li>NOTICE: You are using "WordPress SEO by Yoast". Weaver II automatically supports
this plugin. Be sure you have filled in the plugin settings.</li>';
        $seo = 'Yoast';
    }
    if (!$seo) {
        echo '<li>None of the most popular SEO plugins have been activated. You might want to consider using "WordPress SEO by Yoast", for example.</li>';
    }
    // widgets
    if (is_active_sidebar('header-widget-area')) {
        // have an active horizontal header area
        if (weaverii_getopt('_wii_hdr_widg_1_w_int') == '') {
            // just check the first one
            ?>
	<li><span style="color:red;font-weight:bold">ERROR:</span> You have added widgets for the <em>Header Horizontal Widget Area</em>, but have not
	properly defined widths for the widgets in that area. (Main Options:Header:Header Widget Area Widgets:Widths) </li>
<?php 
        }
    }
    if (!is_active_sidebar('primary-widget-area') && !is_active_sidebar('right-widget-area') && !is_active_sidebar('left-widget-area')) {
        echo '<li>You have not added any <em>widgets</em> to the <em>standard</em> sidebar widget areas. This check does not include any alternate
		replacement widget areas. (Dashboard:Widgets)</li>';
    }
    // misc
    $saved = get_option(apply_filters('weaver_options', 'weaverii_settings_backup'));
    if (empty($saved)) {
        echo '<li>You have not saved your settings using the <em>Save/Restore</em> tab. It is good practice to keep a saved version of your settings.</li>';
    }
    $icon = weaverii_getopt('_wii_favicon_url');
    if (!$icon) {
        echo '<li>You have not specified a <em>FavIcon</em>. It is a good idea to have a FavIcon for your site. (Advanced Options:Site Options)</li>';
    }
    // pro options
    if (weaverii_getopt_checked('_wii_inline_style')) {
        echo '<li>You have <em>Use Inline CSS</em> checked. (Weaver II Pro tab)</li>';
    }
    if (weaverii_getopt_checked('_wii_development_mode')) {
        echo '<li>You have <em>Development Mode</em> checked. It is recommended to disable it for production sites. (Weaver II Pro tab)</li>';
    }
    // MOBILE
    if (weaverii_getopt_checked('_wii_mobile_alt_theme')) {
        $temp = get_option(apply_filters('weaver_options', 'weaverii_settings_mobile'));
        if ($temp === false) {
            echo '<li><span style="color:red;font-weight:bold">ERROR:</span> You have checked <em>Use Alternate Mobile Theme</em>, but no Mobile Theme Settings have been saved. (Mobile tab) You <em>must</em> use the "Save Settings to Mobile Settings" from the Save/Restore tab first!</li>';
        }
    }
    if (weaverii_getopt_checked('_wii_sim_mobile') && weaverii_getopt_checked('_wii_sim_mobile_always')) {
        echo '<li>You have <em>Simulate Mobile Device</em> enabled for all visitors to your site. That is recommended only for demo sites. (Mobile tab)</li>';
    }
    if (strpos(weaverii_getopt('_wii_mode_mobile'), 'nostack') !== false && !is_active_sidebar('mobile-widget-area')) {
        echo '<li>You don\'t have any widgets defined for the <em>Mobile Device Widget Area</em> (Dashboard:Widgets).
		It is highly recommended to define alternate mobile widgets when you are using a "hide sidebars" mobile mode.</li>';
    }
    if (weaverii_getopt_checked('_wii_mobile_disable')) {
        echo '<li>You have <em>Disable Mobile Support</em> checked. That is not recommended unless you have an alternate mobile theme plugin. (Mobile tab)</li>';
    }
    if (weaverii_smart_mode()) {
        ?>
	<li>You are using a "smart" Mobile Support Mode. You can use the <em>Mobile Device Simulator</em> to check how your site will look on mobile devices. (Mobile tab)</li>
<?php 
    } else {
        ?>
	<li>You are using a "responsive" Mobile Support Mode. You can shrink the width of your desktop browser to see how your site will look on mobile devices.</li>
<?php 
    }
    ?>
	</ul>
	<p style="font-weight:normal;">Theme check complete.</p>

</div>
<?php 
}
Exemplo n.º 11
0
function weaverii_admin_admin()
{
    ?>
<h3>Basic Administrative Options <?php 
    weaverii_help_link('help.html#AdminOptions', 'Help for Admin Options');
    ?>
</h3>
<?php 
    weaverii_sapi_submit('', '<br /><br />');
    ?>
	These options control some administrative options and appearance features.

<br /><br />

	<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_donate');
    ?>
" id="wii_hide_donate" <?php 
    checked(weaverii_getopt_checked('_wii_hide_donate'));
    ?>
 />
		I've Donated - </label><small>Thank you for donating to the Weaver II theme.
This will hide the Donate button. Purchasing Weaver II Pro also hides the Donate button.</small> &diams;<br />

<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_subtheme_link');
    ?>
" id="wii_hide_subtheme_link" <?php 
    checked(weaverii_getopt_checked('_wii_hide_subtheme_link'));
    ?>
 />
		Hide Subthemes Banner - </label><small>This will hide the Premium Subthemes Banner.</small> &diams;<br />
<br />

<?php 
    weaverii_hide_advanced('begin');
    ?>
	<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_editor_style');
    ?>
" id="_wii_hide_editor_style" <?php 
    checked(weaverii_getopt_checked('_wii_hide_editor_style'));
    ?>
 />
		Disable Page/Post Editor Styling - </label><small>Checking this box will disable the Weaver subtheme based styling in the Page/Post editor.
		If you have a theme using transparent backgrounds, this option will likely improve the Post/Page editor visibility.</small> &diams;<br />

		<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_disable_shortcodes');
    ?>
" id="_wii_disable_shortcodes" <?php 
    checked(weaverii_getopt_checked('_wii_disable_shortcodes'));
    ?>
 />
		Disable <em>all</em> theme shortcode support</label> - <small>Disables all shortcodes provide by the theme ([weaver_show_posts], etc.).
		Useful to check how your site would look without Weaver II options.</small> &diams;<br />

	<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_updatemsg');
    ?>
" id="wii_hide_updatemsg" <?php 
    checked(weaverii_getopt_checked('_wii_hide_updatemsg'));
    ?>
 />
		Hide Update Messages - </label><small>Checking this box will hide the Weaver version update announcements on the Weaver Admin page.</small> &diams;<br />



	<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_auto_css_rules');
    ?>
" id="wii_hide_auto_css_rules" <?php 
    checked(weaverii_getopt_checked('_wii_hide_auto_css_rules'));
    ?>
 />
		Don't auto-display CSS rules - </label><small>Checking this box will disable the auto-display of Main Option elements that have CSS settings.</small> &diams;<br />

	<label><input name="<?php 
    weaverii_sapi_main_name('_wii_css_rows');
    ?>
" id="wii_css_rows" type="text" style="width:30px;height:20px;" class="regular-text" value="<?php 
    weaverii_esc_textarea(weaverii_getopt('_wii_css_rows'));
    ?>
" />
	lines - Set CSS+ text box height - </label><small>You can increase the default height of the CSS+ input area to a value between 1 and 25 lines.</small> &diams;
<br />
<br />
<strong>Compatibility Settings</strong> - settings that may cause compatibility issues with other plugins
<br />
<br /> <small><span style="color:red;"><b>NOTE:</b></span> Weaver II includes support for Rounded Corners and
Shadows for Internet Explorer 7/8 via an add-on script called PIE. The script has been <strong>enabled</strong> by default.
Note while PIE supports most rounded areas, it doesn't support the menu bars.
If you have difficulties or don't like the way your site renders in IE 7/8, you can disable the support.</small>
<br />
<label><input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_hide_PIE');
    ?>
" id="wii_hide_PIE" <?php 
    checked(weaverii_getopt_checked('_wii_hide_PIE'));
    ?>
 />
	Disable IE rounded corners support - </label><small>If you are having issues with IE and rounded corners, please disable this option.</small> &diams;<br />
 <br />
 <input type="checkbox" name="<?php 
    weaverii_sapi_main_name('_wii_no_final_div');
    ?>
" id="wii_no_final_div" <?php 
    checked(weaverii_getopt_checked('_wii_no_final_div'));
    ?>
 />
		Don't add #weaver-final at end - </label><small>Checking this box will prevent Weaver II from wrapping the
		very end of site pages with the #weaver-final div. This may prevent some conflicts with some plugins.</small> &diams;<br />

 <h3 class="wvr-option-subheader">Per Page and Per Post Option Panels by Roles</h3>
 <p>Single site Administrator and Multi-Site Super Administrator will always have the Per Page and Per Post options panel displayed.
 You may selectively disable these options for other User Roles using the check boxes below. (&#9679;Pro)</p>

 <?php 
    if (!weaverii_init_base()) {
        echo '<p>&nbsp;&nbsp;<em>Weaver II Pro Option</em></p>';
    } else {
        ?>

	<label><input type="checkbox" name="<?php 
        weaverii_sapi_main_name('_wii_hide_mu_admin_per');
        ?>
" id="_wii_hide_mu_admin_per" <?php 
        checked(weaverii_getopt_checked('_wii_hide_mu_admin_per'));
        ?>
 />
		Hide Per Page/Post Options for MultiSite Admins</label> &diams;<br />
		   <label><input type="checkbox" name="<?php 
        weaverii_sapi_main_name('_wii_hide_editor_per');
        ?>
" id="_wii_hide_editor_per" <?php 
        checked(weaverii_getopt_checked('_wii_hide_editor_per'));
        ?>
 />
		Hide Per Page/Post Options for Editors</label> &diams;<br />
		   <label><input type="checkbox" name="<?php 
        weaverii_sapi_main_name('_wii_hide_author_per');
        ?>
" id="_wii_hide_author_per" <?php 
        checked(weaverii_getopt_checked('_wii_hide_author_per'));
        ?>
 />
		Hide Per Page/Post Options for Authors and Contributors</label> &diams;<br />

<?php 
    }
    ?>
<br />
 <h3 class="wvr-option-subheader">Subtheme Notes</h3>
 <p>This box may be used to keep notes and instructions about settings made for a custom subtheme. It
 will be saved in the both .w2t and .w2b settings files.</p>
 <textarea name="<?php 
    weaverii_sapi_main_name('wii_subtheme_notes');
    ?>
" rows=8 style="width: 95%"><?php 
    weaverii_esc_textarea(weaverii_getopt('wii_subtheme_notes'));
    ?>
</textarea>
<?php 
    weaverii_hide_advanced();
}
Exemplo n.º 12
0
<?php 
    if (weaverii_getopt('wii_single_nav_style') == 'prev_next') {
        ?>
					<div class="nav-previous"><?php 
        previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous', 'weaver-ii'), $cats);
        ?>
</div>
				<div class="nav-next"><?php 
        next_post_link('%link', __('Next <span class="meta-nav">&rarr;</span>', 'weaver-ii'), $cats);
        ?>
</div>
<?php 
    } else {
        ?>
					<div class="nav-previous"><?php 
        previous_post_link('%link', '<span class="meta-nav">' . _x('&larr;', 'Previous post link', 'weaver-ii') . '</span> %title', weaverii_getopt_checked('wii_single_nav_link_cats'));
        ?>
</div>
				<div class="nav-next"><?php 
        next_post_link('%link', '%title <span class="meta-nav">' . _x('&rarr;', 'Next post link', 'weaver-ii') . '</span>', $cats);
        ?>
</div>
<?php 
    }
    ?>
				</nav><!-- #nav-above -->


<?php 
    comments_template('', true);
    ?>
Exemplo n.º 13
0
    weaverii_inject_area('header');
    // inject header HTML
    if (!weaverii_getopt('_wii_hdr_widg_afterimg')) {
        get_sidebar('header');
    }
    weaveriip_header_insert();
    // add W-II Pro injection
    /* The Dynamic Headers shows headers on a per page basis - will also optionally add site link */
    if (function_exists('show_media_header')) {
        show_media_header();
    }
    // Plugin support: **Dynamic Headers**
    /* ======== HEADER IMAGE ======== */
    global $weaverii_header;
    if (!(weaverii_is_checked_page_opt('ttw-hide-header-image') && !is_search()) && !(weaverii_getopt_checked('wii_normal_hide_header_image') && !weaverii_use_mobile('mobile')) && !(weaverii_getopt_checked('wii_mobile_hide_header_image') && weaverii_use_mobile('mobile')) || weaverii_getopt_checked('wii_ipad_show_header_image') && weaverii_use_mobile('tablet')) {
        if (!weaverii_getopt_checked('wii_hide_header_image') && !(weaverii_getopt('wii_hide_header_image_front') && is_front_page())) {
            echo "\t\t<div id=\"header_image\">\n";
            if (weaverii_getopt('wii_link_site_image')) {
                ?>
                <a href="<?php 
                echo home_url('/');
                ?>
" title="<?php 
                echo esc_attr(get_bloginfo('name', 'display'));
                ?>
" rel="home">
<?php 
            }
            global $weaverii_header;
            /* Check if this is a post or page, if it has a thumbnail,  and if it's a big one */
            if (is_singular() && !(weaverii_use_mobile('mobile') && weaverii_getopt('wii_hide_mobile_fi')) && !weaverii_getopt('wii_hide_featured_header') && has_post_thumbnail($post->ID) && ($image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full')) && $image[1] >= $weaverii_header['width']) {
Exemplo n.º 14
0
function weaverii_mainopts_footer()
{
    $opts = array(array('type' => 'submit'), array('name' => 'Footer Options', 'id' => 'maintab4', 'type' => 'header', 'info' => 'Settings for the footer', 'help' => 'help.html#FooterOpt'), array('name' => 'Footer BG', 'id' => 'wii_footer_bgcolor', 'type' => 'ctext', 'info' => 'Background for the footer area.'), array('name' => 'Footer Text', 'id' => 'wii_footer_color', 'type' => 'ctext', 'info' => 'Footer Text Color (use Widget Areas->Widget Area Text if needed for widget text color)'), array('name' => '<small>Footer Font size</small>', 'id' => 'wii_footer_size_int', 'type' => 'val_percent', 'info' => 'Font size for footer. (Default: 150%)'), array('name' => 'Footer Border', 'id' => 'wii_footer_border_color', 'type' => 'ctext', 'info' => 'Color of the border above the footer area.'), array('name' => 'Footer Border', 'id' => 'wii_footer_border_int', 'type' => 'val_px', 'info' => 'Height of footer border (Default: 4px)'), array('name' => '<small>Use BG Gradient</small>', 'id' => 'gradient_footer', 'type' => '+checkbox', 'info' => 'Add Weaver Background Gradient (as set on General Appearance tab) to footer area (&#9679;Pro)'), array('name' => '<small>Hide Entire Footer</small>', 'id' => 'wii_hide_footer', 'type' => '=checkbox', 'info' => 'Hide the entire footer area.'), array('name' => '<small>Hide "final" area</small>', 'id' => 'wii_hide_final', 'type' => '=checkbox', 'info' => 'Hide the display (but NOT functionality) of script and plugin messages at the very bottom of your site.'), array('name' => 'Footer Width', 'type' => '=subheader', 'info' => 'Control width of footer area'), array('name' => 'Wide Footer Area BG', 'id' => 'wii_footer_last', 'type' => '+checkbox', 'info' => 'Make Footer Area Background full screen width
			(or width specified below). (&#9679;Pro)'), array('name' => '<small>Wide Footer Content</small>', 'id' => 'wii_footer_wide_content', 'type' => '+checkbox', 'info' => 'Also make Footer Content (Widget Areas, Footer Insert Code, Copyright/Powered By) use full screen width.
			If not checked, then content will be constrained to Theme Width. (&#9679;Pro)'), array('name' => '<small>Footer Width</small>', 'id' => 'wii_footer_width_int', 'type' => '+val_px', 'info' => 'For wide footer area, set the maximum width of the Footer Area. Can be less than theme width. If blank, full screen width used. (&#9679;Pro)'), array('name' => 'Note:', 'id' => 'wii_footer_note', 'type' => 'note', 'info' => 'The footer area supports up to 4 widget areas. These auto-adjust their widths.'));
    ?>
<p>
	Options affecting the <strong>Footer</strong> area, including <strong>Background</strong> color, <strong>Borders</strong>,
	and the <strong>Copyright</strong> message.
</p>
<?php 
    weaverii_form_show_options($opts);
    if (!weaverii_hide_advanced_optval('_wii_copyright')) {
        ?>
		   <span style="color:blue;"><b>Site Copyright</b></span><br/>
		<small>If you fill this in, the default copyright notice in the footer will be replaced with the text here. It will not
		automatically update from year to year.<br /> Use &amp;copy; to display &copy;. You can use other HTML as well.
		Use <span class="style4">&amp;nbsp;</span> to hide the copyright notice. &diams;</small>
		<br />

		<textarea name="<?php 
        weaverii_sapi_main_name('_wii_copyright');
        ?>
" rows=1 style="width:750px;"><?php 
        echo esc_textarea(weaverii_getopt('_wii_copyright'));
        ?>
</textarea>
<?php 
    }
    if (!weaverii_hide_advanced_optval('_wii_hide_poweredby')) {
        ?>
		<br>
		<label>Hide Powered By tag: <input type="checkbox" name="<?php 
        weaverii_sapi_main_name('_wii_hide_poweredby');
        ?>
" id="_wii_hide_poweredby" <?php 
        checked(weaverii_getopt_checked('_wii_hide_poweredby'));
        ?>
 /></label>
				<small>Check this to hide the "Proudly powered by" notice in the footer.</small>
		<br /><br />
		You can add other content to the Footer from the Advanced Options:HTML Insertion tab.
<?php 
    }
}
Exemplo n.º 15
0
function weaverii_bake_PIE()
{
    /**
    * Attach CSS3PIE behavior to elements
    * Add elements here that need PIE applied
    */
    $pie_loc = get_template_directory_uri() . '/js/PIE/PIE.php';
    ?>

<!--[if lte IE 8]>
<style type="text/css" media="screen">
<?php 
    if (!weaverii_getopt_checked('wii_hide_img_shadows') && !weaverii_getopt_checked('wii_hide_img_borders')) {
        ?>
#content img.size-thumbnail,#content img.size-medium,#content img.size-large,#content img.size-full,#content img.attachment-thumbnail,
#content img.wp-post-image,img.avatar,.format-chat img.format-chat-icon,
<?php 
    }
    ?>
#wrapper,#branding,#colophon,#content, #content .post,
#sidebar_primary,#sidebar_right,#sidebar_left,.sidebar_top,.sidebar_bottom,.sidebar_extra,
#first,#second,#third,#fourth,
#commentform input:focus,#commentform textarea:focus,#respond input#submit {
		behavior: url(<?php 
    echo $pie_loc;
    ?>
) !important; position:relative;
}
</style>
<![endif]-->
<?php 
}
Exemplo n.º 16
0
                }
            }
        }
        echo "</span>\n";
    }
    if (weaverii_getopt('wii_info_search')) {
        if (function_exists('weaverii_plus_search_form')) {
            echo '<span id="infobar_search" style="padding-right:4px !important;display:inline-block;padding-left:20px;">';
            echo weaverii_plus_search_form('', 120);
            echo '</span>';
        } else {
            echo '<span id="infobar_search">';
            get_search_form();
            echo '</span>';
        }
    }
    if (weaverii_getopt_checked('wii_info_addlogin')) {
        echo '<span id="infobar_login">';
        wp_loginout();
        echo '</span>';
    }
    if (($h1 = weaverii_getopt('wii_info_html3')) != '') {
        echo '<span id="infobar_html3">';
        echo do_shortcode($h1);
        echo "</span>\n";
    }
    ?>
	</span></div><div class="weaver-clear"></div><!-- #infobar -->
<?php 
}
// show info bar
Exemplo n.º 17
0
>
<?php 
if (weaverii_getopt('wii_infobar_location') == 'content') {
    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container">
<?php 
weaverii_get_sidebar_top('single');
?>
			<div id="content" role="main">

<?php 
weaverii_post_count_clear();
$cats = weaverii_getopt_checked('wii_single_nav_link_cats');
while (have_posts()) {
    the_post();
    ?>
				<nav id="nav-above" class="navigation">
				<h3 class="assistive-text"><?php 
    echo __('Post navigation', 'weaver-ii');
    ?>
</h3>
<?php 
    if (weaverii_getopt('wii_single_nav_style') == 'prev_next') {
        ?>
					<div class="nav-previous"><?php 
        previous_post_link('%link', __('<span class="meta-nav">&larr;</span> Previous', 'weaver-ii'), $cats);
        ?>
</div>
Exemplo n.º 18
0
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

<?php 
/* The footer widget area is triggered if any of the areas
 * have widgets. So let's check that first.
 *
 * If none of the sidebars have widgets, then let's bail early.
 */
if (!is_active_sidebar('first-footer-widget-area') && !is_active_sidebar('second-footer-widget-area') && !is_active_sidebar('third-footer-widget-area') && !is_active_sidebar('fourth-footer-widget-area')) {
    return;
}
// check for stacked modes
if (weaverii_use_mobile('mobile') && weaverii_getopt('_wii_mode_mobile') != 'weaver-mobile-smart-stacked' && !weaverii_getopt_checked('wii_mobile_show_footerwidgets')) {
    return;
}
// If we get this far, we have widgets. Let do this.
?>
	<div id="sidebar_wrap_footer" <?php 
weaverii_footer_sidebar_class();
?>
>
<?php 
weaverii_trace_sidebar(__FILE__);
if (is_rtl()) {
    ?>
	<?php 
    if (is_active_sidebar('fourth-footer-widget-area')) {
        ?>
Exemplo n.º 19
0
function weaverii_admin_mobileopts()
{
    $opts = array(array('name' => '#070Mobile Support Mode', 'id' => '_wii_mode_mobile', 'type' => 'select_id', 'info' => 'Select how Weaver II generates mobile views. (Default: Smart, hide sidebars) Important: see the help file!. &diams;', 'value' => array(array('val' => 'weaver-mobile-smart-nostack', 'desc' => 'Smart, hide sidebars'), array('val' => 'weaver-mobile-smart-stacked', 'desc' => 'Smart, stacked sidebars'), array('val' => 'weaver-mobile-resp-nostack', 'desc' => 'Responsive, hide sidebars'), array('val' => 'weaver-mobile-responsive', 'desc' => 'Responsive, stacked sidebars'))), array('name' => '#070<small>Disable Mobile Support</small>', 'id' => '_wii_mobile_disable', 'type' => '=checkbox', 'info' => 'Disable support for mobile devices. Your site will shrink the sizes of the sidebars and content
areas, but will otherwise not be responsive or stack sidebars. &diams;'), array('name' => '<small>Alternative Mobile Plugins:</small>', 'type' => '=note', 'info' => 'If you need to use an alternative Mobile Theme plugin, you <strong>must</strong> set one of the
responsive <em>Mobile Support Modes</em> above, in which case your site will continue to display responsively on desktop browsers and unrecognized mobile devices, while using the alternative plugin for recognized mobile devices.
You can also <em>Disable Mobile Support</em>, in which case you will not get fully responsive desktop support.'), array('name' => 'Mobile Simulator Options', 'type' => 'subheader', 'info' => 'Settings for the Mobile simulator. Available only when using "Smart" Mobile Modes.'), array('name' => '#070Simulate Mobile Device', 'id' => '_wii_sim_mobile', 'type' => 'select_id', 'info' => 'Simulate Mobile Device (&#9688;Smart Modes Only): Select type to see what your site will look like on mobile devices. The simulator works only when using a "Smart" mobile support mode. Otherwise, just shrink your browser for the Responsive modes (IE7/IE8 don\'t work to shrink). &diams;', 'value' => array(array('val' => 'none', 'desc' => 'Simulation Off'), array('val' => 'WeaverMobile', 'desc' => 'Smart Phone'), array('val' => 'WeaverMobileSmallTablet', 'desc' => 'Small Tablet (Fire)'), array('val' => 'WeaverMobileTablet', 'desc' => 'Large Tablet (iPad)'))), array('name' => '#070<small>... even if not admin</small>', 'id' => '_wii_sim_mobile_always', 'type' => '=checkbox', 'info' => 'Normally, the mobile simulation will be displayed only for admins. Checking this allows visitors to view the simulated mobile view. IMPORTANT! Be careful using this option - it is intended for development and demos only and normally should be disabled for productions sites. &diams;'), array('name' => 'Small Screen Devices', 'type' => '=subheader', 'info' => 'Settings for smartphones, other small screen devices, and small tablets.'), array('name' => '#070Show Full Blog Posts', 'id' => 'wii_mobile_full_posts', 'type' => '+checkbox', 'info' => 'Show full post text on blog pages - posts are excerpted by default on mobile devices (&#9688;Smart Modes only). (&#9679;Pro)'), array('name' => '#070Show Footer Widgets', 'id' => 'wii_mobile_show_footerwidgets', 'type' => '+checkbox', 'info' => 'Will show footer widget area on non-stacked Mobile Modes for mobile devices. (Footer widget is always displayed on stacked Mobile Modes.) (&#9679;Pro)'), array('name' => '#070Hide Top/Bottom Widget Areas', 'id' => 'wii_mobile_hide_topbottom_widgets', 'type' => '+checkbox', 'info' => 'Hide Top and Bottom Widget Areas in addition to Sidebars. (&#9679;Pro)'), array('name' => '#070No Auto-Underline Links', 'id' => 'wii_mobile_nounderline', 'type' => '+checkbox', 'info' => 'Underlined links are easier to use on most mobile devices. This will disable auto-underlined links. (&#9679;Pro)'), array('name' => '#070View Toggle', 'id' => 'wii_layout_view_toggle', 'type' => '+select_id', 'info' => 'How to display the Full View/Mobile View toggle button on mobile devices (&#9688;Smart Modes only). (&#9679;Pro)', 'value' => array(array('val' => 'both', 'desc' => 'Both top &amp; bottom'), array('val' => 'top', 'desc' => 'Top only'), array('val' => 'bottom', 'desc' => 'Bottom only'), array('val' => 'hide', 'desc' => 'Hide view toggle'))), array('name' => '#070<small>Alternate Full View HTML</small>', 'id' => '_wvr_mobile_fullmsg', 'type' => '+textarea', 'info' => 'HTML to replace standard Full View icon (include style if needed). (&#9679;Pro) &diams;'), array('name' => '#070<small>Alternate Mobile View HTML</small>', 'id' => '_wvr_mobile_mobilemsg', 'type' => '+textarea', 'info' => 'HTML to replace standard Mobile View icon. (&#9679;Pro) &diams;'), array('name' => '#070Mobile Home Page', 'id' => 'wii_mobile_home_int', 'type' => '+text', 'info' => 'Specify page ID for alternate Home page when site viewed from mobile device (&#9688;Smart Modes only). Recommended: check "Hide Page on the default Primary Menu" Per Page option for the page. (&#9679;Pro)'), array('name' => '#070Mobile Site Title', 'id' => '_wii_mobile_site_title', 'type' => '+textarea', 'info' => 'Specify alternate Site Title if needed (&#9688;Smart Modes only) (Use &amp;nbsp; to hide Site Title on mobile). (&#9679;Pro) &diams;'), array('name' => '#070<small>Mobile Site Title Color</small>', 'id' => 'wii_mobile_title_color', 'type' => '+color', 'info' => 'Alternate Color for Mobile Site Title (includes Responsive Modes). (&#9679;Pro)'), array('name' => '#070Mobile Header Image', 'id' => '_wii_mobile_header_url', 'type' => '+textmedia', 'info' => 'Specify alternate header image for phone/small tablet mobile view (&#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '#070<small>Mobile Header Image - Tablet</small>', 'id' => '_wii_mobile_tablet_header_url', 'type' => '+textmedia', 'info' => 'Specify alternate header image for tablet mobile view (will usually not be necessary, &#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '#070Custom CSS', 'id' => '_wii_mobile_css', 'type' => '+textarea', 'info' => 'Custom site wide CSS included only when viewed on Mobile Device. Note that ".weaver-mobile" wrapping class can also be used for this purpose in the &lt;HEAD&gt; Section Custom CSS option (&#9688;Smart Modes only). (&#9679;Pro) &diams;'), array('name' => '<span style="color:green;">More Mobile Options:</span>', 'type' => 'note', 'info' => 'More mobile options are available for specific areas: Header, Menus, Post Specifics, Shortcodes.'), array('type' => 'submit'), array('name' => 'Tablets', 'type' => '=subheader', 'info' => 'Settings for iPad and other tablets'), array('name' => '#070Keep Site Margins', 'id' => 'wii_mobile_keep_site_margins', 'type' => '+checkbox', 'info' => 'Retain standard site margins on tablets (&#9688;Smart Modes only) - will normally reduce outer margins by default. (&#9679;Pro)'), array('name' => '#070No Auto-Underline Links', 'id' => 'wii_mobile_tablet_nounderline', 'type' => '+checkbox', 'info' => 'Underlined links are easier to use on most tablet devices. This will disable auto-underlined links. (&#9688;Smart Modes only - Responsive Modes never auto-underline links on tablets.) (&#9679;Pro)'), array('name' => 'Alternate Mobile Theme', 'type' => '=subheader', 'info' => 'Use Alternate Mobile Theme when site viewed by Mobile Device.'), array('name' => '#070Use Alternate Mobile Theme', 'id' => '_wii_mobile_alt_theme', 'type' => '+checkbox', 'info' => 'Mobile Devices will use the Mobile Theme Settings saved in the "Save Settings to Mobile Settings"
option on the "Save/Restore" tab (&#9688;Smart Modes only). (The Alternate Mobile Theme can not be displayed with the Mobile Simulator.) (&#9679;Pro) &diams;'));
    ?>
<h3>Mobile Device Options <?php 
    weaverii_help_link('help.html#MobileHelp', 'Help for Mobile Options');
    ?>
</h3>
<p style="font-size:small">
	These are the main options that control how Weaver II displays your site on Mobile devices. Please note that there are
	other options that affect the mobile view located on other tabs (e.g., the Main Options : Header tab). Options that affect
	the mobile view are displayed with a <span style="color:#080;font-weight:bold;">Green Label</span>.
</p>
<?php 
    weaverii_sapi_submit();
    weaverii_check_cache_plugins();
    weaverii_form_show_options($opts);
    if (weaverii_getopt_checked('_wii_mobile_alt_theme')) {
        $temp = get_option(apply_filters('weaver_options', 'weaverii_settings_mobile'));
        if ($temp === false) {
            echo '<strong style="color:red;">Warning: No Mobile Theme Settings have been saved. You <strong>must</strong> use the "Save Settings to Mobile Settings" from the Save/Restore tab first!</strong><br />';
        }
    }
    ?>
<br />
<?php 
    if (!weaverii_hide_advanced_optval('_wii_apple_touch_icon_url')) {
        ?>
   <span style="color:blue;"><b>Apple Touch Icon for iOS</b></span><br />
	<p>When this site is viewed on an Apple iOS device such as an iPhone or iPad (&#9688;Smart Modes only), Apple iOS recognizes a special icon
	that can be displayed on the device's home screen. The recommend size for this icon is a <code>.png</code> file 57x57 px for basic display,
	or 114x114 px for enhanced display. &diams;</p>
	<p>
<?php 
        $icon = weaverii_getopt('_wii_apple_touch_icon_url');
        if ($icon != '') {
            echo '<img src="' . $icon . '" alt="apple touch" />&nbsp;';
        }
        ?>
<strong style="color:#070">Apple Touch Icon URL: </strong>
	<textarea name="<?php 
        weaverii_sapi_main_name('_wii_apple_touch_icon_url');
        ?>
" id="_wii_apple_touch_icon_url" rows=1 style="width: 350px"><?php 
        echo esc_textarea(weaverii_getopt('_wii_apple_touch_icon_url'));
        ?>
</textarea><?php 
        weaverii_media_lib_button('_wii_apple_touch_icon_url');
        ?>
&nbsp;&nbsp;Full path to Apple Touch Icon</p>
	<br />
<?php 
    }
    ?>

   <span style="color:blue;"><b>Caching Plugins for Weaver II</b></span><br />
	<p>Because of the advanced Smart Mobile View capabilities provided by Weaver II, many existing WordPress Caching plugins
	will <strong>not</strong> work correctly with Weaver II <em>when it is displayed in Smart Mobile Device mode</em>.
	(Using one of the Responsive mobile display modes will allow Weaver II to work correctly with any cache plugin.)
	For using the &#9688;Smart Modes mobile support, we have found that the <strong>Quick Cache</strong> and
	<strong>W3 Total Cache</strong> plugins do work with Weaver Smart Mobile mode when
	properly configured. Please see the Weaver II help file for instructions on
	using compatible cache plugin &rarr;. <?php 
    weaverii_help_link('help.html#quickcache', 'Cache Setting for Weaver II');
    ?>
	<p>

<?php 
    weaverii_sapi_submit();
}
Exemplo n.º 20
0
function weaverii_form_row_checkbox($value)
{
    ?>
	<tr>
	<th scope="row" align="right"><?php 
    weaverii_echo_name($value);
    ?>
:&nbsp;</th>
		<td>
		<input type="checkbox" name="<?php 
    weaverii_sapi_main_name($value['id']);
    ?>
" id="<?php 
    echo $value['id'];
    ?>
"
<?php 
    checked(weaverii_getopt_checked($value['id']));
    ?>
 >
		</td>
<?php 
    weaverii_form_row_info($value);
    ?>
	</tr>
<?php 
}
Exemplo n.º 21
0
<?php 
}
// end if !hide_footer
if (!weaverii_getopt_checked('wii_footer_last')) {
    // normally, #colophon inside #page
    echo "</div><!-- #wrapper -->\n";
}
weaverii_inject_area('postfooter');
// and this is the end options insertion
echo "<a href=\"#page-top\" id=\"page-bottom\">&uarr;</a>\n";
if (!weaverii_getopt_checked('_wii_no_final_div')) {
    if (weaverii_getopt_checked('wii_hide_final')) {
        echo '<div id="weaver-final" class="weaver-final-normal wvr-hide-bang">';
    } else {
        echo '<div id="weaver-final" class="weaver-final-normal">';
    }
}
wp_footer();
weaverii_masonry('invoke-code');
if (!weaverii_getopt_checked('_wii_no_final_div')) {
    echo '</div> <!-- #weaver-final -->' . "\n";
}
if (weaverii_dev_mode() && weaverii_getopt_checked('_weaverii_diag_timer')) {
    global $weaverii_timer;
    $end_time = microtime(true);
    echo '<span class="wvr-timer-msg">Page generated in: ' . round($end_time - $weaverii_timer, 3) . ' seconds.</span>' . "\n";
}
?>
</body>
</html>