Ejemplo n.º 1
0
 function render()
 {
     if ($this->lister) {
         $this->lister->js(true)->_load($this->app->url()->absolute()->getBaseURL() . 'vendor/xepan/commerce/templates/js/tool/jquery-elevatezoom.js')->_load($this->app->url()->absolute()->getBaseURL() . 'vendor/xepan/commerce/templates/js/tool/jquery.fancybox.js')->_css("tool/jquery.fancybox-buttons")->_css("tool/jquery.fancybox");
         if ($this->options['zoom-effect'] == 'true') {
             $option_array = array('gallery' => "gal1" . $this->lister->name, 'cursor' => 'pointer', 'galleryActiveClass' => 'active', 'imageCrossfade' => true, 'constrainType' => "height", 'containLensZoom' => true, 'scrollZoom' => true, 'responsive' => true, 'lensShape' => "round", 'lensSize' => '100', 'easing => true', 'zoomWindowPosition' => (int) $this->options['zoom-window-position'], 'zoomType' => $this->options['zoom-type']);
             if (!trim($this->options['zoom-type'])) {
                 unset($option_array['zoomType']);
             }
             $this->js(true)->_selector('.xepan-commerce-item-image-to-zoom')->elevateZoom($option_array);
         }
         $this->js('click', 'var ez =$(".xepan-commerce-item-image-to-zoom").data("elevateZoom");ez.closeAll();$.fancybox(ez.getGalleryList({}));return false;')->_selector('.xepan-commerce-item-image-to-zoom');
     }
     parent::render();
 }
Ejemplo n.º 2
0
 function render()
 {
     parent::render();
     if (!$this->app->country->id and !$this->app->state->id) {
         $this->js(true)->_selector('.xepan-location-tool')->trigger('click');
     }
 }
Ejemplo n.º 3
0
 function render()
 {
     $this->js(true)->_load($this->api->url()->absolute()->getBaseURL() . 'vendor/xepan/commerce/templates/js/tool/jquery-elevatezoom.js')->_load($this->api->url()->absolute()->getBaseURL() . 'vendor/xepan/commerce/templates/js/tool/jquery.fancybox.js');
     parent::render();
 }
Ejemplo n.º 4
0
 function render()
 {
     $this->app->addStyleSheet('jquery-ui');
     return parent::render();
 }
Ejemplo n.º 5
0
 function render()
 {
     $this->app->pathfinder->base_location->addRelativeLocation('epan-components/' . __NAMESPACE__, array('php' => 'lib', 'template' => 'templates', 'css' => array('templates/css', 'templates/js'), 'img' => array('templates/css', 'templates/js'), 'js' => 'templates/js'));
     // $this->js()->_load('xShop-js');
     // $this->api->jquery->addStylesheet('xShop-js');
     // 	$this->api->template->appendHTML('js_include','<script src="epan-components/xShop/templates/js/xShop-js.js"></script>'."\n");
     parent::render();
 }
Ejemplo n.º 6
0
 function render()
 {
     $this->js(true)->_css("jquery-ui");
     parent::render();
 }
Ejemplo n.º 7
0
 function render()
 {
     if (!isset($_COOKIE['xepan_lead_subscription']) and $this->options['show_as_popup'] === true) {
         $this->js(true)->_selector('#' . $this->name . "_subscription_model")->modal('show');
     } else {
         $this->js(true)->_selector('#' . $this->name . "_subscription_model")->modal('hide');
     }
     parent::render();
 }