• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP weaverii_getopt函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中weaverii_getopt函数的典型用法代码示例。如果您正苦于以下问题:PHP weaverii_getopt函数的具体用法?PHP weaverii_getopt怎么用?PHP weaverii_getopt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了weaverii_getopt函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: weaveriip_search_shortcode

function weaveriip_search_shortcode($args = '')
{
    extract(shortcode_atts(array('width' => ''), $args));
    $out = '';
    $placeholder = weaverii_getopt('wii_search_msg');
    if ($placeholder == '') {
        $placeholder = 'Search ' . get_bloginfo('name');
    }
    $use_img = 'images/search_button.gif';
    if (weaverii_getopt('wii_go_button')) {
        $use_img = 'images/go_button.gif';
    }
    $imgurl = weaverii_relative_url($use_img);
    $use_img = weaverii_getopt('_wii_search_button_url');
    if (strlen($use_img) > 0) {
        $imgurl = $use_img;
    }
    $f = '<form role="search" method="get" class="searchform" action="' . home_url('/') . '" >
		<section class="search"><label class="screen-reader-text" for="s">' . __('Search for:', 'weaver-ii') . '</label>
		<input style="width:' . $width . 'px;" type="search" value="' . get_search_query() . '" name="s" id="s" placeholder="' . $placeholder . '" />
		<input class="searchformimg" type="image" src="' . apply_filters('weaverii_css', $imgurl) . '" onsubmit="submit-form();" alt="Search" />
		</section>
		</form>';
    $out .= apply_filters('get_search_form', $f);
    return $out;
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:26,代码来源:weaverii-pro-sc-search.php


示例2: weaverii_tx_the_footer_late

 function weaverii_tx_the_footer_late()
 {
     if (function_exists('weaverii_getopt')) {
         if (weaverii_getopt('use_fitvids')) {
             echo "<script type='text/javascript'>jQuery('#wrapper').fitVids();</script>\n";
         }
     }
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:8,代码来源:weaver-ii-theme-extras.php


示例3: weaverii_repeat_row

function weaverii_repeat_row($rid)
{
    if (!weaverii_init_base()) {
        echo '<tr style="display:none;">';
    } else {
        echo "\t<tr>\n";
    }
    ?>
	<th scope="row" align="right">&nbsp;</th>
	<td colspan="2" style="font-size:80%;">
		<input type="radio" name="<?php 
    weaverii_sapi_main_name($rid);
    ?>
"
				value="repeat" <?php 
    echo weaverii_getopt($rid) == 'repeat' ? 'checked' : '';
    ?>
 /> repeat &nbsp;
		<input type="radio" name="<?php 
    weaverii_sapi_main_name($rid);
    ?>
"
				value="repeat-x" <?php 
    echo weaverii_getopt($rid) == 'repeat-x' ? 'checked' : '';
    ?>
 /> repeat-x &nbsp;
		<input type="radio" name="<?php 
    weaverii_sapi_main_name($rid);
    ?>
"
				value="repeat-y" <?php 
    echo weaverii_getopt($rid) == 'repeat-y' ? 'checked' : '';
    ?>
 /> repeat-y &nbsp;
		<input type="radio" name="<?php 
    weaverii_sapi_main_name($rid);
    ?>
"
				value="no-repeat" <?php 
    echo weaverii_getopt($rid) == 'no-repeat' ? 'checked' : '';
    ?>
 /> no-repeat
	</td>
	</tr>
<?php 
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:46,代码来源:lib-admin-pro.php


示例4: weaverii_set_current_to_serialized_values

function weaverii_set_current_to_serialized_values($contents)
{
    global $weaverii_opts_cache;
    // need to mess with the cache
    if (substr($contents, 0, 10) == 'W2T-V01.00') {
        $type = 'theme';
    } else {
        if (substr($contents, 0, 10) == 'W2B-V01.00') {
            $type = 'backup';
        } else {
            return weaverii_f_fail(weaverii_t_("Wrong theme file format version"));
        }
    }
    /* simple check for one of ours */
    $restore = array();
    $restore = unserialize(substr($contents, 10));
    if (!$restore) {
        return weaverii_f_fail("Unserialize failed");
    }
    $version = weaverii_getopt('wii_version_id');
    // get something to force load
    if ($type == 'theme') {
        // need to clear some settings
        // first, pickup the per-site settings that aren't theme related...
        $new_cache = array();
        foreach ($weaverii_opts_cache as $key => $val) {
            if ($key[0] == '_') {
                // these are non-theme specific settings
                $new_cache[$key] = $val;
            }
            // keep
        }
        $opts = $restore['weaverii_base'];
        // fetch base opts
        weaverii_delete_all_options();
        foreach ($opts as $key => $val) {
            if ($key[0] != '_') {
                weaverii_setopt($key, $val, false);
            }
            // overwrite with saved theme values
        }
        foreach ($new_cache as $key => $val) {
            // set the values we need to keep
            weaverii_setopt($key, $val, false);
        }
    } else {
        if ($type == 'backup') {
            weaverii_delete_all_options();
            $opts = $restore['weaverii_base'];
            // fetch base opts
            foreach ($opts as $key => $val) {
                weaverii_setopt($key, $val, false);
                // overwrite with saved values
            }
            global $weaverii_pro_opts;
            $weaverii_pro_opts = false;
            $weaverii_pro_opts = $restore['weaverii_pro'];
            weaverii_wpupdate_option('weaverii_pro', $weaverii_pro_opts, 'backup');
        }
    }
    weaverii_setopt('wii_version_id', $version);
    // keep version, force save of db
    weaverii_setopt('wii_last_option', 'WeaverII');
    weaverii_save_opts('loading theme');
    // OK, now we've saved the options, update them in the DB
    return true;
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:67,代码来源:lib-admin.php


示例5: weaverii_comment_form_reply_filter

function weaverii_comment_form_reply_filter($defaults)
{
    $replace = weaverii_getopt('_wii_comment_reply_msg');
    if ($replace != '') {
        $new = $defaults;
        $new['title_reply'] = $replace;
        $new['title_reply_to'] = $replace;
        return $new;
    }
    return $defaults;
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:11,代码来源:functions.php


示例6: weaveriip_add_shortcode

function weaveriip_add_shortcode($p1, $p2)
{
    if (!weaverii_getopt('_wii_disable_shortcodes') && !function_exists('aspen_swplus_installed')) {
        add_shortcode($p1, $p2);
    }
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:6,代码来源:lib-runtime.php


示例7: weaverii_convert_old_weaver


//.........这里部分代码省略.........
                            case 'Two, unequal widths, left side':
                                //Two, unequal widths, left side
                                weaverii_setopt('wii_layout_default', 'left-2-col', false);
                                $need_widget_notice = true;
                                break;
                            case 'None':
                                //None
                                weaverii_setopt('wii_layout_default', 'one-column', false);
                                break;
                            case 'Default - One, right side':
                                //Default - One, right side
                            //Default - One, right side
                            default:
                                weaverii_setopt('wii_layout_default', 'right-1-col', false);
                                break;
                        }
                        break;
                    }
                    $need_widget_notice = true;
                    break;
                case '*':
                    // special handling
                    $special++;
                    $converted++;
                    $new_name = substr($new_name, 1);
                    switch ($new_name) {
                        case 'wii_add_css':
                        case 'wii_add_theme_css':
                            $manual++;
                            echo "<span class=\"wvr_red\">CSS Rules detected.</span> The following <em>{$info}</em>\nhave been added to Weaver II's <strong>Custom CSS Rules</strong>, but may require manual changes:\n<br /><span style=\"padding-left:20px;\"><code>" . esc_textarea($val) . "</code></span><br />\n";
                            $fixed = str_replace('<style>', '', $val);
                            $fixed = str_replace('<style type="text/css">', '', $fixed);
                            $fixed = str_replace('</style>', '', $fixed);
                            $prev = weaverii_getopt('wii_add_css');
                            if ($prev != '') {
                                $prev = $prev . "\n" . $fixed;
                            } else {
                                $prev = $fixed;
                            }
                            weaverii_setopt('wii_add_css', $prev, false);
                            if (strstr($fixed, '<style') !== false) {
                                echo "<span class=\"wvr_red\">Warning - unmatched &lt;style&gt; found.</span> You will have to manually\n\t\t\t\t    convert the CSS in \"Custom CSS Rules\".\n";
                                $manual++;
                            }
                            break;
                        case 'wii_content_font':
                            // Content Font
                        // Content Font
                        case 'wii_title_font:':
                            //Titles Font
                            echo "<span class=\"wvr_red\">Font settings detected.</span> You may have to manually adjust font selections.<br />\n";
                            $manual++;
                            break;
                        case 'wii_contentlist_bullet':
                            // Content List Bullet
                        // Content List Bullet
                        case 'wii_list_bullet':
                            // Widget List Bullet
                            if ($val != 'circle' && $val != 'disc' && $val != 'square') {
                                $oldval = $val;
                                $val = 'disc';
                                if ($oldval != 'default') {
                                    echo "<span class=\"wvr_red\">Additional manual conversion may be required for list bullet:</span> <em>{$info}:\n<br /><span style=\"padding-left:20px;\">" . esc_textarea($oldval) . "</span><br />\n";
                                }
                                $manual++;
                            }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:67,代码来源:weaver-ii-convert-old-weaver.php


示例8: wp_loginout

            $add_div = false;
            if ($add_enddiv) {
                echo '<br class="mad-br" />';
            }
            wp_loginout();
            $add_enddiv = true;
        }
        if ($add_enddiv) {
            echo '</div>';
        }
        ?>
		</nav></div><!-- #access --></div> <!-- #wrap-bottom-menu -->
<?php 
    } else {
        /* ttw - move menu */
        if ($show_menu && has_nav_menu($secondary_name) && (!weaverii_use_mobile('phone') || weaverii_use_mobile('phone') && !weaverii_getopt('wii_mobile_hide_secondary_menu'))) {
            echo '<div id="wrap-bottom-menu">' . "\n";
            weaverii_mobile_menu_bar('mobile-bottom-nav', 'nav-bottom-menu', 'no-home');
            ?>
            <div id="nav-bottom-menu"<?php 
            echo $nav_class;
            ?>
><nav id="access2" class="menu_bar" role="navigation">
<?php 
            if (weaverii_use_sf()) {
                wp_nav_menu(array('theme_location' => $secondary_name, 'fallback_cb' => '', 'menu_class' => 'sf-menu', 'container_class' => 'menu'));
            } else {
                wp_nav_menu(array('theme_location' => $secondary_name, 'fallback_cb' => '', 'container_class' => 'menu'));
            }
            ?>
            </nav></div><!-- #access2 --></div> <!-- #wrap-bottom-menu -->
开发者ID:mystified7545,项目名称:MyBlog,代码行数:31,代码来源:nav-bottom.php


示例9: weaverii_post_count_clear

?>
			<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>
				<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', $cats);
        ?>
开发者ID:TxSGS,项目名称:wordpress-scripts,代码行数:31,代码来源:single-speaker.php


示例10: weaverii_fix_IE

function weaverii_fix_IE()
{
    /*  Design note: This conditional IE support code is injected directly into the header. This is consistent
    		with the fact that the main custom CSS is also normally injected into the header, and the fact that it
    		needs to include the PIE script using 'get_template_directory_uri' which will not be the same for all
    		installations and all versions of Weaver II.
    	*/
    $add_PIE = !weaverii_getopt('_wii_hide_PIE');
    echo "\n";
    if ($add_PIE) {
        weaverii_bake_PIE();
    }
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:13,代码来源:wphead.php


示例11: weaverii_get_header_action

function weaverii_get_header_action()
{
    $code = weaverii_getopt('_phpactions');
    if ($code) {
        eval($code);
    }
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:7,代码来源:lib-runtime-pro.php


示例12: weaverii_perform_check

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>';
//.........这里部分代码省略.........
开发者ID:mystified7545,项目名称:MyBlog,代码行数:101,代码来源:check-theme.php


示例13: weaveriip_posted_on_code

function weaveriip_posted_on_code($date, $author)
{
    if (weaverii_getopt('wii_post_info_hide_top') || weaverii_is_checked_page_opt('wvp_perpost_info_hide_top')) {
        return '';
    }
    $leftm = '8';
    $on = "\t<div class=\"entry-meta\" style=\"margin-botom:-5px;margin-top:-10px;\"><div " . weaverii_meta_icons_class() . ">\n\t\t";
    $on .= '<span class="sep">Posted on </span><time class="entry-date" >' . $date . '<span class="by-author"> <span class="sep"> by </span> <span class="author vcard">' . $author . '</span></span>';
    $on .= "\n    </div></div><!-- .entry-meta -->\n";
    return $on;
}
开发者ID:uwmadisoncals,项目名称:weaver2pro,代码行数:11,代码来源:weaverii-pro-sc-feed.php


示例14: weaverii_activate_subtheme

function weaverii_activate_subtheme($theme)
{
    /* load settings for specified theme */
    global $weaverii_opts_cache;
    /* build the filename - theme files stored in /wp-content/themes/weaverii/subthemes/
    
    	Important: the following code assumes that any of the pre-defined theme files won't have
    	and end-of-line character in them, which should be true. A user could muck about with the
    	files, and possibly break this assumption. This assumption is necessary because the WP
    	theme rules allow file(), but not file_get_contents(). Other than that, the following code
    	is really the same as the 'theme' section of weaverii_upload_theme() in the pro library
    	*/
    $filename = get_template_directory() . '/subthemes/' . $theme . '.w2t';
    $contents = weaverii_f_get_contents($filename);
    // use either real (pro) or file (standard) version of function
    if (empty($contents)) {
        return false;
    }
    if (substr($contents, 0, 10) != 'W2T-V01.00') {
        return false;
    }
    $restore = array();
    $restore = unserialize(substr($contents, 10));
    if (!$restore) {
        return false;
    }
    $version = weaverii_getopt('wii_version_id');
    // get something to force load
    // need to clear some settings
    // first, pickup the per-site settings that aren't theme related...
    $new_cache = array();
    foreach ($weaverii_opts_cache as $key => $val) {
        if ($key[0] == '_') {
            // these are non-theme specific settings
            $new_cache[$key] = $weaverii_opts_cache[$key];
            // clear
        }
    }
    $opts = $restore['weaverii_base'];
    // fetch base opts
    weaverii_delete_all_options();
    foreach ($new_cache as $key => $val) {
        // set the values we need to keep
        weaverii_setopt($key, $new_cache[$key], false);
    }
    foreach ($opts as $key => $val) {
        if ($key[0] == '_') {
            continue;
        }
        // should be here
        weaverii_setopt($key, $val, false);
        // overwrite with saved theme values
    }
    weaverii_setopt('wii_version_id', WEAVERII_VERSION, false);
    weaverii_setopt('wii_theme_filename', $theme, false);
    weaverii_setopt('wii_style_version', 1, false);
    weaverii_setopt('wii_last_option', 'WeaverII');
    // assume always ok if from file
    weaverii_save_opts('set subtheme');
    // OK, now we've saved the options, update them in the DB
    return true;
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:62,代码来源:admin-subthemes.php


示例15: weaverii_sc_info

function weaverii_sc_info()
{
    global $current_user;
    $out = '<strong>' . WEAVERII_THEMEVERSION . ' Info</strong><hr />';
    get_currentuserinfo();
    if (isset($current_user->display_name)) {
        $out .= '<em>User:</em> ' . $current_user->display_name . '<br />';
    }
    $out .= '&nbsp;&nbsp;' . wp_register('', '<br />', false);
    $out .= '&nbsp;&nbsp;' . wp_loginout('', false) . '<br />';
    global $weaverii_mobile;
    $device = $weaverii_mobile;
    $out .= '<em>Browser:</em> ' . ($device ? $device['browser'] . '/' . $device['type'] . '/' . $device['os'] : 'Non-Mobile Browser') . '<br />';
    $agent = 'Not Available';
    if (isset($_SERVER["HTTP_USER_AGENT"])) {
        $agent = $_SERVER['HTTP_USER_AGENT'];
    }
    $out .= '<em>User Agent</em>: <small>' . $agent . '</small>';
    $out .= '<div id="example"></div>
<script type="text/javascript">
var txt = "";
var myWidth;
if( typeof( window.innerWidth ) == "number" ) {
//Non-IE
myWidth = window.innerWidth;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in "standards compliant mode"
myWidth = document.documentElement.clientWidth;
} else if ( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
}
txt+= "<em>Browser Width: </em>" + myWidth + " px<br>";
document.getElementById("example").innerHTML=txt;
</script>';
    if (!weaverii_use_inline_css(weaverii_get_css_filename())) {
        $out .= '<em>Using CSS file:</em> ' . weaverii_get_css_filename();
    } else {
        $out .= '<em>Using Inline CSS</em>';
    }
    $out .= '<br /><em>Mobile Mode: </em> ' . weaverii_getopt('_wii_mode_mobile');
    $out .= '<br /><em>Feed title:</em> ' . get_bloginfo_rss('name') . get_wp_title_rss();
    $out .= '<br /><em>You are using</em> WordPress ' . $GLOBALS['wp_version'] . '<br /><em>PHP Version:</em> ' . phpversion();
    $out .= '<br /><em>Memory:</em> ' . round(memory_get_usage() / 1024 / 1024, 2) . 'M of ' . (int) ini_get('memory_limit') . 'M <hr />';
    return $out;
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:47,代码来源:shortcodes.php


示例16: get_template_part

    get_template_part('infobar');
}
weaverii_inject_area('precontent');
?>
		<div id="container" class="cf index-posts">
<?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 {
开发者ID:mystified7545,项目名称:MyBlog,代码行数:31,代码来源:index.php


示例17: weaverii_trace_template

 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_trace_template(__FILE__);
$placeholder = weaverii_getopt('wii_search_msg');
if ($placeholder == '') {
    $placeholder = __('Search Site', 'weaver-ii');
}
$use_img = 'images/search_button.gif';
if (weaverii_getopt('wii_go_button')) {
    $use_img = 'images/go_button.gif';
}
$imgurl = weaverii_relative_url($use_img);
$use_img = weaverii_getopt('_wii_search_button_url');
if (strlen($use_img) > 0) {
    $imgurl = $use_img;
}
$f = '<form role="search" style="background:transparent;" method="get" class="searchform" action="' . home_url('/') . '" >
	<label class="screen-reader-text" for="s">' . __('Search for:', 'weaver-ii') . '</label>
	<input type="search" value="' . get_search_query() . '" name="s" id="s" placeholder="' . $placeholder . '" />
	<input class="searchformimg" type="image" src="' . apply_filters('weaverii_css', $imgurl) . '" alt="Search" />
	</form>';
$ff = apply_filters('get_search_form', $f);
if ($echo) {
    echo $ff;
    return $ff;
} else {
    return $ff;
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:31,代码来源:searchform.php


示例18: weaverii_adv_seo_opts

function weaverii_adv_seo_opts()
{
    ?>
		<a name="siteopts" id="siteopts"></a>
		<div class="wvr-option-header">SEO
		<?php 
    weaverii_help_link('help.html#SEO', 'Help on SEO');
    ?>
</div>
		<p>Weaver II has been designed to follow the latest SEO (Search Engine Optimization) guidelines.
		Each non-home page will use the recommended "Page Title | Site Title" format, and the site is formatted
		using the appropriate HTML5 tags for optimal SEO performance.</p>
		<p>If you want optimal SEO for your site, we recommend using an SEO plugin such as
		<em>WordPress SEO by Yoast.</em>
		<hr />

		<!-- ======== -->
		<div class="wvr-option-subheader">SEO/Meta Tags (legacy support)</div><br/>
		<p>Previous versions of Weaver II supported two &lt;meta&gt; tags: "description" and "keywords". This is no
		longer supported. If you want these values in your site, you can use the <em>Advanced Options : &lt;HEAD&gt;
		Section</em> option to add them.</p>

<input name="<?php 
    weaverii_sapi_main_name('_wii_metainfo');
    ?>
" id="<?php 
    echo '_wii_metainfo';
    ?>
" type="hidden" value="<?php 
    echo esc_textarea(addslashes(weaverii_getopt('_wii_metainfo')));
    ?>
" />

<?php 
    $oldmeta = weaverii_getopt('_wii_metainfo');
    if ($oldmeta != '') {
        ?>
		<p>You have a value for this meta information saved in your settings - probably from a previous
		version of Weaver II. If you had set these to something other than the default, you might want
		to copy/paste these into the <em>Advanced Options : &lt;HEAD&gt; Section</em> option. Otherwise,
		you should consider using an SEO plugin.</p>

		<p style="background:#ddd;">
			<?php 
        echo esc_textarea($oldmeta);
        ?>
		</p>
<?php 
    }
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:50,代码来源:admin-advancedopts.php


示例19: weaverii_mainopts_widgets

function weaverii_mainopts_widgets()
{
    $opts = array(array('type' => 'submit'), array('name' => 'Widget Areas', 'id' => 'maintab5', 'type' => 'header', 'info' => 'Settings affecting widget areas', 'help' => 'help.html#WidgetAreas'), array('name' => 'Individual Widgets', 'id' => 'wii_widget_widget', 'type' => 'widget_area', 'info' => 'Properties for individual widgets (e.g., Text, Recent Posts, etc.)'), array('name' => 'Widget Padding', 'id' => 'wii_widget_widget_padding_int', 'type' => '=val_px', 'info' => 'Padding used around all sides of individual widgets. Not usually needed unless widgets have bg color.'), array('name' => 'Widget Title', 'id' => 'wii_widget_title_color', 'type' => 'ctext', 'info' => 'Color for Widget titles and labels.'), array('name' => 'Bar under Widget Titles', 'id' => 'wii_widget_header_underline_int', 'type' => 'val_px', 'info' => 'Enter size in px if you want a bar under Widget Titles. Leave blank or 0 for no bar.'), array('name' => 'Widget Area Text', 'id' => 'wii_widget_color', 'type' => 'ctext', 'info' => 'Color for widget area content (text color).'), array('name' => '<small>Widget Area Font size</small>', 'id' => 'wii_widget_size_int', 'type' => 'val_percent', 'info' => 'Font size for widgets. (Default: 120%)'), array('name' => 'Widget List Bullet', 'id' => 'wii_widgetlist_bullet', 'type' => '=select_id', 'info' => 'Bullet used for Unorderd Lists in Widget areas', 'value' => array(array('val' => 'disc', 'desc' => 'Filled Disc (default)'), array('val' => 'circle', 'desc' => 'Circle'), array('val' => 'square', 'desc' => 'Square'), array('val' => 'none', 'desc' => 'None'), array('val' => 'custom', 'desc' => 'Custom bullet'))), array('name' => '<small>Custom Bullet URL</small>', 'id' => 'wii_widgetlist_bullet_custom_url', 'type' => '+textmedia', 'info' => 'URL for "Custom" bullet image (&#9679;Pro)'), array('type' => 'submit'), array('name' => 'Sidebar Widths:', 'type' => 'note', 'info' => 'Widths of Sidebars set under Layout tab.'), array('name' => 'Primary Widget Area', 'id' => 'wii_widget_primary', 'type' => 'widget_area', 'info' => 'Properties for the Primary Sidebar Widget Area. (Applies to Mobile Widget area also.)'), array('name' => 'Upper/Right Widget Area', 'id' => 'wii_widget_right', 'type' => 'widget_area', 'info' => 'Properties for the Upper/Right Sidebar Widget Area.'), array('name' => 'Lower/Left Widget Area', 'id' => 'wii_widget_left', 'type' => 'widget_area', 'info' => 'Properties for the Lower/Left Sidebar Widget Area.'), array('name' => 'Primary, Right, Left Margins', 'type' => 'subheader_alt', 'info' => 'Left and Right margins for Primary, Upper/Right, and Lower/Left Widget areas'), array('name' => 'Left/Right Margins', 'id' => 'wii_sidbar_widget_margins', 'type' => 'text_lr', 'info' => 'Left and right margins for the sidebar widget areas.'), array('name' => 'Top Widget Areas', 'id' => 'wii_widget_top', 'type' => 'widget_area', 'info' => 'Properties for all Top Widget areas (Sitewide, Pages, Blog, Archive).'), array('name' => 'Left/Right indent', 'id' => 'wii_widget_top_indent_int', 'type' => 'val_percent', 'info' => 'Top Widget Areas: Set the left and right indents - centers widget area in content area'), array('name' => 'Bottom Widget Areas', 'id' => 'wii_widget_bottom', 'type' => 'widget_area', 'info' => 'Properties for all Bottom Widget areas (Sitewide, Pages, Blog, Archive).'), array('name' => 'Left/Right indent', 'id' => 'wii_widget_bottom_indent_int', 'type' => 'val_percent', 'info' => 'Bottom Widget Areas: Set the left and right indents - centers widget area in content area'), array('name' => 'Footer Widget Areas', 'id' => 'wii_widget_footer', 'type' => 'widget_area', 'info' => 'Properties for all Footer Widget areas.'), array('name' => 'All Widget Areas', 'type' => 'subheader_alt', 'info' => 'Properties that apply to all widget areas.'), array('name' => 'Widget Area Padding', 'id' => 'wii_widget_padding_int', 'type' => 'val_px', 'info' => 'Padding used around all sides of widget areas.'));
    ?>
<p>
Options affecting <strong>Widget Areas</strong>. This includes properties of <strong>Widgets</strong>, as well as
properties of various <strong>Widget Areas</strong>. This is also where you can define new
<strong>Per Page Widget Areas</strong>.
</p>
<?php 
    weaverii_form_show_options($opts);
    ?>
<span style="color:blue;"><b>Define Per Page Widget Areas</b></span>
<?php 
    weaverii_help_link('help.html#PPWidgets', weaverii_t_('Help for Per Page Widget Areas'));
    ?>
	<br/>
	<small>You may define extra widget areas that can then be used in the <em>Per Page</em> settings. Enter
	a list of one or more widget area names separated by commas. Your names should include only letters, numbers, or underscores -
	no spaces or other special characters. The widgets areas will then appear on the Appearance->Widgets menus. They can be included
	on individual pages by adding the name you define here to the "Weaver II Options For This Page" box on the Edit Page screen.</small>
	<br />
	<textarea name="<?php 
    weaverii_sapi_main_name('wii_perpagewidgets');
    ?>
" rows=1 style="width: 95%"><?php 
    echo esc_textarea(weaverii_getopt('wii_perpagewidgets'));
    ?>
</textarea>
	<br />
	<small>These extra widget areas are also used by the Weaver II Pro Widget Area shortcode.</small>
<?php 
    ?>

<p style="color:green;"><strong>Note: Specify the layout of sidebar widget areas on the Layout tab.
</strong></p>
<?php 
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:38,代码来源:admin-mainopts.php


示例20: weaverii_pro_saverestore


//.........这里部分代码省略.........
    <?php 
    weaverii_nonce_field('filesavetheme');
    ?>
 </form><br />

<?php 
    if (weaverii_allow_multisite()) {
        ?>


    <div class="wvr-option-subheader">Restore Saved Theme/Backup from file (&#9679;Pro)</div><br />
    You can restore a previously saved theme (.w2t) or backup (.w2b) file directly from your WordPress
    Site's <em><?php 
        echo $weaverii_theme_dir;
        ?>
</em> directory, or from a file saved on your computer.
    Note: after you restore a saved theme, it will be loaded into the current settings. A <em>theme</em> restore will
    replace only settings that are not site-specific. A <em>backup</em> file will replace all current settings.
    If you've uplo 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP weaverii_inject_area函数代码示例发布时间:2022-05-23
下一篇:
PHP wddx_serialize_value函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap