Skip to content

Commit

Permalink
new architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
im-kulikov committed Sep 9, 2013
1 parent 5f543ce commit 575691c
Show file tree
Hide file tree
Showing 1,892 changed files with 54 additions and 54 deletions.
2 changes: 0 additions & 2 deletions framework/cli/views/webapp/assets/git-gitignore

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions framework/cli/views/webapp/protected/runtime/git-gitignore

This file was deleted.

Empty file.
Empty file.
Empty file.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 4 additions & 1 deletion protected/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'class' => 'application.modules.install.InstallModule',
),
'yupe' => array(
'class' => 'application.modules.yupe.YupeModule',
//'class' => 'application.modules.yupe.YupeModule',
'brandUrl' => 'http://yupe.ru?from=engine',
'cache' => true,
),
Expand Down Expand Up @@ -84,6 +84,9 @@
'class' => 'application.modules.yupe.extensions.EPhpThumb.EPhpThumb',
'options' => array('jpegQuality' => 80),
),
'themeManager' => array(
'basePath' => dirname(__DIR__) . '/../themes',
),
// конфигурирование urlManager, подробнее: http://www.yiiframework.ru/doc/guide/ru/topics.url
'urlManager' => array(
'class' => 'application.modules.yupe.components.urlManager.LangUrlManager',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 7 additions & 9 deletions index.php → public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,25 @@
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

// путь к фреймворку Yii
$yii = dirname(__FILE__) . '/framework/yii.php';
$yii = dirname(__FILE__) . '/../vendor/framework/yii.php';

} else { //production считается во всех случаях, когда не выполнены условия
// путь к фреймворку Yii, при необходимости заменить на yii.php
$yii = dirname(__FILE__) . '/framework/yiilite.php';
$yii = dirname(__FILE__) . '/../vendor/framework/yiilite.php';
// путь к основному конфигурационному файлу Yii
}

$base = require_once dirname(__FILE__) . '/protected/config/main.php';
$base = require_once dirname(__FILE__) . '/../protected/config/main.php';

$userspace = dirname(__FILE__) . '/protected/config/userspace.php';
$userspace = dirname(__FILE__) . '/../protected/config/userspace.php';
$userspace = file_exists($userspace) ? (require_once $userspace) : array();

require $yii;

Yii::setPathOfAlias('application', dirname(__FILE__) . '/protected/');
Yii::setPathOfAlias('yii', dirname(__FILE__) . '/framework/');
Yii::setPathOfAlias('application', dirname(__FILE__) . '/../protected/');
Yii::setPathOfAlias('yii', dirname(__FILE__) . '/../framework/');

use application\modules\yupe\components\ConfigManager;

$confManager = new ConfigManager();
$confManager = new application\modules\yupe\components\ConfigManager();
$config = $confManager->merge($base, $userspace);

