@@ -72,7 +72,7 @@ public function __construct()
7272 {
7373 $ this ->name = 'prettyblocks ' ;
7474 $ this ->tab = 'administration ' ;
75- $ this ->version = '3.1.0 ' ;
75+ $ this ->version = '3.1.1 ' ;
7676 $ this ->author = 'PrestaSafe ' ;
7777 $ this ->need_instance = 1 ;
7878 $ this ->js_path = $ this ->_path . 'views/js/ ' ;
@@ -283,7 +283,6 @@ public function hookdisplayBackOfficeHeader($params)
283283 $ this ->context ->controller ->addJS ($ this ->_path . 'views/js/back.js ' );
284284 }
285285 $ this ->context ->controller ->addCSS ($ this ->_path . 'views/css/back.css ' );
286-
287286 }
288287
289288 public function install ()
@@ -443,7 +442,8 @@ public function hookdisplayHeader($params)
443442 // todo register css and js on iframe only from Hook
444443 }
445444 // load default blocks styles
446- if (!TplSettings::getSettings ('remove_default_blocks ' )) {
445+
446+ if (!TplSettings::getSettings ('remove_default_blocks ' , false )) {
447447 $ this ->context ->controller ->registerStylesheet (
448448 'tiny-slider-css ' ,
449449 'https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.4/tiny-slider.css ' ,
@@ -677,7 +677,6 @@ public function hookActionRegisterThemeSettings()
677677 'description ' => $ this ->l ('Remove default blocks (if you using yours custom blocks) ' ), // description to display
678678 'tab ' => 'Settings ' ,
679679 'default ' => false , // default value (Boolean)
680- 'private ' => true ,
681680 ],
682681 ];
683682 }
@@ -694,8 +693,7 @@ public function hookActionRegisterBlock($params)
694693 new PrettyBlocksCmsContentBlock ($ this ),
695694 new PrettyBlocksCategoryDescriptionBlock ($ this ),
696695 ];
697-
698- if (!TplSettings::getSettings ('remove_default_blocks ' )) {
696+ if (!TplSettings::getSettings ('remove_default_blocks ' , false )) {
699697 $ defaultsBlocks [] = new PrettyBlocksTinySlider ($ this );
700698 $ defaultsBlocks [] = new PrettyBlocksCustomImage ($ this );
701699 $ defaultsBlocks [] = new PrettyBlocksFAQ ($ this );
0 commit comments