WooCartPopUpBackendFestiPlugin

The Woocart Popup Lite for WooCommerce WooCartPopUpBackendFestiPlugin class.

Defined (1)

The class is defined in the following location(s).

/common/WooCartPopUpBackendFestiPlugin.php  
  1. class WooCartPopUpBackendFestiPlugin extends WooCartPopUpFestiPlugin 
  2. protected $_menuOptions = array( 
  3. 'settings' => "Settings",  
  4. 'help' => "Help",  
  5. ); 
  6.  
  7. protected $_defaultMenuOption = 'settings'; 
  8.  
  9. protected $_fileSystem = ''; 
  10.  
  11. protected function onInit() 
  12. $this->addActionListener('admin_menu', 'onAdminMenuAction'); 
  13. } // end onInit 
  14.  
  15. public function _onFileSystemInstanceAction() 
  16. $this->_fileSystem = $this->getFileSystemInstance(); 
  17. } // end _onFileSystemInstanceAction 
  18.  
  19. public function onInstall($refresh = false) 
  20. {  
  21. if (!$this->_fileSystem) { 
  22. $this->_fileSystem = $this->getFileSystemInstance(); 
  23.  
  24. if ($this->_hasPermissionToCreateCacheFolder()) { 
  25. $this->_fileSystem->mkdir($this->_pluginCachePath, 0777); 
  26.  
  27. if ($refresh) { 
  28. return true; 
  29.  
  30. $this->_doInitDefaultOptions('settings'); 
  31.  
  32. $this->_updateCookieCacheFile();  
  33. } // end onInstal 
  34.  
  35. private function _hasPermissionToCreateCacheFolder() 
  36. return ($this->_fileSystem->is_writable($this->_pluginPath) 
  37. && !file_exists($this->_pluginCachePath)); 
  38. } // end _hasPermissionToCreateFolder 
  39.  
  40. public function onUninstall($refresh = false) 
  41. delete_option($this->_optionsPrefix.'settings'); 
  42. delete_option($this->_optionsPrefix.'coockie'); 
  43. } // end onUninstall  
  44.  
  45. private function _updateCookieCacheFile() 
  46. $time = time(); 
  47. $content = md5($time); 
  48. $content = array($content); 
  49. $this->updateOptions('cookie', $content); 
  50. } // end _updateCookieCacheFile 
  51.  
  52. public function getPluginTemplatePath($fileName) 
  53. return $this->_pluginTemplatePath.'backend/'.$fileName; 
  54. } // end getPluginTemplatePath 
  55.  
  56. public function getPluginCssUrl($fileName)  
  57. return $this->_pluginCssUrl.'backend/'.$fileName; 
  58. } // end getPluginCssUrl 
  59.  
  60. public function getPluginJsUrl($fileName) 
  61. return $this->_pluginJsUrl.'backend/'.$fileName; 
  62. } // end getPluginJsUrl 
  63.  
  64. public function onAdminMenuAction()  
  65. $page = add_menu_page( 
  66. __('WooCart PopUp Settings', $this->_languageDomain),  
  67. __('WooCart PopUp', $this->_languageDomain),  
  68. 'manage_options',  
  69. 'festi-cart-popup',  
  70. array(&$this, 'onDisplayOptionPage'),  
  71. $this->getPluginImagesUrl('icon_16x16.png') 
  72. ); 
  73.  
  74. $this->addActionListener( 
  75. 'admin_print_scripts-'.$page,  
  76. 'onInitJsAction' 
  77. ); 
  78.  
  79. $this->addActionListener( 
  80. 'admin_print_styles-'.$page,  
  81. 'onInitCssAction' 
  82. ); 
  83.  
  84. $this->addActionListener( 
  85. 'admin_head-'.$page,  
  86. '_onFileSystemInstanceAction' 
  87. ); 
  88. } // end onAdminMenuAction 
  89.  
  90. public function onInitJsAction() 
  91. $this->onEnqueueJsFileAction('jquery'); 
  92. $this->onEnqueueJsFileAction( 
  93. 'festi-cart-popup-general',  
  94. 'general.js',  
  95. 'jquery-ui-slider' 
  96. ); 
  97.  
  98. $this->onEnqueueJsFileAction( 
  99. 'festi-cart-popup-colorpicker',  
  100. 'colorpicker.js',  
  101. 'jquery' 
  102. ); 
  103.  
  104. $this->onEnqueueJsFileAction( 
  105. 'festi-cart-popup-tooltip',  
  106. 'tooltip.js',  
  107. 'festi-cart-popup-colorpicker' 
  108. ); 
  109.  
  110. $this->onEnqueueJsFileAction( 
  111. 'jquery-ui-slider',  
  112. false,  
  113. 'jquery' 
  114. ); 
  115.  
  116. $this->onEnqueueJsFileAction( 
  117. 'festi-cart-popup-top-down-scroll-buttons',  
  118. 'top_down_scroll_buttons.js',  
  119. 'jquery' 
  120. ); 
  121.  
  122. } // end onInitJsAction 
  123.  
  124. public function onInitCssAction() 
  125. $this->onEnqueueCssFileAction( 
  126. 'festi-cart-popup-styles',  
  127. 'style.css' 
  128. ); 
  129.  
  130. $this->onEnqueueCssFileAction( 
  131. 'festi-cart-popup-colorpicker',  
  132. 'colorpicker.css' 
  133. ); 
  134.  
  135. $this->onEnqueueCssFileAction( 
  136. 'festi-cart-popup-tooltip',  
  137. 'tooltip.css' 
  138. ); 
  139.  
  140. $this->onEnqueueCssFileAction( 
  141. 'festi-cart-popup-slider',  
  142. 'slider.css' 
  143. ); 
  144.  
  145. $this->onEnqueueCssFileAction( 
  146. 'festi-cart-popup-top-down-scroll-buttons',  
  147. 'top_down_scroll_buttons.css' 
  148. ); 
  149. } // end onInitCssAction 
  150.  
  151. private function _doInitDefaultOptions($option) 
  152. $methodName = $this->getMethodName('load', $option); 
  153.  
  154. $method = array($this, $methodName); 
  155.  
  156. if (!is_callable($method)) { 
  157. throw new Exception("Undefined method name: ".$methodName); 
  158.  
  159. $options = call_user_func_array($method, array()); 
  160. foreach ($options as $ident => &$item) { 
  161. if ($this->_hasDefaultValueInItem($item)) { 
  162. $values[$ident] = $item['default']; 
  163. unset($item); 
  164.  
  165. $this->updateOptions($option, $values); 
  166.  
  167. } // end _doInitDefaultOptions 
  168.  
  169. public function getMethodName($prefix, $option) 
  170. $option = explode('_', $option); 
  171.  
  172. $option = array_map('ucfirst', $option); 
  173.  
  174. $option = implode('', $option); 
  175.  
  176. $methodName = $prefix.$option; 
  177.  
  178. return $methodName; 
  179. } // end getMethodName 
  180.  
  181. private function _hasDefaultValueInItem($item) 
  182. return isset($item['default']); 
  183. } //end _hasDefaultValueInItem 
  184.  
  185. public function onDisplayOptionPage() 
  186. $menu = $this->fetch('menu.phtml'); 
  187. echo $menu; 
  188.  
  189. echo $this->fetch('banner.phtml'); 
  190.  
  191. $methodName = 'fetchOptionPage'; 
  192.  
  193. if ($this->hasOptionPageInRequest()) { 
  194. $postfix = $_GET['tab']; 
  195. } else { 
  196. $postfix = $this->_defaultMenuOption; 
  197. $methodName.= ucfirst($postfix); 
  198.  
  199. $method = array(&$this, $methodName); 
  200.  
  201. if (!is_callable($method)) { 
  202. throw new Exception("Undefined method name: ".$methodName); 
  203.  
  204. call_user_func_array($method, array()); 
  205. } // end onDisplayOptionPage 
  206.  
  207. public function fetchOptionPageSettings() 
  208. {  
  209. $vars = array(); 
  210.  
  211. if ($this->_isRefreshPlugin()) { 
  212. $this->onRefreshPlugin(); 
  213.  
  214. $message = __( 
  215. 'Success update plugin',  
  216. $this->_languageDomain 
  217. ); 
  218.  
  219. $this->displayUpdate($message); 
  220.  
  221. $this->_displayFoldersAccessErrors(); 
  222.  
  223.  
  224. if ($this->isUpdateOptions('save')) { 
  225. try { 
  226. $this->_doUpdateOptions($_POST); 
  227.  
  228. $message = __( 
  229. 'Success update settings',  
  230. $this->_languageDomain 
  231. ); 
  232.  
  233. $this->displayUpdate($message);  
  234. } catch (Exception $e) { 
  235. $message = $e->getMessage(); 
  236. $this->displayError($message); 
  237.  
  238.  
  239. $options = $this->getOptions('settings'); 
  240.  
  241. $vars['fieldset'] = $this->getOptionsFieldSet();  
  242. $vars['currentValues'] = $options; 
  243.  
  244. echo $this->fetch('settings_page.phtml', $vars);  
  245. } // end fetchOptionPageSettings 
  246.  
  247. private function _isRefreshPlugin() 
  248. return array_key_exists('refresh_plugin', $_GET); 
  249. } // end _isRefreshPlugin 
  250.  
  251. public function onRefreshPlugin() 
  252. //$this->onUninstall(true); 
  253. $this->onInstall(true); 
  254. } // end onRefreshPlugin 
  255.  
  256. private function _doUpdateOptions($newSettings = array()) 
  257. $options = $this->getOptions('settings'); 
  258.  
  259. $this->updateOptions('settings', $newSettings); 
  260.  
  261. $this->_updateCookieCacheFile(); 
  262. } // end _doUpdateOptions 
  263.  
  264. private function _displayFoldersAccessErrors() 
  265. {  
  266. $caheFolderErorrs = $this->_detectTheCacheFolderAccessErrors(); 
  267.  
  268. if ($caheFolderErorrs) { 
  269. echo $this->fetch('refresh.phtml'); 
  270. } // end _displayFoldersAccessErrors 
  271.  
  272. private function _detectTheCacheFolderAccessErrors() 
  273. if (!$this->_fileSystem->is_writable($this->_pluginCachePath)) { 
  274.  
  275. $message = __( 
  276. "Caching does not work! ",  
  277. $this->_languageDomain 
  278. ); 
  279.  
  280. $message .= __( 
  281. "You don't have permission to access: ",  
  282. $this->_languageDomain 
  283. ); 
  284.  
  285. $path = $this->_pluginCachePath; 
  286.  
  287. if (!$this->_fileSystem->exists($path)) { 
  288. $path = $this->_pluginPath; 
  289.  
  290. $message .= $path; 
  291. $message .= $this->fetch('manual_url.phtml'); 
  292.  
  293. $this->displayError($message); 
  294.  
  295. return true; 
  296.  
  297. return false; 
  298. } // end _detectTheCacheFolderAccessErrors 
  299.  
  300. public function isUpdateOptions($action) 
  301. return array_key_exists('__action', $_POST) 
  302. && $_POST['__action'] == $action; 
  303. } // end isUpdateOptions 
  304.  
  305. public function getOptionsFieldSet() 
  306. $fildset = array( 
  307. 'general' => array( 
  308. 'legend' => __('General', $this->_languageDomain),  
  309. 'display' => true 
  310. ),  
  311. 'lightbox' => array( 
  312. 'legend' => __( 
  313. 'Customization for lightbox',  
  314. $this->_languageDomain 
  315. ),  
  316. 'headerText' => array( 
  317. 'legend' => __( 
  318. 'Customization for Header text',  
  319. $this->_languageDomain 
  320. ),  
  321. 'continueButton' => array( 
  322. 'legend' => __( 
  323. 'Customization for Continue Shopping Button',  
  324. $this->_languageDomain 
  325. ),  
  326. ); 
  327.  
  328. $settings = $this->loadSettings(); 
  329.  
  330. if ($settings) { 
  331. foreach ($settings as $ident => &$item) { 
  332. if (array_key_exists('fieldsetKey', $item)) { 
  333. $key = $item['fieldsetKey']; 
  334. $fildset[$key]['filds'][$ident] = $settings[$ident]; 
  335. unset($item); 
  336.  
  337. return $fildset; 
  338. } // end getOptionsFieldSet 
  339.  
  340. public function loadSettings() 
  341. $settings = array( 
  342. 'popup' => array( 
  343. 'caption' => __( 
  344. 'Show',  
  345. $this->_languageDomain 
  346. ),  
  347. 'lable' => __( 
  348. 'Enable displaying popup after adding product',  
  349. $this->_languageDomain 
  350. ),  
  351. 'type' => 'input_checkbox',  
  352. 'default' => 1,  
  353. 'event' => 'visible',  
  354. 'fieldsetKey' => 'general',  
  355. 'backlight' => 'light' 
  356. ),  
  357. 'dropdownListAmountProducts' => array( 
  358. 'caption' => __( 
  359. 'Set Maximum Number of Products',  
  360. $this->_languageDomain 
  361. ),  
  362. 'lable' => 'px',  
  363. 'type' => 'slider',  
  364. 'default' => 0,  
  365. 'class' => 'festi-cart-change-slider',  
  366. 'event' => 'change-slider',  
  367. 'min' => 0,  
  368. 'max' => 50,  
  369. 'fieldsetKey' => 'lightbox' 
  370. ),  
  371. 'productListFontSize' => array( 
  372. 'caption' => __('Font Size', $this->_languageDomain),  
  373. 'lable' => 'px',  
  374. 'hint' => __( 
  375. 'Change font size',  
  376. $this->_languageDomain 
  377. ),  
  378. 'type' => 'input_size',  
  379. 'default' => 13,  
  380. 'class' => 'festi-cart-font-size',  
  381. 'fieldsetKey' => 'lightbox' 
  382. ),  
  383. 'popupWidth' => array( 
  384. 'caption' => __( 
  385. 'Width',  
  386. $this->_languageDomain 
  387. ),  
  388. 'lable' => 'px',  
  389. 'type' => 'slider',  
  390. 'default' => 400,  
  391. 'class' => 'festi-cart-change-slider',  
  392. 'event' => 'change-slider',  
  393. 'min' => 100,  
  394. 'max' => 1000,  
  395. 'fieldsetKey' => 'lightbox' 
  396. ),  
  397. 'popupPadding' => array( 
  398. 'caption' => __( 
  399. 'Padding',  
  400. $this->_languageDomain 
  401. ),  
  402. 'lable' => 'px',  
  403. 'type' => 'slider',  
  404. 'default' => 10,  
  405. 'class' => 'festi-cart-change-slider',  
  406. 'event' => 'change-slider',  
  407. 'min' => 0,  
  408. 'max' => 50,  
  409. 'fieldsetKey' => 'lightbox' 
  410. ),  
  411. 'popupBackAroundDivider' => array( 
  412. 'caption' => __( 
  413. 'Blacked out background',  
  414. $this->_languageDomain 
  415. ),  
  416. 'type' => 'divider',  
  417. 'fieldsetKey' => 'lightbox' 
  418. ),  
  419. 'popupAroundBackColor' => array( 
  420. 'caption' => __( 
  421. 'Color',  
  422. $this->_languageDomain 
  423. ),  
  424. 'hint' => __( 
  425. 'Change the background color',  
  426. $this->_languageDomain 
  427. ),  
  428. 'type' => 'color_picker',  
  429. 'default' => '#000000',  
  430. 'fieldsetKey' => 'lightbox' 
  431. ),  
  432. 'popupAroundBackOpacity' => array( 
  433. 'caption' => __( 
  434. 'Opacity',  
  435. $this->_languageDomain 
  436. ),  
  437. 'lable' => 'px',  
  438. 'type' => 'slider',  
  439. 'default' => 2,  
  440. 'class' => 'festi-cart-change-slider',  
  441. 'event' => 'change-slider',  
  442. 'min' => 0,  
  443. 'max' => 10,  
  444. 'fieldsetKey' => 'lightbox' 
  445. ),  
  446. 'popupBackgroundDivider' => array( 
  447. 'caption' => __('Background', $this->_languageDomain),  
  448. 'type' => 'divider',  
  449. 'fieldsetKey' => 'lightbox' 
  450. ),  
  451. 'popupBackgroundColor' => array( 
  452. 'caption' => __( 
  453. 'Color',  
  454. $this->_languageDomain 
  455. ),  
  456. 'hint' => __( 
  457. 'Change the background color',  
  458. $this->_languageDomain 
  459. ),  
  460. 'type' => 'color_picker',  
  461. 'default' => '#ffffff',  
  462. 'fieldsetKey' => 'lightbox' 
  463. ),  
  464. 'popupBackgroundOpacity' => array( 
  465. 'caption' => __( 
  466. 'Opacity',  
  467. $this->_languageDomain 
  468. ),  
  469. 'lable' => 'px',  
  470. 'type' => 'slider',  
  471. 'default' => 10,  
  472. 'class' => 'festi-cart-change-slider',  
  473. 'event' => 'change-slider',  
  474. 'min' => 0,  
  475. 'max' => 10,  
  476. 'fieldsetKey' => 'lightbox' 
  477. ),  
  478. 'popupShadowDivider' => array( 
  479. 'caption' => __('Shadow', $this->_languageDomain),  
  480. 'type' => 'divider',  
  481. 'fieldsetKey' => 'lightbox' 
  482. ),  
  483. 'popupShadowColor' => array( 
  484. 'caption' => __( 
  485. 'Color',  
  486. $this->_languageDomain 
  487. ),  
  488. 'hint' => __( 
  489. 'Change the shadow color',  
  490. $this->_languageDomain 
  491. ),  
  492. 'type' => 'color_picker',  
  493. 'default' => '#5e5e5e',  
  494. 'fieldsetKey' => 'lightbox' 
  495. ),  
  496. 'popupShadowWidth' => array( 
  497. 'caption' => __( 
  498. 'Width',  
  499. $this->_languageDomain 
  500. ),  
  501. 'lable' => 'px',  
  502. 'type' => 'slider',  
  503. 'default' => 0,  
  504. 'class' => 'festi-cart-change-slider',  
  505. 'event' => 'change-slider',  
  506. 'min' => 0,  
  507. 'max' => 500,  
  508. 'fieldsetKey' => 'lightbox' 
  509. ),  
  510. 'popupShadowBlur' => array( 
  511. 'caption' => __( 
  512. 'Blur',  
  513. $this->_languageDomain 
  514. ),  
  515. 'lable' => 'px',  
  516. 'type' => 'slider',  
  517. 'default' => 0,  
  518. 'class' => 'festi-cart-change-slider',  
  519. 'event' => 'change-slider',  
  520. 'min' => 0,  
  521. 'max' => 1000,  
  522. 'fieldsetKey' => 'lightbox' 
  523. ),  
  524. 'popupBorderDivider' => array( 
  525. 'caption' => __('Border', $this->_languageDomain),  
  526. 'type' => 'divider',  
  527. 'fieldsetKey' => 'lightbox' 
  528. ),  
  529. 'popupBorderWidth' => array( 
  530. 'caption' => __( 
  531. 'Border Width',  
  532. $this->_languageDomain 
  533. ),  
  534. 'lable' => 'px',  
  535. 'type' => 'slider',  
  536. 'default' => 3,  
  537. 'class' => 'festi-cart-change-slider',  
  538. 'event' => 'change-slider',  
  539. 'min' => 0,  
  540. 'max' => 50,  
  541. 'fieldsetKey' => 'lightbox',  
  542. ),  
  543. 'popupBorderRadius' => array( 
  544. 'caption' => __( 
  545. 'Border Radius',  
  546. $this->_languageDomain 
  547. ),  
  548. 'lable' => 'px',  
  549. 'type' => 'slider',  
  550. 'default' => 10,  
  551. 'class' => 'festi-cart-change-slider',  
  552. 'event' => 'change-slider',  
  553. 'min' => 0,  
  554. 'max' => 100,  
  555. 'fieldsetKey' => 'lightbox',  
  556. ),  
  557. 'popupBorderColor' => array( 
  558. 'caption' => __( 
  559. 'Border Color',  
  560. $this->_languageDomain 
  561. ),  
  562. 'hint' => __( 
  563. 'Change the Color',  
  564. $this->_languageDomain 
  565. ),  
  566. 'type' => 'color_picker',  
  567. 'default' => '#00a8ca',  
  568. 'fieldsetKey' => 'lightbox',  
  569. ),  
  570. 'popupCloseButtonDivider' => array( 
  571. 'caption' => __( 
  572. 'Close button',  
  573. $this->_languageDomain 
  574. ),  
  575. 'type' => 'divider',  
  576. 'fieldsetKey' => 'lightbox',  
  577. ),  
  578. 'displayPopupCloseButton' => array( 
  579. 'caption' => __('Display', $this->_languageDomain),  
  580. 'lable' => __( 
  581. 'Enable close button',  
  582. $this->_languageDomain 
  583. ),  
  584. 'type' => 'input_checkbox',  
  585. 'default' => 1,  
  586. 'event' => 'visible',  
  587. 'fieldsetKey' => 'lightbox',  
  588. 'backlight' => 'light' 
  589. ),  
  590. 'popupCloseButtonSize' => array( 
  591. 'caption' => __( 
  592. 'Size',  
  593. $this->_languageDomain 
  594. ),  
  595. 'lable' => 'px',  
  596. 'type' => 'slider',  
  597. 'default' => 30,  
  598. 'class' => 'festi-cart-change-slider',  
  599. 'event' => 'change-slider',  
  600. 'min' => 5,  
  601. 'max' => 50,  
  602. 'fieldsetKey' => 'lightbox',  
  603. 'eventClasses' => 'displayPopupCloseButton',  
  604. ),  
  605. 'popupCloseButtonColor' => array( 
  606. 'caption' => __( 
  607. 'Font Color',  
  608. $this->_languageDomain 
  609. ),  
  610. 'hint' => __( 
  611. 'Change the color',  
  612. $this->_languageDomain 
  613. ),  
  614. 'type' => 'color_picker',  
  615. 'default' => '#00a8ca',  
  616. 'fieldsetKey' => 'lightbox',  
  617. 'eventClasses' => 'displayPopupCloseButton',  
  618. ),  
  619. 'popupCloseButtonHoverColor' => array( 
  620. 'caption' => __( 
  621. 'Font Color on Hover',  
  622. $this->_languageDomain 
  623. ),  
  624. 'hint' => __( 
  625. 'Change the Color',  
  626. $this->_languageDomain 
  627. ),  
  628. 'type' => 'color_picker',  
  629. 'default' => '#72ddf2',  
  630. 'fieldsetKey' => 'lightbox',  
  631. 'eventClasses' => 'displayPopupCloseButton',  
  632. ),  
  633. 'popupCloseButtonMarginTop' => array( 
  634. 'caption' => __( 
  635. 'Margin Top',  
  636. $this->_languageDomain 
  637. ),  
  638. 'lable' => 'px',  
  639. 'type' => 'slider',  
  640. 'default' => 10,  
  641. 'class' => 'festi-cart-change-slider',  
  642. 'event' => 'change-slider',  
  643. 'min' => 0,  
  644. 'max' => 100,  
  645. 'fieldsetKey' => 'lightbox',  
  646. 'eventClasses' => 'displayPopupCloseButton',  
  647. ),  
  648. 'popupCloseButtonMarginRight' => array( 
  649. 'caption' => __( 
  650. 'Margin Right',  
  651. $this->_languageDomain 
  652. ),  
  653. 'lable' => 'px',  
  654. 'type' => 'slider',  
  655. 'default' => 10,  
  656. 'class' => 'festi-cart-change-slider',  
  657. 'event' => 'change-slider',  
  658. 'min' => 0,  
  659. 'max' => 100,  
  660. 'fieldsetKey' => 'lightbox',  
  661. 'eventClasses' => 'displayPopupCloseButton',  
  662. ),  
  663. 'popupProductsListDivider' => array( 
  664. 'caption' => __( 
  665. 'Products List',  
  666. $this->_languageDomain 
  667. ),  
  668. 'type' => 'divider',  
  669. 'fieldsetKey' => 'lightbox',  
  670. ),  
  671. 'popupProductsListScroll' => array( 
  672. 'caption' => __( 
  673. 'Scrollbar',  
  674. $this->_languageDomain 
  675. ),  
  676. 'lable' => __( 
  677. 'Enable scrollbar for products list',  
  678. $this->_languageDomain 
  679. ),  
  680. 'type' => 'input_checkbox',  
  681. 'event' => 'visible',  
  682. 'fieldsetKey' => 'lightbox',  
  683. 'backlight' => 'light' 
  684. ),  
  685. 'popupProductsListScrollHeight' => array( 
  686. 'caption' => __( 
  687. 'Height',  
  688. $this->_languageDomain 
  689. ),  
  690. 'lable' => 'px',  
  691. 'type' => 'slider',  
  692. 'default' => 200,  
  693. 'class' => 'festi-cart-change-slider',  
  694. 'event' => 'change-slider',  
  695. 'min' => 100,  
  696. 'max' => 1000,  
  697. 'fieldsetKey' => 'lightbox',  
  698. ),  
  699. 'productTitleDivider' => array( 
  700. 'caption' => __('Product Title', $this->_languageDomain),  
  701. 'type' => 'divider',  
  702. 'fieldsetKey' => 'lightbox' 
  703. ),  
  704. 'displayProductTitle' => array( 
  705. 'caption' => __('Display', $this->_languageDomain),  
  706. 'lable' => __( 
  707. 'Enable product title',  
  708. $this->_languageDomain 
  709. ),  
  710. 'type' => 'input_checkbox',  
  711. 'default' => 1,  
  712. 'event' => 'visible',  
  713. 'fieldsetKey' => 'lightbox',  
  714. 'backlight' => 'light' 
  715. ),  
  716. 'productFontColor' => array( 
  717. 'caption' => __( 
  718. 'Font Color',  
  719. $this->_languageDomain 
  720. ),  
  721. 'hint' => __( 
  722. 'Change the color',  
  723. $this->_languageDomain 
  724. ),  
  725. 'type' => 'color_picker',  
  726. 'default' => '#00497d',  
  727. 'fieldsetKey' => 'lightbox',  
  728. 'eventClasses' => 'displayProductTitle' 
  729. ),  
  730. 'productHoverFontColor' => array( 
  731. 'caption' => __( 
  732. 'Font Color on Hover',  
  733. $this->_languageDomain 
  734. ),  
  735. 'hint' => __( 
  736. 'Change the Color',  
  737. $this->_languageDomain 
  738. ),  
  739. 'type' => 'color_picker',  
  740. 'default' => '#8094ed',  
  741. 'fieldsetKey' => 'lightbox',  
  742. 'eventClasses' => 'displayProductTitle' 
  743. ),  
  744. 'popupHeaderTextDivider' => array( 
  745. 'caption' => __( 
  746. 'Header Text Font Styles',  
  747. $this->_languageDomain 
  748. ),  
  749. 'type' => 'divider',  
  750. //'fieldsetKey' => 'headerText',  
  751. ),  
  752. 'popupHeaderText' => array( 
  753. 'caption' => __( 
  754. 'Text',  
  755. $this->_languageDomain 
  756. ),  
  757. 'hint' => __( 
  758. 'Change the text',  
  759. $this->_languageDomain 
  760. ),  
  761. 'type' => 'input_text',  
  762. 'default' => __( 
  763. 'Item Added to your Cart!',  
  764. $this->_languageDomain 
  765. ),  
  766. 'fieldsetKey' => 'headerText',  
  767. ),  
  768. 'popupHeaderTextAlign' => array( 
  769. 'caption' => __( 
  770. 'Alignment',  
  771. $this->_languageDomain 
  772. ),  
  773. 'hint' => __( 
  774. 'Select the location of text in popup header',  
  775. $this->_languageDomain 
  776. ),  
  777. 'values' => array( 
  778. 'left' => __('Left', $this->_languageDomain),  
  779. 'center' => __('Center', $this->_languageDomain),  
  780. 'right' => __('Right', $this->_languageDomain),  
  781. ),  
  782. 'type' => 'select',  
  783. 'default' => 'center',  
  784. 'fieldsetKey' => 'headerText',  
  785. ),  
  786. 'popupHeaderTextFontSize' => array( 
  787. 'caption' => __('Font Size', $this->_languageDomain),  
  788. 'lable' => 'px',  
  789. 'hint' => __( 
  790. 'Change font size',  
  791. $this->_languageDomain 
  792. ),  
  793. 'type' => 'input_size',  
  794. 'default' => 20,  
  795. 'class' => 'festi-cart-font-size',  
  796. 'fieldsetKey' => 'headerText',  
  797. ),  
  798. 'popupHeaderTextColor' => array( 
  799. 'caption' => __('Font Color', $this->_languageDomain),  
  800. 'hint' => __( 
  801. 'Change the color',  
  802. $this->_languageDomain 
  803. ),  
  804. 'type' => 'color_picker',  
  805. 'default' => '#5b9e2b',  
  806. 'fieldsetKey' => 'headerText',  
  807. ),  
  808. 'popupHeaderTextMarginTop' => array( 
  809. 'caption' => __( 
  810. 'Margin Top',  
  811. $this->_languageDomain 
  812. ),  
  813. 'lable' => 'px',  
  814. 'type' => 'slider',  
  815. 'default' => 10,  
  816. 'class' => 'festi-cart-change-slider',  
  817. 'event' => 'change-slider',  
  818. 'min' => 0,  
  819. 'max' => 100,  
  820. 'fieldsetKey' => 'headerText',  
  821. ),  
  822. 'popupHeaderTextMarginBottom' => array( 
  823. 'caption' => __( 
  824. 'Margin Bottom',  
  825. $this->_languageDomain 
  826. ),  
  827. 'lable' => 'px',  
  828. 'type' => 'slider',  
  829. 'default' => 20,  
  830. 'class' => 'festi-cart-change-slider',  
  831. 'event' => 'change-slider',  
  832. 'min' => 0,  
  833. 'max' => 100,  
  834. 'fieldsetKey' => 'headerText',  
  835. ),  
  836. 'popupHeaderTextMarginLeft' => array( 
  837. 'caption' => __( 
  838. 'Margin Left',  
  839. $this->_languageDomain 
  840. ),  
  841. 'lable' => 'px',  
  842. 'type' => 'slider',  
  843. 'default' => 10,  
  844. 'class' => 'festi-cart-change-slider',  
  845. 'event' => 'change-slider',  
  846. 'min' => 0,  
  847. 'max' => 100,  
  848. 'fieldsetKey' => 'headerText',  
  849. ),  
  850. 'popupHeaderTextMarginRight' => array( 
  851. 'caption' => __( 
  852. 'Margin Right',  
  853. $this->_languageDomain 
  854. ),  
  855. 'lable' => 'px',  
  856. 'type' => 'slider',  
  857. 'default' => 10,  
  858. 'class' => 'festi-cart-change-slider',  
  859. 'event' => 'change-slider',  
  860. 'min' => 0,  
  861. 'max' => 100,  
  862. 'fieldsetKey' => 'headerText',  
  863. ),  
  864. 'displayPopupContinueButton' => array( 
  865. 'caption' => __( 
  866. 'Continue Shopping Button',  
  867. $this->_languageDomain 
  868. ),  
  869. 'lable' => __( 
  870. 'Enable Continue Shopping button',  
  871. $this->_languageDomain 
  872. ),  
  873. 'type' => 'input_checkbox',  
  874. 'default' => 1,  
  875. 'event' => 'visible',  
  876. 'fieldsetKey' => 'continueButton',  
  877. 'backlight' => 'light' 
  878. ),  
  879. 'popupContinueButtonText' => array( 
  880. 'caption' => __( 
  881. 'Title',  
  882. $this->_languageDomain 
  883. ),  
  884. 'hint' => __( 
  885. 'Change the button text',  
  886. $this->_languageDomain 
  887. ),  
  888. 'type' => 'input_text',  
  889. 'default' => __('Continue Shopping', $this->_languageDomain),  
  890. 'fieldsetKey' => 'continueButton',  
  891. 'eventClasses' => 'displayPopupContinueButton',  
  892. ),  
  893. 'popupContinueButtonFontSize' => array( 
  894. 'caption' => __('Font Size', $this->_languageDomain),  
  895. 'lable' => 'px',  
  896. 'hint' => __( 
  897. 'Change font size',  
  898. $this->_languageDomain 
  899. ),  
  900. 'type' => 'input_size',  
  901. 'default' => 20,  
  902. 'class' => 'festi-cart-font-size',  
  903. 'fieldsetKey' => 'continueButton',  
  904. 'eventClasses' => 'displayPopupContinueButton',  
  905. ),  
  906. 'popupContinueButtonAlign' => array( 
  907. 'caption' => __( 
  908. 'Alignment',  
  909. $this->_languageDomain 
  910. ),  
  911. 'hint' => __( 
  912. 'Select the location of button in popup footer',  
  913. $this->_languageDomain 
  914. ),  
  915. 'values' => array( 
  916. 'left' => __('Left', $this->_languageDomain),  
  917. 'center' => __('Center', $this->_languageDomain),  
  918. 'right' => __('Right', $this->_languageDomain),  
  919. ),  
  920. 'type' => 'select',  
  921. 'default' => 'center',  
  922. 'fieldsetKey' => 'continueButton',  
  923. 'eventClasses' => 'displayPopupContinueButton',  
  924. ),  
  925. 'popupContinueButtonWidthType' => array( 
  926. 'caption' => __( 
  927. 'Width Type',  
  928. $this->_languageDomain 
  929. ),  
  930. 'hint' => __( 
  931. 'Select width type',  
  932. $this->_languageDomain 
  933. ),  
  934. 'values' => array( 
  935. 'auto' => __('Auto', $this->_languageDomain),  
  936. 'full' => __('Full Width', $this->_languageDomain),  
  937. 'custom' => __('Custom', $this->_languageDomain),  
  938. ),  
  939. 'type' => 'select',  
  940. 'default' => 'auto',  
  941. 'fieldsetKey' => 'continueButton',  
  942. 'eventClasses' => 'displayPopupContinueButton',  
  943. ),  
  944. 'popupContinueButtonWidth' => array( 
  945. 'caption' => __('Custom Width', $this->_languageDomain),  
  946. 'lable' => 'px',  
  947. 'type' => 'slider',  
  948. 'default' => 160,  
  949. 'class' => 'festi-cart-change-slider',  
  950. 'event' => 'change-slider',  
  951. 'min' => 50,  
  952. 'max' => 1000,  
  953. 'fieldsetKey' => 'continueButton',  
  954. 'eventClasses' => 'displayPopupContinueButton',  
  955. ),  
  956. 'popupContinueButtonPaddingTop' => array( 
  957. 'caption' => __( 
  958. 'Padding Top',  
  959. $this->_languageDomain 
  960. ),  
  961. 'lable' => 'px',  
  962. 'type' => 'slider',  
  963. 'default' => 10,  
  964. 'class' => 'festi-cart-change-slider',  
  965. 'event' => 'change-slider',  
  966. 'min' => 0,  
  967. 'max' => 50,  
  968. 'fieldsetKey' => 'continueButton',  
  969. 'eventClasses' => 'displayPopupContinueButton',  
  970. ),  
  971. 'popupContinueButtonPaddingBottom' => array( 
  972. 'caption' => __( 
  973. 'Padding Bottom',  
  974. $this->_languageDomain 
  975. ),  
  976. 'lable' => 'px',  
  977. 'type' => 'slider',  
  978. 'default' => 10,  
  979. 'class' => 'festi-cart-change-slider',  
  980. 'event' => 'change-slider',  
  981. 'min' => 0,  
  982. 'max' => 50,  
  983. 'fieldsetKey' => 'continueButton',  
  984. 'eventClasses' => 'displayPopupContinueButton',  
  985. ),  
  986. 'popupContinueButtonBackground' => array( 
  987. 'caption' => __( 
  988. 'Background Color',  
  989. $this->_languageDomain 
  990. ),  
  991. 'hint' => __( 
  992. 'Change the background color',  
  993. $this->_languageDomain 
  994. ),  
  995. 'type' => 'color_picker',  
  996. 'default' => '#ffffff',  
  997. 'fieldsetKey' => 'continueButton',  
  998. 'eventClasses' => 'displayPopupContinueButton',  
  999. ),  
  1000. 'popupContinueButtonHoverBackground' => array( 
  1001. 'caption' => __( 
  1002. 'Background Color on Hover',  
  1003. $this->_languageDomain 
  1004. ),  
  1005. 'hint' => __( 
  1006. 'Change the background color',  
  1007. $this->_languageDomain 
  1008. ),  
  1009. 'type' => 'color_picker',  
  1010. 'default' => '#ffffff',  
  1011. 'fieldsetKey' => 'continueButton',  
  1012. 'eventClasses' => 'displayPopupContinueButton',  
  1013. ),  
  1014. 'popupContinueButtonFontColor' => array( 
  1015. 'caption' => __( 
  1016. 'Font Color',  
  1017. $this->_languageDomain 
  1018. ),  
  1019. 'hint' => __( 
  1020. 'Change the color',  
  1021. $this->_languageDomain 
  1022. ),  
  1023. 'type' => 'color_picker',  
  1024. 'default' => '#00a8ca',  
  1025. 'fieldsetKey' => 'continueButton',  
  1026. 'eventClasses' => 'displayPopupContinueButton',  
  1027. ),  
  1028. 'popupContinueButtonHoverFontColor' => array( 
  1029. 'caption' => __( 
  1030. 'Font Color on Hover',  
  1031. $this->_languageDomain 
  1032. ),  
  1033. 'hint' => __( 
  1034. 'Change the Color',  
  1035. $this->_languageDomain 
  1036. ),  
  1037. 'type' => 'color_picker',  
  1038. 'default' => '#72ddf2',  
  1039. 'fieldsetKey' => 'continueButton',  
  1040. 'eventClasses' => 'displayPopupContinueButton',  
  1041. ),  
  1042. 'popupContinueButtonBorderWidth' => array( 
  1043. 'caption' => __( 
  1044. 'Border Width',  
  1045. $this->_languageDomain 
  1046. ),  
  1047. 'lable' => 'px',  
  1048. 'type' => 'slider',  
  1049. 'default' => 0,  
  1050. 'class' => 'festi-cart-change-slider',  
  1051. 'event' => 'change-slider',  
  1052. 'min' => 0,  
  1053. 'max' => 15,  
  1054. 'fieldsetKey' => 'continueButton',  
  1055. 'eventClasses' => 'displayPopupContinueButton',  
  1056. ),  
  1057. 'popupContinueButtonBorderRadius' => array( 
  1058. 'caption' => __( 
  1059. 'Border Radius',  
  1060. $this->_languageDomain 
  1061. ),  
  1062. 'lable' => 'px',  
  1063. 'type' => 'slider',  
  1064. 'default' => 0,  
  1065. 'class' => 'festi-cart-change-slider',  
  1066. 'event' => 'change-slider',  
  1067. 'min' => 0,  
  1068. 'max' => 100,  
  1069. 'fieldsetKey' => 'continueButton',  
  1070. 'eventClasses' => 'displayPopupContinueButton',  
  1071. ),  
  1072. 'popupContinueButtonBorderColor' => array( 
  1073. 'caption' => __( 
  1074. 'Border Color',  
  1075. $this->_languageDomain 
  1076. ),  
  1077. 'hint' => __( 
  1078. 'Change the Color',  
  1079. $this->_languageDomain 
  1080. ),  
  1081. 'type' => 'color_picker',  
  1082. 'default' => '#e0e0e0',  
  1083. 'fieldsetKey' => 'continueButton',  
  1084. 'eventClasses' => 'displayPopupContinueButton',  
  1085. ),  
  1086. 'popupContinueButtonHoverBorderColor' => array( 
  1087. 'caption' => __( 
  1088. 'Border Color on Hover',  
  1089. $this->_languageDomain 
  1090. ),  
  1091. 'hint' => __( 
  1092. 'Change the Color',  
  1093. $this->_languageDomain 
  1094. ),  
  1095. 'type' => 'color_picker',  
  1096. 'default' => '#e0e0e0',  
  1097. 'fieldsetKey' => 'continueButton',  
  1098. 'eventClasses' => 'displayPopupContinueButton',  
  1099. ),  
  1100. 'productListEmptyCartDivider' => array( 
  1101. 'caption' => __('Empty Cart', $this->_languageDomain),  
  1102. 'type' => 'divider',  
  1103. 'fieldsetKey' => 'lightbox',  
  1104. 'hide' => true 
  1105. ),  
  1106. 'productListEmptyText' => array( 
  1107. 'caption' => __( 
  1108. 'Text for Empty Cart',  
  1109. $this->_languageDomain 
  1110. ),  
  1111. 'hint' => __( 
  1112. 'Change Dropdown List Text for Empty Cart',  
  1113. $this->_languageDomain 
  1114. ),  
  1115. 'type' => 'input_text',  
  1116. 'default' => 'There are no products',  
  1117. 'fieldsetKey' => 'lightbox',  
  1118. 'hide' => true 
  1119. ),  
  1120. 'productListEmptyPaddingTop' => array( 
  1121. 'caption' => __( 
  1122. 'Padding Top',  
  1123. $this->_languageDomain 
  1124. ),  
  1125. 'lable' => 'px',  
  1126. 'type' => 'slider',  
  1127. 'default' => 5,  
  1128. 'class' => 'festi-cart-change-slider',  
  1129. 'event' => 'change-slider',  
  1130. 'min' => 0,  
  1131. 'max' => 50,  
  1132. 'fieldsetKey' => 'lightbox',  
  1133. 'hide' => true 
  1134. ),  
  1135. 'productListEmptyPaddingBottom' => array( 
  1136. 'caption' => __( 
  1137. 'Padding Bottom',  
  1138. $this->_languageDomain 
  1139. ),  
  1140. 'lable' => 'px',  
  1141. 'type' => 'slider',  
  1142. 'default' => 5,  
  1143. 'class' => 'festi-cart-change-slider',  
  1144. 'event' => 'change-slider',  
  1145. 'min' => 0,  
  1146. 'max' => 50,  
  1147. 'fieldsetKey' => 'lightbox',  
  1148. 'hide' => true 
  1149. ),  
  1150. 'productListEmptyFontColor' => array( 
  1151. 'caption' => __( 
  1152. 'Text Font Color for Empty Cart',  
  1153. $this->_languageDomain 
  1154. ),  
  1155. 'hint' => __( 
  1156. 'Change the color for empty product list text',  
  1157. $this->_languageDomain 
  1158. ),  
  1159. 'type' => 'color_picker',  
  1160. 'default' => '#111111',  
  1161. 'fieldsetKey' => 'lightbox',  
  1162. 'hide' => true 
  1163. ),  
  1164. 'productAmountDivider' => array( 
  1165. 'caption' => __('Amount and Price', $this->_languageDomain),  
  1166. 'type' => 'divider',  
  1167. 'fieldsetKey' => 'lightbox' 
  1168. ),  
  1169. 'displayProductTotalPrice' => array( 
  1170. 'caption' => __('Display', $this->_languageDomain),  
  1171. 'lable' => __( 
  1172. 'Enable amount and price',  
  1173. $this->_languageDomain 
  1174. ),  
  1175. 'type' => 'input_checkbox',  
  1176. 'default' => 1,  
  1177. 'event' => 'visible',  
  1178. 'fieldsetKey' => 'lightbox',  
  1179. 'backlight' => 'light' 
  1180. ),  
  1181. 'productTotalPriceFontColor' => array( 
  1182. 'caption' => __( 
  1183. 'Font Color',  
  1184. $this->_languageDomain 
  1185. ),  
  1186. 'hint' => __( 
  1187. 'Change the Color',  
  1188. $this->_languageDomain 
  1189. ),  
  1190. 'type' => 'color_picker',  
  1191. 'default' => '#1f1e1e',  
  1192. 'fieldsetKey' => 'lightbox',  
  1193. 'eventClasses' => 'displayProductTotalPrice' 
  1194. ),  
  1195. 'productListSubtotalDivider' => array( 
  1196. 'caption' => __('Subtotal', $this->_languageDomain),  
  1197. 'type' => 'divider',  
  1198. 'fieldsetKey' => 'lightbox' 
  1199. ),  
  1200. 'displayProductListTotal' => array( 
  1201. 'caption' => __('Display', $this->_languageDomain),  
  1202. 'lable' => __( 
  1203. 'Enable Subtotal',  
  1204. $this->_languageDomain 
  1205. ),  
  1206. 'type' => 'input_checkbox',  
  1207. 'default' => 1,  
  1208. 'event' => 'visible',  
  1209. 'fieldsetKey' => 'lightbox',  
  1210. 'backlight' => 'light' 
  1211. ),  
  1212. 'productListTotalText' => array( 
  1213. 'caption' => __( 
  1214. 'Title',  
  1215. $this->_languageDomain 
  1216. ),  
  1217. 'hint' => __( 
  1218. 'Change the text',  
  1219. $this->_languageDomain 
  1220. ),  
  1221. 'type' => 'input_text',  
  1222. 'default' => __('Subtotal', $this->_languageDomain),  
  1223. 'fieldsetKey' => 'lightbox',  
  1224. 'eventClasses' => 'displayProductListTotal' 
  1225. ),  
  1226. 'productListTotalTextAlign' => array( 
  1227. 'caption' => __( 
  1228. 'Text Position',  
  1229. $this->_languageDomain 
  1230. ),  
  1231. 'hint' => __( 
  1232. 'Select the location of text in subtotal container',  
  1233. $this->_languageDomain 
  1234. ),  
  1235. 'values' => array( 
  1236. 'left' => __('Left', $this->_languageDomain),  
  1237. 'center' => __('Center', $this->_languageDomain),  
  1238. 'right' => __('Right', $this->_languageDomain),  
  1239. ),  
  1240. 'type' => 'select',  
  1241. 'default' => 'right',  
  1242. 'fieldsetKey' => 'lightbox',  
  1243. 'eventClasses' => 'displayProductListTotal' 
  1244. ),  
  1245. 'productListTotalPriceBackground' => array( 
  1246. 'caption' => __( 
  1247. 'Background Color',  
  1248. $this->_languageDomain 
  1249. ),  
  1250. 'hint' => __( 
  1251. 'Change the background color',  
  1252. $this->_languageDomain 
  1253. ),  
  1254. 'type' => 'color_picker',  
  1255. 'default' => '#eeeeee',  
  1256. 'fieldsetKey' => 'lightbox',  
  1257. 'eventClasses' => 'displayProductListTotal' 
  1258. ),  
  1259. 'productListTotalPriceBorderWidth' => array( 
  1260. 'caption' => __( 
  1261. 'Border Width',  
  1262. $this->_languageDomain 
  1263. ),  
  1264. 'lable' => 'px',  
  1265. 'type' => 'slider',  
  1266. 'default' => 0,  
  1267. 'class' => 'festi-cart-change-slider',  
  1268. 'event' => 'change-slider',  
  1269. 'min' => 0,  
  1270. 'max' => 15,  
  1271. 'fieldsetKey' => 'lightbox',  
  1272. 'eventClasses' => 'displayProductListTotal' 
  1273. ),  
  1274. 'productListTotalPriceBorderColor' => array( 
  1275. 'caption' => __( 
  1276. 'Border Color',  
  1277. $this->_languageDomain 
  1278. ),  
  1279. 'hint' => __( 
  1280. 'Change the Color for total price in product list',  
  1281. $this->_languageDomain 
  1282. ),  
  1283. 'type' => 'color_picker',  
  1284. 'default' => '#e6e6e6',  
  1285. 'fieldsetKey' => 'lightbox',  
  1286. 'eventClasses' => 'displayProductListTotal' 
  1287. ),  
  1288. 'productListTotalPriceBorderRadius' => array( 
  1289. 'caption' => __( 
  1290. 'Border Radius',  
  1291. $this->_languageDomain 
  1292. ),  
  1293. 'lable' => 'px',  
  1294. 'type' => 'slider',  
  1295. 'default' => 7,  
  1296. 'class' => 'festi-cart-change-slider',  
  1297. 'event' => 'change-slider',  
  1298. 'min' => 0,  
  1299. 'max' => 100,  
  1300. 'fieldsetKey' => 'lightbox',  
  1301. 'eventClasses' => 'displayProductListTotal' 
  1302. ),  
  1303. 'productListTotalPriceFontColor' => array( 
  1304. 'caption' => __( 
  1305. 'Font Color',  
  1306. $this->_languageDomain 
  1307. ),  
  1308. 'hint' => __( 
  1309. 'Change the color',  
  1310. $this->_languageDomain 
  1311. ),  
  1312. 'type' => 'color_picker',  
  1313. 'default' => '#000000',  
  1314. 'fieldsetKey' => 'lightbox',  
  1315. 'eventClasses' => 'displayProductListTotal' 
  1316. ),  
  1317. 'productListButtonsDivider' => array( 
  1318. 'caption' => __( 
  1319. 'View Cart & Checkout Buttons',  
  1320. $this->_languageDomain 
  1321. ),  
  1322. 'type' => 'divider',  
  1323. 'fieldsetKey' => 'lightbox' 
  1324. ),  
  1325. 'productListButtonsFontWeight' => array( 
  1326. 'caption' => __( 
  1327. 'Font Weight',  
  1328. $this->_languageDomain 
  1329. ),  
  1330. 'hint' => __( 
  1331. 'Select font weight for Buttons',  
  1332. $this->_languageDomain 
  1333. ),  
  1334. 'values' => array( 
  1335. 'normal' => __('Normal', $this->_languageDomain),  
  1336. 'bold' => __('Bold', $this->_languageDomain),  
  1337. ),  
  1338. 'type' => 'select',  
  1339. 'default' => 'normal',  
  1340. 'fieldsetKey' => 'lightbox',  
  1341. ),  
  1342. 'productListButtonsQueue' => array( 
  1343. 'caption' => __( 
  1344. 'Display the First in Queue',  
  1345. $this->_languageDomain 
  1346. ),  
  1347. 'hint' => __( 
  1348. 'Select Display the button to display the first',  
  1349. $this->_languageDomain 
  1350. ),  
  1351. 'values' => array( 
  1352. 'viewCart' => __('View Cart', $this->_languageDomain),  
  1353. 'checkout' => __('Checkout', $this->_languageDomain),  
  1354. ),  
  1355. 'type' => 'select',  
  1356. 'default' => 'viewCart',  
  1357. 'fieldsetKey' => 'lightbox',  
  1358. ),  
  1359. 'displayViewCartButton' => array( 
  1360. 'caption' => __('View Cart Button', $this->_languageDomain),  
  1361. 'lable' => __( 
  1362. 'Enable View Cart button',  
  1363. $this->_languageDomain 
  1364. ),  
  1365. 'type' => 'input_checkbox',  
  1366. 'default' => 1,  
  1367. 'event' => 'visible',  
  1368. 'fieldsetKey' => 'lightbox',  
  1369. 'backlight' => 'light' 
  1370. ),  
  1371. 'viewCartButtonText' => array( 
  1372. 'caption' => __( 
  1373. 'Title',  
  1374. $this->_languageDomain 
  1375. ),  
  1376. 'hint' => __( 
  1377. 'Change the button text',  
  1378. $this->_languageDomain 
  1379. ),  
  1380. 'type' => 'input_text',  
  1381. 'default' => __('View Cart', $this->_languageDomain),  
  1382. 'fieldsetKey' => 'lightbox',  
  1383. 'eventClasses' => 'displayViewCartButton' 
  1384. ),  
  1385. 'viewCartButtonWidthType' => array( 
  1386. 'caption' => __( 
  1387. 'Width Type',  
  1388. $this->_languageDomain 
  1389. ),  
  1390. 'hint' => __( 
  1391. 'Select width type',  
  1392. $this->_languageDomain 
  1393. ),  
  1394. 'values' => array( 
  1395. 'auto' => __('Auto', $this->_languageDomain),  
  1396. 'full' => __('Full Width', $this->_languageDomain),  
  1397. 'custom' => __('Custom', $this->_languageDomain),  
  1398. ),  
  1399. 'type' => 'select',  
  1400. 'default' => 'auto',  
  1401. 'fieldsetKey' => 'lightbox',  
  1402. 'eventClasses' => 'displayViewCartButton' 
  1403. ),  
  1404. 'viewCartButtonWidth' => array( 
  1405. 'caption' => __('Custom Width', $this->_languageDomain),  
  1406. 'lable' => 'px',  
  1407. 'type' => 'slider',  
  1408. 'default' => 160,  
  1409. 'class' => 'festi-cart-change-slider',  
  1410. 'event' => 'change-slider',  
  1411. 'min' => 50,  
  1412. 'max' => 1000,  
  1413. 'eventClasses' => 'displayViewCartButton',  
  1414. 'fieldsetKey' => 'lightbox' 
  1415. ),  
  1416. 'viewCartButtonPaddingTop' => array( 
  1417. 'caption' => __( 
  1418. 'Padding Top',  
  1419. $this->_languageDomain 
  1420. ),  
  1421. 'lable' => 'px',  
  1422. 'type' => 'slider',  
  1423. 'default' => 5,  
  1424. 'class' => 'festi-cart-change-slider',  
  1425. 'event' => 'change-slider',  
  1426. 'min' => 0,  
  1427. 'max' => 50,  
  1428. 'fieldsetKey' => 'lightbox' 
  1429. ),  
  1430. 'viewCartButtonPaddingBottom' => array( 
  1431. 'caption' => __( 
  1432. 'Padding Bottom',  
  1433. $this->_languageDomain 
  1434. ),  
  1435. 'lable' => 'px',  
  1436. 'type' => 'slider',  
  1437. 'default' => 5,  
  1438. 'class' => 'festi-cart-change-slider',  
  1439. 'event' => 'change-slider',  
  1440. 'min' => 0,  
  1441. 'max' => 50,  
  1442. 'fieldsetKey' => 'lightbox' 
  1443. ),  
  1444. 'viewCartButtonBackground' => array( 
  1445. 'caption' => __( 
  1446. 'Background Color',  
  1447. $this->_languageDomain 
  1448. ),  
  1449. 'hint' => __( 
  1450. 'Change the background color',  
  1451. $this->_languageDomain 
  1452. ),  
  1453. 'type' => 'color_picker',  
  1454. 'default' => '#eeeeee',  
  1455. 'fieldsetKey' => 'lightbox',  
  1456. 'eventClasses' => 'displayViewCartButton',  
  1457. ),  
  1458. 'viewCartButtonHoverBackground' => array( 
  1459. 'caption' => __( 
  1460. 'Background Color on Hover',  
  1461. $this->_languageDomain 
  1462. ),  
  1463. 'hint' => __( 
  1464. 'Change the background color',  
  1465. $this->_languageDomain 
  1466. ),  
  1467. 'type' => 'color_picker',  
  1468. 'default' => '#6caff7',  
  1469. 'fieldsetKey' => 'lightbox',  
  1470. 'eventClasses' => 'displayViewCartButton',  
  1471. ),  
  1472. 'viewCartButtonFontColor' => array( 
  1473. 'caption' => __( 
  1474. 'Font Color',  
  1475. $this->_languageDomain 
  1476. ),  
  1477. 'hint' => __( 
  1478. 'Change the color',  
  1479. $this->_languageDomain 
  1480. ),  
  1481. 'type' => 'color_picker',  
  1482. 'default' => '#000000',  
  1483. 'fieldsetKey' => 'lightbox',  
  1484. 'eventClasses' => 'displayViewCartButton',  
  1485. ),  
  1486. 'viewCartButtonHoverFontColor' => array( 
  1487. 'caption' => __( 
  1488. 'Font Color on Hover',  
  1489. $this->_languageDomain 
  1490. ),  
  1491. 'hint' => __( 
  1492. 'Change the Color',  
  1493. $this->_languageDomain 
  1494. ),  
  1495. 'type' => 'color_picker',  
  1496. 'default' => '#ffffff',  
  1497. 'fieldsetKey' => 'lightbox',  
  1498. 'eventClasses' => 'displayViewCartButton',  
  1499. ),  
  1500. 'viewCartButtonBorderWidth' => array( 
  1501. 'caption' => __( 
  1502. 'Border Width',  
  1503. $this->_languageDomain 
  1504. ),  
  1505. 'lable' => 'px',  
  1506. 'type' => 'slider',  
  1507. 'default' => 1,  
  1508. 'class' => 'festi-cart-change-slider',  
  1509. 'event' => 'change-slider',  
  1510. 'min' => 0,  
  1511. 'max' => 15,  
  1512. 'fieldsetKey' => 'lightbox',  
  1513. 'eventClasses' => 'displayViewCartButton',  
  1514. ),  
  1515. 'viewCartButtonBorderRadius' => array( 
  1516. 'caption' => __( 
  1517. 'Border Radius',  
  1518. $this->_languageDomain 
  1519. ),  
  1520. 'lable' => 'px',  
  1521. 'type' => 'slider',  
  1522. 'default' => 7,  
  1523. 'class' => 'festi-cart-change-slider',  
  1524. 'event' => 'change-slider',  
  1525. 'min' => 0,  
  1526. 'max' => 100,  
  1527. 'fieldsetKey' => 'lightbox',  
  1528. 'eventClasses' => 'displayViewCartButton',  
  1529. ),  
  1530. 'viewCartButtonBorderColor' => array( 
  1531. 'caption' => __( 
  1532. 'Border Color',  
  1533. $this->_languageDomain 
  1534. ),  
  1535. 'hint' => __( 
  1536. 'Change the Color',  
  1537. $this->_languageDomain 
  1538. ),  
  1539. 'type' => 'color_picker',  
  1540. 'default' => '#e0e0e0',  
  1541. 'fieldsetKey' => 'lightbox',  
  1542. 'eventClasses' => 'displayViewCartButton',  
  1543. ),  
  1544. 'viewCartButtonHoverBorderColor' => array( 
  1545. 'caption' => __( 
  1546. 'Border Color on Hover',  
  1547. $this->_languageDomain 
  1548. ),  
  1549. 'hint' => __( 
  1550. 'Change the Color',  
  1551. $this->_languageDomain 
  1552. ),  
  1553. 'type' => 'color_picker',  
  1554. 'default' => '#e0e0e0',  
  1555. 'fieldsetKey' => 'lightbox',  
  1556. 'eventClasses' => 'displayViewCartButton',  
  1557. ),  
  1558. 'displayCheckoutButton' => array( 
  1559. 'caption' => __('Checkout Button', $this->_languageDomain),  
  1560. 'lable' => __( 
  1561. 'Enable Checkout button',  
  1562. $this->_languageDomain 
  1563. ),  
  1564. 'type' => 'input_checkbox',  
  1565. 'default' => 1,  
  1566. 'event' => 'visible',  
  1567. 'fieldsetKey' => 'lightbox',  
  1568. 'backlight' => 'light' 
  1569. ),  
  1570. 'checkoutButtonText' => array( 
  1571. 'caption' => __( 
  1572. 'Title',  
  1573. $this->_languageDomain 
  1574. ),  
  1575. 'hint' => __( 
  1576. 'Change the button text',  
  1577. $this->_languageDomain 
  1578. ),  
  1579. 'type' => 'input_text',  
  1580. 'default' => __('Checkout', $this->_languageDomain),  
  1581. 'fieldsetKey' => 'lightbox',  
  1582. 'eventClasses' => 'displayCheckoutButton' 
  1583. ),  
  1584. 'checkoutButtonWidthType' => array( 
  1585. 'caption' => __( 
  1586. 'Width Type',  
  1587. $this->_languageDomain 
  1588. ),  
  1589. 'hint' => __( 
  1590. 'Select width type',  
  1591. $this->_languageDomain 
  1592. ),  
  1593. 'values' => array( 
  1594. 'auto' => __('Auto', $this->_languageDomain),  
  1595. 'full' => __('Full Width', $this->_languageDomain),  
  1596. 'custom' => __('Custom', $this->_languageDomain),  
  1597. ),  
  1598. 'type' => 'select',  
  1599. 'default' => 'auto',  
  1600. 'fieldsetKey' => 'lightbox',  
  1601. 'eventClasses' => 'displayCheckoutButton' 
  1602. ),  
  1603. 'checkoutButtonWidth' => array( 
  1604. 'caption' => __('Custom Width', $this->_languageDomain),  
  1605. 'lable' => 'px',  
  1606. 'type' => 'slider',  
  1607. 'default' => 160,  
  1608. 'class' => 'festi-cart-change-slider',  
  1609. 'event' => 'change-slider',  
  1610. 'min' => 50,  
  1611. 'max' => 1000,  
  1612. 'eventClasses' => 'displayCheckoutButton',  
  1613. 'fieldsetKey' => 'lightbox' 
  1614. ),  
  1615. 'checkoutButtonPaddingTop' => array( 
  1616. 'caption' => __( 
  1617. 'Padding Top',  
  1618. $this->_languageDomain 
  1619. ),  
  1620. 'lable' => 'px',  
  1621. 'type' => 'slider',  
  1622. 'default' => 5,  
  1623. 'class' => 'festi-cart-change-slider',  
  1624. 'event' => 'change-slider',  
  1625. 'min' => 0,  
  1626. 'max' => 50,  
  1627. 'fieldsetKey' => 'lightbox' 
  1628. ),  
  1629. 'checkoutButtonPaddingBottom' => array( 
  1630. 'caption' => __( 
  1631. 'Padding Bottom',  
  1632. $this->_languageDomain 
  1633. ),  
  1634. 'lable' => 'px',  
  1635. 'type' => 'slider',  
  1636. 'default' => 5,  
  1637. 'class' => 'festi-cart-change-slider',  
  1638. 'event' => 'change-slider',  
  1639. 'min' => 0,  
  1640. 'max' => 50,  
  1641. 'fieldsetKey' => 'lightbox' 
  1642. ),  
  1643. 'checkoutButtonBackground' => array( 
  1644. 'caption' => __( 
  1645. 'Background Color',  
  1646. $this->_languageDomain 
  1647. ),  
  1648. 'hint' => __( 
  1649. 'Change the background color',  
  1650. $this->_languageDomain 
  1651. ),  
  1652. 'type' => 'color_picker',  
  1653. 'default' => '#eeeeee',  
  1654. 'fieldsetKey' => 'lightbox',  
  1655. 'eventClasses' => 'displayCheckoutButton',  
  1656. ),  
  1657. 'checkoutButtonHoverBackground' => array( 
  1658. 'caption' => __( 
  1659. 'Background Color on Hover',  
  1660. $this->_languageDomain 
  1661. ),  
  1662. 'hint' => __( 
  1663. 'Change the background color',  
  1664. $this->_languageDomain 
  1665. ),  
  1666. 'type' => 'color_picker',  
  1667. 'default' => '#6caff7',  
  1668. 'fieldsetKey' => 'lightbox',  
  1669. 'eventClasses' => 'displayCheckoutButton',  
  1670. ),  
  1671. 'checkoutButtonFontColor' => array( 
  1672. 'caption' => __( 
  1673. 'Font Color',  
  1674. $this->_languageDomain 
  1675. ),  
  1676. 'hint' => __( 
  1677. 'Change the color',  
  1678. $this->_languageDomain 
  1679. ),  
  1680. 'type' => 'color_picker',  
  1681. 'default' => '#000000',  
  1682. 'fieldsetKey' => 'lightbox',  
  1683. 'eventClasses' => 'displayCheckoutButton',  
  1684. ),  
  1685. 'checkoutButtonHoverFontColor' => array( 
  1686. 'caption' => __( 
  1687. 'Font Color on Hover',  
  1688. $this->_languageDomain 
  1689. ),  
  1690. 'hint' => __( 
  1691. 'Change the Color',  
  1692. $this->_languageDomain 
  1693. ),  
  1694. 'type' => 'color_picker',  
  1695. 'default' => '#ffffff',  
  1696. 'fieldsetKey' => 'lightbox',  
  1697. 'eventClasses' => 'displayCheckoutButton',  
  1698. ),  
  1699. 'checkoutButtonBorderWidth' => array( 
  1700. 'caption' => __( 
  1701. 'Border Width',  
  1702. $this->_languageDomain 
  1703. ),  
  1704. 'lable' => 'px',  
  1705. 'type' => 'slider',  
  1706. 'default' => 1,  
  1707. 'class' => 'festi-cart-change-slider',  
  1708. 'event' => 'change-slider',  
  1709. 'min' => 0,  
  1710. 'max' => 15,  
  1711. 'fieldsetKey' => 'lightbox',  
  1712. 'eventClasses' => 'displayCheckoutButton',  
  1713. ),  
  1714. 'checkoutButtonBorderRadius' => array( 
  1715. 'caption' => __( 
  1716. 'Border Radius',  
  1717. $this->_languageDomain 
  1718. ),  
  1719. 'lable' => 'px',  
  1720. 'type' => 'slider',  
  1721. 'default' => 7,  
  1722. 'class' => 'festi-cart-change-slider',  
  1723. 'event' => 'change-slider',  
  1724. 'min' => 0,  
  1725. 'max' => 100,  
  1726. 'fieldsetKey' => 'lightbox',  
  1727. 'eventClasses' => 'displayCheckoutButton',  
  1728. ),  
  1729. 'checkoutButtonBorderColor' => array( 
  1730. 'caption' => __( 
  1731. 'Border Color',  
  1732. $this->_languageDomain 
  1733. ),  
  1734. 'hint' => __( 
  1735. 'Change the Color',  
  1736. $this->_languageDomain 
  1737. ),  
  1738. 'type' => 'color_picker',  
  1739. 'default' => '#e0e0e0',  
  1740. 'fieldsetKey' => 'lightbox',  
  1741. 'eventClasses' => 'displayCheckoutButton',  
  1742. ),  
  1743. 'checkoutButtonHoverBorderColor' => array( 
  1744. 'caption' => __( 
  1745. 'Border Color on Hover',  
  1746. $this->_languageDomain 
  1747. ),  
  1748. 'hint' => __( 
  1749. 'Change the Color',  
  1750. $this->_languageDomain 
  1751. ),  
  1752. 'type' => 'color_picker',  
  1753. 'default' => '#e0e0e0',  
  1754. 'fieldsetKey' => 'lightbox',  
  1755. 'eventClasses' => 'displayCheckoutButton',  
  1756. ),  
  1757. 'productListDeleteButtonDivider' => array( 
  1758. 'caption' => __( 
  1759. 'Delete Product Button',  
  1760. $this->_languageDomain 
  1761. ),  
  1762. 'type' => 'divider',  
  1763. 'fieldsetKey' => 'lightbox' 
  1764. ),  
  1765. 'displayDeleteButton' => array( 
  1766. 'caption' => __('Display', $this->_languageDomain),  
  1767. 'lable' => __( 
  1768. 'Enable Delete Product Button',  
  1769. $this->_languageDomain 
  1770. ),  
  1771. 'type' => 'input_checkbox',  
  1772. 'default' => 1,  
  1773. 'event' => 'visible',  
  1774. 'fieldsetKey' => 'lightbox',  
  1775. 'backlight' => 'light' 
  1776. ),  
  1777. 'deleteButtonPosition' => array( 
  1778. 'caption' => __( 
  1779. 'Position',  
  1780. $this->_languageDomain 
  1781. ),  
  1782. 'hint' => __( 
  1783. 'Select the location of button in dropdown list',  
  1784. $this->_languageDomain 
  1785. ),  
  1786. 'values' => array( 
  1787. 'left' => __('Left', $this->_languageDomain),  
  1788. 'right' => __('Right', $this->_languageDomain),  
  1789. ),  
  1790. 'type' => 'select',  
  1791. 'default' => 'left',  
  1792. 'fieldsetKey' => 'lightbox',  
  1793. 'eventClasses' => 'displayDeleteButton' 
  1794. ),  
  1795. 'deleteButtonVerticalAlignment' => array( 
  1796. 'caption' => __( 
  1797. 'Vertical Alignment',  
  1798. $this->_languageDomain 
  1799. ),  
  1800. 'hint' => __( 
  1801. 'Select the vertical alignment of button in dropdown list',  
  1802. $this->_languageDomain 
  1803. ),  
  1804. 'values' => array( 
  1805. 'top' => __('Top', $this->_languageDomain),  
  1806. 'middle' => __('Middle', $this->_languageDomain),  
  1807. 'bottom' => __('Bottom', $this->_languageDomain),  
  1808. ),  
  1809. 'type' => 'select',  
  1810. 'default' => 'top',  
  1811. 'fieldsetKey' => 'lightbox',  
  1812. 'eventClasses' => 'displayDeleteButton' 
  1813. ),  
  1814. 'deleteButtonSize' => array( 
  1815. 'caption' => __( 
  1816. 'Size',  
  1817. $this->_languageDomain 
  1818. ),  
  1819. 'lable' => 'px',  
  1820. 'type' => 'slider',  
  1821. 'default' => 18,  
  1822. 'class' => 'festi-cart-change-slider',  
  1823. 'event' => 'change-slider',  
  1824. 'min' => 5,  
  1825. 'max' => 50,  
  1826. 'fieldsetKey' => 'lightbox',  
  1827. 'eventClasses' => 'displayDeleteButton' 
  1828. ),  
  1829. 'deleteButtonFontColor' => array( 
  1830. 'caption' => __( 
  1831. 'Font Color',  
  1832. $this->_languageDomain 
  1833. ),  
  1834. 'hint' => __( 
  1835. 'Change the color',  
  1836. $this->_languageDomain 
  1837. ),  
  1838. 'type' => 'color_picker',  
  1839. 'default' => '#000000',  
  1840. 'fieldsetKey' => 'lightbox',  
  1841. 'eventClasses' => 'displayDeleteButton' 
  1842. ),  
  1843. 'deleteButtonHoverFontColor' => array( 
  1844. 'caption' => __( 
  1845. 'Font Color on Hover',  
  1846. $this->_languageDomain 
  1847. ),  
  1848. 'hint' => __( 
  1849. 'Change the Color',  
  1850. $this->_languageDomain 
  1851. ),  
  1852. 'type' => 'color_picker',  
  1853. 'default' => '#807878',  
  1854. 'fieldsetKey' => 'lightbox',  
  1855. 'eventClasses' => 'displayDeleteButton' 
  1856. ),  
  1857. 'productListDelimiterDivider' => array( 
  1858. 'caption' => __('Divider for products', $this->_languageDomain),  
  1859. 'type' => 'divider',  
  1860. 'fieldsetKey' => 'lightbox' 
  1861. ),  
  1862. 'delimiterPositionsWidth' => array( 
  1863. 'caption' => __( 
  1864. 'Height',  
  1865. $this->_languageDomain 
  1866. ),  
  1867. 'lable' => 'px',  
  1868. 'type' => 'slider',  
  1869. 'default' => 1,  
  1870. 'class' => 'festi-cart-change-slider',  
  1871. 'event' => 'change-slider',  
  1872. 'min' => 0,  
  1873. 'max' => 15,  
  1874. 'fieldsetKey' => 'lightbox' 
  1875. ),  
  1876. 'delimiterPositionsColor' => array( 
  1877. 'caption' => __( 
  1878. 'Color',  
  1879. $this->_languageDomain 
  1880. ),  
  1881. 'hint' => __( 
  1882. 'Change the Color',  
  1883. $this->_languageDomain 
  1884. ),  
  1885. 'type' => 'color_picker',  
  1886. 'default' => '#e8e4e3',  
  1887. 'fieldsetKey' => 'lightbox' 
  1888. ),  
  1889. 'productsPicturesDivider' => array( 
  1890. 'caption' => __('Products Thumbnails', $this->_languageDomain),  
  1891. 'type' => 'divider',  
  1892. 'fieldsetKey' => 'lightbox' 
  1893. ),  
  1894. 'displayProductsPictures' => array( 
  1895. 'caption' => __('Display', $this->_languageDomain),  
  1896. 'lable' => __( 
  1897. 'Enable product picture',  
  1898. $this->_languageDomain 
  1899. ),  
  1900. 'type' => 'input_checkbox',  
  1901. 'default' => 1,  
  1902. 'event' => 'visible',  
  1903. 'fieldsetKey' => 'lightbox',  
  1904. 'backlight' => 'light' 
  1905. ),  
  1906. 'productDefaultThumbnail' => array( 
  1907. 'caption' => __('Use Default Thumbnails', $this->_languageDomain),  
  1908. 'lable' => __( 
  1909. 'Enable option',  
  1910. $this->_languageDomain 
  1911. ),  
  1912. 'hint' => __( 
  1913. 'Will use default WooCommerce Product Thumbnails',  
  1914. $this->_languageDomain 
  1915. ),  
  1916. 'type' => 'input_checkbox',  
  1917. 'fieldsetKey' => 'lightbox',  
  1918. 'eventClasses' => 'displayProductsPictures' 
  1919. ),  
  1920. 'productImageMaxWidth' => array( 
  1921. 'caption' => __( 
  1922. 'Max Width for Custom',  
  1923. $this->_languageDomain 
  1924. ),  
  1925. 'lable' => 'px',  
  1926. 'type' => 'slider',  
  1927. 'default' => 40,  
  1928. 'class' => 'festi-cart-change-slider',  
  1929. 'event' => 'change-slider',  
  1930. 'min' => 0,  
  1931. 'max' => 500,  
  1932. 'fieldsetKey' => 'lightbox',  
  1933. 'eventClasses' => 'displayProductsPictures' 
  1934. ),  
  1935. 'productImageMaxHeight' => array( 
  1936. 'caption' => __( 
  1937. 'Max Height for Custom',  
  1938. $this->_languageDomain 
  1939. ),  
  1940. 'lable' => 'px',  
  1941. 'type' => 'slider',  
  1942. 'default' => 0,  
  1943. 'class' => 'festi-cart-change-slider',  
  1944. 'event' => 'change-slider',  
  1945. 'min' => 0,  
  1946. 'max' => 500,  
  1947. 'fieldsetKey' => 'lightbox',  
  1948. 'eventClasses' => 'displayProductsPictures' 
  1949. ),  
  1950. ); 
  1951.  
  1952. $values = $this->getOptions('settings'); 
  1953. if ($values) { 
  1954. foreach ($settings as $ident => &$item) { 
  1955. if (array_key_exists($ident, $values)) { 
  1956. $item['value'] = $values[$ident]; 
  1957. unset($item); 
  1958.  
  1959. return $settings; 
  1960. } // end loadSettings 
  1961.  
  1962. public function getSelectorClassForDisplayEvent($class) 
  1963. $selector = $class.'-visible'; 
  1964.  
  1965. $options = $this->getOptions('settings'); 
  1966.  
  1967. if (!isset($options[$class]) || $options[$class] == 'disable') { 
  1968. $selector.= ' festi-cart-hidden '; 
  1969.  
  1970. return $selector; 
  1971. } // end getSelectorClassForDisplayEvent 
  1972.  
  1973. protected function hasOptionPageInRequest() 
  1974. return array_key_exists('tab', $_GET) 
  1975. && array_key_exists($_GET['tab'], $this->_menuOptions); 
  1976. } // end hasOptionPageInRequest 
  1977.  
  1978. public function fetchOptionPageHelp() 
  1979. echo $this->fetch('help_page.phtml'); 
  1980. } // end fetchOptionPageManual