示例#1
0
/** Upcoming events module. */
function ec3_k2mod_list($args)
{
    extract($args);
    echo $before_module . $before_title . $title . $after_title;
    ec3_get_events(sbm_get_option('limit'));
    echo $after_module;
}
示例#2
0
 /** Upcoming Events widget. */
 function ec3_widget_list($args)
 {
     extract($args);
     $options = get_option('ec3_widget_list');
     echo $before_widget . $before_title;
     echo ec3_default_string($options['title'], 'Upcoming Events');
     echo $after_title;
     ec3_get_events($options['limit']);
     echo $after_widget;
 }
示例#3
0
/** DO NOT USE. This function is for backwards compatibility. */
function ec2_get_events($limit, $date_format)
{
    ec3_get_events($limit, '<a href="%LINK%">%TITLE% (%TIME%)</a>', '%DATE%:', $date_format);
}
				<?php 
wp_list_cats('sort_column=ID&optioncount=1&hierarchical=1');
?>
				</ul>
			</li>

		        <li>
		           <?php 
ec3_get_calendar();
?>
		        </li>
		        <li><?php 
_e('Next 5 Events');
?>
		           <?php 
ec3_get_events(5);
?>
		        </li>

			<?php 
/* If this is the frontpage */
if (is_home() || is_page()) {
    ?>
				
				<?php 
    get_links_list();
    ?>
				
				<li><h2>Meta</h2>
				<ul>
					<?php 
示例#5
0
文件: widget.php 项目: smoobs/sjh
 /** Upcoming Events widget. */
 function ec3_widget_list($args)
 {
     extract($args);
     $options = get_option('ec3_widget_list');
     echo $before_widget . $before_title;
     echo ec3_widget_title($options['title'], 'Upcoming Events');
     echo $after_title;
     ec3_get_events($options['limit'], EC3_DEFAULT_TEMPLATE_EVENT, EC3_DEFAULT_TEMPLATE_DAY, get_option('date_format'));
     echo $after_widget;
 }