示例#1
0
 public function __construct(array $option = array())
 {
     $this->captcha = new CaptchaImage(array('font' => Manager_Config::istatDir() . 'fonts/f/Ubuntu/Ubuntu-MediumItalic.ttf', 'name' => isset($option['name']) ? $option['name'] : 'captcha', 'width' => isset($option['width']) ? $option['width'] : 220, 'height' => isset($option['height']) ? $option['height'] : 80, 'wordLen' => isset($option['wordLen']) ? $option['wordLen'] : 5, 'timeout' => isset($option['timeout']) ? $option['timeout'] : 300, 'dotNoiseLevel' => 40, 'lineNoiseLevel' => 4));
     $this->captcha->setImgDir(Manager_Config::istatDir() . 'captcha/c');
     $this->captcha->setImgUrl(Manager_Config::istatUrl() . 'captcha/c');
     $this->captcha->setImgAlt('Kod z obrazka');
 }
示例#2
0
文件: basic.php 项目: ewa-k-batko/dom
<?php

if ($this instanceof Manager_Controller) {
    $this->layout = 'common/view/layout.phtml';
    self::$orderEvent = array('init', 'fluid', 'main', 'aside', 'brand', 'header', 'nav', 'footer');
    $this->storage->metatags->setTitle('Remont domu');
    $this->storage->metatags->setDescription('Projekt remontu domu.');
    $this->storage->metatags->setKeywords('projekt,dom,remont');
    $this->storage->scripts->setCss('/css/basic.css');
    /* $this->storage->scripts->setCss('/css/old/normalize.css');
        $this->storage->scripts->setCss('/css/old/grid.css');
        $this->storage->scripts->setCss('/css/old/theme.css');
       */
    $this->storage->scripts->setJs(Manager_Config::istatUrl() . 'js/modernizr.js', Manager_Helper_Scripts::SLOT_HEAD);
    $this->storage->scripts->setJs(Manager_Config::istatUrl() . 'js/jquery/jquery-1.11.2.min.js', Manager_Helper_Scripts::SLOT_FOOT);
    //$this->storage->scripts->setJs(Manager_Config::istatUrl() . 'js/jquery/jquery.cookie.js', Manager_Helper_Scripts::SLOT_FOOT);
    $this->storage->scripts->setJQuery();
    $link = new Model_Link_Container();
    $link->setTitle('Dom')->setUrl('/');
    $this->storage->breadcrumbs->set(0, (new Model_Link_Container())->setTitle('Dom')->setUrl('/'));
    /**
     * navigation start
     */
    $nav = new Model_Collection();
    $link = new Model_Link_Container();
    $link->setUrl('/')->setTitle('Strona główna')->setClass('front-page');
    $nav->append($link);
    $link = new Model_Link_Container();
    $link->setUrl('/rzut')->setTitle('Rzuty')->setClass('image-page');
    $nav->append($link);
    $link = new Model_Link_Container();