function widget($args, $instance)
    {
        global $nxtdb;
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        $title_cats = $instance['title_cats'];
        $title_pages = $instance['title_pages'];
        $title_archive = $instance['title_archive'];
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			<ul class="tabs clf">
				<li><a class="btn-small"><span><?php 
        echo $title_cats;
        ?>
</span></a></li>
				<li><a><span><?php 
        echo $title_pages;
        ?>
</span></a></li>
				<li><a><span><?php 
        echo $title_archive;
        ?>
</span></a></li>
			</ul>
			<div class="clear"></div>
			<div class="panes">
				<div class="pane">
					<ul>
					<?php 
        nxt_list_categories('show_count=1&title_li=&orderby=name&depth=1');
        ?>
					</ul>
				</div><!--pane-->
				<div class="pane">
					<ul>
					<?php 
        nxt_list_pages('title_li=&depth=1&');
        ?>
					</ul>
				</div><!--pane-->
				<div class="pane">
					<ul class="archive-item">
					<?php 
        nxt_get_archives('type=monthly&show_post_count=true&format=html');
        ?>
					</ul>
				</div><!--pane-->
			</div><!--panes-->
			<div class="clf"></div>
		<?php 
        echo $after_widget;
    }
Exemplo n.º 2
0
</a></li>
									<?php 
        }
        ?>
								</ul>	
				</div>
				<div id="archives-month" class="grid_8 omega">				
								
								<h4><?php 
        _e('Archives by Month:', 'infinity_text_domain');
        ?>
</h4>
								
								<ul>
									<?php 
        nxt_get_archives('type=monthly');
        ?>
								</ul>
		
				</div>			
			</div>	
			<div id="archives-subject" class="grid_24">
				
							<h4><?php 
        _e('Archives by Subject:', 'infinity_text_domain');
        ?>
</h4>
							
							<ul>
						 		<?php 
        nxt_list_categories('title_li=');
_e('Categories', 'huddle');
?>
</h5>	  
						    <ul>
						        <?php 
nxt_list_categories('title_li=&hierarchical=1&show_count=1');
?>
	
						    </ul>
							<h5><?php 
_e('Monthly Archives', 'huddle');
?>
</h5>
						    <ul>
						        <?php 
nxt_get_archives('type=monthly&show_post_count=1');
?>
	
						    </ul>
	
						</div><!--archive-lists-->
					</div><!-- .post-content -->
				</div><!-- .post -->

			<?php 
do_action('bp_after_blog_page');
?>

		</div><!--#main-->

	<?php 
Exemplo n.º 4
0
    function widget($args, $instance)
    {
        extract($args);
        $c = !empty($instance['count']) ? '1' : '0';
        $d = !empty($instance['dropdown']) ? '1' : '0';
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Archives') : $instance['title'], $instance, $this->id_base);
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        if ($d) {
            ?>
		<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value=""><?php 
            echo esc_attr(__('Select Month'));
            ?>
</option> <?php 
            nxt_get_archives(apply_filters('widget_archives_dropdown_args', array('type' => 'monthly', 'format' => 'option', 'show_post_count' => $c)));
            ?>
 </select>
<?php 
        } else {
            ?>
		<ul>
		<?php 
            nxt_get_archives(apply_filters('widget_archives_args', array('type' => 'monthly', 'show_post_count' => $c)));
            ?>
		</ul>
<?php 
        }
        echo $after_widget;
    }
Exemplo n.º 5
0
/**
 * @since 0.71
 * @deprecated 2.1
 * @deprecated Use nxt_get_archives()
 * @see nxt_get_archives()
 *
 * @param string $type
 * @param string $limit
 * @param string $format
 * @param string $before
 * @param string $after
 * @param bool $show_post_count
 * @return unknown
 */
function get_archives($type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false)
{
    _deprecated_function(__FUNCTION__, '2.1', 'nxt_get_archives()');
    $args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
    return nxt_get_archives($args);
}
Exemplo n.º 6
0
		<?php 
    }
    ?>
		</ul>
		<ul role="navigation">
			<?php 
    nxt_list_pages('title_li=<h2>' . __('Pages') . '</h2>');
    ?>

			<li><h2><?php 
    _e('Archives');
    ?>
</h2>
				<ul>
				<?php 
    nxt_get_archives(array('type' => 'monthly'));
    ?>
				</ul>
			</li>

			<?php 
    nxt_list_categories(array('show_count' => 1, 'title_li' => '<h2>' . __('Categories') . '</h2>'));
    ?>
		</ul>
		<ul>
			<?php 
    /* If this is the frontpage */
    if (is_home() || is_page()) {
        ?>
				<?php 
        nxt_list_bookmarks();