From a939a22468368f4f0fc0468fcd47e633baae80f9 Mon Sep 17 00:00:00 2001 From: Mzhelskiy Maxim Date: Tue, 10 Apr 2012 11:08:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D1=85=20=D1=88=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D0=BE=D0=BD=D0=BE=D0=B2=20=D0=BF=D0=BB=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/page/PluginPage.class.php | 8 +- .../page/classes/actions/ActionPage.class.php | 48 ++--- plugins/page/classes/hooks/HookPage.class.php | 6 +- .../page/classes/hooks/HookSitemap.class.php | 18 +- .../page/classes/modules/page/Page.class.php | 50 ++--- .../modules/page/entity/Page.entity.class.php | 186 +++++++++--------- .../modules/page/mapper/Page.mapper.class.php | 74 +++---- .../classes/modules/sitemap/Sitemap.class.php | 24 +-- .../skin/default/actions/ActionPage/add.tpl | 99 ---------- .../skin/default/actions/ActionPage/admin.tpl | 69 ------- .../skin/default/actions/ActionPage/page.tpl | 18 -- .../page/templates/skin/default/css/style.css | 14 -- .../templates/skin/default/images/delete.png | Bin 937 -> 0 bytes .../skin/default/images/document.gif | Bin 94 -> 0 bytes .../templates/skin/default/images/down.png | Bin 307 -> 0 bytes .../templates/skin/default/images/edit.png | Bin 1154 -> 0 bytes .../templates/skin/default/images/folder.gif | Bin 90 -> 0 bytes .../skin/default/images/panel/bold_ru.gif | Bin 147 -> 0 bytes .../skin/default/images/panel/code.gif | Bin 135 -> 0 bytes .../skin/default/images/panel/img.gif | Bin 627 -> 0 bytes .../skin/default/images/panel/italic_ru.gif | Bin 131 -> 0 bytes .../skin/default/images/panel/link.gif | Bin 371 -> 0 bytes .../skin/default/images/panel/quote.gif | Bin 384 -> 0 bytes .../default/images/panel/strikethrough.gif | Bin 146 -> 0 bytes .../default/images/panel/underline_ru.gif | Bin 146 -> 0 bytes .../page/templates/skin/default/images/up.png | Bin 313 -> 0 bytes .../page/templates/skin/default/main_menu.tpl | 3 - .../new-jquery/actions/ActionPage/add.tpl | 98 --------- .../new-jquery/actions/ActionPage/admin.tpl | 69 ------- .../new-jquery/actions/ActionPage/page.tpl | 18 -- .../templates/skin/new-jquery/css/style.css | 14 -- .../skin/new-jquery/images/delete.png | Bin 937 -> 0 bytes .../skin/new-jquery/images/document.gif | Bin 94 -> 0 bytes .../templates/skin/new-jquery/images/down.png | Bin 307 -> 0 bytes .../templates/skin/new-jquery/images/edit.png | Bin 1154 -> 0 bytes .../skin/new-jquery/images/folder.gif | Bin 90 -> 0 bytes .../templates/skin/new-jquery/images/up.png | Bin 313 -> 0 bytes .../templates/skin/new-jquery/main_menu.tpl | 3 - .../skin/new/actions/ActionPage/add.tpl | 106 ---------- .../skin/new/actions/ActionPage/admin.tpl | 73 ------- .../skin/new/actions/ActionPage/page.tpl | 18 -- .../page/templates/skin/new/images/delete.gif | Bin 197 -> 0 bytes .../page/templates/skin/new/images/down.png | Bin 307 -> 0 bytes .../page/templates/skin/new/images/edit.gif | Bin 175 -> 0 bytes .../skin/new/images/folder_16x16.gif | Bin 363 -> 0 bytes .../templates/skin/new/images/new_16x16.gif | Bin 630 -> 0 bytes plugins/page/templates/skin/new/images/up.png | Bin 313 -> 0 bytes plugins/page/templates/skin/new/main_menu.tpl | 3 - 48 files changed, 207 insertions(+), 812 deletions(-) delete mode 100644 plugins/page/templates/skin/default/actions/ActionPage/add.tpl delete mode 100644 plugins/page/templates/skin/default/actions/ActionPage/admin.tpl delete mode 100644 plugins/page/templates/skin/default/actions/ActionPage/page.tpl delete mode 100644 plugins/page/templates/skin/default/css/style.css delete mode 100644 plugins/page/templates/skin/default/images/delete.png delete mode 100644 plugins/page/templates/skin/default/images/document.gif delete mode 100644 plugins/page/templates/skin/default/images/down.png delete mode 100644 plugins/page/templates/skin/default/images/edit.png delete mode 100644 plugins/page/templates/skin/default/images/folder.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/bold_ru.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/code.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/img.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/italic_ru.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/link.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/quote.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/strikethrough.gif delete mode 100644 plugins/page/templates/skin/default/images/panel/underline_ru.gif delete mode 100644 plugins/page/templates/skin/default/images/up.png delete mode 100644 plugins/page/templates/skin/default/main_menu.tpl delete mode 100644 plugins/page/templates/skin/new-jquery/actions/ActionPage/add.tpl delete mode 100644 plugins/page/templates/skin/new-jquery/actions/ActionPage/admin.tpl delete mode 100644 plugins/page/templates/skin/new-jquery/actions/ActionPage/page.tpl delete mode 100644 plugins/page/templates/skin/new-jquery/css/style.css delete mode 100644 plugins/page/templates/skin/new-jquery/images/delete.png delete mode 100644 plugins/page/templates/skin/new-jquery/images/document.gif delete mode 100644 plugins/page/templates/skin/new-jquery/images/down.png delete mode 100644 plugins/page/templates/skin/new-jquery/images/edit.png delete mode 100644 plugins/page/templates/skin/new-jquery/images/folder.gif delete mode 100644 plugins/page/templates/skin/new-jquery/images/up.png delete mode 100644 plugins/page/templates/skin/new-jquery/main_menu.tpl delete mode 100644 plugins/page/templates/skin/new/actions/ActionPage/add.tpl delete mode 100644 plugins/page/templates/skin/new/actions/ActionPage/admin.tpl delete mode 100644 plugins/page/templates/skin/new/actions/ActionPage/page.tpl delete mode 100644 plugins/page/templates/skin/new/images/delete.gif delete mode 100644 plugins/page/templates/skin/new/images/down.png delete mode 100644 plugins/page/templates/skin/new/images/edit.gif delete mode 100644 plugins/page/templates/skin/new/images/folder_16x16.gif delete mode 100644 plugins/page/templates/skin/new/images/new_16x16.gif delete mode 100644 plugins/page/templates/skin/new/images/up.png delete mode 100644 plugins/page/templates/skin/new/main_menu.tpl diff --git a/plugins/page/PluginPage.class.php b/plugins/page/PluginPage.class.php index 44c612e9..5700acc7 100644 --- a/plugins/page/PluginPage.class.php +++ b/plugins/page/PluginPage.class.php @@ -30,12 +30,12 @@ class PluginPage extends Plugin { ), ); - + /** * Активация плагина "Статические страницы". * Создание таблицы в базе данных при ее отсутствии. */ - public function Activate() { + public function Activate() { if (!$this->isTableExists('prefix_page')) { /** * При активации выполняем SQL дамп @@ -44,12 +44,12 @@ class PluginPage extends Plugin { } return true; } - + /** * Инициализация плагина */ public function Init() { - + } } ?> \ No newline at end of file diff --git a/plugins/page/classes/actions/ActionPage.class.php b/plugins/page/classes/actions/ActionPage.class.php index 5a085821..231ac462 100644 --- a/plugins/page/classes/actions/ActionPage.class.php +++ b/plugins/page/classes/actions/ActionPage.class.php @@ -32,9 +32,9 @@ class PluginPage_ActionPage extends ActionPlugin { /********************************************************************************** - ************************ РЕАЛИЗАЦИЯ ЭКШЕНА *************************************** - ********************************************************************************** - */ + ************************ РЕАЛИЗАЦИЯ ЭКШЕНА *************************************** + ********************************************************************************** + */ /** * Отображение страницы @@ -73,11 +73,11 @@ class PluginPage_ActionPage extends ActionPlugin { if ($oPage->getSeoDescription()) { $this->Viewer_SetHtmlDescription($oPage->getSeoDescription()); } - + $this->Viewer_Assign('oPage',$oPage); /** * Устанавливаем шаблон для вывода - */ + */ $this->SetTemplateAction('page'); } @@ -90,10 +90,10 @@ class PluginPage_ActionPage extends ActionPlugin { * Если пользователь не авторизован и не админ, то выкидываем его */ $this->oUserCurrent=$this->User_GetUserCurrent(); - if (!$this->oUserCurrent or !$this->oUserCurrent->isAdministrator()) { + if (!$this->oUserCurrent or !$this->oUserCurrent->isAdministrator()) { return $this->EventNotFound(); } - + $this->Viewer_AddHtmlTitle($this->Lang_Get('page_admin')); /** * Обработка создания новой странички @@ -115,11 +115,11 @@ class PluginPage_ActionPage extends ActionPlugin { $_REQUEST['page_text']=$oPageEdit->getText(); $_REQUEST['page_seo_keywords']=$oPageEdit->getSeoKeywords(); $_REQUEST['page_seo_description']=$oPageEdit->getSeoDescription(); - $_REQUEST['page_active']=$oPageEdit->getActive(); - $_REQUEST['page_main']=$oPageEdit->getMain(); - $_REQUEST['page_sort']=$oPageEdit->getSort(); + $_REQUEST['page_active']=$oPageEdit->getActive(); + $_REQUEST['page_main']=$oPageEdit->getMain(); + $_REQUEST['page_sort']=$oPageEdit->getSort(); $_REQUEST['page_auto_br']=$oPageEdit->getAutoBr(); - $_REQUEST['page_id']=$oPageEdit->getId(); + $_REQUEST['page_id']=$oPageEdit->getId(); } else { /** * Если отправили форму с редактированием, то обрабатываем её @@ -160,7 +160,7 @@ class PluginPage_ActionPage extends ActionPlugin { $iSortNew=$iSortOld-1; } else { $iSortNew=$iSortOld+1; - } + } } /** * Меняем значения сортировки местами @@ -194,10 +194,10 @@ class PluginPage_ActionPage extends ActionPlugin { $this->Message_AddError($this->Lang_Get('system_error')); return; } - + /** * Обновляем свойства страницы - */ + */ $oPageEdit->setActive(getRequest('page_active') ? 1 : 0); $oPageEdit->setAutoBr(getRequest('page_auto_br') ? 1 : 0); $oPageEdit->setMain(getRequest('page_main') ? 1 : 0); @@ -206,10 +206,10 @@ class PluginPage_ActionPage extends ActionPlugin { $oPageEdit->setUrlFull(getRequest('page_url')); $oPageEdit->setPid(null); } else { - $oPageEdit->setPid(getRequest('page_pid')); + $oPageEdit->setPid(getRequest('page_pid')); $oPageParent=$this->PluginPage_Page_GetPageById(getRequest('page_pid')); $oPageEdit->setUrlFull($oPageParent->getUrlFull().'/'.getRequest('page_url')); - } + } $oPageEdit->setSeoDescription(getRequest('page_seo_description')); $oPageEdit->setSeoKeywords(getRequest('page_seo_keywords')); $oPageEdit->setText(getRequest('page_text')); @@ -251,10 +251,10 @@ class PluginPage_ActionPage extends ActionPlugin { $oPage->setUrlFull(getRequest('page_url')); $oPage->setPid(null); } else { - $oPage->setPid(getRequest('page_pid')); + $oPage->setPid(getRequest('page_pid')); $oPageParent=$this->PluginPage_Page_GetPageById(getRequest('page_pid')); $oPage->setUrlFull($oPageParent->getUrlFull().'/'.getRequest('page_url')); - } + } $oPage->setSeoDescription(getRequest('page_seo_description')); $oPage->setSeoKeywords(getRequest('page_seo_keywords')); $oPage->setText(getRequest('page_text')); @@ -267,7 +267,7 @@ class PluginPage_ActionPage extends ActionPlugin { } /** * Добавляем страницу - */ + */ if ($this->PluginPage_Page_AddPage($oPage)) { $this->Message_AddNotice($this->Lang_Get('page_create_submit_save_ok')); $this->SetParam(0,null); @@ -280,9 +280,9 @@ class PluginPage_ActionPage extends ActionPlugin { * * @return unknown */ - protected function CheckPageFields() { - $this->Security_ValidateSendForm(); - + protected function CheckPageFields() { + $this->Security_ValidateSendForm(); + $bOk=true; /** * Проверяем есть ли заголовок топика @@ -293,7 +293,7 @@ class PluginPage_ActionPage extends ActionPlugin { } /** * Проверяем есть ли заголовок топика, с заменой всех пробельных символов на "_" - */ + */ $pageUrl=preg_replace("/\s+/",'_',getRequest('page_url',null,'post')); $_REQUEST['page_url']=$pageUrl; if (!func_check(getRequest('page_url',null,'post'),'login',1,50)) { @@ -320,7 +320,7 @@ class PluginPage_ActionPage extends ActionPlugin { if (getRequest('page_pid')!=0 and !($oPageParent=$this->PluginPage_Page_GetPageById(getRequest('page_pid')))) { $this->Message_AddError($this->Lang_Get('page_create_parent_page_error'),$this->Lang_Get('error')); $bOk=false; - } + } /** * Проверяем сортировку */ diff --git a/plugins/page/classes/hooks/HookPage.class.php b/plugins/page/classes/hooks/HookPage.class.php index 919298fe..ce9ee827 100644 --- a/plugins/page/classes/hooks/HookPage.class.php +++ b/plugins/page/classes/hooks/HookPage.class.php @@ -26,9 +26,9 @@ class PluginPage_HookPage extends Hook { public function Menu() { $aPages=$this->PluginPage_Page_GetPages(array('pid'=>null,'main'=>1,'active'=>1)); - - - + + + $this->Viewer_Assign('aPagesMain',$aPages); return $this->Viewer_Fetch(Plugin::GetTemplatePath(__CLASS__).'main_menu.tpl'); } diff --git a/plugins/page/classes/hooks/HookSitemap.class.php b/plugins/page/classes/hooks/HookSitemap.class.php index 6890c5e2..f9c65038 100644 --- a/plugins/page/classes/hooks/HookSitemap.class.php +++ b/plugins/page/classes/hooks/HookSitemap.class.php @@ -19,20 +19,20 @@ class PluginPage_HookSitemap extends Hook { /** - * Цепляем обработчики на хуки - * - * @return void - */ + * Цепляем обработчики на хуки + * + * @return void + */ public function RegisterHook() { $this->AddHook('sitemap_index_counters', 'SitemapIndex'); } /** - * Добавляем ссылку на Sitemap страниц в Sitemap Index - * - * @param array $aCounters - * @return void - */ + * Добавляем ссылку на Sitemap страниц в Sitemap Index + * + * @param array $aCounters + * @return void + */ public function SitemapIndex($aCounters) { $aCounters['pages'] = ceil($this->PluginSitemap_Page_GetActivePagesCount() / Config::Get('plugin.sitemap.objects_per_page')); } diff --git a/plugins/page/classes/modules/page/Page.class.php b/plugins/page/classes/modules/page/Page.class.php index b11cb4c5..390afe4f 100644 --- a/plugins/page/classes/modules/page/Page.class.php +++ b/plugins/page/classes/modules/page/Page.class.php @@ -19,15 +19,15 @@ * Модуль статических страниц * */ -class PluginPage_ModulePage extends Module { +class PluginPage_ModulePage extends Module { protected $oMapper; protected $aRebuildIds=array(); - + /** * Инициализация * */ - public function Init() { + public function Init() { $this->oMapper=Engine::GetMapper(__CLASS__); } /** @@ -37,7 +37,7 @@ class PluginPage_ModulePage extends Module { * @return unknown */ public function AddPage(PluginPage_ModulePage_EntityPage $oPage) { - if ($sId=$this->oMapper->AddPage($oPage)) { + if ($sId=$this->oMapper->AddPage($oPage)) { $oPage->setId($sId); //чистим зависимые кеши $this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array('page_change',"page_change_{$oPage->getId()}","page_change_urlfull_{$oPage->getUrlFull()}")); @@ -58,14 +58,14 @@ class PluginPage_ModulePage extends Module { return true; } return false; - } + } /** * Получает страницу по полному УРЛу * * @param unknown_type $sUrlFull */ public function GetPageByUrlFull($sUrlFull,$iActive=1) { - if (false === ($data = $this->Cache_Get("page_{$sUrlFull}_{$iActive}"))) { + if (false === ($data = $this->Cache_Get("page_{$sUrlFull}_{$iActive}"))) { $data = $this->oMapper->GetPageByUrlFull($sUrlFull,$iActive); if ($data) { $this->Cache_Set($data, "page_{$sUrlFull}_{$iActive}", array("page_change_{$data->getId()}"), 60*60*24*5); @@ -73,7 +73,7 @@ class PluginPage_ModulePage extends Module { $this->Cache_Set($data, "page_{$sUrlFull}_{$iActive}", array("page_change_urlfull_{$sUrlFull}"), 60*60*24*5); } } - return $data; + return $data; } /** * Получает страницу по её айдишнику @@ -91,7 +91,7 @@ class PluginPage_ModulePage extends Module { */ public function GetPages($aFilter=array()) { $aPages=array(); - $aPagesRow=$this->oMapper->GetPages($aFilter); + $aPagesRow=$this->oMapper->GetPages($aFilter); if (count($aPagesRow)) { $aPages=$this->BuildPagesRecursive($aPagesRow); } @@ -115,14 +115,14 @@ class PluginPage_ModulePage extends Module { $aTemp=$aPage; $aTemp['level']=$iLevel; unset($aTemp['childNodes']); - $aResultPages[]=Engine::GetEntity('PluginPage_Page',$aTemp); + $aResultPages[]=Engine::GetEntity('PluginPage_Page',$aTemp); if (isset($aPage['childNodes']) and count($aPage['childNodes'])>0) { $iLevel++; $this->BuildPagesRecursive($aPage['childNodes'],false); } } $iLevel--; - + return $aResultPages; } /** @@ -130,7 +130,7 @@ class PluginPage_ModulePage extends Module { * * @param unknown_type $oPageStart */ - public function RebuildUrlFull($oPageStart) { + public function RebuildUrlFull($oPageStart) { $aPages=$this->GetPagesByPid($oPageStart->getId()); foreach ($aPages as $oPage) { if ($oPage->getId()==$oPageStart->getId()) { @@ -143,7 +143,7 @@ class PluginPage_ModulePage extends Module { $oPage->setUrlFull($oPageStart->getUrlFull().'/'.$oPage->getUrl()); $this->UpdatePage($oPage); $this->RebuildUrlFull($oPage); - } + } } /** * Получает список дочерних страниц первого уровня @@ -167,7 +167,7 @@ class PluginPage_ModulePage extends Module { $this->Cache_Clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG,array('page_change',"page_change_{$sId}")); return true; } - return false; + return false; } /** * Получает число статических страниц @@ -204,24 +204,24 @@ class PluginPage_ModulePage extends Module { public function GetMaxSortByPid($sPid) { return $this->oMapper->GetMaxSortByPid($sPid); } - + /** - * Get count of pages - * - * @return integer - */ + * Get count of pages + * + * @return integer + */ public function getCountOfActivePages() { return (int)$this->oMapper->getCountOfActivePages(); } /** - * Get list of active pages - * - * @param integer $iCount - * @param integer $iCurrPage - * @param integer $iPerPage - * @return array - */ + * Get list of active pages + * + * @param integer $iCount + * @param integer $iCurrPage + * @param integer $iPerPage + * @return array + */ public function getListOfActivePages(&$iCount, $iCurrPage, $iPerPage) { return $this->oMapper->getListOfActivePages($iCount, $iCurrPage, Config::Get('plugin.sitemap.objects_per_page')); } diff --git a/plugins/page/classes/modules/page/entity/Page.entity.class.php b/plugins/page/classes/modules/page/entity/Page.entity.class.php index b0424139..5e2fea69 100644 --- a/plugins/page/classes/modules/page/entity/Page.entity.class.php +++ b/plugins/page/classes/modules/page/entity/Page.entity.class.php @@ -15,99 +15,99 @@ --------------------------------------------------------- */ -class PluginPage_ModulePage_EntityPage extends Entity -{ - public function getId() { - return $this->_aData['page_id']; - } - public function getPid() { - return $this->_aData['page_pid']; - } - public function getUrl() { - return $this->_aData['page_url']; - } - public function getUrlFull() { - return $this->_aData['page_url_full']; - } - public function getTitle() { - return $this->_aData['page_title']; - } - public function getText() { - return $this->_aData['page_text']; - } - public function getDateAdd() { - return $this->_aData['page_date_add']; - } - public function getDateEdit() { - return $this->_aData['page_date_edit']; - } - public function getSeoKeywords() { - return $this->_aData['page_seo_keywords']; - } - public function getSeoDescription() { - return $this->_aData['page_seo_description']; - } - public function getActive() { - return $this->_aData['page_active']; - } - public function getMain() { - return $this->_aData['page_main']; - } - public function getSort() { - return $this->_aData['page_sort']; - } - public function getAutoBr() { - return $this->_aData['page_auto_br']; - } - - public function getLevel() { - return $this->_aData['level']; - } - - - - +class PluginPage_ModulePage_EntityPage extends Entity +{ + public function getId() { + return $this->_aData['page_id']; + } + public function getPid() { + return $this->_aData['page_pid']; + } + public function getUrl() { + return $this->_aData['page_url']; + } + public function getUrlFull() { + return $this->_aData['page_url_full']; + } + public function getTitle() { + return $this->_aData['page_title']; + } + public function getText() { + return $this->_aData['page_text']; + } + public function getDateAdd() { + return $this->_aData['page_date_add']; + } + public function getDateEdit() { + return $this->_aData['page_date_edit']; + } + public function getSeoKeywords() { + return $this->_aData['page_seo_keywords']; + } + public function getSeoDescription() { + return $this->_aData['page_seo_description']; + } + public function getActive() { + return $this->_aData['page_active']; + } + public function getMain() { + return $this->_aData['page_main']; + } + public function getSort() { + return $this->_aData['page_sort']; + } + public function getAutoBr() { + return $this->_aData['page_auto_br']; + } + + public function getLevel() { + return $this->_aData['level']; + } + + + + public function setId($data) { - $this->_aData['page_id']=$data; - } - public function setPid($data) { - $this->_aData['page_pid']=$data; - } - public function setUrl($data) { - $this->_aData['page_url']=$data; - } - public function setUrlFull($data) { - $this->_aData['page_url_full']=$data; - } - public function setTitle($data) { - $this->_aData['page_title']=$data; - } - public function setText($data) { - $this->_aData['page_text']=$data; - } - public function setDateAdd($data) { - $this->_aData['page_date_add']=$data; - } - public function setDateEdit($data) { - $this->_aData['page_date_edit']=$data; - } - public function setSeoKeywords($data) { - $this->_aData['page_seo_keywords']=$data; - } - public function setSeoDescription($data) { - $this->_aData['page_seo_description']=$data; - } - public function setActive($data) { - $this->_aData['page_active']=$data; - } - public function setMain($data) { - $this->_aData['page_main']=$data; - } - public function setSort($data) { - $this->_aData['page_sort']=$data; - } - public function setAutoBr($data) { - $this->_aData['page_auto_br']=$data; - } + $this->_aData['page_id']=$data; + } + public function setPid($data) { + $this->_aData['page_pid']=$data; + } + public function setUrl($data) { + $this->_aData['page_url']=$data; + } + public function setUrlFull($data) { + $this->_aData['page_url_full']=$data; + } + public function setTitle($data) { + $this->_aData['page_title']=$data; + } + public function setText($data) { + $this->_aData['page_text']=$data; + } + public function setDateAdd($data) { + $this->_aData['page_date_add']=$data; + } + public function setDateEdit($data) { + $this->_aData['page_date_edit']=$data; + } + public function setSeoKeywords($data) { + $this->_aData['page_seo_keywords']=$data; + } + public function setSeoDescription($data) { + $this->_aData['page_seo_description']=$data; + } + public function setActive($data) { + $this->_aData['page_active']=$data; + } + public function setMain($data) { + $this->_aData['page_main']=$data; + } + public function setSort($data) { + $this->_aData['page_sort']=$data; + } + public function setAutoBr($data) { + $this->_aData['page_auto_br']=$data; + } } ?> \ No newline at end of file diff --git a/plugins/page/classes/modules/page/mapper/Page.mapper.class.php b/plugins/page/classes/modules/page/mapper/Page.mapper.class.php index 8c3a4c48..3bcc18f8 100644 --- a/plugins/page/classes/modules/page/mapper/Page.mapper.class.php +++ b/plugins/page/classes/modules/page/mapper/Page.mapper.class.php @@ -16,7 +16,7 @@ */ class PluginPage_ModulePage_MapperPage extends Mapper { - + public function AddPage(PluginPage_ModulePage_EntityPage $oPage) { $sql = "INSERT INTO ".Config::Get('plugin.page.table.page')." (page_pid, @@ -33,14 +33,14 @@ class PluginPage_ModulePage_MapperPage extends Mapper { page_auto_br ) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?d, ?d, ?d, ?d) - "; - if ($iId=$this->oDb->query($sql,$oPage->getPid(),$oPage->getUrl(),$oPage->getUrlFull(),$oPage->getTitle(),$oPage->getText(),$oPage->getDateAdd(),$oPage->getSeoKeywords(),$oPage->getSeoDescription(),$oPage->getActive(),$oPage->getMain(),$oPage->getSort(),$oPage->getAutoBr())) + "; + if ($iId=$this->oDb->query($sql,$oPage->getPid(),$oPage->getUrl(),$oPage->getUrlFull(),$oPage->getTitle(),$oPage->getText(),$oPage->getDateAdd(),$oPage->getSeoKeywords(),$oPage->getSeoDescription(),$oPage->getActive(),$oPage->getMain(),$oPage->getSort(),$oPage->getAutoBr())) { return $iId; - } + } return false; } - + public function UpdatePage(PluginPage_ModulePage_EntityPage $oPage) { $sql = "UPDATE ".Config::Get('plugin.page.table.page')." SET page_pid = ? , @@ -56,27 +56,27 @@ class PluginPage_ModulePage_MapperPage extends Mapper { page_sort = ?, page_auto_br = ? WHERE page_id = ?d - "; - if ($this->oDb->query($sql,$oPage->getPid(),$oPage->getUrl(),$oPage->getUrlFull(),$oPage->getTitle(),$oPage->getText(),$oPage->getDateEdit(),$oPage->getSeoKeywords(),$oPage->getSeoDescription(),$oPage->getActive(),$oPage->getMain(),$oPage->getSort(),$oPage->getAutoBr(),$oPage->getId())) + "; + if ($this->oDb->query($sql,$oPage->getPid(),$oPage->getUrl(),$oPage->getUrlFull(),$oPage->getTitle(),$oPage->getText(),$oPage->getDateEdit(),$oPage->getSeoKeywords(),$oPage->getSeoDescription(),$oPage->getActive(),$oPage->getMain(),$oPage->getSort(),$oPage->getAutoBr(),$oPage->getId())) { return true; - } + } return false; } - + public function SetPagesPidToNull() { $sql = "UPDATE ".Config::Get('plugin.page.table.page')." SET page_pid = null, page_url_full = page_url - "; - if ($this->oDb->query($sql)) + "; + if ($this->oDb->query($sql)) { return true; - } + } return false; } - + public function GetPageByUrlFull($sUrlFull,$iActive) { $sql = "SELECT * FROM ".Config::Get('plugin.page.table.page')." WHERE page_url_full = ? and page_active = ?d "; if ($aRow=$this->oDb->selectRow($sql,$sUrlFull,$iActive)) { @@ -84,7 +84,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return null; } - + public function GetPageById($sId) { $sql = "SELECT * FROM ".Config::Get('plugin.page.table.page')." WHERE page_id = ? "; if ($aRow=$this->oDb->selectRow($sql,$sId)) { @@ -92,7 +92,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return null; } - + public function deletePageById($sId) { $sql = "DELETE FROM ".Config::Get('plugin.page.table.page')." WHERE page_id = ? "; if ($aRow=$this->oDb->selectRow($sql,$sId)) { @@ -100,7 +100,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return false; } - + public function GetPages($aFilter) { $sPidNULL=''; if (array_key_exists('pid',$aFilter) and is_null($aFilter['pid'])) { @@ -120,15 +120,15 @@ class PluginPage_ModulePage_MapperPage extends Mapper { ORDER by page_sort desc; "; if ($aRows=$this->oDb->select($sql, - isset($aFilter['active']) ? $aFilter['active']:DBSIMPLE_SKIP, - isset($aFilter['main']) ? $aFilter['main']:DBSIMPLE_SKIP, - (array_key_exists('pid',$aFilter) and !is_null($aFilter['pid'])) ? $aFilter['pid'] : DBSIMPLE_SKIP - )) { + isset($aFilter['active']) ? $aFilter['active']:DBSIMPLE_SKIP, + isset($aFilter['main']) ? $aFilter['main']:DBSIMPLE_SKIP, + (array_key_exists('pid',$aFilter) and !is_null($aFilter['pid'])) ? $aFilter['pid'] : DBSIMPLE_SKIP + )) { return $aRows; } return null; } - + public function GetCountPage() { $sql = "SELECT count(*) as count FROM ".Config::Get('plugin.page.table.page')." "; if ($aRow=$this->oDb->selectRow($sql)) { @@ -136,7 +136,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return null; } - + public function GetPagesByPid($sPid) { $sql = "SELECT * @@ -152,7 +152,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return $aResult; } - + public function GetNextPageBySort($iSort,$sPid,$sWay) { if ($sWay=='up') { $sWay='>'; @@ -171,7 +171,7 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return null; } - + public function GetMaxSortByPid($sPid) { $sPidNULL=''; if (is_null($sPid)) { @@ -183,16 +183,16 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } return 0; } - - + + /** - * List of active pages - * - * @param integer $iCount - * @param integer $iCurrPage - * @param integer $iPerPage - * @return array - */ + * List of active pages + * + * @param integer $iCount + * @param integer $iCurrPage + * @param integer $iPerPage + * @return array + */ public function getListOfActivePages(&$iCount, $iCurrPage, $iPerPage) { $sql = 'SELECT `page`.* @@ -215,10 +215,10 @@ class PluginPage_ModulePage_MapperPage extends Mapper { } /** - * Count of active pages - * - * @return integer - */ + * Count of active pages + * + * @return integer + */ public function getCountOfActivePages() { $sql = 'SELECT COUNT(`page`.`page_id`) diff --git a/plugins/page/classes/modules/sitemap/Sitemap.class.php b/plugins/page/classes/modules/sitemap/Sitemap.class.php index 008d9d48..4eba3488 100644 --- a/plugins/page/classes/modules/sitemap/Sitemap.class.php +++ b/plugins/page/classes/modules/sitemap/Sitemap.class.php @@ -21,10 +21,10 @@ class PluginPage_ModuleSitemap extends PluginPage_Inherit_PluginSitemap_ModuleSitemap { /** - * Change data for Sitemap Index - * - * @return array - */ + * Change data for Sitemap Index + * + * @return array + */ public function getExternalCounters() { $aCounters = parent::getExternalCounters(); $aCounters['pages'] = ceil($this->PluginPage_Page_GetCountOfActivePages() / Config::Get('plugin.sitemap.objects_per_page')); @@ -34,10 +34,10 @@ class PluginPage_ModuleSitemap extends PluginPage_Inherit_PluginSitemap_ModuleSi /** * Get data for static pages Sitemap - * - * @param integer $iCurrPage - * @return array - */ + * + * @param integer $iCurrPage + * @return array + */ public function getDataForPages($iCurrPage) { $iPerPage = Config::Get('plugin.sitemap.objects_per_page'); $sCacheKey = "sitemap_pages_{$iCurrPage}_" . $iPerPage; @@ -49,10 +49,10 @@ class PluginPage_ModuleSitemap extends PluginPage_Inherit_PluginSitemap_ModuleSi $aData = array(); foreach ($aPages as $oPage) { $aData[] = $this->PluginSitemap_Sitemap_GetDataForSitemapRow( - Router::GetPath('page') . $oPage->getUrlFull(), - $oPage->getDateLastMod(), - Config::Get('plugin.page.sitemap.sitemap_priority'), - Config::Get('plugin.page.sitemap.sitemap_changefreq') + Router::GetPath('page') . $oPage->getUrlFull(), + $oPage->getDateLastMod(), + Config::Get('plugin.page.sitemap.sitemap_priority'), + Config::Get('plugin.page.sitemap.sitemap_changefreq') ); } diff --git a/plugins/page/templates/skin/default/actions/ActionPage/add.tpl b/plugins/page/templates/skin/default/actions/ActionPage/add.tpl deleted file mode 100644 index 0486d197..00000000 --- a/plugins/page/templates/skin/default/actions/ActionPage/add.tpl +++ /dev/null @@ -1,99 +0,0 @@ -{include file='window_load_img.tpl' sToLoad='page_text'} - - - - -{if $oConfig->GetValue('view.tinymce')} - - {literal} - - {/literal} -{/if} - - -
- {hook run='plugin_page_form_add_begin'} - - -


-

- - -


-

- - -


-

- - - - {if !$oConfig->GetValue('view.tinymce')} -
- - - - -   - - - - -
- {/if} -

- -


- - {$aLang.page_create_seo_keywords_notice}

- -


- - {$aLang.page_create_seo_description_notice}

- -


- - {$aLang.page_create_sort_notice}

- -

- -

- -

- - {hook run='plugin_page_form_add_end'} -

- - -

- - -
\ No newline at end of file diff --git a/plugins/page/templates/skin/default/actions/ActionPage/admin.tpl b/plugins/page/templates/skin/default/actions/ActionPage/admin.tpl deleted file mode 100644 index af6ac6ae..00000000 --- a/plugins/page/templates/skin/default/actions/ActionPage/admin.tpl +++ /dev/null @@ -1,69 +0,0 @@ -{include file='header.tpl'} - - - - -
-

{$aLang.page_admin}

- - - {if $aParams.0=='new'} -

{$aLang.page_create}

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} - {elseif $aParams.0=='edit'} -

{$aLang.page_edit} «{$oPageEdit->getTitle()}»

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} - {else} - {$aLang.page_new}

- {/if} - - - - - - - - - - - - - - - {foreach from=$aPages item=oPage name=el2} - - - - - - - - {/foreach} - -
{$aLang.page_admin_title}{$aLang.page_admin_url}{$aLang.page_admin_active}{$aLang.page_admin_main}{$aLang.page_admin_action}
- - {$oPage->getTitle()} - - /{$oPage->getUrlFull()}/ - - {if $oPage->getActive()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {if $oPage->getMain()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {$aLang.page_admin_action_edit} - {$aLang.page_admin_action_delete} - {$aLang.page_admin_sort_up} - {$aLang.page_admin_sort_down} -
-
- - -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/default/actions/ActionPage/page.tpl b/plugins/page/templates/skin/default/actions/ActionPage/page.tpl deleted file mode 100644 index b10af47d..00000000 --- a/plugins/page/templates/skin/default/actions/ActionPage/page.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{assign var="noSidebar" value=true} -{include file='header.tpl'} - -
-
- {if $oConfig->GetValue('view.tinymce')} - {$oPage->getText()} - {else} - {if $oPage->getAutoBr()} - {$oPage->getText()|nl2br} - {else} - {$oPage->getText()} - {/if} - {/if} -
-
- -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/default/css/style.css b/plugins/page/templates/skin/default/css/style.css deleted file mode 100644 index d94afc18..00000000 --- a/plugins/page/templates/skin/default/css/style.css +++ /dev/null @@ -1,14 +0,0 @@ -.table a { color: #333; } -.table a:hover { color: #666; } - -.table { width: 100%; margin-bottom: 10px; } -.table thead td { background: #fafafa; } -.table td { border: 1px solid #ddd; padding: 5px; } - -.page-new { padding-left: 13px; background: url(../images/document.gif) no-repeat 0 3px; color: #555; } - -.input-wide { width: 98%; _width: 97%; padding: 2px; } -.input-100 { width: 100px; padding: 2px; } -.input-200 { width: 200px; padding: 2px; } -.input-300 { width: 300px; padding: 2px; } -.checkbox { position: relative; top: 2px; margin: 0 4px 0 1px; } \ No newline at end of file diff --git a/plugins/page/templates/skin/default/images/delete.png b/plugins/page/templates/skin/default/images/delete.png deleted file mode 100644 index ed3b551f587d74413eecc9131c969fea2df40133..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2VGmzZ%#=f6{ftew|C&cwX5S;m+mX@|*!v-MJ z*x2~)-Mii0-9-#SPmp>a~KL3 z5}|5~f%4f5c|g4}K=EXtXdX~52B<0%tR@|3UJ8((3WPa8-FiT}fFT{IYIp-tkoUe; zFl+|KQDmji*8&Dcp#K?4XLt_=e@ihi{1yN@L>7pJzD{6ZVbEcG%D^&vhUbl0drB2b zr!a^z$ezCebTcSD$^I7lxk@881*siHUQY}pJ<_LCt&5yn`!^%(`E`?jI?UWw{*3B3 TW*F@U8o=P`>gTe~DWM4fFrkbO diff --git a/plugins/page/templates/skin/default/images/document.gif b/plugins/page/templates/skin/default/images/document.gif deleted file mode 100644 index b73f1a970e4235940487d09d63960be4397d9824..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94 zcmZ?wbhEHbG2i(StHNLn05#$w&;S4c diff --git a/plugins/page/templates/skin/default/images/down.png b/plugins/page/templates/skin/default/images/down.png deleted file mode 100644 index dcfc08b802b345f8484337dd04d1a62e90a718f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmV-30nGl1P)?rcgstPFueNo8_quU zoB=N9&cMJ3w?S1#j6qCHjN#db9}E{BeFTf~aSAY48%Z#{di9Fo_LEm&F(zn8G=c;k zK7G!>#m3CQ3B@2bNDL$gQiJS=2A}}Lsh14(|Nb#Bh>MGX1z)~=#qjL)TbSYobWcMx zy=JIqV}%4gx?*gh1kv=2p&sT`WW~6G6|4!yMwbK#FaY1_RM`BaF!}%h002ovPDHLk FV1ki$d`$oV diff --git a/plugins/page/templates/skin/default/images/edit.png b/plugins/page/templates/skin/default/images/edit.png deleted file mode 100644 index 03c6c1526f99a5f55154cff446aa519ef4c2d82c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1154 zcmah|Pe>F|9G;RWM4^sFhv#@GsNI=aUDuu5WZl`d4ab&s!Bs;VXP(aF&b(>n*{+5t zd0H(5Qx-4PNuweNx`mbqMbIG+MMU(6AcCk)k?S7pjk?;Qtp_vj58wCw{=DyHW3A1V z<%h~CimHsB65?d8aK3$IVY7tOMNg7C1vo!GuS{; zWk5?LaZ+sIWu&_$2jkA@CSg-lLu1C2Z@GJ|q22G+_N-rN5B3rS@E@p$ z(`k3Q#*M5#hV%RVj)uqMA_$i~XkaPhGVJQ2f&gvV(oC!&12~FO4;sJ$nq<0Jf^Kfh z8unJ3NW++nWHOwabxJA%Me*NIUEfCAI1YF6{j0E@7&IXhhc+6pWO8x6)lMjr4_Q#c z$VwoTDt0lZB8+SmnIP2W1?`%lptQY#7DYa4*jO@T7!?9E;kz|W;r&6cx0dz!>q2#2 zjuRrm`baR`Byd8Qt@Q?jHASv~*N;^JawXJ;~*Or=sC9Ua}>-MX&lf396iKRZfjRXE<-w*H?%-B@~2 zMZjmHLNJkeQ~R`e_b8~?vvNi#dwr?>`^f3+m%E>r*8Nvj-#1mCo1HBj=EV=+9t&R! z>WQA)@6z>GKCZr6-oNtez`*L;5%v77Ci9pU&)tmO7h~6FALMpTQf1WDrM=JDBk@lp O4iycz3iq1MUH%Q@8KCX} diff --git a/plugins/page/templates/skin/default/images/folder.gif b/plugins/page/templates/skin/default/images/folder.gif deleted file mode 100644 index 45948a0cf6c83572b35feb6fd07a2258a7ee3990..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90 zcmZ?wbhEHb+Z^oq?4>2gnAh syfYVaLfUU%&sn_Tc&J51-H6csOD8p7fq2 zhc4cVZJGD~|9=KBQ2fcl$iTqMpabH8%wS+~*l^Nw^nZ<9mI_D8L|{jS(g(tUpVW5+_N2^~3$ h!nhO!%GVf8J2+_->tm--!-wfUdb7`Gcr!6r0{~MeG7ta& diff --git a/plugins/page/templates/skin/default/images/panel/img.gif b/plugins/page/templates/skin/default/images/panel/img.gif deleted file mode 100644 index 647ac7773d4be2b286edc251401c29bcd5966222..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 627 zcmV-(0*w7fNk%w1VHN-u0On2rZEbA;a{#f58P3SXO~D>1und{M>D}%4n8EC~%-~z1 zOW^MJw$0-(u@|??-zA(3j-=JL&*xLdDBHsLJaLfdvMa0L#(V zimBP(@%m1{C!?~#x!>r)GAg0>-nm; z#nkHS>G1c#Q_@c?lEleXiHq}7qK;ghrDj;q;^soIvi=e5q|w9Vv~zw1W5 zB9D)cmAU2R@b{6f-QLpHkgMC+?ChJz^Z<_ll(*!~=41ejEznZkdYKHFfEprh!7T=oSQ%$J!1fw7DNs`M5#$c ztD>1a2oxL!IT*DVB0Zyr5LF^9EguOH4h#tiWV?nGRY*QKCpbz&LoY8b%7ri&Bq%Q% z13D=wHZRGDFn=WqN_RUI@B$ej*@Q4f1Re?*0yj%H8P1TAfvANG2@;xU$S`8Wg8)L3 z)Em^|$BGqAjA%G=Mu-dR6^|66~WtQS@xD`8}%O>Ngm@1yk=JM$jLkdxEq;k9*IxIaR3L!-Z4=X)8EhjuEE;&7j2t@@F z1w9NT5i}7g3_X{bLMuGYuRG1``$rMKTx!5Cjw;HXszZ1Q<0%3j+Yh00S__ R$O8*b(9zP<)YU{m06Q9Wu-pIu diff --git a/plugins/page/templates/skin/default/images/panel/quote.gif b/plugins/page/templates/skin/default/images/panel/quote.gif deleted file mode 100644 index 72a14359a3224752abde5ac4aa0eb4645c0ed280..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 384 zcmV-`0e}8SNk%w1VH5xq0M$PL7jKy~gQ|9}&mwr9F@dS``1(?mvtyvXD}AOef2W4C z(SWkiNU_v;u+LVo(}lCqX`{fY%G;~V+~@H1&*JO2)ZzR6{WXWJ*5>Z$@%3V#z3ue( zK#H$5qRl~zuV$gYXs*t3tj~V3(PggAd9cxUug{XY(`mWbQLxjO!q#MffpMs6t=Mi{Z-a`WQ>W|D1$2P6wCe@7fKIu{l~93=vZNC7kr0RbOB z0Sq&hmqr9V4j>K$KLj8<0wSbF2_q~u3<*C80s;*RvPK9f3=Sa(KL`&C3ktwS10l8| e13v=_4-X2>Mg{=a00uwS*xF6s;Njv(K>#}nbFV-E diff --git a/plugins/page/templates/skin/default/images/panel/strikethrough.gif b/plugins/page/templates/skin/default/images/panel/strikethrough.gif deleted file mode 100644 index 835e3a153dab8f6671e80c629273bc340d61122f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 146 zcmZ?wbhEHb6k!ly*v!k2-m|1|@~W@jf37=tZo=w4OLm<+bn({17jLU)Z+QLT^O+kD z+ZJz&ZJGD~|9=KBQ2fcl$iTqMpabH8%wS-#-*D1%^25&ywod8ww|{T6gf=l3gdie*gLU!{?fS`T)o%g_1S9w!<#sQ6xlq|dZuiWxXl#8 ut$z8N&()1~A7|a}6P5_zJJ!2W!IFbR*69Ju*9g@`Yr;z2R#^)&SOWmGAw9YP diff --git a/plugins/page/templates/skin/default/images/up.png b/plugins/page/templates/skin/default/images/up.png deleted file mode 100644 index 3fc4be7cf1f24d51e3b88abe86b37402e8e4edc7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 313 zcmV-90mlA`P)*tpMi#`TLLI)IC&9EXazr z6vP?yRAd=mfBp#;1F`@9`_FLd0YVcCOtH42ID@XT9K-vse;9uL`3Kg(&cX!LB*(xA zRC?+@!+&=M21d9ISMR?BV?I8926i4Hu-MNp?-)LP`iL1yKgetUrl()}class="active"{/if}>{$oPage->getTitle()} -{/foreach} \ No newline at end of file diff --git a/plugins/page/templates/skin/new-jquery/actions/ActionPage/add.tpl b/plugins/page/templates/skin/new-jquery/actions/ActionPage/add.tpl deleted file mode 100644 index 7cdd0081..00000000 --- a/plugins/page/templates/skin/new-jquery/actions/ActionPage/add.tpl +++ /dev/null @@ -1,98 +0,0 @@ -{include file='window_load_img.tpl' sToLoad='page_text'} - - - - -{if $oConfig->GetValue('view.tinymce')} - - {literal} - - {/literal} - -{else} - {include file='window_load_img.tpl' sToLoad='page_text'} - -{/if} - - -
- {hook run='plugin_page_form_add_begin'} - - -


-

- - -


-

- - -


-

- - - -

- -


- - {$aLang.page_create_seo_keywords_notice}

- -


- - {$aLang.page_create_seo_description_notice}

- -


- - {$aLang.page_create_sort_notice}

- -

- -

- -

- - {hook run='plugin_page_form_add_end'} -

- - -

- - -
\ No newline at end of file diff --git a/plugins/page/templates/skin/new-jquery/actions/ActionPage/admin.tpl b/plugins/page/templates/skin/new-jquery/actions/ActionPage/admin.tpl deleted file mode 100644 index af6ac6ae..00000000 --- a/plugins/page/templates/skin/new-jquery/actions/ActionPage/admin.tpl +++ /dev/null @@ -1,69 +0,0 @@ -{include file='header.tpl'} - - - - -
-

{$aLang.page_admin}

- - - {if $aParams.0=='new'} -

{$aLang.page_create}

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} - {elseif $aParams.0=='edit'} -

{$aLang.page_edit} «{$oPageEdit->getTitle()}»

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} - {else} - {$aLang.page_new}

- {/if} - - - - - - - - - - - - - - - {foreach from=$aPages item=oPage name=el2} - - - - - - - - {/foreach} - -
{$aLang.page_admin_title}{$aLang.page_admin_url}{$aLang.page_admin_active}{$aLang.page_admin_main}{$aLang.page_admin_action}
- - {$oPage->getTitle()} - - /{$oPage->getUrlFull()}/ - - {if $oPage->getActive()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {if $oPage->getMain()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {$aLang.page_admin_action_edit} - {$aLang.page_admin_action_delete} - {$aLang.page_admin_sort_up} - {$aLang.page_admin_sort_down} -
-
- - -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/new-jquery/actions/ActionPage/page.tpl b/plugins/page/templates/skin/new-jquery/actions/ActionPage/page.tpl deleted file mode 100644 index b10af47d..00000000 --- a/plugins/page/templates/skin/new-jquery/actions/ActionPage/page.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{assign var="noSidebar" value=true} -{include file='header.tpl'} - -
-
- {if $oConfig->GetValue('view.tinymce')} - {$oPage->getText()} - {else} - {if $oPage->getAutoBr()} - {$oPage->getText()|nl2br} - {else} - {$oPage->getText()} - {/if} - {/if} -
-
- -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/new-jquery/css/style.css b/plugins/page/templates/skin/new-jquery/css/style.css deleted file mode 100644 index df023c32..00000000 --- a/plugins/page/templates/skin/new-jquery/css/style.css +++ /dev/null @@ -1,14 +0,0 @@ -.table a { color: #333; } -.table a:hover { color: #666; } - -.table { width: 100%; margin-bottom: 10px; } -.table thead td { background: #fafafa; } -.table td { border: 1px solid #ddd; padding: 5px; } - -.page-new { padding-left: 13px; background: url(../images/document.gif) no-repeat 0 3px; color: #555; } - -.input-wide { width: 100%; _width: 99%; padding: 2px; } -.input-100 { width: 100px; padding: 2px; } -.input-200 { width: 200px; padding: 2px; } -.input-300 { width: 300px; padding: 2px; } -.checkbox { position: relative; top: 2px; margin: 0 4px 0 1px; } \ No newline at end of file diff --git a/plugins/page/templates/skin/new-jquery/images/delete.png b/plugins/page/templates/skin/new-jquery/images/delete.png deleted file mode 100644 index ed3b551f587d74413eecc9131c969fea2df40133..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 937 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2VGmzZ%#=f6{ftew|C&cwX5S;m+mX@|*!v-MJ z*x2~)-Mii0-9-#SPmp>a~KL3 z5}|5~f%4f5c|g4}K=EXtXdX~52B<0%tR@|3UJ8((3WPa8-FiT}fFT{IYIp-tkoUe; zFl+|KQDmji*8&Dcp#K?4XLt_=e@ihi{1yN@L>7pJzD{6ZVbEcG%D^&vhUbl0drB2b zr!a^z$ezCebTcSD$^I7lxk@881*siHUQY}pJ<_LCt&5yn`!^%(`E`?jI?UWw{*3B3 TW*F@U8o=P`>gTe~DWM4fFrkbO diff --git a/plugins/page/templates/skin/new-jquery/images/document.gif b/plugins/page/templates/skin/new-jquery/images/document.gif deleted file mode 100644 index b73f1a970e4235940487d09d63960be4397d9824..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94 zcmZ?wbhEHbG2i(StHNLn05#$w&;S4c diff --git a/plugins/page/templates/skin/new-jquery/images/down.png b/plugins/page/templates/skin/new-jquery/images/down.png deleted file mode 100644 index dcfc08b802b345f8484337dd04d1a62e90a718f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmV-30nGl1P)?rcgstPFueNo8_quU zoB=N9&cMJ3w?S1#j6qCHjN#db9}E{BeFTf~aSAY48%Z#{di9Fo_LEm&F(zn8G=c;k zK7G!>#m3CQ3B@2bNDL$gQiJS=2A}}Lsh14(|Nb#Bh>MGX1z)~=#qjL)TbSYobWcMx zy=JIqV}%4gx?*gh1kv=2p&sT`WW~6G6|4!yMwbK#FaY1_RM`BaF!}%h002ovPDHLk FV1ki$d`$oV diff --git a/plugins/page/templates/skin/new-jquery/images/edit.png b/plugins/page/templates/skin/new-jquery/images/edit.png deleted file mode 100644 index 03c6c1526f99a5f55154cff446aa519ef4c2d82c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1154 zcmah|Pe>F|9G;RWM4^sFhv#@GsNI=aUDuu5WZl`d4ab&s!Bs;VXP(aF&b(>n*{+5t zd0H(5Qx-4PNuweNx`mbqMbIG+MMU(6AcCk)k?S7pjk?;Qtp_vj58wCw{=DyHW3A1V z<%h~CimHsB65?d8aK3$IVY7tOMNg7C1vo!GuS{; zWk5?LaZ+sIWu&_$2jkA@CSg-lLu1C2Z@GJ|q22G+_N-rN5B3rS@E@p$ z(`k3Q#*M5#hV%RVj)uqMA_$i~XkaPhGVJQ2f&gvV(oC!&12~FO4;sJ$nq<0Jf^Kfh z8unJ3NW++nWHOwabxJA%Me*NIUEfCAI1YF6{j0E@7&IXhhc+6pWO8x6)lMjr4_Q#c z$VwoTDt0lZB8+SmnIP2W1?`%lptQY#7DYa4*jO@T7!?9E;kz|W;r&6cx0dz!>q2#2 zjuRrm`baR`Byd8Qt@Q?jHASv~*N;^JawXJ;~*Or=sC9Ua}>-MX&lf396iKRZfjRXE<-w*H?%-B@~2 zMZjmHLNJkeQ~R`e_b8~?vvNi#dwr?>`^f3+m%E>r*8Nvj-#1mCo1HBj=EV=+9t&R! z>WQA)@6z>GKCZr6-oNtez`*L;5%v77Ci9pU&)tmO7h~6FALMpTQf1WDrM=JDBk@lp O4iycz3iq1MUH%Q@8KCX} diff --git a/plugins/page/templates/skin/new-jquery/images/folder.gif b/plugins/page/templates/skin/new-jquery/images/folder.gif deleted file mode 100644 index 45948a0cf6c83572b35feb6fd07a2258a7ee3990..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 90 zcmZ?wbhEHb+Z^oq?4>2gnAh s*tpMi#`TLLI)IC&9EXazr z6vP?yRAd=mfBp#;1F`@9`_FLd0YVcCOtH42ID@XT9K-vse;9uL`3Kg(&cX!LB*(xA zRC?+@!+&=M21d9ISMR?BV?I8926i4Hu-MNp?-)LP`iL1yKgetUrl()}class="active"{/if}>{$oPage->getTitle()} -{/foreach} \ No newline at end of file diff --git a/plugins/page/templates/skin/new/actions/ActionPage/add.tpl b/plugins/page/templates/skin/new/actions/ActionPage/add.tpl deleted file mode 100644 index ebb288f5..00000000 --- a/plugins/page/templates/skin/new/actions/ActionPage/add.tpl +++ /dev/null @@ -1,106 +0,0 @@ - {include file='window_load_img.tpl' sToLoad='page_text'} - -{if $oConfig->GetValue('view.tinymce')} - -{literal} - -{/literal} -{/if} - -
- {hook run='plugin_page_form_add_begin'} - - -

- -

- -

-
-

- -

-
-

- -

- {if !$oConfig->GetValue('view.tinymce')} -

- - - - -   - - - - - - - -
- {/if} -

- -

-
- {$aLang.page_create_seo_keywords_notice} -

- -

-
- {$aLang.page_create_seo_description_notice} -

- -


- - {$aLang.page_create_sort_notice}

- -

- -

- -

- -

- -

- -

- - {hook run='plugin_page_form_add_end'} -

-   -   -

- - -
\ No newline at end of file diff --git a/plugins/page/templates/skin/new/actions/ActionPage/admin.tpl b/plugins/page/templates/skin/new/actions/ActionPage/admin.tpl deleted file mode 100644 index 1f6941e9..00000000 --- a/plugins/page/templates/skin/new/actions/ActionPage/admin.tpl +++ /dev/null @@ -1,73 +0,0 @@ -{include file='header.tpl'} - -
- - -

{$aLang.page_admin}

-
-{if $aParams.0=='new'} -

{$aLang.page_create}

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} -{elseif $aParams.0=='edit'} -

{$aLang.page_edit} «{$oPageEdit->getTitle()}»

- {include file="$sTemplatePathPlugin/actions/ActionPage/add.tpl"} -{else} - {$aLang.page_new} -{/if} - - - - - - - - - - - - - - {foreach from=$aPages item=oPage name=el2} - {if $smarty.foreach.el2.iteration % 2 == 0} - {assign var=className value=''} - {else} - {assign var=className value='colored'} - {/if} - - - - - - - - {/foreach} - -
{$aLang.page_admin_title}{$aLang.page_admin_url}{$aLang.page_admin_active}{$aLang.page_admin_main}{$aLang.page_admin_action}
- - {$oPage->getTitle()} - - /{$oPage->getUrlFull()}/ - - {if $oPage->getActive()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {if $oPage->getMain()} - {$aLang.page_admin_active_yes} - {else} - {$aLang.page_admin_active_no} - {/if} - - {$aLang.page_admin_action_edit} -   - {$aLang.page_admin_action_delete} - {$aLang.page_admin_sort_up} - {$aLang.page_admin_sort_down} -
- - -
- -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/new/actions/ActionPage/page.tpl b/plugins/page/templates/skin/new/actions/ActionPage/page.tpl deleted file mode 100644 index 874e1089..00000000 --- a/plugins/page/templates/skin/new/actions/ActionPage/page.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{assign var="bNoSidebar" value=true} -{include file='header.tpl'} - -
-
- {if $oConfig->GetValue('view.tinymce')} - {$oPage->getText()} - {else} - {if $oPage->getAutoBr()} - {$oPage->getText()|nl2br} - {else} - {$oPage->getText()} - {/if} - {/if} -
-
- -{include file='footer.tpl'} \ No newline at end of file diff --git a/plugins/page/templates/skin/new/images/delete.gif b/plugins/page/templates/skin/new/images/delete.gif deleted file mode 100644 index 772d7ba0bbabfc3382f845aafee6b41939f48e7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 197 zcmZ?wbhEHb%TW|J~}%7eevR3TigHt|KBiR0g69a zz@j=J5@aU>tCND76vsqSF4eB^XZxBJ?egaeik0oSaXX#MZS8k!&YYt@3Pxu{*m)Vw hKX*!qG7C>=^bFY~c|xmj;x4|XskaO#u5f0s1^}H>Q~v+} diff --git a/plugins/page/templates/skin/new/images/down.png b/plugins/page/templates/skin/new/images/down.png deleted file mode 100644 index dcfc08b802b345f8484337dd04d1a62e90a718f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmV-30nGl1P)?rcgstPFueNo8_quU zoB=N9&cMJ3w?S1#j6qCHjN#db9}E{BeFTf~aSAY48%Z#{di9Fo_LEm&F(zn8G=c;k zK7G!>#m3CQ3B@2bNDL$gQiJS=2A}}Lsh14(|Nb#Bh>MGX1z)~=#qjL)TbSYobWcMx zy=JIqV}%4gx?*gh1kv=2p&sT`WW~6G6|4!yMwbK#FaY1_RM`BaF!}%h002ovPDHLk FV1ki$d`$oV diff --git a/plugins/page/templates/skin/new/images/edit.gif b/plugins/page/templates/skin/new/images/edit.gif deleted file mode 100644 index 6e3f4d1c2cb1efef111677f4374b5d080b6ff53b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 175 zcmZ?wbhEHb41HBqMS``)-av$o~+S94><7mR_O5qh{0^3{U zw=~K;+w8ZrnD@>~m-lU4A5-y>^t0~6Bs-e<9pe6MW>NL?aAdFs037~# AAOHXW diff --git a/plugins/page/templates/skin/new/images/new_16x16.gif b/plugins/page/templates/skin/new/images/new_16x16.gif deleted file mode 100644 index 9b511d9aa6297c8b77adb25e9250ad95f395f108..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 630 zcmW;J|4+l zt;JZIW}{m_sI6LZu5?#%eYviy`|`QZeLkP}=j%&6{(|TB%*#Kd-CYtzMNtj|Rrk&| z5x}?~BQyplI3j~#g<&r&9t^tCYxAkVgdcM}rWrU`%yCeFaT<(>F&`uavI<84i~tXT zSAZZ0GaOtjygX)D_zCO`co|k7I0-ea7QZ0R)1;|wh!<6#09r&-ySc|QH{~V{9#$tY zyW#Q?mKW!F)#E1ve*&tCS08Mjt&*3(FG>MUeA900A7h$YEi92AHV!OwKYC`Wtmzje zj4~MZVU~lcz+`rh(_;6qr_W9}UXoNODoi7R?;e=FaQcXgkp?`V145^H*3U_@s*VLP zI7uuHGUUcj2lwqa>6>BzbvmH9I81S{(wJn4Ur=XQSy2=xC%$-Z`!Yi6U-x&}h@FKX zDT0LNPouo7JZ&4b(J)!uqA0SQ)bP>PJr6^5Z|4s;{@Wk~2T_!PN~0G1dqOQSR~k}_ zii3A$XNT+3ZW^kp!msEb>(6Ih+O}~`wLzCt8?Cuke)RVK=T*7`4Vu%Nbf>}&mbDzK z)kMdI9MRo4nbLBrHvjn5vmXm zp|MHHF{|U3B}4|Db)HDFPbRKh97nqwP%bG+MT%%o+MZ!I_lEj=0)z+{-UVD`#shB I?od?LUm}~T5dZ)H diff --git a/plugins/page/templates/skin/new/images/up.png b/plugins/page/templates/skin/new/images/up.png deleted file mode 100644 index 3fc4be7cf1f24d51e3b88abe86b37402e8e4edc7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 313 zcmV-90mlA`P)*tpMi#`TLLI)IC&9EXazr z6vP?yRAd=mfBp#;1F`@9`_FLd0YVcCOtH42ID@XT9K-vse;9uL`3Kg(&cX!LB*(xA zRC?+@!+&=M21d9ISMR?BV?I8926i4Hu-MNp?-)LP`iL1yKgetUrl()}class="active"{/if}>{$oPage->getTitle()} -{/foreach} \ No newline at end of file