public function init()
 {
     parent::init();
     $this->view->headStyle()->appendStyle("\n#plan-TPL { display: none; }\n        ");
     $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/adminproduct.js");
     $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/ckeditor/ckeditor.js");
     $this->getDi()->plugins_payment->loadEnabled()->getAllEnabled();
 }
 function init()
 {
     if (!class_exists('Am_Form_Brick', false)) {
         class_exists('Am_Form_Brick', true);
         Am_Di::getInstance()->hook->call(Am_Event::LOAD_BRICKS);
     }
     parent::init();
 }
Beispiel #3
0
 public function init()
 {
     parent::init();
     include_once dirname(__FILE__) . "/../../controllers/AdminContentController.php";
 }
 public function init()
 {
     parent::init();
     $this->view->headScript()->appendScript($this->getJs());
     $this->view->placeholder('after-content')->append("<div id='run-form' style='display:none'></div>");
 }
 public function init()
 {
     parent::init();
     $this->view->headStyle()->appendStyle("\n.billing-plan.collapsed .row { display: none; }\n.billing-plan.collapsed .row.terms-text-row { display: block; }\n.billing-plan .terms-text-row { font-decoration: italic; font-size: 120%; padding: 4px;}\n#plan-TPL { display: none; }\n        ");
     $this->view->headScript()->appendFile(REL_ROOT_URL . "/application/default/views/public/js/adminproduct.js");
     $this->getDi()->plugins_payment->loadEnabled()->getAllEnabled();
 }
 public function init()
 {
     $this->getView()->headScript()->appendScript($this->getJs());
     if ($language = $this->_request->get('language')) {
         $this->language = $language;
     } else {
         $locale = new Zend_Locale(Zend_Registry::get('Zend_Translate')->getLocale());
         $this->language = $locale->getLanguage();
     }
     parent::init();
 }
    public function init()
    {
        parent::init();
        $this->view->placeholder('after-content')->append('<div id="coupons" style="display:none"></div>');
        $couponsTitle = ___('Coupons');
        $this->view->headScript()->appendScript(<<<CUT
function amOpenCoupons(id)
{
    var url = window.rootUrl + '/admin-coupons/detail/id/'+id
                + '?_detail_filter='
                + escape(\$("input[name='_coupon_filter']").val());
    \$("#coupons").load(url,
        function(){
            \$("#coupons .grid-wrap").ngrid();
            \$("#coupons").dialog({
                autoOpen: true
                ,width: 800
                ,height: 600
                ,closeOnEscape: true
                ,title: "{$couponsTitle}"
                ,modal: true
            });
        }
    );
}
CUT
);
    }
 public function init()
 {
     parent::init();
     $this->view->headScript()->appendScript($this->getJs());
     $this->view->placeholder('after-content')->append("<br /><br />" . "<div id='detail'></div>" . "<div id='run-form' style='display:none'>" . (string) $this->createRunForm() . "</div>");
 }