mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Remove a few inline styles
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id: news_shortcodes.php,v 1.23 2009-07-21 10:21:20 marj_nl_fr Exp $
|
||||
* $Id: news_shortcodes.php,v 1.24 2009-07-25 07:54:34 marj_nl_fr Exp $
|
||||
*
|
||||
* News shortcode batch
|
||||
*/
|
||||
@@ -221,7 +221,7 @@ class news_shortcodes
|
||||
if (ADMIN && getperms('H'))
|
||||
{
|
||||
$adop_icon = (file_exists(THEME."images/newsedit.png") ? THEME_ABS."images/newsedit.png" : e_IMAGE_ABS."generic/newsedit.png");
|
||||
return " <a href='".e_ADMIN_ABS."newspost.php?create.edit.".$this->news_item['news_id']."'><img src='".$adop_icon."' alt='' style='border:0' /></a>\n";
|
||||
return " <a href='".e_ADMIN_ABS."newspost.php?create.edit.".$this->news_item['news_id']."'><img src='".$adop_icon."' alt='' class='icon' /></a>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -310,6 +310,7 @@ class news_shortcodes
|
||||
}
|
||||
|
||||
if($this->param['caticon'] == ''){$this->param['caticon'] = 'border:0px';}
|
||||
//TODO use CSS class
|
||||
return "<a href='".$this->e107->url->getUrl('core:news', 'main', "action=cat&value={$this->news_item['news_category']}")."'><img style='".$this->param['caticon']."' src='".$category_icon."' alt='' /></a>";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user