Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_community/views/themepages/tmpl/default.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); echo CommunityLicenseHelper::disabledHtml(); ?> <style> .container-main { padding-bottom: 0 !important; } </style> <script> jQuery( document ).ready(function($) { Joomla.submitbutton = function( action ) { if ( action === 'apply' && !checkFiles() ) { window.alert('<?php echo Text::_("COM_COMMUNITY_THEME_IMAGE_ERROR"); ?>') return false; } Joomla.submitform(action); } function checkFiles() { var isValid = true; $('#adminForm input[type=file]').each(function() { if ( this.value && !this.value.match(/\.(jpg|jpeg|png)$/i) ) { isValid = false; return false; } }); return isValid; } $('#default-cover-page,#default-page-avatar').ace_file_input({ no_file:'No File ...', btn_choose:'Choose', btn_change:'Change', droppable:false, onchange:true, thumbnail:false }); }); </script> <form name="adminForm" id="adminForm" action="index.php?option=com_community" method="POST" enctype="multipart/form-data"> <div class="widget-box"> <div class="widget-header widget-header-flat"> <h5><?php echo Text::_('COM_COMMUNITY_CONFIGURATION_TITLE_PAGE_SETTINGS') ?></h5> </div> <div class="widget-body"> <div class="widget-main"> <table cellspacing="5" cellpadding="5"> <tr> <td class="key" width="150"><?php echo Text::_('COM_COMMUNITY_PREFERENCE_DEFAULT_TAB'); ?></td> <td> <select name="config[default_page_tab]"> <option value="0"><?php echo Text::_('COM_COMMUNITY_PREFERENCE_ACTIVITY_STREAM'); ?></option> <option value="1" <?php echo (CFactory::getConfig()->get('default_page_tab')) ? 'selected' : ''?>><?php echo Text::_('COM_COMMUNITY_PREFERENCE_ACTIVITY_DESC'); ?></option> </select> </td> </tr> <tr> <td class="key" width="150"><?php echo Text::_('COM_COMMUNITY_CONFIGURATION_SHOW_TOTAL_MEMBERS'); ?></td> <td> <input type="number" name="config[page_sidebar_members_show_total]" value="<?php echo CFactory::getConfig()->get('page_sidebar_members_show_total', 12); ?>" > </td> </tr> <tr> <td class="key" width="150"><?php echo Text::_('COM_COMMUNITY_CONFIGURATION_PAGE_DEFAULT_SORITNG'); ?></td> <td> <select name="config[page_default_sort_order]"> <option value="latest"><?php echo Text::_('COM_COMMUNITY_PAGES_SORT_LATEST'); ?></option> <option value="oldest" <?php echo (CFactory::getConfig()->get('page_default_sort_order') == 'oldest') ? 'selected' : ''?>><?php echo Text::_('COM_COMMUNITY_PAGES_SORT_OLDEST'); ?></option> <option value="alphabetical" <?php echo (CFactory::getConfig()->get('page_default_sort_order') == 'alphabetical') ? 'selected' : ''?>><?php echo Text::_('COM_COMMUNITY_SORT_ALPHABETICAL'); ?></option> <option value="mostwalls" <?php echo (CFactory::getConfig()->get('page_default_sort_order') == 'mostwalls') ? 'selected' : ''?>><?php echo Text::_('COM_COMMUNITY_PAGES_SORT_MOST_ACTIVE'); ?></option> <option value="featured" <?php echo (CFactory::getConfig()->get('page_default_sort_order') == 'featured') ? 'selected' : ''?>><?php echo Text::_('COM_COMMUNITY_PAGE_SORT_FEATURED'); ?></option> </select> </td> </tr> </table> </div> </div> </div> <div class="space-8"></div> <div class="row-fluid"> <div class="span12"> <div class="widget-box"> <div class="widget-header widget-header-flat"> <h5><?php echo Text::_('COM_COMMUNITY_THEMEPROFILE_DEFAULT_IMAGES');?></h5> </div> <div class="widget-body"> <div class="widget-main"> <table cellspacing="5" cellpadding="5"> <thead> <tr> <th> <?php echo Text::_('COM_COMMUNITY_DEFAULT_COVER');?> </th> <th> <?php echo Text::_('COM_COMMUNITY_DEFAULT_AVATAR');?> </th> </tr> </thead> <tbody> <tr> <td> <?php $image = Uri::root() . 'components/com_community/assets/cover-page-default.png'; if(isset($this->settings['page']['default-cover-page'])) $image = Uri::root().str_replace(JPATH_ROOT,'',COMMUNITY_PATH_ASSETS).'default-cover-page.'.$this->settings['page']['default-cover-page']; ?><img src="<?=$image;?>?ts=<?php echo time();?>" alt="" class="preview-cover"> </td> <td width="45%" valign="top"> <?php $image = Uri::root() . 'components/com_community/assets/page.png'; if(isset($this->settings['page']['default-page-avatar'])) { $image = Uri::root() . str_replace(JPATH_ROOT, '', COMMUNITY_PATH_ASSETS) . 'default-page-avatar.' . $this->settings['page']['default-page-avatar']; } ?><img src="<?=$image;?>?ts=<?php echo time();?>" alt="" class="preview-avatar"> </td> </tr> <tr> <td> <div class="space-6"></div> <input type="file" name="default-cover-page" id="default-cover-page"> <input type="hidden" name="settings[default-cover-page]" value="<?php echo isset($this->settings['page']['default-cover-page']) ? $this->settings['page']['default-cover-page'] : "";?>" /> </td> <td> <div class="space-6"></div> <input type="file" name="default-page-avatar" id="default-page-avatar"> <input type="hidden" name="settings[page-avatar]" value="<?php echo isset($this->settings['page']['default-page-avatar']) ? $this->settings['page']['default-page-avatar'] : "";?>" /> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="space-8"></div> <input type="hidden" name="view" value="themepages" /> <input type="hidden" name="task" value="apply" /> <input type="hidden" name="option" value="com_community" /> <?php echo HTMLHelper::_( 'form.token' ); ?> </form> <style type="text/css"> .preview-cover { max-width: 100%; height: 150px; } .preview-avatar { max-width: 100%; height: 150px; } </style>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка