This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
374 additions
and
341 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<access component="com_attrs"> | ||
<section name="component"> | ||
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC"/> | ||
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC"/> | ||
</section> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<access component="com_attrs"> | ||
<section name="component"> | ||
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC"/> | ||
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC"/> | ||
</section> | ||
</access> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\MVC\Controller\BaseController; | ||
|
||
$controller = BaseController::getInstance('blank'); | ||
$controller->execute(Factory::getApplication()->input->get('task')); | ||
$controller->redirect(); | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\MVC\Controller\BaseController; | ||
|
||
$controller = BaseController::getInstance('blank'); | ||
$controller->execute(Factory::getApplication()->input->get('task')); | ||
$controller->redirect(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<config> | ||
<fieldset name="global" label="JGLOBAL_FIELDSET_OPTIONS"> | ||
<field name="sef_advanced" type="hidden" default="1"/> | ||
<field name="titlesource" type="list" label="COM_BLANK_FIELD_TITLESOURCE_LABEL" class="btn-group" default="0"> | ||
<option value="0">COM_BLANK_FIELD_TITLESOURCE_0</option> | ||
<option value="1">COM_BLANK_FIELD_TITLESOURCE_1</option> | ||
</field> | ||
</fieldset> | ||
<fieldset name="permissions" label="JCONFIG_PERMISSIONS_LABEL" description="JCONFIG_PERMISSIONS_DESC"> | ||
<field name="rules" type="rules" label="JCONFIG_PERMISSIONS_LABEL" class="inputbox" validate="rules" filter="rules" component="com_blank" section="component"/> | ||
</fieldset> | ||
</config> | ||
<?xml version="1.0"?> | ||
<config> | ||
<fieldset name="global" label="JGLOBAL_FIELDSET_OPTIONS"> | ||
<field name="sef_advanced" type="hidden" default="1"/> | ||
<field name="titlesource" type="list" label="COM_BLANK_FIELD_TITLESOURCE_LABEL" class="btn-group" default="0"> | ||
<option value="0">COM_BLANK_FIELD_TITLESOURCE_0</option> | ||
<option value="1">COM_BLANK_FIELD_TITLESOURCE_1</option> | ||
</field> | ||
<field name="descsource" type="list" label="COM_BLANK_FIELD_DESCSOURCE_LABEL" class="btn-group" default="0"> | ||
<option value="0">COM_BLANK_FIELD_DESCSOURCE_0</option> | ||
<option value="1">COM_BLANK_FIELD_DESCSOURCE_1</option> | ||
</field> | ||
</fieldset> | ||
<fieldset name="permissions" label="JCONFIG_PERMISSIONS_LABEL" description="JCONFIG_PERMISSIONS_DESC"> | ||
<field name="rules" type="rules" label="JCONFIG_PERMISSIONS_LABEL" class="inputbox" validate="rules" filter="rules" component="com_blank" section="component"/> | ||
</fieldset> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\MVC\Controller\BaseController; | ||
|
||
class BlankController extends BaseController | ||
{ | ||
function display($cachable = false, $urlparams = []) | ||
{ | ||
$this->default_view = 'blank'; | ||
parent::display($cachable, $urlparams); | ||
} | ||
} | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\MVC\Controller\BaseController; | ||
|
||
class BlankController extends BaseController | ||
{ | ||
function display($cachable = false, $urlparams = []) | ||
{ | ||
$this->default_view = 'blank'; | ||
parent::display($cachable, $urlparams); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
COM_BLANK="Blank page" | ||
COM_BLANK_CONFIGURATION="Blank page" | ||
COM_BLANK_DESC="All that this component does is display a blank page on the site that is attached to a menu item." | ||
COM_BLANK_DESC_FULL="<p> </p> | ||
<p><b>What is this for?</b></p> | ||
<p>In order to attach empty output to the page, which does not create a load on either requests or rendering. Most often, this is required on the main page of the site or on special landing pages.</p> | ||
<p>By default in Joomla, the favorited materials are attached to the main page. Few people know, but this page is one of the most loaded pages in the basic components of Joomla.</p> | ||
<p> </p> | ||
<p><b>Why can not do with the template?</b></p> | ||
<ul> | ||
<li>Not all templates support disabling component output on a specific page.</li> | ||
<li>Not all templates allow you to safely implement the necessary edits to disable component output without losing edits when a component can be updated.</li> | ||
<li>Not all webmasters are able to make the necessary changes to the template.</li> | ||
</ul> | ||
<p> </p> | ||
<p><b>What if the template creates indented markup around empty output?</b></p> | ||
<p>Override the only view template for this component and manually prescribe styles to hide the wrapper block. If you do not know how to do this and what exactly to prescribe — contact a qualified specialist.</p> | ||
<p> </p> | ||
<p><b>Is the author crazy?</b></p> | ||
<p>Yep.</p>" | ||
COM_BLANK_FIELD_TITLESOURCE_LABEL="Source of page title" | ||
COM_BLANK_FIELD_TITLESOURCE_0="Menu item" | ||
COM_BLANK_FIELD_TITLESOURCE_1="Site name" | ||
COM_BLANK="Blank page" | ||
COM_BLANK_CONFIGURATION="Blank page" | ||
COM_BLANK_DESC="All that this component does is display a blank page on the site that is attached to a menu item." | ||
COM_BLANK_DESC_FULL="<p> </p> | ||
<p><b>What is this for?</b></p> | ||
<p>In order to attach empty output to the page, which does not create a load on either requests or rendering. Most often, this is required on the main page of the site or on special landing pages.</p> | ||
<p>By default in Joomla, the favorited materials are attached to the main page. Few people know, but this page is one of the most loaded pages in the basic components of Joomla.</p> | ||
<p> </p> | ||
<p><b>Why can not do with the template?</b></p> | ||
<ul> | ||
<li>Not all templates support disabling component output on a specific page.</li> | ||
<li>Not all templates allow you to safely implement the necessary edits to disable component output without losing edits when a component can be updated.</li> | ||
<li>Not all webmasters are able to make the necessary changes to the template.</li> | ||
</ul> | ||
<p> </p> | ||
<p><b>What if the template creates indented markup around empty output?</b></p> | ||
<p>Override the only view template for this component and manually prescribe styles to hide the wrapper block. If you do not know how to do this and what exactly to prescribe — contact a qualified specialist.</p> | ||
<p> </p> | ||
<p><b>Is the author crazy?</b></p> | ||
<p>Yep.</p>" | ||
COM_BLANK_FIELD_TITLESOURCE_LABEL="Source of page title" | ||
COM_BLANK_FIELD_TITLESOURCE_0="Menu item" | ||
COM_BLANK_FIELD_TITLESOURCE_1="Common config" | ||
COM_BLANK_FIELD_DESCSOURCE_LABEL="Source of page metadesc" | ||
COM_BLANK_FIELD_DESCSOURCE_0="Menu item" | ||
COM_BLANK_FIELD_DESCSOURCE_1="Common 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
COM_BLANK="Blank page" | ||
COM_BLANK_DESC="All that this component does is display a blank page on the site that is attached to a menu item." | ||
COM_BLANK="Blank page" | ||
COM_BLANK_DESC="All that this component does is display a blank page on the site that is attached to a menu item." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
COM_BLANK="Пустая страница" | ||
COM_BLANK_CONFIGURATION="Пустая страница" | ||
COM_BLANK_DESC="Всё, что делает этот компонент — выводит на сайте пустую страницу, привязанную к пункту меню." | ||
COM_BLANK_DESC_FULL="<p> </p> | ||
<p><b>Для чего это надо?</b></p> | ||
<p>Для того, чтобы привязать к странице пустой вывод, который не создаёт нагрузки ни на запросы, ни на рендер. Чаще всего это требуется на главной странице сайта или на специальных страницах-лендингах.</p> | ||
<p>По умолчанию в Joomla к главной странице привязаны избранные материалы. Мало кто знает, но эта страница — одна из самых нагруженных страниц в базовых компонентах Joomla.</p> | ||
<p> </p> | ||
<p><b>Почему нельзя обойтись средствами шаблона?</b></p> | ||
<ul> | ||
<li>Не все шаблоны поддерживают отключение вывода компонента на определённой странице.</li> | ||
<li>Не все шаблоны позволяют безопасно внедрить необходимые правки по отключению вывода компонента без потери правок при возможном обновлении компонента.</li> | ||
<li>Не все веб-мастера в состоянии внести в шаблон необходимые правки.</li> | ||
</ul> | ||
<p> </p> | ||
<p><b>Что делать, если шаблон создаёт разметку с отступами вокруг пустого вывода?</b></p> | ||
<p>Переопределить шаблон единственного вида этого компонента и вручную прописать ему стили по скрытию блока-обёртки. Если вы не знаете, как это сделать и что именно прописать — обратитесь к квалифицированному специалисту.</p> | ||
<p> </p> | ||
<p><b>Автор психпнул?</b></p> | ||
<p>Да.</p>" | ||
COM_BLANK_FIELD_TITLESOURCE_LABEL="Источник заголовка страницы" | ||
COM_BLANK_FIELD_TITLESOURCE_0="Пункт меню" | ||
COM_BLANK_FIELD_TITLESOURCE_1="Наименование сайта" | ||
COM_BLANK="Пустая страница" | ||
COM_BLANK_CONFIGURATION="Пустая страница" | ||
COM_BLANK_DESC="Всё, что делает этот компонент — выводит на сайте пустую страницу, привязанную к пункту меню." | ||
COM_BLANK_DESC_FULL="<p> </p> | ||
<p><b>Для чего это надо?</b></p> | ||
<p>Для того, чтобы привязать к странице пустой вывод, который не создаёт нагрузки ни на запросы, ни на рендер. Чаще всего это требуется на главной странице сайта или на специальных страницах-лендингах.</p> | ||
<p>По умолчанию в Joomla к главной странице привязаны избранные материалы. Мало кто знает, но эта страница — одна из самых нагруженных страниц в базовых компонентах Joomla.</p> | ||
<p> </p> | ||
<p><b>Почему нельзя обойтись средствами шаблона?</b></p> | ||
<ul> | ||
<li>Не все шаблоны поддерживают отключение вывода компонента на определённой странице.</li> | ||
<li>Не все шаблоны позволяют безопасно внедрить необходимые правки по отключению вывода компонента без потери правок при возможном обновлении компонента.</li> | ||
<li>Не все веб-мастера в состоянии внести в шаблон необходимые правки.</li> | ||
</ul> | ||
<p> </p> | ||
<p><b>Что делать, если шаблон создаёт разметку с отступами вокруг пустого вывода?</b></p> | ||
<p>Переопределить шаблон единственного вида этого компонента и вручную прописать ему стили по скрытию блока-обёртки. Если вы не знаете, как это сделать и что именно прописать — обратитесь к квалифицированному специалисту.</p> | ||
<p> </p> | ||
<p><b>Автор психанул?</b></p> | ||
<p>Да.</p>" | ||
COM_BLANK_FIELD_TITLESOURCE_LABEL="Источник заголовка страницы" | ||
COM_BLANK_FIELD_TITLESOURCE_0="Пункт меню" | ||
COM_BLANK_FIELD_TITLESOURCE_1="Общие настройки" | ||
COM_BLANK_FIELD_DESCSOURCE_LABEL="Источник метаописания страницы" | ||
COM_BLANK_FIELD_DESCSOURCE_0="Пункт меню" | ||
COM_BLANK_FIELD_DESCSOURCE_1="Общие настройки" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
COM_BLANK="Пустая страница" | ||
COM_BLANK_DESC="Всё, что делает этот компонент — выводит на сайте пустую страницу, привязанную к пункту меню." | ||
COM_BLANK="Пустая страница" | ||
COM_BLANK_DESC="Всё, что делает этот компонент — выводит на сайте пустую страницу, привязанную к пункту меню." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Language\Text; | ||
|
||
echo '<h3>'. Text::_('COM_BLANK_DESC') . '</h3>'; | ||
echo Text::_('COM_BLANK_DESC_FULL'); | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Language\Text; | ||
|
||
echo '<h3>'. Text::_('COM_BLANK_DESC') . '</h3>'; | ||
echo Text::_('COM_BLANK_DESC_FULL'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\MVC\View\HtmlView; | ||
use Joomla\CMS\Helper\ContentHelper; | ||
use Joomla\CMS\Toolbar\ToolbarHelper; | ||
use Joomla\CMS\Language\Text; | ||
|
||
class BlankViewBlank extends HtmlView | ||
{ | ||
public function display($tpl = null) | ||
{ | ||
ToolBarHelper::title(Text::_('COM_BLANK')); | ||
if (ContentHelper::getActions('com_blank')->get('core.admin')) { | ||
ToolbarHelper::preferences('com_blank'); | ||
} else { | ||
Factory::getDocument()->addStyleDeclaration('#isisJsData{height:0!important;overflow:hidden!important;}'); | ||
} | ||
parent::display($tpl); | ||
} | ||
} | ||
<?php defined('_JEXEC') or die; | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_blank | ||
* @copyright Copyright (C) Aleksey A. Morozov (AlekVolsk). All rights reserved. | ||
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt | ||
*/ | ||
|
||
use Joomla\CMS\Factory; | ||
use Joomla\CMS\MVC\View\HtmlView; | ||
use Joomla\CMS\Helper\ContentHelper; | ||
use Joomla\CMS\Toolbar\ToolbarHelper; | ||
use Joomla\CMS\Language\Text; | ||
|
||
class BlankViewBlank extends HtmlView | ||
{ | ||
public function display($tpl = null) | ||
{ | ||
ToolBarHelper::title(Text::_('COM_BLANK')); | ||
if (ContentHelper::getActions('com_blank')->get('core.admin')) { | ||
ToolbarHelper::preferences('com_blank'); | ||
} else { | ||
Factory::getDocument()->addStyleDeclaration('#isisJsData{height:0!important;overflow:hidden!important;}'); | ||
} | ||
parent::display($tpl); | ||
} | ||
} |
Oops, something went wrong.