当前位置: 首页>>代码示例>>PHP>>正文


PHP pagelines_option函数代码示例

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


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

示例1: section_template

   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
	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:27,代码来源:section.breadcrumb.php

示例2: section_template

   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 }
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:32,代码来源:section.footer_nav.php

示例3: get_layout_map

 function get_layout_map()
 {
     if (pagelines_option('layout')) {
         $this->layout_map = pagelines_option('layout');
     } else {
         $this->layout_map = $this->default_layout_setup();
     }
 }
开发者ID:rohans,项目名称:tradeinbooks,代码行数:8,代码来源:class.layout.php

示例4: section_template

 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);
 }
开发者ID:TheTypoMaster,项目名称:akpsibruins,代码行数:9,代码来源:section.banners.php

示例5: section_head

	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;
}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:12,代码来源:section.nav.php

示例6: section_template

   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&amp;url=<?php the_permalink() ?>&amp;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(); ?>&amp;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(); ?>&amp;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() ?>&amp;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&amp;url=<?php the_permalink() ?>&amp;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	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:51,代码来源:section.sharebar.php

示例7: section_template

    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 
    }
开发者ID:rohans,项目名称:tradeinbooks,代码行数:46,代码来源:section.callout.php

示例8: section_template

    /**
     * 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 
    }
开发者ID:climo,项目名称:PageLines-Framework,代码行数:43,代码来源:section.php

示例9: section_template

   	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();
			}	
			
		}
		

	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:24,代码来源:section.secondnav.php

示例10: _get_box_image

 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);
 }
开发者ID:TheTypoMaster,项目名称:akpsibruins,代码行数:16,代码来源:section.boxes.php

示例11: pagelines_font_replacement

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 
        }
    }
}
开发者ID:rohans,项目名称:tradeinbooks,代码行数:47,代码来源:library.templates.php

示例12: pagelines_option

    ?>
			<?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 
开发者ID:rohans,项目名称:tradeinbooks,代码行数:31,代码来源:template.branding.php

示例13: section_template

	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
	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:62,代码来源:section.footcols.php

示例14: custom_css

	function custom_css(){
		if( $this->comments )  $this->css .= '/* Custom CSS */'.$this->nl2;
		$this->css .= pagelines_option('customcss');
		$this->css .= $this->nl2;
	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:5,代码来源:class.css.php

示例15: section_head

	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 }
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:25,代码来源:section.carousel.php


注:本文中的pagelines_option函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。