@@ -16,7 +16,7 @@ final class Style implements StyleInterface
1616{
1717 private $ conf = NULL ;
1818 private $ lang = NULL ;
19- private $ debugMode = 0 ;
19+ private $ debugMode = 0 ; // 0 - disabled, 1 - regular debug, 2+ - deep debug
2020 private $ styleName = "" ;
2121 private $ sitewideStyles = array ();
2222 private $ compatibilityStyles = array ();
@@ -52,10 +52,12 @@ public function setSitewideStyles()
5252
5353 if ($ this ->debugMode >= 2 )
5454 {
55- echo "<br />CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
56- echo "<br />COMPATIBILITY STYLES: " .nl2br (print_r ($ this ->compatibilityStyles , TRUE ));
57- echo "<br /><br />GLOBAL STYLES: " .nl2br (print_r ($ this ->sitewideStyles , TRUE ));
58-
55+ echo "<br /><br />--------------------------------------------------------------------------------- " ;
56+ echo "<br /><strong>[setSitewideStyles()]</strong> \$cssFolderPath: {$ cssFolderPath }</strong> " ;
57+ echo "<br /><strong>[setSitewideStyles()]</strong> \$cssFolderURL: {$ cssFolderURL }</strong> " ;
58+ echo "<br /><strong>[setSitewideStyles()]</strong> CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
59+ echo "<br /><br /><strong>[setSitewideStyles()]</strong> SITEWIDE STYLES: " .nl2br (print_r ($ this ->sitewideStyles , TRUE ));
60+ echo "<br />--------------------------------------------------------------------------------- " ;
5961 }
6062 }
6163
@@ -79,10 +81,12 @@ public function setCompatibilityStyles()
7981
8082 if ($ this ->debugMode >= 2 )
8183 {
82- echo "<br />CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
83- echo "<br />COMPATIBILITY STYLES: " .nl2br (print_r ($ this ->compatibilityStyles , TRUE ));
84- echo "<br /><br />GLOBAL STYLES: " .nl2br (print_r ($ this ->sitewideStyles , TRUE ));
85-
84+ echo "<br /><br />--------------------------------------------------------------------------------- " ;
85+ echo "<br /><strong>[setCompatibilityStyles()]</strong> \$cssFolderPath: {$ cssFolderPath }</strong> " ;
86+ echo "<br /><strong>[setCompatibilityStyles()]</strong> \$cssFolderURL: {$ cssFolderURL }</strong> " ;
87+ echo "<br /><strong>[setCompatibilityStyles()]</strong> CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
88+ echo "<br /><strong>[setCompatibilityStyles()]</strong> COMPATIBILITY STYLES: " .nl2br (print_r ($ this ->compatibilityStyles , TRUE ));
89+ echo "<br />--------------------------------------------------------------------------------- " ;
8690 }
8791 }
8892
@@ -107,9 +111,12 @@ public function setLocalStyles()
107111
108112 if ($ this ->debugMode >= 2 )
109113 {
110- echo "<br />CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
111- echo "<br /><br />SYSTEM STYLES: " .nl2br (print_r ($ this ->localStyles , TRUE ));
112-
114+ echo "<br /><br />--------------------------------------------------------------------------------- " ;
115+ echo "<br /><strong>[setLocalStyles()]</strong> \$cssFolderPath: {$ cssFolderPath }</strong> " ;
116+ echo "<br /><strong>[setLocalStyles()]</strong> \$cssFolderURL: {$ cssFolderURL }</strong> " ;
117+ echo "<br /><strong>[setLocalStyles()]</strong> CSS FILES:<br /> " .var_export ($ cssFiles , TRUE );
118+ echo "<br /><br /><strong>[setLocalStyles()]</strong> LOCAL STYLES: " .nl2br (print_r ($ this ->localStyles , TRUE ));
119+ echo "<br />--------------------------------------------------------------------------------- " ;
113120 }
114121 }
115122
@@ -118,7 +125,7 @@ public function inDebug()
118125 return ($ this ->debugMode >= 1 ? TRUE : FALSE );
119126 }
120127
121- public function getParentThemeCompatibilityCSSURL ()
128+ public function getParentThemeCompatibilityCSS_URL ()
122129 {
123130 // Get parent theme name
124131 $ parentThemeName = "" ;
@@ -148,7 +155,7 @@ public function getParentThemeCompatibilityCSSURL()
148155 return $ compatibilityFileURL ;
149156 }
150157
151- public function getCurrentThemeCompatibilityCSSURL ()
158+ public function getCurrentThemeCompatibilityCSS_URL ()
152159 {
153160 // Get current theme name
154161 $ currentThemeName = "" ;
@@ -177,7 +184,7 @@ public function getCurrentThemeCompatibilityCSSURL()
177184 return $ compatibilityFileURL ;
178185 }
179186
180- public function getSitewideCSSURL ()
187+ public function getSitewideCSS_URL ()
181188 {
182189 // Get the stylesheet file and it's path
183190 $ selectedFileURL = '' ;
@@ -207,7 +214,7 @@ public function getSitewideCSSURL()
207214 return $ fileURL ;
208215 }
209216
210- public function getLocalCSSURL ()
217+ public function getLocalCSS_URL ()
211218 {
212219 // Get the stylesheet file and it's path
213220 $ selectedFileURL = '' ;
0 commit comments