Skip to content
Permalink
Browse files

Added separate class name options for article summary and list image

  • Loading branch information...
slackero committed Nov 18, 2015
1 parent 30c911f commit 2b3c0abecbfa5e08a8fb62bbca5c6bb76d0e5966
@@ -334,6 +334,8 @@
'cp-anchor' => 'anchor-cp',
'jump-anchor' => 'anchor-article',
'image-thumb' => 'image-thumb',
'image-article-summary' => 'image-article-summary',
'image-article-list' => 'image-article-list',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
@@ -105,7 +105,7 @@
$content["redirect"]["code"] = LF . ' <noscript>' . LF;
$content["redirect"]["code"] .= ' <meta http-equiv="refresh" content="'.$content["redirect"]["timeout"].';URL=';
$content["redirect"]["code"] .= $content["redirect"]["link"];
$content["redirect"]["code"] .= '" />'.LF.' </noscript>' . LF;
$content["redirect"]["code"] .= '"'.HTML_TAG_CLOSE.LF.' </noscript>' . LF;
$content["redirect"]["code"] .= ' <script'.SCRIPT_ATTRIBUTE_TYPE.'>' . LF;
$content["redirect"]["code"] .= ' var redirectWin;' . LF;
if($content["redirect"]["timeout"]) {
@@ -235,11 +235,11 @@
if($thumb_image != false) {
$thumb_img = '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" '.$thumb_image[3];
$thumb_img .= ' alt="'.html_specialchars($caption[1]).'"';
if($caption[3]) {
$thumb_img .= ' title="'.html_specialchars($caption[3]).'"';
$thumb_img .= ' alt="'.html_specialchars($img_thumb_alt).'"';
if($img_thumb_title) {
$thumb_img .= ' title="'.html_specialchars($img_thumb_title).'"';
}
$thumb_img .= ' class="'.$template_default['classes']['image-thumb'].'" />';
$thumb_img .= ' class="'.$template_default['classes']['image-article-summary'].'"'.HTML_TAG_CLOSE;
$img_thumb_name = $thumb_image[0];
$img_thumb_rel = PHPWCMS_IMAGES.$thumb_image[0];
@@ -78,7 +78,7 @@ function plugin_size($mediatype, $player, $width, $height) {
function must_filled($c) {
//spaceholder for form fields that have to be filled
//with some content or has to be marked or like that
return intval($c) ? '<img src="img/article/fill_in_here.gif" alt="" />' : '';
return intval($c) ? '<img src="img/article/fill_in_here.gif" alt=""'.HTML_TAG_CLOSE : '';
}
function add_attribute($baseval, $attribute, $val, $space=" ") {
@@ -1132,7 +1132,7 @@ function list_articles_summary($alt=NULL, $topcount=99999, $template='') {
$caption[3] = empty($caption[3]) ? '' : ' title="'.html_specialchars($caption[3]).'"';
$caption[1] = html_specialchars($caption[1]);
$thumb_img = '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" '.$thumb_image[3].' alt="'.$caption[1].'"'.$caption[3].' class="'.$GLOBALS['template_default']['classes']['image-thumb'].'" />';
$thumb_img = '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" '.$thumb_image[3].' alt="'.$caption[1].'"'.$caption[3].' class="'.$GLOBALS['template_default']['classes']['image-article-list'].'"'.HTML_TAG_CLOSE;
if($article["article_image"]["list_zoom"]) {
@@ -3554,7 +3554,7 @@ function set_css_link($css='', $add_template_path=true) {
if($add_template_path) {
$GLOBALS['block']['custom_htmlhead'][$css_var] .= TEMPLATE_PATH;
}
$GLOBALS['block']['custom_htmlhead'][$css_var] .= $css.'" rel="stylesheet" type="text/css" />';
$GLOBALS['block']['custom_htmlhead'][$css_var] .= $css.'" rel="stylesheet" type="text/css"'.HTML_TAG_CLOSE;
}
function getFrontendEditLink($type='', $id_1=0, $id_2=0, $uid=0) {
@@ -334,6 +334,8 @@ function mb_convert_encoding($string='', $out_charset='utf-8', $in_charset='utf-
'cp-anchor' => 'anchor-cp',
'jump-anchor' => 'anchor-article',
'image-thumb' => 'image-thumb',
'image-article-summary' => 'image-article-summary',
'image-article-list' => 'image-article-list',
'image-wrapper' => 'image-wrapper',
'image-link' => 'image-link',
'image-zoom' => 'image-zoom',
@@ -9,7 +9,7 @@
*
**/
define('PHPWCMS_VERSION', '1.8.0');
define('PHPWCMS_RELEASE_DATE', '2015/10/25');
define('PHPWCMS_RELEASE_DATE', '2015/11/18');
define('PHPWCMS_REVISION', '541');
?>

0 comments on commit 2b3c0ab

Please sign in to comment.
You can’t perform that action at this time.