This file contains 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 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 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 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 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 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 PhotoalbumsController extends Controller | |
{ | |
/** | |
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning | |
* using two-column layout. See 'protected/views/layouts/column2.php'. |
This file contains 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
// variant 1 | |
block box, content: applyCtx({ | |
elem: 'left-top', | |
content: { | |
elem: 'right-top', | |
content: { | |
elem: 'right-bottom', | |
content: { | |
elem: 'left-bottom', | |
content: applyNext() |
This file contains 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
#!/bin/bash | |
# put this script to /merged | |
# depends: npm install cssrb first | |
# make builds dirs | |
mkdir -p build/css/ build/js/ | |
# copy js |
This file contains 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
#!/bin/bash | |
# put this script to /merged | |
# depends: npm install cssrb first | |
# create cssrb config file | |
BUILD_DIR=`pwd`/build | |
echo "exports.config = { \ |
This file contains 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
.circle { | |
height: 100px; | |
width: 100px; | |
border: 2px solid #fff; | |
border-radius: 50%; | |
background: red; | |
} |