web/wp-content/themes/IRI-Theme/functions.php
changeset 194 32102edaa81b
parent 192 ad0cebafc06f
--- a/web/wp-content/themes/IRI-Theme/functions.php	Thu Sep 16 15:45:36 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/functions.php	Mon Nov 19 18:26:13 2012 +0100
@@ -1,13 +1,8 @@
 <?php
-
 function theme_init(){
-	if (class_exists('xili_language')) {
-		define('THEME_TEXTDOMAIN','IriTheme');
-		define('THEME_LANGS_FOLDER','/language');
-	} else {
-	   load_theme_textdomain('IriTheme', get_template_directory() . '/languages');	
-	}	
+	   load_theme_textdomain('IriTheme', get_template_directory() . '/language');	
 }
+
 add_action ('init', 'theme_init');
 
 
@@ -359,8 +354,13 @@
 	if (class_exists('xili_language')) {
 		$current_lang = the_cur_lang_dir();
 	}
-	
-	$categories = get_categories('hide_empty=1'.$Eparam);
+	$args=array(
+	  'orderby' => 'name',
+	  'order' => 'ASC',
+	  'hide_empty'=>'1',
+	  'exclude'=>'1,8,16,17,38,171,169,170'
+	  );
+	$categories = get_categories($args);
 	$first = true;
 	$count = 0;
 	
@@ -377,7 +377,7 @@
 			}
 			echo '<ul>';
 			
-			$category_posts = get_posts('numberposts=30&order=DSC&orderby=date&category='.$category->cat_ID);//
+			$category_posts = get_posts('numberposts=30&order=ASC&orderby=title&category='.$category->cat_ID);//
 			$count2 = 0;
 			
 			//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -812,5 +812,4 @@
 	endif;
 	return $img_arr;
 }
-
 ?>
\ No newline at end of file