This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# Шаблон Фотоальбомы /photoalbums #} | |
| {# TODO: remove test data: #} | |
| {% set records = [] %} | |
| {% set record = [ {'image': '/uploads/photoalbums/fix-and-replay/1_small.jpg', 'url': 'photoalbum', 'title': 'Фотоальбом', 'total': 25} ] %} | |
| {% for i in 1..10 %} | |
| {% set records = records|merge(record) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($model->save()) | |
| { | |
| // Image | |
| if (is_object($file_image)) | |
| { | |
| //$image_folder = Yii::app()->basePath.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR; | |
| $image_folder = Yii::app()->basePath.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'uploads'.DIRECTORY_SEPARATOR.'news'.DIRECTORY_SEPARATOR; | |
| $image_name = $model->id.'_'.$model->image; | |
| //var_dump($image_folder.$image_name); | |
| $model->image->saveAs($image_folder.$image_name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| block product-card, (!this.mods || this.mods.type !== 'withFullDesc') { | |
| content: [ | |
| { | |
| elem: 'icon', | |
| content: { | |
| block: 'catalog-icon', mods: { type: (function () { | |
| var mods = ['new', 'pop', 'rec']; | |
| var random = Math.floor(Math.random() * mods.length); | |
| return mods[random]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /********************************************************************************************** | |
| * Easy CMS | |
| ***********************************************************************************************/ | |
| class CustomerController extends Controller | |
| { | |
| public $layout = '//layouts/onecolumn'; | |
| private $_model; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="style_13739561130000000388_BODY" class="js-readmsg-link-box"><div style="background: #e2f6ff;padding: 15px 0 0 0;"> | |
| <table width="100%" bgcolor="#e2f6ff" cellpadding="0" cellspacing="0"> | |
| <tbody><tr> | |
| <td> </td> | |
| <td style="width: 640px;background: #ffffff;vertical-align: top;"> | |
| <div style="margin: 35px 90px 35px 35px;font-size: 15px;line-height: 23px;"> | |
| <a href="http://easy-cms.d-idei.ru/" style="color: #0a4ed7;" target="_blank"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ({ | |
| block: 'b-page', | |
| title: 'testpage', | |
| head: [ | |
| { elem: 'css', url: '_testpage.css', ie: false}, | |
| { elem: 'css', url: '_testpage', ie: true }, | |
| { block: 'i-jquery', elem: 'core'}, | |
| { elem: 'js', url: '_testpage.js'}, | |
| ], | |
| content: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% for menuItem in data %} | |
| <tr class="site-sections-table__tr"> | |
| {# Контрол порядка #} | |
| <td class="site-sections-table__td site-sections-table__td_section_order"> | |
| <div class="order-control"></div> | |
| </td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ({ | |
| block: 'b-page', | |
| mods: { page: 'index' }, | |
| title: 'Title of the page', | |
| favicon: '/favicon.ico', | |
| head: [ | |
| { elem: 'css', url: '_index.css', ie: false }, | |
| { elem: 'css', url: '_index', ie: true }, | |
| { block: 'i-jquery', elem: 'core'}, | |
| { elem: 'js', url: '_index.js' } |