コード例 #1
0
 function nicethemes_infoboxes_shortcode($atts)
 {
     extract(shortcode_atts(array('columns' => '3', 'rows' => false, 'numberposts' => '3'), $atts));
     $html = nicethemes_infoboxes(array('echo' => false, 'columns' => $columns, 'rows' => $rows, 'numberposts' => $numberposts));
     return $html;
 }
コード例 #2
0
}
/* Template Name: Home */

get_header();

$nice_infobox_enable = get_option( 'nice_infobox_enable' );
$nice_infobox_order = get_option( 'nice_infobox_order' );

if ( $nice_infobox_order == '' )
	$nice_infobox_order = 'date';

if ( $nice_infobox_enable == 'true' ) :

	nicethemes_infoboxes( array(	'orderby'		=> $nice_infobox_order,
							'numberposts'	=> 3,
							'before' 		=> '<section id="infoboxes" class="infoboxes home-block clearfix"><div class="col-full">',
							'after'			=> '</div></section><!--/.#infobox-->' )
					);

endif;

if ( isset( $nice_options['nice_articles_entries'] ) ) $number_articles = $nice_options['nice_articles_entries'];
else $number_articles = 5;


nicethemes_knowledgebase( array(	'columns'		=> 3,
							'numberposts'	=> $number_articles,
							'before'		=> '<section id="knowledgebase" class="home-block clearfix"><div class="col-full">',
							'after'			=> '</div></section>' ) );