Yii::createWebApplication($config)->run();
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
50 changes: 35 additions & 15 deletions themes/default/views/layouts/main.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<?php
$static = Yii::app()->assetManager->publish(
Yii::app()->theme->basePath . '/web'
);
?>
<!DOCTYPE html>
<html lang="<?php echo Yii::app()->language; ?>">
<head>
<meta charset="<?php echo Yii::app()->charset; ?>"/>
<meta name="keywords" content="<?php echo $this->keywords; ?>"/>
<meta name="description" content="<?php echo $this->description; ?>"/>
<link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl; ?>/web/images/favicon.ico"/>
<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/web/css/main.css"/>
<link rel="shortcut icon" href="<?php echo $static; ?>/images/favicon.ico"/>
<link rel="stylesheet" href="<?php echo $static; ?>/css/main.css"/>
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<?php
if(Yii::app()->hasComponent('highlightjs'))
Expand Down Expand Up @@ -92,43 +97,58 @@
<div class="span12">
<div class="span3">
<ul class="unstyled">
<li>Ресурсы<li>
<li><a href="https://twitter.com/yupecms" target="_blank">Twitter</a></li>
<li><a href="http://vk.com/amylabs" target="_blank">Вконтакте</a></li>
<li><a href="https://www.facebook.com/amylabs.ru" target="_blank">Facebook</a></li>
<li><a href="https://plus.google.com/u/0/b/111468098477631231532/111468098477631231532/posts" target="_blank">Google+</a></li>
<li>Ресурсы</li>
<li>
<!-- <i class="icon-twitter">-->
<a href="https://twitter.com/yupecms" target="_blank"></i> Twitter</a>
</li>
<li>
<!-- <i class="icon-vk"></i>-->
<a href="http://vk.com/amylabs" target="_blank"> Вконтакте</a>
</li>
<li>
<!-- <i class="icon-facebook"></i>-->
<a href="https://www.facebook.com/amylabs.ru" target="_blank"> Facebook</a>
</li>
<li>
<!-- <i class="icon-google-plus"></i>-->
<a href="https://plus.google.com/u/0/b/111468098477631231532/111468098477631231532/posts"
target="_blank">Google+</a>
</li>
<li><a href="http://yupe.ru/blog/yupe-mini-cms-yii" target="_blank">Блог</a></li>
<li><a href="http://yupe.ru/" target="_blank">Сайт</a></li>
</ul>
</div>
<div class="span3">
<ul class="unstyled">
<li>Поддержка<li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Контакты</a></li>
<li>Поддержка</li>
<li><a href="http://yupe.ru/docs/index.html" target="_blank">Документация</a></li>
<li><a href="http://api.yupe.ru/" target="_blank">API</a></li>
<li><a href="http://yupe.ru/talk/" target="_blank">Форум</a></li>
<li><a href="http://yupe.ru/wiki/default/pageIndex" target="_blank">Wiki</a></li>
<li><a href="http://yupe.ru/docs/index.html" target="_blank">Документация</a></li>
<li><a href="http://yupe.ru/feedback/faq/" target="_blank">FAQ</a></li>
<li><a href="http://amylabs.ru/contact?from=yupe" target="_blank">Коммерческая поддержка</a></li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Контакты</a></li>
</ul>
</div>
<div class="span3">
<ul class="unstyled">
<li>Юпи!<li>
<li>Юпи!</li>
<li><a href="http://yupe.ru/pages/about/" target="_blank">О проекте</a></li>
<li><a href="http://yupe.ru/docs/yupe/team.html" target="_blank">Команда</a></li>
<li><a href="https://github.com/yupe/yupe/" target="_blank">Github</a></li>
<li><a href="https://github.com/yupe/yupe-ext/" target="_blank">Доп. модули</a></li>
<li><a href="http://yupe.ru/docs/yupe/capability.html" target="_blank">Возможности</a></li>
<li><a href="http://yupe.ru/docs/yupe/assistance.project.html" target="_blank">Помощь проекту</a></li>
<li><a href="http://yupe.ru/docs/yupe/assistance.project.html" target="_blank">Помощь проекту</a>
</li>
</ul>
</div>
<div class="span3">
<ul class="unstyled">
<li>Наши друзья<li>
<li>Друзья</li>
<li><a href="http://allframeworks.ru" target="_blank">allframeworks</a></li>
<li><a href="http://amylabs.ru" target="_blank">amylabs</a></li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Хочешь в друзья ?</a></li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Хочешь в друзья?</a></li>
<li><a href="http://amylabs.ru/contact?from=yupe" target="_blank">Коммерческая поддержка</a></li>
</ul>
</div>
</div>
Expand Down
19 changes: 8 additions & 11 deletions themes/default/views/layouts/modern.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@
<div class="span12">
<div class="span3">
<ul class="unstyled">
<li>Ресурсы
<li>
<li>Ресурсы</li>
<li>
<!-- <i class="icon-twitter">-->
<a href="https://twitter.com/yupecms" target="_blank"></i> Twitter</a>
Expand All @@ -202,20 +201,18 @@
</div>
<div class="span3">
<ul class="unstyled">
<li>Поддержка
<li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Контакты</a></li>
<li>Поддержка</li>
<li><a href="http://yupe.ru/docs/index.html" target="_blank">Документация</a></li>
<li><a href="http://api.yupe.ru/" target="_blank">API</a></li>
<li><a href="http://yupe.ru/talk/" target="_blank">Форум</a></li>
<li><a href="http://yupe.ru/wiki/default/pageIndex" target="_blank">Wiki</a></li>
<li><a href="http://yupe.ru/docs/index.html" target="_blank">Документация</a></li>
<li><a href="http://yupe.ru/feedback/faq/" target="_blank">FAQ</a></li>
<li><a href="http://amylabs.ru/contact?from=yupe" target="_blank">Коммерческая поддержка</a></li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Контакты</a></li>
</ul>
</div>
<div class="span3">
<ul class="unstyled">
<li>Юпи!
<li>
<li>Юпи!</li>
<li><a href="http://yupe.ru/pages/about/" target="_blank">О проекте</a></li>
<li><a href="http://yupe.ru/docs/yupe/team.html" target="_blank">Команда</a></li>
<li><a href="https://github.com/yupe/yupe/" target="_blank">Github</a></li>
Expand All @@ -227,11 +224,11 @@
</div>
<div class="span3">
<ul class="unstyled">
<li>Наши друзья
<li>
<li>Друзья</li>
<li><a href="http://allframeworks.ru" target="_blank">allframeworks</a></li>
<li><a href="http://amylabs.ru" target="_blank">amylabs</a></li>
<li><a href="http://yupe.ru/feedback/index/" target="_blank">Хочешь в друзья?</a></li>
<li><a href="http://amylabs.ru/contact?from=yupe" target="_blank">Коммерческая поддержка</a></li>
</ul>
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions uploads/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 575691c

Please sign in to comment.