Commits

Doug Stewart committed 2b0d238

Testing, 1, 2.

  • Participants
  • Parent commits 3e5ef7a
  • Branches develop

Comments (0)

Files changed (1)

File includes/parent-options.php

 	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_layouts[] = $less_layout_file;
+				$less_layouts[] = array( 'input' => $less_layout_file, 'image' => get_template_directory_uri() . '/layouts/less/images/' . basename($less_layout_file, '.less') . '.png');
 			}
 		}	
 	}
 				"style_options" => array(	"name" => __( 'Style Options', 'lblg' ),
 						"type" => "subhead"),
 
+				"layout_stylesheet_2" => array(	"name" => __('Layout Stylesheet Test', 'lblg' ),
+						"desc" => sprintf( __( 'Place additional layout stylesheets in %s to add them as layout options', 'lblg' ), '<code>' . TEMPLATEPATH . '/layouts/</code>' ),
+			    		"std" => "Select a layout:",
+			    		"type" => "imageradio",
+			    		"options" => $less_layouts),
+
 				"layout_stylesheet" => array(	"name" => __('Layout Stylesheet', 'lblg' ),
 						"desc" => sprintf( __( 'Place additional layout stylesheets in %s to add them as layout options', 'lblg' ), '<code>' . TEMPLATEPATH . '/layouts/</code>' ),
 			    		"std" => "Select a layout:",