Version 4.1.19.4
This commit is contained in:
1 parent
2bd5025018
commit
0dc2aee5ed
312 files changed
+53730
-32118
No files matched your search
@@ -342,18 +342,18 @@ class _Application extends \IPS\Application
|
||||
) );
|
||||
|
||||
/* Needs to be added before createDatabase is called */
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_" . $database->id, "Статьи" );
|
||||
\IPS\Lang::saveCustom( 'cms', "module__cms_records" . $database->id, "Статьи" );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_" . $database->id . '_desc', "Статьи нашего сайта" );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_sl_" . $database->id, 'статья' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_pl_" . $database->id, 'статьи' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_su_" . $database->id, 'Статья' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_pu_" . $database->id, 'Статьи' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_ia_" . $database->id, 'статья' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_sl_" . $database->id . '_pl', 'Статьи' );
|
||||
\IPS\Lang::saveCustom( 'cms', "cms_create_menu_records_" . $database->id, 'Запись в Статьи' );
|
||||
\IPS\Lang::saveCustom( 'cms', "digest_area_records" . $database->id, "Статьи" );
|
||||
\IPS\Lang::saveCustom( 'cms', "cms_records" . $database->id . '_pl', 'Статья' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_" . $database->id, "Articles" );
|
||||
\IPS\Lang::saveCustom( 'cms', "module__cms_records" . $database->id, "Articles" );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_" . $database->id . '_desc', "Our website articles" );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_sl_" . $database->id, 'article' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_pl_" . $database->id, 'articles' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_su_" . $database->id, 'Article' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_pu_" . $database->id, 'Articles' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_ia_" . $database->id, 'an article' );
|
||||
\IPS\Lang::saveCustom( 'cms', "content_db_lang_sl_" . $database->id . '_pl', 'Articles' );
|
||||
\IPS\Lang::saveCustom( 'cms', "cms_create_menu_records_" . $database->id, 'Article in Articles' );
|
||||
\IPS\Lang::saveCustom( 'cms', "digest_area_cms_records" . $database->id, "Articles" );
|
||||
\IPS\Lang::saveCustom( 'cms', "cms_records" . $database->id . '_pl', 'Article' );
|
||||
|
||||
try
|
||||
{
|
||||
@@ -389,13 +389,15 @@ class _Application extends \IPS\Application
|
||||
$link = (string) \IPS\Http\Url::ips('docs/pages_docs');
|
||||
|
||||
$content = <<<EOF
|
||||
<p>Добро пожаловать в приложение Страницы!</p>
|
||||
<p>Приложение Страницы призвано расширить ваш сайт путём гибкого управления контентом, разработанное специально для сообществ.
|
||||
Создайте совершенно новые разделы вашего сообщества, используя такие особенности, как блоки, базы данных и статьи, и внедряя дополнительную информацию из других разделов сообщества.</p>
|
||||
<p>Создавайте собственные страницы, используя наш удобный WYSIWYG редактор.
|
||||
Создавайте блоки, которые отображают все виды информации из всего вашего сообщества для создания динамических страниц, или используйте стандартные готовые блоки, присутствующие в IPS Community Suite.</p>
|
||||
<p>Welcome to Pages!</p>
|
||||
<p>Pages extends your site with custom content management designed especially for communities.
|
||||
Create brand new sections of your community using features like blocks, databases and articles,
|
||||
pulling in data from other areas of your community.</p>
|
||||
<p>Create custom pages in your community using our drag'n'drop, WYSIWYG editor.
|
||||
Build blocks that pull in all kinds of data from throughout your community to create dynamic pages,
|
||||
or use one of the ready-made widgets we include with the IPS Community Suite.</p>
|
||||
<p><br></p>
|
||||
<p><a href="{$link}">Просмотреть документацию приложения</a></p>
|
||||
<p><a href="{$link}">View our Pages documentation</a></p>
|
||||
EOF;
|
||||
|
||||
$titleField = 'field_' . $database->field_title;
|
||||
@@ -405,7 +407,7 @@ EOF;
|
||||
$member = \IPS\Member::loggedIn()->member_id ? \IPS\Member::loggedIn() : \IPS\Member::load(1);
|
||||
|
||||
$record = $item::createItem( $member, \IPS\Request::i()->ipAddress(), \IPS\DateTime::ts( time() ), $category, FALSE );
|
||||
$record->$titleField = "Добро пожаловать в Страницы";
|
||||
$record->$titleField = "Welcome to Pages";
|
||||
$record->$contentField = $content;
|
||||
$record->save();
|
||||
|
||||
@@ -416,8 +418,8 @@ EOF;
|
||||
|
||||
/* Create the page */
|
||||
$pageValues = array(
|
||||
'page_name' => "Статьи",
|
||||
'page_title' => "Статьи",
|
||||
'page_name' => "Articles",
|
||||
'page_title' => "Articles",
|
||||
'page_seo_name' => "articles.html",
|
||||
'page_folder_id' => 0,
|
||||
'page_ipb_wrapper' => 1,
|
||||
@@ -453,12 +455,12 @@ EOF;
|
||||
$buttonUrl = (string) \IPS\Http\Url::internal( 'applications/cms/interface/default/block_arrow.png', 'none' );
|
||||
$defaultContent = <<<EOF
|
||||
<p>
|
||||
<strong>Добро пожаловать в приложение Страницы!</strong>
|
||||
<strong>Welcome to Pages!</strong>
|
||||
</p>
|
||||
<p>
|
||||
Для начала, убедитесь, что вы авторизовались и нажмите на стрелку с правой стороны <img src="{$buttonUrl}"> , чтобы развернуть менеджер блоков.
|
||||
To get started, make sure you are logged in and click the arrow on the left hand side <img src="{$buttonUrl}"> to expand the block manager.
|
||||
<br>
|
||||
Вы можете перемещать, добавлять и редактировать блоки без необходимости программирования!
|
||||
You can move, add and edit blocks without the need for complex coding!
|
||||
</p>
|
||||
EOF;
|
||||
|
||||
@@ -488,7 +490,7 @@ EOF;
|
||||
/* Add block container (custom)*/
|
||||
$container = new \IPS\cms\Blocks\Container;
|
||||
$container->parent_id = 0;
|
||||
$container->name = "Дополнительно";
|
||||
$container->name = "Custom";
|
||||
$container->type = 'block';
|
||||
$container->key = 'block_custom';
|
||||
$container->save();
|
||||
@@ -496,7 +498,7 @@ EOF;
|
||||
/* Add block container (plugins) */
|
||||
$container = new \IPS\cms\Blocks\Container;
|
||||
$container->parent_id = 0;
|
||||
$container->name = "Плагины";
|
||||
$container->name = "Plugins";
|
||||
$container->type = 'block';
|
||||
$container->key = 'block_plugins';
|
||||
$container->save();
|
||||
|
||||
Reference in new issue
Block a user