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;
    }
        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=');
        ?>
							</ul>
							
			</div>
		</div>
			<?php 
        do_action('close_loop_page');
        ?>
	</div>
<?php 
        do_action('close_loop');
    }
}
?>
					
        the_title();
        ?>
</a></li>
						        <?php 
    }
}
?>
					  
						    </ul>
							<h5><?php 
_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-->
Example #4
0
 /**
  * Render category checkboxes
  */
 public function render_field()
 {
     $args = array('show_option_all' => false, 'orderby' => 'name', 'order' => 'ASC', 'show_last_updated' => false, 'style' => false, 'show_count' => false, 'hide_empty' => false, 'use_desc_for_title' => false, 'child_of' => false, 'feed' => false, 'feed_type' => false, 'feed_image' => false, 'exclude' => false, 'exclude_tree' => false, 'include' => false, 'hierarchical' => false, 'title_li' => __('Categories'), 'number' => null, 'echo' => true, 'depth' => false, 'current_category' => false, 'pad_counts' => false, 'taxonomy' => 'category', 'walker' => new ICE_Option_Walker_Category(), 'ice_option' => $this);
     // call the NXTClass function
     nxt_list_categories($args);
 }
Example #5
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories') : $instance['title'], $instance, $this->id_base);
        $c = !empty($instance['count']) ? '1' : '0';
        $h = !empty($instance['hierarchical']) ? '1' : '0';
        $d = !empty($instance['dropdown']) ? '1' : '0';
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        $cat_args = array('orderby' => 'name', 'show_count' => $c, 'hierarchical' => $h);
        if ($d) {
            $cat_args['show_option_none'] = __('Select Category');
            nxt_dropdown_categories(apply_filters('widget_categories_dropdown_args', $cat_args));
            ?>

<script type='text/javascript'>
/* <![CDATA[ */
	var dropdown = document.getElementById("cat");
	function onCatChange() {
		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
			location.href = "<?php 
            echo home_url();
            ?>
/?cat="+dropdown.options[dropdown.selectedIndex].value;
		}
	}
	dropdown.onchange = onCatChange;
/* ]]> */
</script>

<?php 
        } else {
            ?>
		<ul>
<?php 
            $cat_args['title_li'] = '';
            nxt_list_categories(apply_filters('widget_categories_args', $cat_args));
            ?>
		</ul>
<?php 
        }
        echo $after_widget;
    }
Example #6
0
the_widget('nxt_Widget_Recent_Posts', array('number' => 10), array('widget_id' => '404'));
?>
	
					
					</div>		
					
					<div id="search-categories-widget" class="grid_12 alpha">

						<h2 class="widgettitle">
						<?php 
_e('Most Used Categories', infinity_text_domain);
?>
						</h2>
						<ul>
						<?php 
nxt_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10));
?>
						</ul>
					</div>	
					<div style="clear: both;"></div>
					<?php 
/* translators: %1$s: smilie */
$archive_content = '<p>' . sprintf(__('Try looking in the monthly archives. %1$s', infinity_text_domain), convert_smilies(':)')) . '</p>';
the_widget('nxt_Widget_Archives', array('count' => 0, 'dropdown' => 1), array('after_title' => '</h2>' . $archive_content));
?>

					<?php 
the_widget('nxt_Widget_Tag_Cloud');
?>
			</div>
		</article>
Example #7
0
/**
 * @since 1.2
 * @deprecated 2.1
 * @deprecated Use nxt_list_categories()
 * @see nxt_list_categories()
 *
 * @param string|array $args
 * @return unknown
 */
function nxt_list_cats($args = '')
{
    _deprecated_function(__FUNCTION__, '2.1', 'nxt_list_categories()');
    $r = nxt_parse_args($args);
    // Map to new names.
    if (isset($r['optionall']) && isset($r['all'])) {
        $r['show_option_all'] = $r['all'];
    }
    if (isset($r['sort_column'])) {
        $r['orderby'] = $r['sort_column'];
    }
    if (isset($r['sort_order'])) {
        $r['order'] = $r['sort_order'];
    }
    if (isset($r['optiondates'])) {
        $r['show_last_update'] = $r['optiondates'];
    }
    if (isset($r['optioncount'])) {
        $r['show_count'] = $r['optioncount'];
    }
    if (isset($r['list'])) {
        $r['style'] = $r['list'] ? 'list' : 'break';
    }
    $r['title_li'] = '';
    return nxt_list_categories($r);
}
 function show_categories_menu($customClass = 'nav clearfix', $addUlContainer = true)
 {
     global $shortname, $themename, $category_menu, $exclude_cats, $hide, $strdepth2, $projects_cat;
     //excluded categories
     if (get_option($shortname . '_menucats') != '') {
         $exclude_cats = implode(",", get_option($shortname . '_menucats'));
     }
     //hide empty categories
     if (get_option($shortname . '_categories_empty') == 'on') {
         $hide = '1';
     } else {
         $hide = '0';
     }
     //dropdown for categories
     $strdepth2 = '';
     if (get_option($shortname . '_enable_dropdowns_categories') == 'on') {
         $strdepth2 = "depth=" . get_option($shortname . '_tiers_shown_categories');
     }
     if ($strdepth2 == '') {
         $strdepth2 = "depth=1";
     }
     $args = "orderby=" . get_option($shortname . '_sort_cat') . "&order=" . get_option($shortname . '_order_cat') . "&" . $strdepth2 . "&exclude=" . $exclude_cats . "&hide_empty=" . $hide . "&title_li=&echo=0";
     $categories = get_categories($args);
     if (!empty($categories)) {
         $category_menu = nxt_list_categories($args);
         if ($addUlContainer) {
             echo '<ul class="' . $customClass . '">';
         }
         if ($category_menu != '<li>No categories</li>') {
             echo $category_menu;
         }
         if ($addUlContainer) {
             echo '</ul>';
         }
     }
 }
Example #9
0
    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();
        ?>

				<li><h2><?php 
        _e('Meta');
        ?>
</h2>