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 }
/** * * @TODO do * */ function e_pagelines($key, $alt = null, $post_id = null, $setting = null) { print_pagelines_option($key, $alt, $post_id, $setting); }
*/ pagelines_register_hook('pagelines_before_html'); // Hook ?> <!DOCTYPE html> <html <?php language_attributes(); ?> > <head> <?php pagelines_register_hook('pagelines_head'); // Hook wp_head(); // Hook (WordPress) print_pagelines_option('asynch_analytics'); // Recommended Spot For Asynchronous Google Analytics ?> </head> <body <?php body_class(pagelines_body_classes()); ?> > <?php pagelines_register_hook('pagelines_before_site'); // Hook ?> <div id="site" class="<?php echo pagelines_layout_mode(); ?> "> <!-- #site // Wraps #header, #page-main, #footer - closed in footer -->
</div> <?php pagelines_register_hook('pagelines_after_main'); // Hook ?> <div class="clear"></div> </div> </div> </div> <?php pagelines_register_hook('pagelines_after_page'); // Hook ?> </div> </div> <?php pagelines_register_hook('pagelines_after_footer'); // Hook ?> </div> <?php } print_pagelines_option('footerscripts'); // Load footer scripts option wp_footer(); // Hook (WordPress) ?> </body> </html>
function pagelines_head_common() { /* Title Metatag */ echo "\n<title>"; if (pagelines_bbpress_forum()) { bb_title(); } elseif (pagelines_is_buddypress_page()) { bp_page_title(); } else { if (is_front_page()) { echo get_bloginfo('name'); } else { wp_title(''); } } echo "</title>\n"; if (!VDEV) { echo "<!-- Platform WordPress Framework By PageLines - www.PageLines.com -->\n\n"; } /* Meta Images */ if (pagelines_option('pagelines_favicon')) { echo '<link rel="shortcut icon" href="' . pagelines_option('pagelines_favicon') . '" type="image/x-icon" />'; } if (pagelines_option('pagelines_touchicon')) { echo '<link rel="apple-touch-icon" href="' . pagelines_option('pagelines_touchicon') . '" />'; } ?> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?> ; charset=<?php bloginfo('charset'); ?> " /> <link rel="profile" href="http://gmpg.org/xfn/11" /> <meta name="generator" content="WordPress <?php bloginfo('version'); // For stats in WordPress ?> " /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?> " /> <?php if (pagelines_option('gfonts')) { ?> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php print_pagelines_option('gfonts_families', 'molengo'); ?> "> <?php } if (pagelines_bbpress_forum()) { // Load bbPress headers bb_feed_head(); bb_head(); echo '<link rel="stylesheet" href="'; bb_stylesheet_uri(); echo '" type="text/css" />'; // Enqueued Stuff doesn't show in bbPress // So we have to load the CSS manually.... if (VPRO) { echo '<link rel="stylesheet" id="pagelines-pro-css" href="'; echo PAGELINES_PRO_ROOT . '/pro.css'; echo '" type="text/css" />'; } echo '<link rel="stylesheet" id="pagelines-bbpress-css" href="'; bloginfo('stylesheet_url'); echo '" type="text/css" />'; } if (VPRO) { wp_register_style('pagelines-pro', PAGELINES_PRO_ROOT . '/pro.css', array(), CORE_VERSION, 'all'); wp_enqueue_style('pagelines-pro'); } wp_register_style('pagelines-stylesheet', get_bloginfo('stylesheet_url'), array(), CORE_VERSION, 'all'); wp_enqueue_style('pagelines-stylesheet'); // Queue Common Javascript Libraries wp_enqueue_script("jquery"); if (is_single() || is_page()) { wp_enqueue_script('comment-reply'); } // This makes the comment box appear where the ‘reply to this comment’ link is }
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 }
/** * PageLines <head> Includes * */ function pagelines_head_common(){ pagelines_register_hook('pagelines_code_before_head'); // Hook printf('<meta http-equiv="Content-Type" content="%s; charset=%s" />', get_bloginfo('html_type'), get_bloginfo('charset')); pagelines_title_tag(); if(!VDEV) echo "<!-- Platform WordPress Framework By PageLines - www.PageLines.com -->\n"; /* Meta Images */ if(pagelines_option('pagelines_favicon')) printf('<link rel="shortcut icon" href="%s" type="image/x-icon" />%s', pagelines_option('pagelines_favicon'), "\n"); if(pagelines_option('pagelines_touchicon')) printf('<link rel="apple-touch-icon" href="%s" />%s', pagelines_option('pagelines_touchicon'), "\n"); if(!apply_filters( 'pagelines_xfn', '' )) echo '<link rel="profile" href="http://gmpg.org/xfn/11" />'."\n"; // bbPress Header... doesn't support hooks, or they need to be reloaded. if( pagelines_bbpress_forum() ){ pagelines_load_css( bb_get_stylesheet_uri(), 'pagelines-bbpress', CORE_VERSION); bb_feed_head(); bb_head(); } // Get Pro Styles if(VPRO) pagelines_load_css_relative('pro/pro.css', 'pagelines-pro'); // Get Main Styles pagelines_load_css( get_bloginfo('stylesheet_url'), 'pagelines-stylesheet', pagelines_get_style_ver()); // RTL Language Support if(is_rtl()) pagelines_load_css_relative( 'rtl.css', 'pagelines-rtl'); // Queue Common Javascript Libraries wp_enqueue_script("jquery"); // Fix IE and special handling pagelines_fix_ie(); // Cufon replacement pagelines_font_replacement(); // Headerscripts option > custom code print_pagelines_option('headerscripts'); // Header Scripts Input Option }
/** * Option Interface Header * */ function build_header(){?> <div class='wrap'> <table id="optionstable"><tbody><tr><td valign="top" width="100%"> <form id="pagelines-settings-form" method="post" action="options.php" class="main_settings_form"> <!-- hidden fields --> <?php wp_nonce_field('update-options') ?> <?php settings_fields(PAGELINES_SETTINGS); // important! ?> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?>[theme_version]>" value="<?php echo esc_attr(pagelines_option('theme_version')); ?>" /> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?>[selectedtab]" id="selectedtab" value="<?php print_pagelines_option('selectedtab', 0); ?>" /> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?>[just_saved]" id="just_saved" value="1" /> <input type="hidden" id="input-full-submit" name="input-full-submit" value="0" /> <?php $this->_get_confirmations_and_system_checking(); ?> <?php if(isset($_COOKIE['PageLinesTabCookie'])) $selected_tab = (int) $_COOKIE['PageLinesTabCookie']; elseif(pagelines_option('selectedtab')) $selected_tab = pagelines_option('selectedtab'); else $selected_tab = 0; //echo $_COOKIE['PageLinesTabCookie']; ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($) { var $myTabs = $("#tabs").tabs({ fx: { opacity: "toggle", duration: "fast" }, selected: <?php echo $selected_tab; ?>}); $('#tabs').bind('tabsshow', function(event, ui) { var selectedTab = $('#tabs').tabs('option', 'selected'); $("#selectedtab").val(selectedTab); $.cookie('PageLinesTabCookie', selectedTab); }); }); </script> <div id="optionsheader"> <div class="hl"></div> <div id="optionstop" class="fix"> <!-- Form Title --> <!-- Configuration intro text --> <div class="options_intro"> <div class="form_title"> <?php echo THEMENAME;?> <?php _e('Settings', 'pagelines');?> </div> <strong>Welcome to your <?php echo THEMENAME;?> settings.</strong> This section allows you to customize the global form and function of your site. <br/> <?php if(!VPRO):?> If you'd like more features; please check out <a href="<?php echo PROVERSIONOVERVIEW;?>"><?php echo PROVERSION;?></a> for tons more templates, options and support. <?php endif;?> </div> <!-- Pagelines Link --> <a class="optionsheader_plink" href="http://www.pagelines.com/" target="_blank"> </a> </div> <div id="optionssubheader"> <div class="hl"></div> <div class="padding fix"> <div class="subheader_links"> <a class="sh_preview" href="<?php echo home_url(); ?>/" target="_blank" target-position="front">View Site</a> <a class="sh_docs" href="http://www.pagelines.com/docs/" target="_blank" ><?php _e('Docs', 'pagelines');?></a> <a class="sh_forum" href="http://www.pagelines.com/forum/" target="_blank" ><?php _e('Forum', 'pagelines');?></a> </div> <div class="subheader_right"> <input class="button-primary" type="submit" name="submit" value="<?php _e('Save Options', 'pagelines');?>" /> </div> </div> </div> <div class="clear"></div> </div> <?php }
/** * Option Interface Header * */ function build_header() { ?> <div class='wrap'> <table id="optionstable"><tbody><tr><td valign="top" width="100%"> <form method="post" action="options.php"> <!-- hidden fields --> <?php wp_nonce_field('update-options'); ?> <?php settings_fields(PAGELINES_SETTINGS); // important! ?> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?> [theme_version]>" value="<?php echo esc_attr(pagelines_option('theme_version')); ?> " /> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?> [selectedtab]" id="selectedtab" value="<?php print_pagelines_option('selectedtab', 0); ?> " /> <input type="hidden" name="<?php echo PAGELINES_SETTINGS; ?> [just_saved]" id="just_saved" value="1" /> <?php $this->_get_confirmations_and_system_checking(); ?> <?php if (isset($_GET['selectedtab']) && !empty($_GET['selectedtab'])) { $tab = $_GET['selectedtab']; } else { $tab = 0; } ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($) { var $myTabs = $("#tabs").tabs({ fx: { opacity: "toggle", duration: "fast" }, selected: <?php print_pagelines_option('selectedtab', 0); ?> }); $('#tabs').bind('tabsshow', function(event, ui) { $("#selectedtab").val($('#tabs').tabs('option', 'selected')); }); $('#newoption_button').click(function() { // bind click event to link $myTabs.tabs('select', 8); // switch to third tab return false; }); }); </script> <div id="optionsheader"> <div class="hl"></div> <div id="optionstop" class="fix"> <!-- Form Title --> <!-- Configuration intro text --> <div class="options_intro"> <div class="form_title"> <?php echo THEMENAME; ?> <?php _e('Theme Options', 'pagelines'); ?> </div> <small><strong>Welcome to <?php echo THEMENAME; ?> settings.</strong> This section allows you to customize the form and function of your site. <br/> <?php if (VPRO) { ?> We hope you are enjoying this premium product from <a href="http://www.pagelines.com" target="_blank" title="PageLines WordPress Design">PageLines</a>.</small> <?php } else { ?> If you'd like more features; please check out <a href="<?php echo PROVERSIONOVERVIEW; ?> "><?php echo PROVERSION; ?> </a> for tons more templates, options and support. </small> <?php } ?> </div> <!-- Pagelines Link --> <a class="optionsheader_plink" href="http://www.pagelines.com/" target="_blank"> </a> </div> <div id="optionssubheader"> <div class="hl"></div> <div class="padding fix"> <div class="subheader_links"> <a class="sh_preview" href="<?php echo home_url(); ?> /" target="_blank" target-position="front">View Site</a> <a class="sh_docs" href="http://www.pagelines.com/docs/" target="_blank" ><?php _e('Docs', 'pagelines'); ?> </a> <a class="sh_forum" href="http://www.pagelines.com/forum/" target="_blank" ><?php _e('Forum', 'pagelines'); ?> </a> </div> <div class="subheader_right"> <input class="button-primary" type="submit" name="submit" value="<?php _e('Save Options', 'pagelines'); ?> " /> </div> </div> </div> <div class="clear"></div> </div> <?php }
*/ // Deal with BuddyPress and BuddyPress Template Pack if(pagelines_is_buddypress_page()):?> </div> </div> <?php endif; ?> </div> <!-- END #dynamic-content --> <div id="morefoot_area"><?php pagelines_template_area('pagelines_morefoot', 'morefoot'); // Hook ?></div> <div class="clear"></div> </div> <!-- END #page-main from header --> </div> <!-- END #page-canvas from header --> </div> <!-- END #page from header --> <div id="footer"> <div class="outline fix"><?php pagelines_template_area('pagelines_footer', 'footer'); // Hook pagelines_register_hook('pagelines_after_footer'); // Hook pagelines_cred(); ?></div> </div> </div> <?php print_pagelines_option('footerscripts'); // Load footer scripts option wp_footer(); // Hook (WordPress) ?> </body> </html>
*/ pagelines_register_hook('pagelines_before_html'); // Hook ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <?php pagelines_register_hook('pagelines_head'); // Hook wp_head(); // Hook (WordPress) ?></head> <body <?php body_class( pagelines_body_classes() ); ?>> <?php print_pagelines_option('asynch_analytics'); // Recommended Spot For Asynchronous Google Analytics pagelines_register_hook('pagelines_before_site'); // Hook ?><div id="site" class="<?php echo pagelines_layout_mode();?>"> <!-- #site // Wraps #header, #page-main, #footer - closed in footer --> <?php pagelines_register_hook('pagelines_before_page'); // Hook ?> <div id="page"> <!-- #page // Wraps #header, #page-main - closed in footer --> <div id="page-canvas"> <?php pagelines_register_hook('pagelines_before_header');?> <div id="header" class="container-group fix"> <div class="outline"> <?php pagelines_template_area('pagelines_header', 'header'); // Hook ?> </div> </div> <?php pagelines_register_hook('pagelines_before_main'); // Hook ?> <div id="page-main" class="container-group fix"> <!-- #page-main // closed in footer --> <div id="dynamic-content" class="outline fix">