".$categoryName."\n"; } function maa_echo_category_desc( $categoryDesc ) { if (strcmp($categoryDesc, "") != 0) { echo "\t

"; echo $categoryDesc."

\n"; } } function ss_echo_category_links($categoryName, &$lineTotal){ $args['category_name']= $categoryName; $mylinks = get_bookmarks($args); foreach($mylinks as $link){ echo "\t\t"; echo $link->link_name.""; $lineTotal --; if ($lineTotal > 0) { echo get_theme_mod('menu_separator'); } echo "\n"; } } function maa_echo_category_posts_and_links( $categoryID ) { $myposts_args = array('numberposts' => -1, 'category' => $categoryID); $myposts = get_posts($myposts_args); $categoryName = get_the_category_by_id($categoryID); $args['category_name']= $categoryName; $mylinks = get_bookmarks($args); $total = count($mylinks) + count($myposts); echo "\t\n"; } function maa_add_post_category( $categorySlug, $header ) { $categoryID = get_category_by_slug($categorySlug)->term_id; maa_echo_category_title( get_cat_name($categoryID), $header ); maa_echo_category_desc( category_description($categoryID) ); maa_echo_category_posts_and_links( $categoryID ); } function ss_add_link_category($categorySlug, $header){ $linkCategory = get_terms('link_category', "slug=$categorySlug"); $categoryName = $linkCategory[0]->name; maa_echo_category_title( $linkCategory[0]->name, $header ); maa_echo_category_desc( $linkCategory[0]->description ); $args['category_name']= $categoryName; $links = get_bookmarks($args); ss_echo_category_links($categoryName, count($links)); } function ss_populate_menu($header, $optionNumber, $interiorName, $precedingText='', $precedingID='') { echo "\t\n"; } } function maa_googlefontaddress($input){ return str_replace(' ', '+', $input); } if (!is_admin()) { // here is an example of loading a custom script in a /scripts/ folder in your theme: wp_register_script('sandbox.common', get_template_directory_uri().'/js/slider.js', array('jquery'), '1.0', true); // enqueue these scripts everywhere wp_enqueue_script('jquery'); wp_enqueue_script('sandbox.common'); } if ( ! isset( $content_width ) ) $content_width = 700; ?>