mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-20 19:15:27 +00:00
Codestyle indent (#38399)
* Codestyle indent Small change to fix codestyle indent code review * Update default.php * more
This commit is contained in:
parent
5bd9f1ba9f
commit
3502094d6c
|
@ -177,11 +177,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_banners')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_banners')
|
||||
&& $user->authorise('core.edit', 'com_banners')
|
||||
&& $user->authorise('core.edit.state', 'com_banners')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -279,11 +279,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', $extension)
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', $extension)
|
||||
&& $user->authorise('core.edit', $extension)
|
||||
&& $user->authorise('core.edit.state', $extension)
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -185,11 +185,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_contact')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_contact')
|
||||
&& $user->authorise('core.edit', 'com_contact')
|
||||
&& $user->authorise('core.edit.state', 'com_contact')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -369,11 +369,12 @@ $assoc = Associations::isEnabled();
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_content')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_content')
|
||||
&& $user->authorise('core.edit', 'com_content')
|
||||
&& $user->authorise('core.edit.state', 'com_content')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -199,11 +199,12 @@ if (count($this->filterForm->getField('context')->options) > 1) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php //Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', $component)
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', $component)
|
||||
&& $user->authorise('core.edit', $component)
|
||||
&& $user->authorise('core.edit.state', $component)
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -167,11 +167,12 @@ if (count($this->filterForm->getField('context')->options) > 1) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php //Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', $component)
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', $component)
|
||||
&& $user->authorise('core.edit', $component)
|
||||
&& $user->authorise('core.edit.state', $component)
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -198,11 +198,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php endif; ?>
|
||||
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_modules')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_modules')
|
||||
&& $user->authorise('core.edit', 'com_modules')
|
||||
&& $user->authorise('core.edit.state', 'com_modules')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -176,11 +176,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form if user is allowed ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_newsfeeds')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_newsfeeds')
|
||||
&& $user->authorise('core.edit', 'com_newsfeeds')
|
||||
&& $user->authorise('core.edit.state', 'com_newsfeeds')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -151,11 +151,12 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||
<?php echo $this->loadTemplate('addform'); ?>
|
||||
<?php endif; ?>
|
||||
<?php // Load the batch processing form if user is allowed ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_redirect')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_redirect')
|
||||
&& $user->authorise('core.edit', 'com_redirect')
|
||||
&& $user->authorise('core.edit.state', 'com_redirect')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -251,11 +251,12 @@ if ($saveOrder && !empty($this->items)) {
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form if user is allowed ?>
|
||||
<?php if (
|
||||
$user->authorise('core.create', 'com_tags')
|
||||
<?php
|
||||
if (
|
||||
$user->authorise('core.create', 'com_tags')
|
||||
&& $user->authorise('core.edit', 'com_tags')
|
||||
&& $user->authorise('core.edit.state', 'com_tags')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -209,11 +209,12 @@ $mfa = PluginHelper::isEnabled('multifactorauth');
|
|||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
|
||||
<?php // Load the batch processing form if user is allowed ?>
|
||||
<?php if (
|
||||
$loggeduser->authorise('core.create', 'com_users')
|
||||
<?php
|
||||
if (
|
||||
$loggeduser->authorise('core.create', 'com_users')
|
||||
&& $loggeduser->authorise('core.edit', 'com_users')
|
||||
&& $loggeduser->authorise('core.edit.state', 'com_users')
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
|
|
|
@ -21,10 +21,11 @@ $icon = $this->params->get('contact_icons') == 0;
|
|||
*/
|
||||
?>
|
||||
<dl class="com-contact__address contact-address dl-horizontal" itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
|
||||
<?php if (
|
||||
($this->params->get('address_check') > 0) &&
|
||||
<?php
|
||||
if (
|
||||
($this->params->get('address_check') > 0) &&
|
||||
($this->item->address || $this->item->suburb || $this->item->state || $this->item->country || $this->item->postcode)
|
||||
) : ?>
|
||||
) : ?>
|
||||
<dt>
|
||||
<?php if ($icon && !$this->params->get('marker_address')) : ?>
|
||||
<span class="icon-address" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('COM_CONTACT_ADDRESS'); ?></span>
|
||||
|
|
|
@ -17,10 +17,11 @@ $blockPosition = $displayData['params']->get('info_block_position', 0);
|
|||
?>
|
||||
<dl class="article-info text-muted">
|
||||
|
||||
<?php if (
|
||||
$displayData['position'] === 'above' && ($blockPosition == 0 || $blockPosition == 2)
|
||||
|| $displayData['position'] === 'below' && ($blockPosition == 1)
|
||||
) : ?>
|
||||
<?php
|
||||
if (
|
||||
$displayData['position'] === 'above' && ($blockPosition == 0 || $blockPosition == 2)
|
||||
|| $displayData['position'] === 'below' && ($blockPosition == 1)
|
||||
) : ?>
|
||||
<dt class="article-info-term">
|
||||
<?php if ($displayData['params']->get('info_block_show_title', 1)) : ?>
|
||||
<?php echo Text::_('COM_CONTENT_ARTICLE_INFO'); ?>
|
||||
|
@ -49,10 +50,11 @@ $blockPosition = $displayData['params']->get('info_block_position', 0);
|
|||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (
|
||||
$displayData['position'] === 'above' && ($blockPosition == 0)
|
||||
|| $displayData['position'] === 'below' && ($blockPosition == 1 || $blockPosition == 2)
|
||||
) : ?>
|
||||
<?php
|
||||
if (
|
||||
$displayData['position'] === 'above' && ($blockPosition == 0)
|
||||
|| $displayData['position'] === 'below' && ($blockPosition == 1 || $blockPosition == 2)
|
||||
) : ?>
|
||||
<?php if ($displayData['params']->get('show_create_date')) : ?>
|
||||
<?php echo $this->sublayout('create_date', $displayData); ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -34,11 +34,12 @@ foreach ($list as $item) : ?>
|
|||
<?php if ($params->get('show_description', 0)) : ?>
|
||||
<?php echo HTMLHelper::_('content.prepare', $item->description, $item->getParams(), 'mod_articles_categories.content'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (
|
||||
$params->get('show_children', 0) && (($params->get('maxlevel', 0) == 0)
|
||||
<?php
|
||||
if (
|
||||
$params->get('show_children', 0) && (($params->get('maxlevel', 0) == 0)
|
||||
|| ($params->get('maxlevel') >= ($item->level - $startLevel)))
|
||||
&& count($item->getChildren())
|
||||
) : ?>
|
||||
) : ?>
|
||||
<?php echo '<ul>'; ?>
|
||||
<?php $temp = $list; ?>
|
||||
<?php $list = $item->getChildren(); ?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user