| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_community/templates/jomsocial/layouts/pages/ |
Upload File : |
<?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\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
defined('_JEXEC') or die();
?>
<script>
function joms_change_filter( value, type ) {
var url;
// Category selector.
if ( type === 'category' ) {
if ( value ) {
url = '<?php echo html_entity_decode(CRoute::_("index.php?option=com_community&view=pages&sort=".$sorted."&categoryid=__cat__")); ?>';
url = url.replace( '__cat__', value );
} else {
url = '<?php echo html_entity_decode(CRoute::_("index.php?option=com_community&view=pages")); ?>';
}
window.location = url;
return;
}
// Filter selector.
// @todo
}
</script>
<?php
$task = Factory::getApplication()->input->getCmd('task');
if(!isset($title)) {
if ($task == 'mypages') {
$title = Text::_('COM_COMMUNITY_PAGES_MY_PAGES');
} else {
$title = Text::_('COM_COMMUNITY_PAGES');
}
}
if ($task == 'mypages' && $my->id != $user->id) {
$hideAddPagesButton = true;
} else {
$hideAddPagesButton = false;
}
?>
<div class="joms-page">
<div class="joms-list__search">
<div class="joms-list__search-title">
<h3 class="joms-page__title"><?php echo $title; ?></h3>
</div>
<div class="joms-list__utilities">
<?php
if(CPagesAccess::pagesSearchView()) {
?>
<form method="GET" class="joms-inline--desktop"
action="<?php echo CRoute::_('index.php?option=com_community&view=pages&task=search'); ?>">
<span>
<input type="text" class="joms-input--search" name="search"
placeholder="<?php echo Text::_('COM_COMMUNITY_SEARCH_PAGE_PLACEHOLDER'); ?>">
</span>
<?php echo HTMLHelper::_('form.token') ?>
<span>
<button class="joms-button--neutral"><?php echo Text::_('COM_COMMUNITY_SEARCH_GO'); ?></button>
</span>
<input type="hidden" name="option" value="com_community"/>
<input type="hidden" name="view" value="pages"/>
<input type="hidden" name="task" value="search"/>
<input type="hidden" name="Itemid" value="<?php echo CRoute::getItemId(); ?>"/>
</form>
<?php
}
if ($my->authorise('community.create', 'pages') && !$hideAddPagesButton) { ?>
<button onclick="window.location='<?php echo CRoute::_('index.php?option=com_community&view=pages&task=create'); ?>';" class="joms-button--add">
<?php echo Text::_('COM_COMMUNITY_PAGES_CREATE_PAGE'); ?>
<svg class="joms-icon" viewBox="0 0 16 16">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-plus"></use>
</svg>
</button>
<?php } ?>
</div>
</div>
<?php if($submenu){ ?>
<?php echo $submenu;?>
<div class="joms-gap"></div>
<?php } ?>
<?php if( isset($availableCategories) && $availableCategories ){ ?>
<div class="joms-sortings">
<?php echo $sortings; ?>
<select class="joms-select" onchange="joms_change_filter(this.value, 'category');">
<option value=""><?php echo Text::_('COM_COMMUNITY_ALL_CATEGORIES') ?></option>
<?php foreach($availableCategories as $category){ ?>
<option value="<?php echo $category->id ?>"<?php if ($categoryId == $category->id) echo ' selected'; ?>><?php echo Text::_( $this->escape(trim($category->name)) ); ?></option>
<?php } ?>
</select>
</div>
<div class="joms-gap"></div>
<?php } else { ?>
<?php echo $sortings; ?>
<?php } ?>
<?php echo $pagesHTML;?>
</div>