Commits

Doug Stewart committed 9f24d89

Reverting back to CSS. Bye bye LESS (for now!).

Comments (0)

Files changed (1)

includes/parent-options.php

  * @since		Elbee-Elgee 1.0
  */
 
-// Look for layout LESS files to auto-load
-$less_layout_path = TEMPLATEPATH . '/layouts/less/';
-$less_layouts = array();
+// Look for layout CSS files to auto-load
+$css_layout_path = TEMPLATEPATH . '/layouts/css/';
+$css_layouts = array();
 
-if ( is_dir($less_layout_path) ) {
-	if ($less_layout_dir = opendir($less_layout_path) ) { 
-		while ( ($less_layout_file = readdir($less_layout_dir)) !== false ) {
-			if((stristr($less_layout_file, ".less") !== false) && ($less_layout_file != 'master.less')){
-				$less_layouts[] = array( 'input' => $less_layout_file, 'image' => get_template_directory_uri() . '/layouts/less/images/' . basename($less_layout_file, '.less') . '.png');
+if ( is_dir($css_layout_path) ) {
+	if ($css_layout_dir = opendir($css_layout_path) ) { 
+		while ( ($css_layout_file = readdir($css_layout_dir)) !== false ) {
+			if( stristr($css_layout_file, ".css") !== false ){
+				$css_layouts[] = array( 'input' => $css_layout_file, 'image' => get_template_directory_uri() . '/layouts/css/images/' . basename($css_layout_file, '.css') . '.png');
 			}
 		}	
 	}
 }	
 
-// Look for layout CSS files to auto-load
-$layout_path = TEMPLATEPATH . '/layouts/css/'; 
-$layouts = array();
-
 // Look for color/design CSS files to auto-load
 $alt_stylesheet_path = TEMPLATEPATH . '/styles/';
 $alt_stylesheets = array();
 
-if ( is_dir($layout_path) ) {
-	if ($layout_dir = opendir($layout_path) ) { 
-		while ( ($layout_file = readdir($layout_dir)) !== false ) {
-			if(stristr($layout_file, ".css") !== false) {
-				$layouts[] = $layout_file;
-			}
-		}	
-	}
-}	
-
 if ( is_dir($alt_stylesheet_path) ) {
 	if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) { 
 		while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) {
 	}
 }	
 
-$layouts_tmp = asort($layouts);
-$layouts_tmp = array_unshift($layouts, "Select a layout:", "*none*");
+$css_layouts_tmp = asort($css_layouts);
+//$css_layouts_tmp = array_unshift($css_layouts, "Select a layout:", "*none*");
 
 $alt_stylesheets_tmp = asort($alt_stylesheets);
 $alt_stylesheets_tmp = array_unshift($alt_stylesheets, "Select a stylesheet:", "*none*");
 						"desc" => sprintf( __( 'Place additional layout stylesheets in %s to add them as layout options', 'lblg' ), '<code>' . TEMPLATEPATH . '/layouts/</code>' ),
 			    		"std" => "",
 			    		"type" => "imageradio",
-			    		"options" => $less_layouts),
+			    		"options" => $css_layouts),
 
 				"use_custom_header" => array(	"name" => __('Use Custom Headers', 'lblg' ),
 						"desc" => sprintf( __( 'Check this box if you wish to use WordPress\'s built-in %sCustom Header Image API%s to define a custom image for your theme', 'lblg' ), '<a href="http://codex.wordpress.org/Custom_Headers">', '</a>' ),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.