示例#1
0
        function home_blog_columns($count, $lastborder = false)
        {
            global $lambda_meta_data, $post, $theme_options;
            $metadata = $lambda_meta_data->the_meta();
            if ($metadata['activate_latest_blog'] == 'on') {
                ?>
				
		<section class="recent-post clearfix<?php 
                echo $count == 1 ? ' padding-top' : '';
                echo $lastborder ? ' last-border' : '';
                ?>
">		
		
		<?php 
                if (isset($metadata['blog_headline']) && !empty($metadata['blog_headline'])) {
                    ?>
			
            <div class="title-wrap clearfix">
            
                <h3 class="home-title"><span><?php 
                    echo lambda_translate_meta($metadata['blog_headline']);
                    ?>
</span></h3>
                
                <?php 
                    if (isset($metadata['blog_link']) && !empty($metadata['blog_link'])) {
                        ?>

                  	<span class="home-title-link"><a href="<?php 
                        echo $metadata['blog_link'];
                        ?>
"><?php 
                        echo $metadata['blog_link_text'];
                        ?>
</a></span>
                    
             	<?php 
                    }
                    ?>
                
			</div>
                       					
		<?php 
                }
                ?>
	
		
		<?php 
                render_lambda_blog($metadata, true);
                ?>
		
		</section>
		
		<?php 
            }
            // end blog
        }
示例#2
0
             render_service_box($singlebox);
             break;
         case "testimonial":
             render_testimonial($singlebox);
             break;
         case "pricing_table":
             render_pricing_table($singlebox['pricing_table']);
             break;
         case "portfolio_excerpt":
             lambda_portfolio_columns($singlebox, $counter, true);
             break;
         case "testimonialcarousel":
             render_testimonial_carousel($singlebox, '', $counter, 'page');
             break;
         case "blog_excerpt":
             render_lambda_blog($singlebox, false);
             break;
         case "sidebarwidget":
             render_simple_sidebar($singlebox, $gridsize);
             break;
         case "clientbox":
             render_clientbox($singlebox);
             break;
     }
 }
 //choose correct closing tag
 if (isset($singlebox['box_type']) && $singlebox['box_type'] != 'service_column') {
     echo '</div>';
 } else {
     echo '</section>';
 }