function section_template() { ?> <div class="breadcrumb subtext"> <?php if(function_exists('bcn_display')){ if(pagelines_option('breadcrumb_no_link')){ //Make new breadcrumb object $breadcrumb_trail = new bcn_breadcrumb_trail; //Setup options here if needed //Fill the breadcrumb trail $breadcrumb_trail->fill(); //Display the trail, but don't link the breadcrumbs bcn_display(false,false); }else{ bcn_display(); } }else{ echo '<p style=text-align:center;>'; _e('Please activate the <strong>Breadcrumb-NavXT</strong> plug-in to use the section.', 'pagelines'); echo '</p>'; } ?> </div> <?php }
function section_template() { ?> <div id="logo"> <?php if(pagelines_option('footer_logo') && VPRO):?> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" /> </a> <?php else:?> <h1 class="site-title"> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <?php bloginfo('name');?> </a> </h1> <?php endif;?> </div> <?php function nav_fallback_simple() {?> <ul id="simple_footer"> <?php wp_list_pages( 'title_li=&sort_column=menu_order&depth=1'); ?> </ul><?php } if(function_exists('wp_nav_menu')): wp_nav_menu( array('theme_location'=>'footer_nav_simple','depth' => 1, 'fallback_cb'=>'nav_fallback_simple') ); else: nav_fallback(); endif;?> <span class="terms"> <?php e_pagelines('footer_terms');?> </span> <?php }
function get_option_array($load_unavailable = false) { $default_options = array('global_options' => array('pagelines_custom_logo' => array('default' => THEME_IMAGES . '/logo-platformpro.png', 'default_free' => THEME_IMAGES . '/logo-platform.png', 'type' => 'image_upload', 'imagepreview' => '270', 'inputlabel' => 'Upload custom logo', 'title' => 'Custom Header Image', 'shortexp' => 'Input Full URL to your custom header or logo image.', 'exp' => 'Optional way to replace "heading" and "description" text for your website ' . 'with an image.'), 'pagelines_favicon' => array('default' => CORE_IMAGES . "/favicon-pagelines.ico", 'type' => 'image_upload', 'imagepreview' => '16', 'title' => 'Favicon Image', 'shortexp' => 'Input Full URL to favicon image ("favicon.ico" image file)', 'exp' => 'Enter the full URL location of your custom "favicon" which is visible in ' . 'browser favorites and tabs.<br/> (<strong>Must be .png or .ico file - 16px by 16px</strong> ).'), 'twittername' => array('default' => '', 'type' => 'text', 'inputlabel' => 'Your Twitter Username', 'title' => 'Twitter Integration', 'shortexp' => 'Places your Twitter feed in your site (<em>"Twitter for WordPress" plugin required</em>)', 'exp' => 'This places your Twitter feed on the site. Leave blank if you want to hide or not use.<br/><br/><strong>Note: "Twitter for WordPress" plugin is required for this to work.</strong>'), 'site_design_mode' => array('version' => 'pro', 'default' => 'full_width', 'type' => 'select', 'selectvalues' => array('full_width' => array("name" => "Full-Width Design Framework"), 'fixed_width' => array("name" => "Fixed-Width Design Framework", "version" => "pro")), 'inputlabel' => 'Site Design Mode', 'title' => 'Site Design Mode', 'shortexp' => 'Choose between full width HTML or fixed width HTML', 'exp' => 'There are two css design modes available for ' . THEMENAME . '.<br/><br/><strong>Full-Width Mode</strong> Full width design mode allows you to have aspects of your site that are the full-width of your screen; while others are the width of the content area.<br/><br/><strong>Fixed-Width Mode</strong> Fixed width design mode creates a fixed with "page" that can be used as the area for your design. You can set a background to the page; and the content will have a seperate "fixed-width" background area (i.e. the width of the content).'), 'pagelines_touchicon' => array('version' => 'pro', 'default' => '', 'type' => 'image_upload', 'imagepreview' => '60', 'title' => 'Apple Touch Image', 'shortexp' => 'Input Full URL to Apple touch image (.jpg, .gif, .png)', 'exp' => 'Enter the full URL location of your Apple Touch Icon which is visible when ' . 'your users set your site as a <strong>webclip</strong> in Apple Iphone and ' . 'Touch Products. It is an image approximately 57px by 57px in either .jpg, ' . '.gif or .png format.'), 'pagebg' => array('default' => '#FFFFFF', 'type' => 'colorpicker', 'selectors' => 'body #page', 'css_prop' => 'background', 'inputlabel' => 'Hex Code', 'title' => 'Page Content Background Color', 'shortexp' => 'Change the background color of the page content area', 'exp' => 'Use this option to quickly change the color of the page content background.<br/><br/><strong>Note:</strong> For advanced background effects, we recommend using custom CSS.'), 'bodybg' => array('default' => '', 'type' => 'colorpicker', 'css_prop' => 'background', 'selectors' => 'body, body.fixed_width', 'inputlabel' => 'Hex Code', 'title' => 'Body Background Color', 'shortexp' => 'Change the color of the body', 'exp' => 'Use this option to quickly change the color of the page body, in full-width mode; this is only apparent in the footer. In fixed-width mode this includes the background.<br/><br/> <strong>Note:</strong> For advanced background effects, we recommend using custom CSS.')), 'template_setup' => array('template_setup' => array('type' => 'options_info', 'layout' => 'full', 'exp' => '<p>"Template Setup" is where you set up the various templates for your site (e.g. sidebars, page-templates, etc..).</p>' . '<p>Your templates structure can be configured using theme "sections" which are drag-and-drop bits of HTML that can moved around in your theme.</p>' . '<p><strong>To Use:</strong> Select the template you would like to edit in the drop down menu. Once you have your template selected, you will see a list of its current displayed sections on the left of the "drag and drop" area, and sections that are available to use on the right.<br />' . 'To activate sections in your template, just drag the section you want to use to the "Displayed Page Content Area" column. To remove a section, just drag the section back to the "Available/Disabled" column on the right.</p>'), 'templates' => array('default' => '', 'type' => 'templates', 'layout' => 'full', 'title' => THEMENAME . ' Template Setup', 'shortexp' => 'Drag and drop control over your website\'s templates.<br/> Note: Select "Hidden by Default" to hide the section by default; and activate with individual page/post options.'), 'resettemplates' => array('default' => '', 'inputlabel' => __("Reset Template Section Order", 'pagelines'), 'type' => 'reset', 'callback' => 'reset_templates_to_default', 'title' => 'Reset Section Order To Default', 'layout' => 'full', 'shortexp' => 'Changes your template sections back to their default order and layout (options settings are not affected)')), 'layout_editor' => array('layout_default' => array('default' => "one-sidebar-right", 'type' => 'layout_select', 'title' => 'Default Layout Mode', 'layout' => 'full', 'shortexp' => 'Select your default layout mode, this can be changed on individual pages.<br />Once selected, you can adjust the layout in the Layout Builder.', 'exp' => 'The default layout for your site; your blog page will always have this layout. Dimensions can be changed using the content layout editor.'), 'layout' => array('default' => 'one-sidebar-right', 'type' => 'layout', 'layout' => 'full', 'title' => 'Content Layout Editor', 'shortexp' => 'Configure the default layout for your site which is initially selected in the Default Layout Mode option in Global Options. <br/>This option allows you to adjust columns and margins for the default layout.'), 'resetlayout' => array('default' => '', 'inputlabel' => __("Reset Layout", 'pagelines'), 'type' => 'reset', 'callback' => 'reset_layout_to_default', 'title' => 'Reset Layout To Default', 'layout' => 'full', 'shortexp' => 'Changes layout mode and dimensions back to default')), 'header_and_nav' => array('icon_position' => array('version' => 'pro', 'type' => 'text_multi', 'inputsize' => 'tiny', 'selectvalues' => array('icon_pos_bottom' => array('inputlabel' => 'Distance From Bottom (in pixels)', 'default' => 21), 'icon_pos_right' => array('inputlabel' => 'Distance From Right (in pixels)', 'default' => 1)), 'title' => 'Social Icon Position', 'shortexp' => 'Control the location of the social icons in the branding section', 'exp' => 'Set the position of your header icons with these options. They will be relative to the "branding" section of your site.'), 'rsslink' => array('default' => true, 'type' => 'check', 'inputlabel' => 'Display the Blog RSS icon and link?', 'title' => 'News/Blog RSS Icon', 'shortexp' => 'Places News/Blog RSS icon in your header', 'exp' => ''), 'icon_social' => array('version' => 'pro', 'type' => 'text_multi', 'inputsize' => 'regular', 'selectvalues' => array('facebooklink' => array('inputlabel' => 'Your Facebook Profile URL', 'default' => ''), 'twitterlink' => array('inputlabel' => 'Your Twitter Profile URL', 'default' => ''), 'linkedinlink' => array('inputlabel' => 'Your LinkedIn Profile URL', 'default' => ''), 'youtubelink' => array('inputlabel' => 'Your YouTube Profile URL', 'default' => '')), 'title' => 'Social Icons', 'shortexp' => 'Add social network profile icons to your header', 'exp' => 'Fill in the URLs of your social networking profiles. This option will create icons in the header/branding section of your site.')), 'blog_and_posts' => array('blog_layout_mode' => array('version' => 'pro', 'default' => 'magazine', 'type' => 'select', 'selectvalues' => array('magazine' => array("name" => "Magazine Layout Mode", "version" => "pro"), 'blog' => array("name" => "Blog Layout Mode")), 'inputlabel' => 'Post Layout Mode', 'title' => 'Blog Post Layout Mode', 'shortexp' => 'Choose between magazine style and blog style layout.', 'exp' => 'Choose between two magazine or blog layout mode. <br/><br/> <strong>Magazine Layout Mode</strong><br/> Magazine layout mode makes use of post "clips". These are summarized excerpts shown at half the width of the main content column.<br/> <strong>Note:</strong> There is an option for showing "full-width" posts on your main "posts" page.<br/><br/><strong>Blog Layout Mode</strong><br/> This is your classical blog layout. Posts span the entire width of the main content column.'), 'full_column_posts' => array('version' => 'pro', 'default' => 2, 'type' => 'count_select', 'count_number' => get_option('posts_per_page'), 'inputlabel' => 'Number of Full Width Posts?', 'title' => 'Full Width Posts (Magazine Layout Mode Only)', 'shortexp' => 'When using magazine layout mode, select the number of "featured" or full-width posts.', 'exp' => 'Select the number of posts you would like shown at the full width of the main content column in magazine layout mode (the rest will be half-width post "clips").'), 'posts_page_layout' => array('type' => 'select', 'selectvalues' => array('fullwidth' => array('name' => 'Fullwidth layout', 'version' => 'pro'), 'one-sidebar-right' => array('name' => 'One sidebar on right'), 'one-sidebar-left' => array('name' => 'One sidebar on left'), 'two-sidebar-right' => array('name' => 'Two sidebars on right', 'version' => 'pro'), 'two-sidebar-left' => array('name' => 'Two sidebars on left', 'version' => 'pro'), 'two-sidebar-center' => array('name' => 'Two sidebars, one on each side', 'version' => 'pro')), 'title' => "Posts Page-Content Layout", 'shortexp' => "Select the content layout on posts pages only", 'inputlabel' => 'Posts Page Layout Mode (optional)', 'exp' => 'Use this option to change the content layout mode on all posts pages (if different than default layout).'), 'thumb_handling' => array('type' => 'check_multi', 'selectvalues' => array('thumb_blog' => array('inputlabel' => 'Posts/Blog Page', 'default' => true), 'thumb_single' => array('inputlabel' => 'Single Post Pages', 'default' => false), 'thumb_search' => array('inputlabel' => 'Search Results', 'default' => false), 'thumb_category' => array('inputlabel' => 'Category Lists', 'default' => true), 'thumb_archive' => array('inputlabel' => 'Post Archives', 'default' => true), 'thumb_clip' => array('inputlabel' => 'In Post Clips (Magazine Mode)', 'default' => true)), 'title' => 'Post Thumbnail Placement', 'shortexp' => 'Where should the theme use post thumbnails?', 'exp' => 'Use this option to control where post "featured images" or thumbnails are used. Note: The post clips option only applies when magazine layout is selected.'), 'byline_handling' => array('type' => 'check_multi', 'selectvalues' => array('byline_author' => array('inputlabel' => 'Author', 'default' => true), 'byline_date' => array('inputlabel' => 'Date', 'default' => true), 'byline_comments' => array('inputlabel' => 'Comments', 'default' => true), 'byline_categories' => array('inputlabel' => 'Categories', 'default' => false)), 'title' => 'Post Byline Information (Blog Mode and Full-Width Posts Only)', 'shortexp' => 'What should be shown in post bylines?', 'exp' => 'The byline shows meta information about who wrote the post, what category it is in, etc... Use this option to control what is shown.'), 'excerpt_handling' => array('type' => 'check_multi', 'selectvalues' => array('excerpt_blog' => array('inputlabel' => 'Posts/Blog Page', 'default' => true), 'excerpt_single' => array('inputlabel' => 'Single Post Pages', 'default' => false), 'excerpt_search' => array('inputlabel' => 'Search Results', 'default' => true), 'excerpt_category' => array('inputlabel' => 'Category Lists', 'default' => true), 'excerpt_archive' => array('inputlabel' => 'Post Archives', 'default' => true)), 'title' => 'Post Excerpt or Summary Handling', 'shortexp' => 'Where should the theme use post excerpts when showing full column posts?', 'exp' => 'This option helps you control where post excerpts are displayed.<br/><br/> <strong>About:</strong> Excerpts are small summaries of articles filled out when creating a post.'), 'pagetitles' => array('version' => 'pro', 'default' => '', 'type' => 'check', 'inputlabel' => 'Automatically show Page titles?', 'title' => 'Page Titles', 'shortexp' => 'Show the title of pages above the page content.', 'exp' => 'This option will automatically place page titles on all pages.'), 'continue_reading_text' => array('version' => 'pro', 'default' => 'Continue Reading', 'type' => 'text', 'inputlabel' => 'Continue Reading Link Text', 'title' => '"Continue Reading" Link Text (When Using Excerpts)', 'shortexp' => 'The link at the end of your excerpt.', 'exp' => "This text will be used as the link to your full article when viewing articles on your posts page (when excerpts are turned on)."), 'content_handling' => array('type' => 'check_multi', 'selectvalues' => array('content_blog' => array('inputlabel' => 'Posts/Blog Page', 'default' => false), 'content_search' => array('inputlabel' => 'Search Results', 'default' => false), 'content_category' => array('inputlabel' => 'Category Lists', 'default' => false), 'content_archive' => array('inputlabel' => 'Post Archives', 'default' => false)), 'title' => 'Full Post Content', 'shortexp' => 'In addition to single post pages and page templates, where should the theme place the full content of posts?', 'exp' => 'Choose where the full content of posts is displayed. Choose between all posts pages or just single post pages (i.e. posts pages can just show excerpts or titles).'), 'post_footer_social_text' => array('default' => 'If you enjoyed this article, please consider sharing it!', 'type' => 'text', 'inputlabel' => 'Post Footer Social Links Text', 'title' => 'Post Footer Social Links Text', 'shortexp' => 'The text next to your social icons', 'exp' => "Set the text next to your social links shown on single post pages or on all " . "posts pages if the post footer link is set to 'always sharing links'."), 'post_footer_share_links' => array('default' => '', 'type' => 'check_multi', 'selectvalues' => array('share_facebook' => array('inputlabel' => 'Facebook Sharing Icon', 'default' => true), 'share_twitter' => array('inputlabel' => 'Twitter Sharing Icon', 'default' => true), 'share_delicious' => array('inputlabel' => 'Del.icio.us Sharing Icon', 'default' => true), 'share_mixx' => array('inputlabel' => 'Mixx Sharing Icon', 'default' => false), 'share_digg' => array('inputlabel' => 'Digg Sharing Icon', 'default' => true), 'share_stumbleupon' => array('inputlabel' => 'StumbleUpon Sharing Icon', 'default' => false)), 'inputlabel' => 'Select Which Share Links To Show', 'title' => 'Post Footer Sharing Icons', 'shortexp' => 'Select Which To Show', 'exp' => "Select which icons you would like to show in your post footer when sharing " . "links are shown.")), 'sidebar_options' => array('sidebar_no_default' => array('default' => '', 'type' => 'check', 'inputlabel' => 'Hide Sidebars When Empty (no widgets)', 'title' => 'Remove Default Sidebars When Empty', 'shortexp' => 'Hide default sidebars when sidebars have no widgets in them', 'exp' => 'This allows you to remove sidebars completely when they have no widgets in them.'), 'sidebar_wrap_widgets' => array('default' => 'top', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('top' => array("name" => 'On Top of Sidebar'), 'bottom' => array("name" => 'On Bottom of Sidebar')), 'inputlabel' => 'Sidebar Wrap Widgets Position', 'title' => 'Sidebar Wrap Widgets', 'shortexp' => 'Choose whether to show the sidebar wrap widgets on the top or bottom of the sidebar.', 'exp' => 'You can select whether to show the widgets that you place in the sidebar wrap template in either the top or the bottom of the sidebar.')), 'footer_options' => array('footer_logo' => array('version' => 'pro', 'default' => THEME_IMAGES . '/logo-platformpro-small.png', 'type' => 'image_upload', 'imagepreview' => '100', 'inputlabel' => 'Add Footer logo', 'title' => 'Footer Logo', 'shortexp' => 'Show a logo in the footer', 'exp' => 'Add the full url of an image for use in the footer. Recommended size: 140px wide.'), 'footer_more' => array('default' => "Thanks for dropping by! Feel free to join the discussion by leaving " . "comments, and stay updated by subscribing to the <a href='" . get_bloginfo('rss2_url') . "'>RSS feed</a>.", 'type' => 'textarea', 'inputlabel' => 'More Statement In Footer', 'title' => 'More Statement', 'shortexp' => 'Add a quick statement for users who want to know more...', 'exp' => "This statement will show in the footer columns under the word more. It is for users who may want to know more about your company or service."), 'footer_terms' => array('default' => '© ' . date('Y') . ' ' . get_bloginfo('name'), 'type' => 'textarea', 'inputlabel' => 'Terms line in footer:', 'title' => 'Site Terms Statement', 'shortexp' => 'A line in your footer for "terms and conditions text" or similar', 'exp' => "It's sometimes a good idea to give your users a terms and conditions " . "statement so they know how they should use your service or content.")), 'text_and_fonts' => array('gfonts' => array('version' => 'pro', 'default' => false, 'type' => 'check', 'inputlabel' => 'Use Google Fonts API', 'title' => 'Use Google Fonts API', 'shortexp' => 'Use the Google Fonts API to add cross-browser fonts to your site', 'exp' => 'Google has recently released a new API for including new "web safe" fonts on your site. To learn more about it, visit the <a href="http://code.google.com/webfonts">Google Fonts homepage</a>.'), 'gfonts_families' => array('version' => 'pro', 'default' => 'Crimson+Text|Droid+Sans', 'type' => 'text', 'inputlabel' => 'Google Font Families', 'title' => 'Google API: Font Family or Families', 'shortexp' => 'The fonts used with the Google API', 'exp' => 'Use this option to setup various Google fonts (Google fonts must be activated). Learn more on the Google Font <a href="http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_Start">Quick Start</a> page.'), 'typekit_script' => array('version' => 'pro', 'default' => "", 'type' => 'textarea', 'inputlabel' => 'Typekit Header Script', 'title' => 'Typekit Font Replacement', 'shortexp' => 'Typekit is a service that allows you to use tons of new fonts on your site.', 'exp' => 'Typekit is a new service and technique that allows you to use fonts outside of the 10 or so "web-safe" fonts. <br/><br/>' . 'Visit <a href="www.typekit.com" target="_blank">Typekit.com</a> to get the script for this option. Instructions for setting up Typekit are <a href="http://typekit.assistly.com/portal/article/6780-Adding-fonts-to-your-site" target="_blank">here</a>.'), 'fontreplacement' => array('version' => 'pro', 'default' => false, 'type' => 'check', 'inputlabel' => 'Use Cufon font replacement?', 'title' => 'Use Cufon Font Replacement', 'shortexp' => 'Use a special font replacement technique for certain text', 'exp' => 'Cufon is a special technique for allowing you to use fonts outside of the 10 or so "web-safe" fonts. <br/><br/>' . THEMENAME . ' is equipped to use it. Select this option to enable it. Visit the <a href="http://cufon.shoqolate.com/generate/">Cufon site</a>.'), 'font_file' => array('version' => 'pro', 'default' => THEME_JS . '/calluna.font.js', 'type' => 'text', 'inputlabel' => 'Cufon replacement font file URL', 'title' => 'Cufon: Replacement Font File URL', 'shortexp' => 'The font file used to replace text.', 'exp' => 'Use the <a href="http://cufon.shoqolate.com/generate/">Cufon site</a> to generate a font file for use with this theme. Place it in your theme folder and add the full URL to it here. The default font is Museo Sans.'), 'replace_font' => array('version' => 'pro', 'default' => 'h1', 'type' => 'text', 'inputlabel' => 'CSS elements for font replacement', 'title' => 'Cufon: CSS elements for font replacement', 'shortexp' => 'Add selectors of elements you would like replaced.', 'exp' => 'Use standard CSS selectors to replace them with your Cufon font. Font replacement must be enabled.'), 'headercolor' => array('version' => 'pro', 'default' => '#000000', 'type' => 'colorpicker', 'selectors' => 'h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, .fpost .post-title h2 a', 'inputlabel' => 'Hex Code', 'title' => 'Text Header Color (H1,H2, etc...)', 'shortexp' => 'Change the color of your titles and subtitles', 'exp' => 'Use "hex" colors. For example #000000 for black, #3399CC for light blue, ' . 'etc... Visit <a href="http://html-color-codes.com/">this site</a> for a reference.'), 'linkcolor' => array('default' => '#225E9B', 'type' => 'colorpicker', 'selectors' => 'a, #subnav_row li.current_page_item a, #subnav_row li a:hover, #grandchildnav .current_page_item > a, .branding h1 a:hover, .post-comments a:hover, .bbcrumb a:hover, #feature_slider .fcontent.fstyle-lightbg a, #feature_slider .fcontent.fstyle-nobg a', 'inputlabel' => 'Hex Code:', 'title' => 'Text Link Color', 'shortexp' => 'Change the default color of your links as well as other similar elements.', 'exp' => 'Select a hex color for your site\'s text links.'), 'linkcolor_hover' => array('default' => '', 'type' => 'colorpicker', 'selectors' => 'a:hover,.commentlist cite a:hover, #grandchildnav .current_page_item a:hover, .headline h1 a:hover', 'inputlabel' => 'Hex Code:', 'title' => 'Text Link Hover Color', 'shortexp' => 'Change the default color of your links when users hover over them.', 'exp' => 'Select a hex color for when users hover over text links.')), 'custom_code' => array('partner_link' => array('default' => '', 'type' => 'text', 'inputlabel' => 'Enter Partner Link', 'title' => 'PageLines Partner Link', 'shortexp' => 'Change your PageLines footer link to a partner link', 'exp' => 'If you are a <a href="http://www.pagelines.com/partners">PageLines Partner</a> enter your link here and the footer link will become a partner or affiliate link.'), 'forum_options' => array('default' => '', 'type' => 'check', 'inputlabel' => 'Show bbPress Forum Addon Options', 'title' => 'Activate Forum Options', 'shortexp' => 'If you have integrated a PageLines bbPress forum, activate its options here.', 'exp' => 'This theme has some integrated options for its bbPress forum addon (if installed).'), 'customcss' => array('version' => 'pro', 'default' => 'body{}', 'type' => 'textarea', 'layout' => 'full', 'inputlabel' => 'CSS Rules', 'title' => 'Custom CSS', 'shortexp' => 'Insert custom CSS styling here (this will override any default styling)', 'exp' => '<div class="theexample">Example:<br/> <strong>body{<br/> color: #3399CC;<br/> line-height: 20px;<br/> font-size: 11px<br/>}</strong></div>Enter CSS Rules to change the style of your site.<br/><br/> A lot can be accomplished by simply changing the default styles of the "body" tag such as "line-height", "font-size", or "color" (as in text color).'), 'google_ie' => array('default' => false, 'type' => 'check', 'inputlabel' => 'Include Google IE Compatibility Script?', 'title' => 'Google IE Compatibility Fix', 'shortexp' => 'Include a Google JS script that fixes problems with IE.', 'exp' => 'More info on this can be found here: <strong>http://code.google.com/p/ie7-js/</strong>.'), 'headerscripts' => array('version' => 'pro', 'default' => '', 'type' => 'textarea', 'layout' => 'full', 'inputlabel' => 'Headerscripts Code', 'title' => 'Header Scripts', 'shortexp' => 'Scripts inserted directly before the end of the HTML <head> tag', 'exp' => ''), 'footerscripts' => array('default' => '', 'type' => 'textarea', 'layout' => 'full', 'inputlabel' => 'Footerscripts Code or Analytics', 'title' => 'Footer Scripts & Analytics', 'shortexp' => 'Any footer scripts including Google Analytics', 'exp' => ""), 'asynch_analytics' => array('version' => 'pro', 'default' => '', 'type' => 'textarea', 'layout' => 'full', 'inputlabel' => 'Asynchronous Analytics', 'title' => 'Asynchronous Analytics', 'shortexp' => 'Placeholder for Google asynchronous analytics. Goes underneath "body" tag.', 'exp' => ""), 'hide_introduction' => array('default' => '', 'version' => 'pro', 'type' => 'check', 'inputlabel' => '', 'inputlabel' => 'Hide the introduction?', 'title' => 'Show Theme Introduction', 'shortexp' => 'Uncheck this option to show theme introduction.', 'exp' => ""))); if (!pagelines_option('hide_introduction') && VPRO) { $welcome = array('_welcome' => array('theme_introduction' => array('type' => 'text_content', 'layout' => 'full', 'exp' => get_theme_intro()), 'hide_introduction' => array('default' => '', 'type' => 'check', 'inputlabel' => '', 'inputlabel' => 'Hide the introduction', 'title' => 'Remove This Theme Introduction', 'shortexp' => 'Remove this introduction from the admin.', 'exp' => "This introduction can be added back under the 'custom code' tab (once hidden)..."))); } else { $welcome = array(); } if (pagelines_option('forum_options')) { $forum_options = array('forum_settings' => array('forum_tags' => array('default' => true, 'type' => 'check', 'inputlabel' => 'Show tags in sidebar?', 'title' => 'Tag Cloud In Sidebar', 'shortexp' => 'Including post tags on the forum sidebar.', 'exp' => 'Tags are added by users and moderators on your forum and can help people locate posts.'), 'forum_image_1' => array('default' => '', 'type' => 'image_upload', 'inputlabel' => 'Upload Forum Image', 'imagepreview' => 125, 'title' => 'Forum Sidebar Image #1', 'shortexp' => 'Add a 125px by 125px image to your forum sidebar', 'exp' => "Spice up your forum with a promotional image in the forum sidebar."), 'forum_image_link_1' => array('default' => '', 'type' => 'text', 'inputlabel' => 'Image Link URL', 'title' => 'Forum Image #1 Link', 'shortexp' => 'Full URL for your forum image.', 'exp' => "Add the full url for your forum image."), 'forum_image_2' => array('default' => '', 'type' => 'image_upload', 'imagepreview' => 125, 'inputlabel' => 'Upload Forum Image', 'title' => 'Forum Sidebar Image #2', 'shortexp' => 'Add a 125px by 125px image to your forum sidebar', 'exp' => "Spice up your forum with a promotional image in the forum sidebar."), 'forum_image_link_2' => array('default' => '', 'type' => 'text', 'inputlabel' => 'Image Link URL', 'title' => 'Forum Image #2 Link', 'shortexp' => 'Full URL for your forum image.', 'exp' => "Add the full url for your forum image."), 'forum_sidebar_link' => array('default' => '#', 'type' => 'text', 'inputlabel' => 'Forum Image Caption URL', 'title' => 'Forum Caption Link URL (Text Link)', 'shortexp' => 'Add the URL for your forum caption (optional)', 'exp' => "Text link underneath your forum images."), 'forum_sidebar_link_text' => array('default' => 'About ' . get_bloginfo('name'), 'type' => 'text', 'inputlabel' => 'Forum Sidebar Link Text', 'title' => 'Forum Sidebar Link Text', 'shortexp' => 'The text of your image caption link', 'exp' => "Change the text of the caption placed under your forum images."))); } else { $forum_options = array(); } /* Merge preset functions */ $optionarray = array_merge($welcome, $default_options, $forum_options); /* Load Section Options */ // Comes before, so you can load on to 'new' option sets $optionarray = array_merge(load_section_options('new', 'top', $load_unavailable), $optionarray, load_section_options('new', 'bottom', $load_unavailable)); foreach ($optionarray as $optionset => $options) { $optionarray[$optionset] = array_merge(load_section_options($optionset, 'top', $load_unavailable), $options, load_section_options($optionset, 'bottom', $load_unavailable)); } return apply_filters('pagelines_options_array', $optionarray); }
function get_layout_map() { if (pagelines_option('layout')) { $this->layout_map = pagelines_option('layout'); } else { $this->layout_map = $this->default_layout_setup(); } }
function section_template() { global $post, $pagelines_ID; $current_post = $post; $set = pagelines_option('banner_set', $pagelines_ID) ? pagelines_option('banner_set', $pagelines_ID) : null; $limit = pagelines_option('banner_items', $pagelines_ID) ? pagelines_option('banner_items', $pagelines_ID) : null; $b = $this->load_pagelines_banners($set, $limit); $this->draw_banners($b, 'banners ' . $set); }
function section_head(){ $arrows = (pagelines_option('drop_down_arrows') == 'on') ? 1 : 0; $shadows = (pagelines_option('drop_down_shadow') == 'on') ? 1 : 0; if(pagelines_option('enable_drop_down')): ?> <script type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function() { jQuery('ul.sf-menu').superfish({ delay: 100, speed: 'fast', autoArrows: <?php echo $arrows;?>, dropShadows: <?php echo $shadows;?> }); }); /* ]]> */ </script> <?php endif; }
function section_template() { $sharepre = ''; $sharepost = ''; global $post; ?> <div class="post-footer"> <div class="left"> <?php e_pagelines('post_footer_social_text', '');?> </div> <div class="right"> <?php $upermalink = urlencode(get_permalink()); $utitle = urlencode(get_the_title()); echo apply_filters( 'pagelines_before_sharebar', $sharepre ); // Hook ?> <?php if(pagelines_option('share_reddit')):?> <a href="http://reddit.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>" title="<?php _e('Share on','pagelines');?> Reddit" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-reddit.png" alt="Reddit" /></a> <?php endif;?> <?php if(pagelines_option('share_facebook')):?> <a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink(); ?>&t=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>" title="<?php _e('Share on','pagelines');?> Facebook" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-facebook.png" alt="Facebook" /></a> <?php endif;?> <?php if(pagelines_option('share_twitter')):?> <?php $title = get_the_title($post->ID);?> <a href="http://twitter.com/?status=<?php $turl = pagelines_shorturl(get_permalink($post->ID)); echo $turl;?>" title="<?php _e('Share on','pagelines');?> Twitter" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-twitter.png" alt="Twitter" /></a> <?php endif;?> <?php if(pagelines_option('share_delicious')):?> <a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>" title="<?php _e('Share on','pagelines');?> Delicious" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-del.png" alt="Delicious" /></a> <?php endif;?> <?php if(pagelines_option('share_mixx')):?> <a href="http://www.mixx.com/submit?page_url=<?php the_permalink(); ?>" title="<?php _e('Share on','pagelines');?> Mixx" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-mixx.png" alt="Mixx" /></a> <?php endif;?> <?php if(pagelines_option('share_stumbleupon')):?> <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>" title="<?php _e('Share on','pagelines');?> StumbleUpon" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-stumble.png" alt="StumbleUpon" /></a> <?php endif;?> <?php if(pagelines_option('share_digg')):?> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>" title="<?php _e('Share on','pagelines');?> Digg" rel="nofollow" target="_blank"><img src="<?php echo PL_IMAGES; ?>/ico-digg.png" alt="Digg" /></a> <?php endif; echo apply_filters( 'pagelines_after_sharebar', $sharepost ); // Hook ?> </div> <div class="clear"></div> </div> <?php }
function section_template() { ?> <div id="callout-area"> <div class="callout_text"> <div class="callout_text-pad"> <h2 class="callout_head <?php if (!pagelines('pagelines_callout_image')) { ?> noimage<?php } ?> "> <?php print_pagelines_option('pagelines_callout_header', __('This is the "Callout Section"', 'pagelines')); ?> </h2> <div class="callout_copy"> <?php print_pagelines_option('pagelines_callout_subheader', __('Perfect for a call to action or a special offer.', 'pagelines')); ?> </div> </div> </div> <?php if (pagelines_option('pagelines_callout_image')) { ?> <div class="callout_image"> <a href="<?php echo pagelines_option('pagelines_callout_link'); ?> "> <img src="<?php echo pagelines_option('pagelines_callout_image'); ?> " alt=""/> </a> </div> <?php } ?> </div> <?php }
/** * Section template. */ function section_template() { printf('<div class="branding_wrap fix">'); pagelines_main_logo(); pagelines_register_hook('pagelines_before_branding_icons', 'branding'); // Hook printf('<div class="icons" style="bottom: %spx; right: %spx;">', intval(pagelines_option('icon_pos_bottom')), pagelines_option('icon_pos_right')); pagelines_register_hook('pagelines_branding_icons_start', 'branding'); // Hook if (ploption('rsslink')) { printf('<a target="_blank" href="%s" class="rsslink"><img src="%s" alt="RSS"/></a>', apply_filters('pagelines_branding_rssurl', get_bloginfo('rss2_url')), $this->base_url . '/rss.png'); } if (VPRO) { if (ploption('twitterlink')) { printf('<a target="_blank" href="%s" class="twitterlink"><img src="%s" alt="Twitter"/></a>', ploption('twitterlink'), $this->base_url . '/twitter.png'); } if (ploption('facebooklink')) { printf('<a target="_blank" href="%s" class="facebooklink"><img src="%s" alt="Facebook"/></a>', ploption('facebooklink'), $this->base_url . '/facebook.png'); } if (ploption('linkedinlink')) { printf('<a target="_blank" href="%s" class="linkedinlink"><img src="%s" alt="LinkedIn"/></a>', ploption('linkedinlink'), $this->base_url . '/linkedin.png'); } if (ploption('youtubelink')) { printf('<a target="_blank" href="%s" class="youtubelink"><img src="%s" alt="Youtube"/></a>', ploption('youtubelink'), $this->base_url . '/youtube.png'); } if (ploption('gpluslink')) { printf('<a target="_blank" href="%s" class="gpluslink"><img src="%s" alt="Google+"/></a>', ploption('gpluslink'), $this->base_url . '/google.png'); } pagelines_register_hook('pagelines_branding_icons_end', 'branding'); // Hook } echo '</div></div>'; pagelines_register_hook('pagelines_after_branding_wrap', 'branding'); // Hook ?> <script type="text/javascript"> jQuery('.icons a').hover(function(){ jQuery(this).fadeTo('fast', 1); },function(){ jQuery(this).fadeTo('fast', 0.5);}); </script> <?php }
function section_template() { global $post; global $pagelines_ID; $pageID = (!pagelines_non_meta_data_page()) ? $post->ID : null; if(!is_404()){ if(is_home() && pagelines_option('secondnav_posts')){ $second_menu = pagelines_option('secondnav_posts'); } elseif (pagelines_option('_second_nav_menu', $pageID)){ $second_menu = pagelines_option('_second_nav_menu', $pageID); } if(isset($second_menu)){ wp_nav_menu( array('menu_class' => 'secondnav_menu lcolor3', 'menu' => $second_menu, 'container' => null, 'container_class' => '', 'depth' => 1, 'fallback_cb'=>'pagelines_page_subnav') ); } elseif(pagelines_option('nav_use_hierarchy', $pagelines_ID)) { pagelines_page_subnav(); } } }
function _get_box_image($bpost, $box_icon, $box_link = false) { global $pagelines_ID; // Get thumb size $box_thumb_size = pagelines_option('box_thumb_size', $pagelines_ID) ? pagelines_option('box_thumb_size', $pagelines_ID) : 64; // Make the image's tag with url $image_tag = sprintf('<img src="%s" alt="%s" style="width:%dpx" />', $box_icon, esc_html($bpost->post_title), $box_thumb_size); // If link for box is set, add it if ($box_link) { $image_output = sprintf('<a href="%s" title="%s">%s</a>', $box_link, esc_html($bpost->post_title), $image_tag); } else { $image_output = $image_tag; } // Filter output return apply_filters('pl_box_image', $image_output, $bpost->ID); }
function pagelines_font_replacement($default_font = '') { if (pagelines_option('typekit_script')) { echo pagelines_option('typekit_script'); } if (pagelines_option('fontreplacement')) { global $cufon_font_path; if (pagelines_option('font_file')) { $cufon_font_path = pagelines_option('font_file'); } elseif ($default_font) { $cufon_font_path = THEME_JS . '/' . $default_font; } else { $cufon_font_path = null; } // =============================== // = Hook JS Libraries to Footer = // =============================== add_action('wp_footer', 'font_replacement_scripts'); function font_replacement_scripts() { global $cufon_font_path; wp_register_script('cufon', CORE_JS . '/type.cufon.js', 'jquery', '1.09', true); wp_print_scripts('cufon'); if (isset($cufon_font_path)) { wp_register_script('cufon_font', $cufon_font_path, 'cufon'); wp_print_scripts('cufon_font'); } } add_action('wp_head', 'cufon_inline_script'); function cufon_inline_script() { ?> <script type="text/javascript"><?php if (pagelines('replace_font')) { ?> jQuery(document).ready(function () { Cufon.replace('<?php echo pagelines("replace_font"); ?> ', {hover: true}); });<?php } ?> </script><?php } } }
?> <?php if (pagelines_option('linkedinlink')) { ?> <a target="_blank" href="<?php echo pagelines_option('linkedinlink'); ?> " class="linkedinlink"></a> <?php } ?> <?php if (pagelines_option('youtubelink')) { ?> <a target="_blank" href="<?php echo pagelines_option('youtubelink'); ?> " class="youtubelink"></a> <?php } ?> <?php pagelines_register_hook('pagelines_branding_icons_end', 'branding'); ?> <?php } ?> </div> </div> <?php
function section_template() { ?> <div id="fcolumns_container" class="dcol_container_5 fix"> <?php if (!dynamic_sidebar($this->name) ) : ?> <div class="dcol_5 dcol"> <div class="dcol-pad"> <?php if(pagelines_option('footer_logo') && VPRO):?> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <img src="<?php echo pagelines_option('footer_logo');?>" alt="<?php bloginfo('name');?>" /> </a> <?php else:?> <h3 class="site-title"> <a class="home" href="<?php echo home_url(); ?>" title="<?php _e('Home','pagelines');?>"> <?php bloginfo('name');?> </a> </h3> <?php endif;?> </div> </div> <div class="dcol_5 dcol"> <div class="dcol-pad"> <h3 class="widget-title"><?php _e('Pages','pagelines');?></h3> <?php wp_nav_menu( array('menu_class' => 'footer-links list-links', 'theme_location'=>'footer_nav', 'depth' => 1) ); ?> </div> </div> <div class="dcol_5 dcol"> <div class="dcol-pad"> <h3 class="widget-title"><?php _e('The Latest','pagelines');?></h3> <ul class="latest_posts"> <?php foreach(get_posts('numberposts=1&offset=0') as $key => $post): setup_postdata($post);?> <li class="list-item fix"> <div class="list_item_text"> <h5><a class="list_text_link" href="<?php echo get_permalink( $post->ID ); ?>"><span class="list-title"><?php echo $post->post_title; ?></span></a></h5> <div class="list-excerpt"><?php echo ( !is_404() ) ? custom_trim_excerpt(get_the_excerpt(), 12) : ''; ?></div> </div> </li> <?php endforeach;?></ul> </div> </div> <div class="dcol_5 dcol"> <div class="dcol-pad"> <h3 class="widget-title"><?php _e('More','pagelines');?></h3> <div class="findent footer-more"> <?php print_pagelines_option('footer_more');?> </div> </div> </div> <div class="dcol_5 dcol"> <div class="dcol-pad"> <div class="findent terms"> <?php print_pagelines_option('footer_terms');?> </div> </div> </div> <?php endif; ?> </div> <div class="clear"></div> <?php }
function custom_css(){ if( $this->comments ) $this->css .= '/* Custom CSS */'.$this->nl2; $this->css .= pagelines_option('customcss'); $this->css .= $this->nl2; }
function section_head() { $carousel_items = (pagelines_option('carousel_display_items')) ? pagelines_option('carousel_display_items'): 9; $carousel_scroll_items = (pagelines_option('carousel_scroll_items')) ? pagelines_option('carousel_scroll_items'): 6; $animation_speed = (pagelines_option('carousel_animation_speed')) ? pagelines_option('carousel_animation_speed'): 800; ?> <script type="text/javascript"> /* <![CDATA[ */ var $j = jQuery.noConflict(); $j(document).ready(function () { $j(".thecarousel").show(); $j(".thecarousel").jcarousel({ wrap: 'circular', visible: <?php echo $carousel_items; ?>, easing: 'swing', scroll: <?php echo $carousel_scroll_items; ?>, animation: <?php echo $animation_speed; ?> }); $j(".jcarousel-prev, .jcarousel-next").disableTextSelect(); }); /* ]]> */ </script> <?php }
/** * * Returns child pages for subnav, setup in hierarchy * * @package PageLines DMS * @subpackage Functions Library * @since 1.1.0 * */ function pagelines_page_subnav() { global $post; if (!is_404() && isset($post) && is_object($post) && !pagelines_option('hide_sub_header') && ($post->post_parent || wp_list_pages('title_li=&child_of=' . $post->ID . '&echo=0'))) { ?> <ul class="secondnav_menu lcolor3"> <?php if (count($post->ancestors) >= 2) { $reverse_ancestors = array_reverse($post->ancestors); $children = wp_list_pages('title_li=&depth=1&child_of=' . $reverse_ancestors[0] . '&echo=0&sort_column=menu_order'); } elseif ($post->post_parent) { $children = wp_list_pages('title_li=&depth=1&child_of=' . $post->post_parent . '&echo=0&sort_column=menu_order'); } else { $children = wp_list_pages('title_li=&depth=1&child_of=' . $post->ID . '&echo=0&sort_column=menu_order'); } if ($children) { echo $children; } ?> </ul> <?php } }
<?php pagelines_main_logo(); ?> <?php pagelines_register_hook( 'pagelines_before_branding_icons', 'branding' ); // Hook ?> <div class="icons" style="bottom: <?php echo intval(pagelines_option('icon_pos_bottom'));?>px; right: <?php echo pagelines_option('icon_pos_right');?>px;"> <?php if(pagelines('rsslink')):?> <a target="_blank" href="<?php echo apply_filters( 'pagelines_branding_rssurl', get_bloginfo('rss2_url') );?>" class="rsslink"></a> <?php endif;?> <?php if(VPRO):?> <?php pagelines_register_hook( 'pagelines_branding_icons_start', 'branding' ); // Hook ?> <?php if(pagelines_option('twitterlink')):?> <a target="_blank" href="<?php echo pagelines_option('twitterlink');?>" class="twitterlink"></a> <?php endif;?> <?php if(pagelines_option('facebooklink')):?> <a target="_blank" href="<?php echo pagelines_option('facebooklink');?>" class="facebooklink"></a> <?php endif;?> <?php if(pagelines_option('linkedinlink')):?> <a target="_blank" href="<?php echo pagelines_option('linkedinlink');?>" class="linkedinlink"></a> <?php endif;?> <?php if(pagelines_option('youtubelink')):?> <a target="_blank" href="<?php echo pagelines_option('youtubelink');?>" class="youtubelink"></a> <?php endif;?> <?php pagelines_register_hook( 'pagelines_branding_icons_end', 'branding' ); // Hook ?> <?php endif;?> </div> </div> <?php pagelines_register_hook( 'pagelines_after_branding_wrap', 'branding' ); // Hook ?>
/** * * * Get Sortable Sections (Sections Drag & Drop) * * * @package PageLines Core * @subpackage Options * @since 4.0 * */ function _sortable_section($template, $tfield, $hook_id = null, $hook_info = array()){ global $pl_section_factory; $available_sections = $pl_section_factory->sections; $template_slug = ( isset($hook_id) ) ? $hook_id.'-'.$template : $template; $template_area = ( isset($hook_id) ) ? $hook_id : $template; $dtoggle = (get_option('pl_section_desc_toggle')) ? get_option('pl_section_desc_toggle') : 'show'; ?> <div id="template_data" class="<?php echo $template_slug; ?> layout-type-<?php echo $template_area;?>"> <div class="editingtemplate fix"> <span class="edit_template_title"><?php echo $tfield['name'];?> Template Sections</span> </div> <div class="section_layout_description"> <div class="config_title">Place Sections <span class="makesubtle">(drag & drop)</span></div> <div class="layout-type-frame"> <div class="layout-type-thumb"></div> Template Area: <?php echo ucwords( str_replace('_', ' ', $template_area) );?> </div> </div> <div id="section_map" class="template-edit-panel "> <div class="sbank template_layout"> <div class="bank_title">Displayed <?php echo $tfield['name'];?> Sections</div> <ul id="sortable_template" class="connectedSortable "> <?php if( isset($tfield['sections']) && is_array($tfield['sections'])):?> <?php foreach($tfield['sections'] as $section): if(isset( $pl_section_factory->sections[$section] )): $s = $pl_section_factory->sections[$section]; $section_id = $s->id; ?> <li id="section_<?php echo $section; ?>" class="section_bar <?php if($s->settings['required'] == true) echo 'required-section';?>"> <div class="section-pad fix" style="background: url(<?php echo $s->settings['icon'];?>) no-repeat 10px 8px;"> <h4><?php echo $s->name;?></h4> <span class="s-description" <?php if($dtoggle = 'hide'):?>style="display:none"<?php endif;?> > <?php echo $s->settings['description'];?> </span> <?php $section_control = pagelines_option('section-control'); // Options $check_name = PAGELINES_SETTINGS.'[section-control]['.$template_slug.']['.$section.'][hide]'; $check_value = isset($section_control[$template_slug][$section]['hide']) ? $section_control[$template_slug][$section]['hide'] : null; $posts_check_type = ($check_value) ? 'show' : 'hide'; if($template == 'posts' || $template == 'single' || $template == '404' ){ $default_display_check_disabled = true; } else { $default_display_check_disabled = false; } if($template_area == 'main' || $template_area == 'templates'){ $posts_check_disabled = true; } else { $posts_check_label = ucfirst($posts_check_type) .' On Posts Pages'; $posts_check_name = PAGELINES_SETTINGS.'[section-control]['.$template_slug.']['.$section.'][posts-page]['.$posts_check_type.']'; $posts_check_value = isset($section_control[$template_slug][$section]['posts-page'][$posts_check_type]) ? $section_control[$template_slug][$section]['posts-page'][$posts_check_type] : null; $posts_check_disabled = false; } // Hooks //pagelines_ob_section_template( $s ); global $registered_hooks; ?> <div class="section-moreinfo"> <div><span class="section-moreinfo-toggle" onClick="jQuery(this).parent().next('.section-moreinfo-info').slideToggle();">Advanced Setup ↓</span></div> <div class="section-moreinfo-info"> <?php if(!$default_display_check_disabled):?> <strong>Settings</strong> <div class="section-options"> <div class="section-options-row"> <input class="section_control_check" type="checkbox" id="<?php echo $check_name; ?>" name="<?php echo $check_name; ?>" <?php checked((bool) $check_value); ?> /> <label for="<?php echo $check_name; ?>">Hide This By Default</label> </div> <?php if(!$posts_check_disabled):?> <div class="section-options-row"> <input class="section_control_check" type="checkbox" id="<?php echo $posts_check_name; ?>" name="<?php echo $posts_check_name; ?>" <?php checked((bool) $posts_check_value); ?>/> <label for="<?php echo $posts_check_name; ?>" class="<?php echo 'check_type_'.$posts_check_type; ?>"><?php echo $posts_check_label;?></label> </div> <?php endif;?> </div> <?php endif;?> <p> <strong>Standard Hooks:</strong> <div class="moreinfolist"> <span>pagelines_before_<?php echo $section_id; ?></span> <span>pagelines_inside_top_<?php echo $section_id; ?></span> <span>pagelines_inside_bottom_<?php echo $section_id; ?></span> <span>pagelines_after_<?php echo $section_id; ?></span> <span>(View template for additional hooks & filters)</span> <?php if(isset($registered_hooks[$section_id]) && is_array($registered_hooks[$section_id])){ foreach($registered_hooks[$section_id] as $reg_hook){ echo '<span>'.$reg_hook.'</span>'; } }?> </div> </p> <p><strong>CSS Selectors: </strong> <div class="moreinfolist"> <?php if( (isset($tfield['markup']) && $tfield['markup'] == 'content') || (isset($hook_info['markup']) && $hook_info['markup'] == 'content') ):?> <span>#<?php echo $section_id; ?> <small>(Full Screen Width)</small></span> <span>#<?php echo $section_id; ?> .content <small>(Content Width)</small></span> <span>#<?php echo $section_id; ?> .content-pad <small>(Content Inner)</small></span> <?php elseif( (isset($tfield['markup']) && $tfield['markup'] == 'copy') || (isset($hook_info['markup']) && $hook_info['markup'] == 'copy') ):?> <span>#<?php echo $section_id; ?> <small>(Width of Container)</small></span> <span>#<?php echo $section_id; ?> .copy <small>(Section Width)</small></span> <span>#<?php echo $section_id; ?> .copy-pad <small>(Section Inner)</small></span> <?php endif;?> </div> </p> </div> </div> </div> </li> <?php if(isset($available_sections[$section])) { unset($available_sections[$section]); } ?> <?php endif; endforeach;?> <?php endif;?> </ul> <div class="section_setup_controls fix"> <span class="setup_control" onClick="PageLinesSlideToggle('.s-description', '.describe_toggle', '.setup_control_text','Hide Section Descriptions', 'Show Section Descriptions', 'pl_section_desc_toggle');"> <span class="setup_control_text"> <?php if($dtoggle == 'show'):?> Hide Section Descriptions <?php else: ?> Show Section Descriptions <?php endif;?> </span> </span> </div> </div> <div class="sbank available_sections"> <div class="bank_title">Available/Disabled Sections</div> <ul id="sortable_sections" class="connectedSortable "> <?php foreach($available_sections as $sectionclass => $section): /* Flip values and keys */ $works_with = array_flip($section->settings['workswith']); $fails_with = array_flip($section->settings['failswith']); $markup_type = (!empty($hook_info)) ? $hook_info['markup'] : $tfield['markup']; if(isset( $works_with[$template] ) || isset( $works_with[$hook_id]) || isset($works_with[$hook_id.'-'.$template]) || isset($works_with[$markup_type])):?> <?php if( !isset($fails_with[$template]) && !isset($fails_with[$hook_id]) ):?> <li id="section_<?php echo $sectionclass;?>" class="section_bar" > <div class="section-pad fix" style="background: url(<?php echo $section->settings['icon'];?>) no-repeat 10px 6px;"> <h4><?php echo $section->name;?></h4> <span class="s-description" <?php if($dtoggle = 'hide'):?>style="display:none"<?php endif;?>> <?php echo $section->settings['description'];?> </span> </div> </li> <?php endif;?> <?php endif;?> <?php endforeach;?> </ul> </div> <div class="clear"></div> </div> <div class="clear"></div> <div class="vpro_sections_call s-description" <?php if($dtoggle = 'hide'):?>style="display:none"<?php endif;?>> <?php if(!VPRO):?> <p> <strong>A Note To Free Version Users:</strong><br/> In the Pro version of this product you will find several more "template areas" and HTML sections to play around with. </p> <p class="mod"> <?php if(isset($pl_section_factory->unavailable_sections) && is_array($pl_section_factory->unavailable_sections)):?> <strong>Missing Pro Sections</strong><br/> <?php foreach( $pl_section_factory->unavailable_sections as $unavailable_section ):?> <?php echo $unavailable_section->name;if($unavailable_section !== end($pl_section_factory->unavailable_sections)) echo ',';?> <?php endforeach;?> <?php endif;?> </p> <p class="mod"> <?php if(isset($unavailable_section_areas) && is_array($unavailable_section_areas)):?> <strong>Missing Pro Templates & Section Areas</strong> (i.e. places to put sections)<br/> <?php foreach( $unavailable_section_areas as $unavailable_section_area_name ):?> <?php echo $unavailable_section_area_name; if($unavailable_section_area_name !== end($unavailable_section_areas)) echo ',';?> <?php endforeach;?> <?php endif;?> </p> <?php endif;?> <p class=""> <strong>Section Quick Start</strong><br/> Sections are a super powerful way to control the content on your website. Building your site using sections has just 3 steps... <ol> <li><strong>Place</strong> Place sections in your templates using the interface above. This controls their order and loading.</li> <li><strong>Control</strong> If you want more control over where cross-template sections show; use section settings (under "Advanced Setup"). You can hide 'cross-template' sections, like sidebars, by default and activate them on individual pages/posts or on your blog page.</li> <li><strong>Customize</strong> Customize your sections using the theme settings on individual pages/posts and in this panel. You can also do advanced customization through hooks and custom css (for more info please see the <a href="http://www.pagelines.com/docs/">docs</a>).</li> </ol> </p> </div> </div> <?php }
jQuery('.'+stemplate).addClass('selected_template'); setSortable(stemplate); }); /* Layout Builder Control */ // Default Layout Select jQuery(' .layout-select-default .layout-image-border').click(function(){ LayoutSelectControl(this); }); <?php if (pagelines_option('layout')) { $tmap = pagelines_option('layout'); } if (isset($tmap['last_edit'])) { $last_edit = $tmap['last_edit']; } else { $last_edit = null; } $load_layout = new PageLinesLayout($last_edit); $load_margin = $load_layout->margin->bwidth; $load_west = $load_layout->west->bwidth; $load_east = $load_layout->east->bwidth; $load_gutter = $load_layout->gutter->bwidth; ?> setLayoutBuilder('<?php echo $load_layout->layout_map['last_edit']; ?>
function pagelines_process_reset_options() { foreach (get_option_array() as $menuitem => $options) { foreach ($options as $optionid => $o) { if ($o['type'] == 'reset' && pagelines_option($optionid)) { call_user_func($o['callback']); // Set the 'reset' option back to not set !important pagelines_update_option($optionid, null); wp_redirect(admin_url('admin.php?page=pagelines&reset=true&opt_id=' . $optionid)); exit; } } } }
/** * * Returns nav menu classes * * @package PageLines * @subpackage Functions Library * @since 1.1.0 * */ function pagelines_nav_classes() { $additional_menu_classes = ''; if (pagelines_option('hidesearch')) { $additional_menu_classes .= ' nosearch'; } if (pagelines_option('enable_drop_down')) { $additional_menu_classes .= ' sf-menu'; } return $additional_menu_classes; }
function get_feature_posts() { global $post; global $pagelines_ID; if (!isset($this->the_feature_posts)) { if (pagelines_option('feature_source') == 'posts') { $query_args = array('post_type' => 'post', 'orderby' => 'ID'); if (pagelines_option('feature_category')) { $query_args = array_merge($query_args, array('cat' => pagelines('feature_category'))); } } else { $query_args = array('post_type' => $this->id, 'orderby' => 'ID'); if (get_pagelines_meta('feature_set', $pagelines_ID)) { $query_args = array_merge($query_args, array('feature-sets' => get_post_meta($pagelines_ID, 'feature_set', true))); } elseif (pagelines_non_meta_data_page() && pagelines_option('feature_default_tax')) { $query_args = array_merge($query_args, array('feature-sets' => pagelines_option('feature_default_tax'))); } } if (pagelines('feature_items', $pagelines_ID)) { $query_args = array_merge($query_args, array('showposts' => pagelines_option('feature_items', $pagelines_ID))); } $feature_query = new WP_Query($query_args); $this->the_feature_posts = $feature_query->posts; return $this->the_feature_posts; } else { return $this->the_feature_posts; } }
function wp_debug_info(){ global $wpdb, $wp_version, $platform_build; // Set data & variables first $uploads = wp_upload_dir(); // Get user role $current_user = wp_get_current_user(); $user_roles = $current_user->roles; $user_role = array_shift($user_roles); // Format data for processing by a template $this->debug_info[] = array( 'title' => "WordPress Version", 'value' => $wp_version, 'level' => false, ); $this->debug_info[] = array( 'title' => "Multisite Enabled", 'value' => ( is_multisite() ) ? 'Yes' : 'No', 'level' => false ); $this->debug_info[] = array( 'title' => "Current Role", 'value' => $user_role, 'level' => false ); $this->debug_info[] = array( 'title' => "Theme Path", 'value' => '<code>' . TEMPLATEPATH . '</code>', 'level' => false ); $this->debug_info[] = array( 'title' => "Theme URI", 'value' => '<code>' . get_template_directory_uri() . '</code>', 'level' => false ); $this->debug_info[] = array( 'title' => "Platform Version", 'value' => CORE_VERSION, 'level' => false ); $this->debug_info[] = array( 'title' => "Platform Build", 'value' => $platform_build , 'level' => false ); $this->debug_info[] = array( 'title' => "PHP Version", 'value' => floatval( phpversion() ), 'level' => false ); $this->debug_info[] = array( 'title' => "Child theme", 'value' => ( TEMPLATEPATH != STYLESHEETPATH ) ? 'Yes' : '', 'level' => false, 'extra' => STYLESHEETPATH . '<br />' . get_stylesheet_directory_uri() ); $this->debug_info[] = array( 'title' => "Ajax disbled", 'value' => ( get_pagelines_option( 'disable_ajax_save' ) ) ? 'Yes':'', 'level' => false ); $this->debug_info[] = array( 'title' => "CSS Inline", 'value' => ( get_pagelines_option( 'inline_dynamic_css' ) ) ? 'Yes':'', 'level' => false ); $this->debug_info[] = array( 'title' => "CSS Error", 'value' => ( !get_pagelines_option( 'inline_dynamic_css' ) && !is_multisite() && !is_writable( PAGELINES_DCSS ) ) ? 'File is not writable!':'', 'level' => false ); $this->debug_info[] = array( 'title' => "PHP Safe Mode", 'value' => ( (bool) ini_get('safe_mode') ) ? 'Yes!':'', 'level' => false ); $this->debug_info[] = array( 'title' => "PHP Open basedir restriction", 'value' => ( (bool) ini_get('open_basedir') ) ? 'Yes!':'', 'level' => false ); $this->debug_info[] = array( 'title' => "PHP Register Globals", 'value' => ( (bool) ini_get('register_globals') ) ? 'Yes!':'', 'level' => false ); $this->debug_info[] = array( 'title' => "PHP Magic Quotes gpc", 'value' => ( (bool) ini_get('magic_quotes_gpc') ) ? 'Yes!':'', 'level' => false ); $this->debug_info[] = array( 'title' => "PHP low memory", 'value' => ( !ini_get('memory_limit') || ( intval(ini_get('memory_limit')) <= 32 ) ) ? intval(ini_get('memory_limit') ):'', 'level' => false ); $this->debug_info[] = array( 'title' => "Mysql version", 'value' => ( version_compare( $wpdb->get_var("SELECT VERSION() AS version"), '5' ) < 0 ) ? $wpdb->get_var("SELECT VERSION() AS version"):'', 'level' => false ); $this->debug_info[] = array( 'title' => "Upload DIR", 'value' => ( !is_writable( $uploads['path'] ) ) ? "Unable to write to <code>{$uploads['subdir']}</code>":'', 'level' => true, 'extra' => $uploads['path'] ); $this->debug_info[] = array( 'title' => "PHP type", 'value' => php_sapi_name(), 'level' => false ); $this->debug_info[] = array( 'title' => "OS", 'value' => PHP_OS, 'level' => false ); if ( get_pagelines_option('disable_updates') == true || ( is_multisite() && ! is_super_admin() ) ) { $this->debug_info[] = array( 'title' => "Automatic Updates", 'value' => 'Disabled', 'level' => false ); } else { $this->debug_info[] = array( 'title' => "Updates Credentials", 'value' => ( !pagelines_option( 'lp_username' ) || !pagelines_option( 'lp_password' ) ) ? 'Username/Password is required for automatic upgrades to function.' : '', 'level' => false ); if ( is_array( $a = get_transient('pagelines-update-PlatformPro') ) ) { $this->debug_info[] = array( 'title' => "Automatic Updates", 'value' => ( $a['package'] !== 'bad' ) ? 'Working.' : 'Not working', 'extra' => ( $a['package'] !== 'bad' ) ? 'Latest available: ' . array_shift( array_splice( $a, 0, count( $a ) ) ) : '', 'level' => false ); } } $this->debug_info[] = array( 'title' => "Plugins", 'value' => $this->debug_get_plugins(), 'level' => false ); }
function section_template() { global $post; ?> <div class="post-footer"> <div class="left"> <?php e_pagelines('post_footer_social_text', ''); ?> </div> <div class="right"> <?php $upermalink = urlencode(get_permalink()); $utitle = urlencode(get_the_title()); ?> <?php if (pagelines_option('share_facebook')) { ?> <a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink(); ?> &t=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Facebook" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-facebook.png" alt="Facebook" /></a> <?php } ?> <?php if (pagelines_option('share_twitter')) { ?> <?php $title = get_the_title($post->ID); ?> <a href="http://twitter.com/home?status=<?php $turl = getTinyUrl(get_permalink($post->ID)); echo $turl; ?> " title="<?php _e('Share on', 'pagelines'); ?> Twitter" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-twitter.png" alt="Twitter" /></a> <?php } ?> <?php if (pagelines_option('share_delicious')) { ?> <a href="http://del.icio.us/post?url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Delicious" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-del.png" alt="Delicious" /></a> <?php } ?> <?php if (pagelines_option('share_mixx')) { ?> <a href="http://www.mixx.com/submit?page_url=<?php the_permalink(); ?> " title="<?php _e('Share on', 'pagelines'); ?> Mixx" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-mixx.png" alt="Mixx" /></a> <?php } ?> <?php if (pagelines_option('share_stumbleupon')) { ?> <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> StumbleUpon" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-stumble.png" alt="StumbleUpon" /></a> <?php } ?> <?php if (pagelines_option('share_digg')) { ?> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?> &title=<?php echo urlencode(strip_tags(get_the_title($post->ID))); ?> " title="<?php _e('Share on', 'pagelines'); ?> Digg" rel="nofollow" target="_blank"><img src="<?php echo CORE_IMAGES; ?> /ico-digg.png" alt="Digg" /></a> <?php } ?> </div> <div class="clear"></div> </div> <?php }
function section_template() { ?> <div class="thecarousel"> <ul id="mycarousel" class="mycarousel"> <?php global $post; global $pagelines_ID; // Pictures in Carousel if (pagelines('carouselitems', $pagelines_ID)) { $carouselitems = pagelines('carouselitems', $pagelines_ID); } else { $carouselitems = 30; } $carousel_post_id = pagelines_option('carousel_post_id', $pagelines_ID) ? pagelines_option('carousel_post_id', $pagelines_ID) : null; if (pagelines('carousel_image_width', $pagelines_ID)) { $carousel_image_width = pagelines('carousel_image_width', $pagelines_ID); } else { $carousel_image_width = 64; } if (pagelines('carousel_image_height', $pagelines_ID)) { $carousel_image_height = pagelines('carousel_image_height', $pagelines_ID); } else { $carousel_image_height = 64; } if (function_exists('nggDisplayRandomImages') && pagelines('carousel_mode', $post->ID) == 'ngen_gallery') { if (pagelines('carousel_ngen_gallery', $pagelines_ID)) { $ngen_id = pagelines('carousel_ngen_gallery', $pagelines_ID); } else { $ngen_id = 1; } echo do_shortcode('[nggallery id=' . $ngen_id . ' template=plcarousel]'); } elseif (function_exists('get_flickrRSS') && pagelines('carousel_mode', $pagelines_ID) == 'flickr') { get_flickrRSS(array('num_items' => $carouselitems, 'html' => '<li><a href="%flickr_page%" title="%title%"><img src="%image_square%" alt="%title%"/><span class="list-title">%title%</span></a></li>')); } elseif (pagelines('carousel_mode', $pagelines_ID) == 'flickr' && !function_exists('get_flickrRSS') || pagelines('carousel_mode', $pagelines_ID) == 'ngen_gallery' && !function_exists('nggDisplayRandomImages')) { ?> <div class="carousel_text"> <?php _e("The plugin for the selected carousel mode (NextGen-Gallery or FlickrRSS) needs to be installed and activated.", 'pagelines'); ?> </div> <?php } else { $carousel_post_query = 'numberposts=' . $carouselitems; if ($carousel_post_id) { $carousel_post_query .= '&category_name=' . $carousel_post_id; } $recentposts = get_posts($carousel_post_query); foreach ($recentposts as $key => $rpost) { ?> <?php setup_postdata($rpost); ?> <li class="list-item fix"> <a class="carousel_image_link" href="<?php echo get_permalink($rpost->ID); ?> "> <?php if (has_post_thumbnail()) { ?> <?php the_post_thumbnail(array($carousel_image_width, $carousel_image_height), array('class' => 'list_thumb list-thumb')); ?> <?php } else { ?> <img class="list_thumb list-thumb" src="<?php echo CORE_IMAGES; ?> /post-blank.jpg" class="sidebar_thumb" /> <?php } ?> <span class="list-title"><?php echo $rpost->post_title; ?> </span> </a> </li> <?php } ?> <?php } ?> </ul> </div> <?php }
/** * * @TODO do * */ function load_pagelines_option($key, $alt = null, $post_id = null, $setting = null) { if ($post_id && get_post_meta($post_id, $key, true) && !is_home()) { //if option is set for a page/post return get_post_meta($post_id, $key, true); } elseif (pagelines_option($key, $post_id, $setting)) { return pagelines_option($key, $post_id, $setting); } else { return $alt; } }
/** * * PageLines Attribution * * @package PageLines * @subpackage Functions Library * @since 1.3.3 * */ function pagelines_cred(){ if(pagelines_option('no_credit') || !VDEV){ $img = sprintf('<img src="%s" alt="%s by PageLines" />', apply_filters('pagelines_leaf_image', PL_IMAGES.'/pagelines.png'), THEMENAME); if(get_edit_post_link()){ $url = get_edit_post_link(); } else { $url = load_pagelines_option('partner_link', 'http://www.pagelines.com/'); } $link = (!apply_filters('no_leaf_link', '')) ? sprintf('<a class="plimage" target="_blank" href="%s" title="%s">%s</a>', $url, 'PageLines', $img ) : $img; $cred = sprintf('<div id="cred" class="pagelines">%s</div><div class="clear"></div>', $link); echo apply_filters('pagelines_leaf', $cred); } }
/** * PageLines Get Post Title * * Gets the post title for all posts * * @package PageLines Framework * @subpackage Functions Library * @since 1.1.0 * * @param string $format * * @uses pagelines_option( 'pagetitles' ) * @uses get_the_title - default WordPress post title text * * @internal adds filter 'pagelines_post_title_text' * @internal adds filter 'pagelines_post_title_output' * * @return string - (new) Post $title */ function pagelines_get_post_title($format = '') { global $post; global $pagelines_ID; /** Check if page and show page title option is set to true */ if (is_page() && pagelines_option('pagetitles') && !has_filter("pagelines_no_page_title_{$pagelines_ID}")) { $title = sprintf('<h1 class="entry-title pagetitle">%s</h1>', apply_filters('pagelines_post_title_text', get_the_title())); } elseif (!is_page()) { if (is_singular()) { $title = sprintf('<h1 class="entry-title">%s</h1>', apply_filters('pagelines_post_title_text', get_the_title())); } elseif ($format == 'clip') { $title = sprintf('<h4 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h4>', get_permalink($post), the_title_attribute('echo=0'), apply_filters('pagelines_post_title_text', get_the_title())); } else { $title = sprintf('<h2 class="entry-title"><a href="%s" title="%s" rel="bookmark">%s</a></h2>', get_permalink($post), the_title_attribute('echo=0'), apply_filters('pagelines_post_title_text', get_the_title())); } } else { $title = ''; } return apply_filters('pagelines_post_title_output', $title) . "\n"; }
function print_section_html($hook_id) { global $pl_section_factory; global $post; global $pagelines_post; $section_control = pagelines_option('section-control'); if (is_array($this->{$hook_id})) { $markup_type = $this->map[$hook_id]['markup']; foreach ($this->{$hook_id} as $section) { $template_slug = $hook_id == 'templates' || $hook_id == 'main' ? $hook_id . '-' . $this->template_type : $hook_id; $sc = isset($section_control[$template_slug][$section]) ? $section_control[$template_slug][$section] : null; if (isset($pl_section_factory->sections[$section]) && is_object($pl_section_factory->sections[$section])) { $pl_section_factory->sections[$section]->before_section($markup_type); $pl_section_factory->sections[$section]->section_template(); $pl_section_factory->sections[$section]->after_section($markup_type); } $post = $pagelines_post; // Set the $post variable back to the default for the page (prevents sections from messing with others) } } }