Skip to content

Text Filters layout#17113

Merged
mbabker merged 2 commits intojoomla:stagingfrom
brianteeman:filters
Jul 25, 2017
Merged

Text Filters layout#17113
mbabker merged 2 commits intojoomla:stagingfrom
brianteeman:filters

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

@brianteeman brianteeman commented Jul 13, 2017

At some point in the past (3.6.5?) when layouts were added the design of the global configuration text filters was changed and it looks odd

This PR adds a new layout just for text filters without the big empty space

Pull Request for Issue #15423

Before

screenshotr16-37-17

After

screenshotr16-36-43

At some point in the past when layouts were added the design of the global configuration text filters  was changed and it looks odd

This PR adds a new layoout just for text filters without the big empty space
@ghost
Copy link
Copy Markdown

ghost commented Jul 13, 2017

I have tested this item ✅ successfully on 1ee6f69


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17113.

Copy link
Copy Markdown
Contributor

@zero-24 zero-24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use this:

<fieldset class="<?php echo !empty($displayData->formclass) ? $displayData->formclass : 'form-horizontal'; ?>">
	<legend><?php echo $displayData->name; ?></legend>
	<?php if (!empty($displayData->description)) : ?>
		<p><?php echo $displayData->description; ?></p>
	<?php endif; ?>
	<?php $fieldsnames = explode(',', $displayData->fieldsname); ?>
	<?php foreach ($fieldsnames as $fieldname) : ?>
		<?php foreach ($displayData->form->getFieldset($fieldname) as $field) : ?>
			<div><?php echo $field->input; ?></div>
		<?php endforeach; ?>
	<?php endforeach; ?>
</fieldset>

@brianteeman
Copy link
Copy Markdown
Contributor Author

Why have every PHP line wrapped in ?PHP

I just took the existing layout and removed the things we don't need here.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jul 13, 2017

Why have every PHP line wrapped in ?PHP

because it is a layout file ;) And this is supposed to have that ;)

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jul 13, 2017

Where is this file so i can correct it there too :)

@brianteeman
Copy link
Copy Markdown
Contributor Author

Joomla.contemt.options_default

@C-Lodder
Copy link
Copy Markdown
Member

@brianteeman check out the section on layouts: https://developer.joomla.org/coding-standards/php-code.html

@brianteeman
Copy link
Copy Markdown
Contributor Author

I was only working from an existing layout :(

I will update it as requested

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jul 13, 2017

I have done the original too #17123

@brianteeman brianteeman dismissed zero-24’s stale review July 17, 2017 21:28

changes completed

@brianteeman brianteeman added this to the Joomla 3.8.0 milestone Jul 19, 2017
@brianteeman
Copy link
Copy Markdown
Contributor Author

can this be retested please

@ghost
Copy link
Copy Markdown

ghost commented Jul 24, 2017

I have tested this item ✅ successfully on d3b2a52


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17113.

1 similar comment
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jul 24, 2017

I have tested this item ✅ successfully on d3b2a52


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17113.

@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.8.0 milestone Jul 24, 2017
@ghost
Copy link
Copy Markdown

ghost commented Jul 24, 2017

RTC after two successful tests.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 24, 2017
@zero-24 zero-24 added this to the Joomla 3.8.0 milestone Jul 24, 2017
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 25, 2017
roland-d added a commit to roland-d/joomla-cms that referenced this pull request Jul 26, 2017
* staging: (274 commits)
  Add JCryptCipherSodium to support libsodium (joomla#16754)
  Performance 2 (libraries/legacy) (joomla#12220)
  Performance 6 (templates) (joomla#12233)
  Fixed typehint (joomla#16425)
  Fix for: Repeatable field is no longer rendered with Chosen layout (joomla#16471)
  Fix the path for the ajax-loader.gif (joomla#16701)
  Menu items list parent filter (joomla#17060)
  Text Filters layout (joomla#17113)
  mod_login showon option (joomla#17153)
  com_banners incorret tooltip (joomla#17157)
  fix joomla.content.options_default (joomla#17123)
  remove the never working limitstart call (joomla#17184)
  Update phpDocumentor build
  set 3.8.0 Dev State
  Prepare 3.7.4 Stable Release
  fixed a logic change in joomla#12294, thanks @Hoffi1
  Update sv-SE.ini
  Update pt-BR.ini
  Update lv-LV.ini
  Update fa-IR.ini
  ...
@brianteeman
Copy link
Copy Markdown
Contributor Author

Thanks

@brianteeman brianteeman deleted the filters branch July 26, 2017 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants