Source

elbee-elgee / includes / functions / hooks.php

Diff from to

includes/functions/hooks.php

 }
 add_action( 'lblg_after_itemtext', 'lblg_post_info' );
 
+/**
+ * Determine which stylesheets and layouts are to be applied and then add them to the
+ * <head> via Core methods.
+ */
 function lblg_styles(){
 	global $lblg_shortname, $lblg_options;
 	$layout_handle = $lblg_shortname . '_layout_stylesheet';
 		break;
 	}
 	
-	if( isset($layout) ){
-		wp_enqueue_style( $layout_handle , $layout, '', '', 'screen' );
+	if( isset($layout) ){ 
+		//wp_enqueue_style( $layout_handle , $layout, '', '', 'screen' );
 	}
 	
 	// if( isset($alt_style) ){
 	// 		wp_enqueue_style( $alt_style_handle, $alt_style, '', '', 'screen' );
 	// }
 	
+	wp_enqueue_style( 'lblg_normalize', get_template_directory_uri() . '/includes/css/normalize.css/normalize.css', '', '', 'screen' );
 	wp_enqueue_style( $alt_style_handle, get_template_directory_uri() . '/styles/less/ng2.less', '', '', 'screen' );
 	
 	//wp_enqueue_style( $normalize_handle, get_template_directory_uri() . '/includes/css/normalize.css/normalize.css', '', '', 'screen' );
 }
 add_action( 'lblg_enqueue_styles', 'lblg_styles' );
 
+/**
+ * Spool up the LESS stylesheet handling.
+ *
+ * @param array $vars
+ * @param string $handle
+ * @return array 
+ */
+function lblg_less_vars( $vars, $handle ) {
+	// $vars['layout'] = '3-columns-fixed-sb-right';
+	$vars['layout'] = '3-columns-fixed-sb-right';
+	 // $vars['wrapperwidth'] = '50%';
+	// $vars['primarysbwidth'] = '600px';
+	// $vars['containerwidth'] = "960px";
+	// $vars['primarysbwidth'] = $vars['secondarysbwidth'] = "60%";
+	// 	$vars['footerwidth'] = "100%";
+	return $vars;
+}
+add_filter( 'less_vars', 'lblg_less_vars', 10, 2 );
 
 function lblg_credits(){
 	global $lblg_shortname, $lblg_options;