Ejemplo n.º 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');
}
Ejemplo n.º 2
0
function weaverii_mainopts_layout()
{
    $opts = array(array('type' => 'submit'), array('name' => 'Layout', 'id' => 'mainopts_layout', 'type' => 'header', 'info' => 'Settings for site layout: theme width and margins, sidebar layout, bg color flow', 'help' => 'help.html#layout'), array('name' => 'Theme Width', 'id' => 'wii_theme_width_int', 'type' => 'val_px', 'info' => 'Change Theme Width. Standard size is 940px. Header Image width is automatically changed, too. Does not include wrapper padding. Widths less than 650px will give unexpected results on mobile devices. (Uses CSS "max-width" to set width, which gives "flexible width" shrinking for displays smaller than the width specified.)'), array('name' => '<small>Theme Width Fixed</small>', 'id' => 'wii_theme_width_fixed', 'type' => '=checkbox', 'info' => 'Force the theme width to be fixed (use CSS "width" instead of "max-width"). Using this option is not recommended. This setting will also "break" the Mobile View, so you should disable Mobile Support as well.'), array('name' => 'Theme Margins: Top/Bottom', 'id' => 'wii_site_margins', 'type' => 'text_tb', 'info' => 'Top and bottom margins around whole site. (Default: 20px)'), array('name' => 'Theme Margins: Left/Right', 'id' => 'wii_site_margins', 'type' => 'text_lr', 'info' => 'Left and right margins around whole site. (Default: 20px)'), array('name' => 'Wrapper Padding', 'id' => 'wii_wrapper_padding', 'type' => 'val_px', 'info' => 'Wrapper Padding - space between wrapper edges and header, content, sidebars, footer. (Default: 10px)'), array('name' => 'Sidebar Layout', 'type' => 'subheader', 'info' => 'Sidebar Layout for each type of page'), array('name' => weaverii_t_('Blog, Post, Page Default'), 'id' => 'wii_layout_default', 'type' => 'select_id', 'info' => weaverii_t_('Select the default theme layout for blog, single post, and pages.'), 'value' => array(array('val' => 'right-1-col', 'desc' => 'Single column sidebar on Right'), array('val' => 'left-1-col', 'desc' => 'Single column sidebar on Left'), array('val' => 'right-2-col', 'desc' => 'Double Cols, Right (top wide)'), array('val' => 'left-2-col', 'desc' => 'Double Cols, Left (top wide)'), array('val' => 'right-2-col-bottom', 'desc' => 'Double Cols, Right (bottom wide)'), array('val' => 'left-2-col-bottom', 'desc' => 'Double Cols, Left (bottom wide)'), array('val' => 'split', 'desc' => 'Split - sidebars on Right and Left'), array('val' => 'one-column', 'desc' => 'No sidebars, one column content'))), array('name' => weaverii_t_('Archive-like Default'), 'id' => 'wii_layout_default_archive', 'type' => 'select_id', 'info' => weaverii_t_('Select the default theme layout for all other pages - archives, search, etc.'), 'value' => array(array('val' => 'one-column', 'desc' => 'No sidebars, one column content'), array('val' => 'right-1-col', 'desc' => 'Single column sidebar on Right'), array('val' => 'left-1-col', 'desc' => 'Single column sidebar on Left'), array('val' => 'right-2-col', 'desc' => 'Double Cols, Right (top wide)'), array('val' => 'left-2-col', 'desc' => 'Double Cols, Left (top wide)'), array('val' => 'right-2-col-bottom', 'desc' => 'Double Cols, Right (bottom wide)'), array('val' => 'left-2-col-bottom', 'desc' => 'Double Cols, Left (bottom wide)'), array('val' => 'split', 'desc' => 'Split - sidebars on Right and Left'))), array('name' => weaverii_t_('<small>Page</small>'), 'id' => 'wii_layout_page', 'type' => 'select_layout', 'info' => weaverii_t_('Layout for normal Pages on your site.'), 'value' => ''), array('name' => weaverii_t_('<small>Blog</small>'), 'id' => 'wii_layout_blog', 'type' => 'select_layout', 'info' => weaverii_t_('Layout for main blog page. Includes "Page with Posts" Page templates.'), 'value' => ''), array('name' => weaverii_t_('<small>Post Single Page</small>'), 'id' => 'wii_layout_single', 'type' => 'select_layout', 'info' => weaverii_t_('Layout for Posts displayed as a single page.'), 'value' => ''), array('name' => weaverii_t_('<small>Archive</small>'), 'id' => 'wii_layout_archive', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for archive pages on your site. Used for all archive-like pages unless otherwise specified. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('<small>Category Archive</small>'), 'id' => 'wii_layout_category', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for category archive pages. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('<small>Tags Archive</small>'), 'id' => 'wii_layout_tag', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for tag archive pages. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('<small>Author Archive</small>'), 'id' => 'wii_layout_author', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for author archive pages. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('<small>Search Results, 404</small>'), 'id' => 'wii_layout_search', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for search results and 404 pages. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('<small>Attachments</small>'), 'id' => 'wii_layout_image', 'type' => '+select_layout', 'info' => weaverii_t_('Layout for attachment pages such as images. (&#9679;Pro)'), 'value' => ''), array('name' => weaverii_t_('Container & Sidebar Color Flow'), 'id' => 'wii_layout_image', 'type' => '=subheader', 'info' => weaverii_t_('Allow color to flow to bottom')), array('name' => 'Flow color to bottom', 'id' => 'wvr_flow_to_bottom', 'type' => '+checkbox', 'info' => 'If checked, Container and Sidebar Wrappers bg colors will flow to bottom of each area
(that is, equal heights). You must provide background colors for the Container and Sidebar Wrapper
properties below or the default bg color will be used. <strong style="color:red">IMPORTANT NOTICE!</strong>
Equal color height will not be maintained on pages with content that changes height dynamically (e.g., show/hide, widgets that resize). Flow color is not used or needed on mobile devices. (&#9679;Pro)'), array('name' => weaverii_t_('Container Wrapper Properties'), 'id' => 'wii_layout_image', 'type' => '=subheader', 'info' => weaverii_t_('Background, and Column Color Flow of Container wrapper')), array('name' => 'Background', 'id' => 'sb_container_bgcolor', 'type' => '+ctext', 'info' => 'Background color of content area wrapper - most useful when flowing color to bottom (&#9679;Pro)'), array('name' => 'Note:', 'type' => '=note', 'info' => 'Width of container automatically calculated based on sidebar widths.
CAUTION: Using CSS+ to add borders or other width changes to the container or sidebar wrappers can break sidebar layout.'), array('type' => '=submit'), array('name' => weaverii_t_('Sidebar Wrappers Properties'), 'id' => 'wii_layout_image', 'type' => '=subheader', 'info' => weaverii_t_('Widths, Background, and Column Color Flow of Sidebars')), array('name' => 'Default Width for Sidebars', 'id' => 'sb_default_width_int', 'type' => '=val_percent', 'info' => 'If specified, will override all default sidebar widths specified below. This is mostly used for compatibility with the previous version of Weaver.'), array('name' => 'Right Side, One Column', 'type' => '=subheader_alt', 'info' => 'Wrapper area for Single column sidebar on Right (Top+Upper+Lower Widget Areas)'), array('name' => 'Sidebar Width', 'id' => 'sb_right_1_col_width_int', 'type' => '+val_percent', 'info' => 'Width of sidebar (Default: 25%) (&#9679;Pro)'), array('name' => 'Background', 'id' => 'sb_right_1_col_bgcolor', 'type' => '+ctext', 'info' => 'Background color of sidebar wrapper (&#9679;Pro)'), array('name' => 'Left Side, One Column', 'type' => '=subheader_alt', 'info' => 'Wrapper area for Single column sidebar on Left (Top+Upper+Lower Widget Areas)'), array('name' => 'Sidebar Width', 'id' => 'sb_left_1_col_width_int', 'type' => '+val_percent', 'info' => 'Width of sidebar (Default: 25%) (&#9679;Pro)'), array('name' => 'Background', 'id' => 'sb_left_1_col_bgcolor', 'type' => '+ctext', 'info' => 'Background color of sidebar wrapper. (&#9679;Pro)'), array('name' => 'Right Side, Two Column', 'type' => '=subheader_alt', 'info' => 'Wrapper area for Double column sidebar on Right (Top above Left+Right Widget Areas)'), array('name' => 'Sidebar Width', 'id' => 'sb_right_2_col_width_int', 'type' => '+val_percent', 'info' => 'Width of sidebar (Primary/Top Widget Area is this width) (Default: 33%) (&#9679;Pro)'), array('name' => 'Background', 'id' => 'sb_right_2_col_bgcolor', 'type' => '+ctext', 'info' => 'Background color of sidebar wrapper (&#9679;Pro)'), array('name' => 'Left Side, Two Column', 'type' => '=subheader_alt', 'info' => 'Wrapper area for Double column sidebar on Left (Top above Left+Right Widget Areas)'), array('name' => 'Sidebar Width', 'id' => 'sb_left_2_col_width_int', 'type' => '+val_percent', 'info' => 'Width of sidebar (Primary/Top Widget Area is this width) (Default: 33%) (&#9679;Pro)'), array('name' => 'Background', 'id' => 'sb_left_2_col_bgcolor', 'type' => '+ctext', 'info' => 'Background color of sidebar wrapper (&#9679;Pro)'), array('name' => 'Two Column - Left/Right', 'type' => '=subheader_alt', 'info' => 'The Left and Right sidebars under the Primary (top) area in Double column sidebars.'), array('name' => 'Left Width', 'id' => 'sb_2_left_area_int', 'type' => '+val_percent', 'info' => 'Left Width as % of double sidebar area width (Right set automatically) (Default: 55%) (&#9679;Pro)'), array('name' => 'Split Sidebars', 'type' => '=subheader_alt', 'info' => 'Wrapper area for Split sidebars - Left side and Right side (Top above Right)'), array('name' => 'Sidebar Width - Left', 'id' => 'sb_split_left_width_int', 'type' => '+val_percent', 'info' => 'Width of Left Side sidebar (Default: 17%) (&#9679;Pro)'), array('name' => 'Sidebar Width - Right', 'id' => 'sb_split_right_width_int', 'type' => '+val_percent', 'info' => 'Width of Right Side sidebar (Default: 17%) (&#9679;Pro)'), array('name' => 'Background - Left', 'id' => 'sb_split_left_bgcolor', 'type' => '+ctext', 'info' => 'Background color of left split sidebar wrapper (&#9679;Pro)'), array('name' => 'Background - Right', 'id' => 'sb_split_right_bgcolor', 'type' => '+ctext', 'info' => 'Background color of right split sidebar wrapper (&#9679;Pro)'));
    ?>
<p>
	Settings affecting overall <strong>Site Layout</strong>. This includes <strong>Widths</strong>, <strong>Margins</strong>,
	<strong>Sidebar Layout</strong>, and <strong>Background</strong> colors of major layout regions.
</p>
<?php 
    weaverii_form_show_options($opts);
}
Ejemplo n.º 3
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();
}
Ejemplo n.º 4
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');
}