Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: output.class.php

output.class.php 3 years 11 months ago #21406

  • BodgeIT
  • BodgeIT's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
I'm a bit underwhelmed to see JEM is wrapping images in links for buttons?

Can we please just use btn class and style through html/CSS, we're not in the 70s anymore.

Edit
OK, eating my humble pie...I see you can switch icons off and that just leaves text!
This is handy if you want to style your own but what a way to hide it. It would also be nicer to have a little more by wrapping a class on it. Using a language override we added the FA icons, that is neat..

EDIT:
Hack to add class to iCal button.
output.class.php
add to line 487 after "$settings = JemHelper::globalattribs();"
// BW Modd //
	$attribs = JEMOutput::tooltip($text, $overlib, '', 'bottom');
	$x = new SimpleXMLElement("<element $attribs />");
	$x["class"] = $x["class"] . ' btn';
	$attrib = '';
	foreach($x->attributes() as $a => $b) {
		    $attrib .= $a.'="'.$b."\"\n";
	}
//End Mod
Change line 505 from
$output = JHtml::_('link', JRoute::_($url), $image, JEMOutput::tooltip($text, $overlib, '', 'bottom'););
to
$output = JHtml::_('link', JRoute::_($url), $image, $attrib);
JoomlaLondon Team Member

Please Log in or Create an account to join the conversation.

Last edit: by BodgeIT.

output.class.php 3 years 11 months ago #21407

  • jojo12
  • jojo12's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 3165
  • Karma: 45
  • Thank you received: 339
we can need your help :)
Testing JEM 2.3.0 beta3 local on clean latest Joomla (3.9.11) Protostar php7.3.8 (no mails)

Please Log in or Create an account to join the conversation.

output.class.php 3 years 11 months ago #21408

  • BodgeIT
  • BodgeIT's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Don't ask me, I'm a dirty hacker! ;-)
JoomlaLondon Team Member

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.171 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......