5-я версия шаблона-фреймворка для создания сайтов на Joomla - Gantry. Фреймворк состоит из шаблона и компонента-билдера страниц.
При создании расширений Joomla у разработчиков есть возможность скрывать или показывать поля в зависимости от значений других полей (conditional fields). Это реализуется в XML-файле формы расширения (модуля, плагина или компонента) с помощью атрибута showon="тут условия" (ссылка на документацию ниже).
showon="тут условия"
Что такое метатеги, как их правильно заполнять и куда добавлять. Обновлённый гайд на PR-CY, будет полезна новичкам.
... "application/x-rar-compressed", "application/x-rtf", "application/x-shockwave-flash", "application/x-sit", "application/x-stuffit", "application/x-troff-msvideo", "application/x-zip", "application/x-zip-compressed", "application/zip", -----------------------------------> эту строчку "application/x-rar-compressed", -------------------------> и эту строчку "application/rar",...
function init()строка 1946 $this->mime_file = true; // MIME detection with UNIX file() command
$this->mime_file = false; // MIME detection with UNIX file() command
div.itemImageBlock { margin: 0 0 16px; padding: 8px;}
div.latestItemImageBlock { float: left; margin: 0; padding: 0;}
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script><div class="yashare-auto-init" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,friendfeed,lj"></div>
<?php global $mainframe;$mainframe->triggerEvent('onCaptchaDisplay');?>
[script type="text/javascript"]//<![CDATA[function submitbutton(pressbutton) {syncExtraFieldsEditor();if (trim( document.adminForm.title.value ) == "") {alert( '<?php echo JText::_('Item must have a title', true); ?>' );} else if (trim( document.adminForm.catid.value ) == "0") {alert( '<?php echo JText::_('Please select a category', true); ?>' );} else {<?php if(!$this->params->get('taggingSystem')): ?>var tags = document.getElementById("selectedTags");for(i=0; i<tags.options.length; i++)tags.options[i].selected = true;<?php endif; ?>submitform( pressbutton );
[script type="text/javascript"]//<![CDATA[function submitbutton(pressbutton) {syncExtraFieldsEditor();if (trim( document.adminForm.title.value ) == "") {alert( '<?php echo JText::_('Item must have a title', true); ?>' );} else if (trim( document.adminForm.catid.value ) == "0") {alert( '<?php echo JText::_('Please select a category', true); ?>' );} else {<?php if(!$this->params->get('taggingSystem')): ?>var tags = document.getElementById("selectedTags");for(i=0; i<tags.options.length; i++)tags.options[i].selected = true;<?php endif; ?>submitform( pressbutton );parent.$('sbox-window').close(); --------------> Добавленная нами строчка}}
172 строка--> $$('#toolbar-cancel a').addEvent('click', function(e){ new Event(e).stop(); <?php if ($this->row->id): ?> dummy = $time() + $random(0, 100); XHRCheckin.request("t"+dummy); <?php endif; ?> 178-->parent.$('sbox-window').close(); 179-->window.history.back(); /*Вот эту строчку*/});