|
--- cms/tslib/class.tslib_content.save.php Thu Feb 2 11:18:26 2006
|
|
+++ cms/tslib/class.tslib_content.php Thu Feb 2 12:02:03 2006
|
|
@@ -941,11 +941,16 @@
|
|
$imgConf['longdescURL'] = $conf['longdescURL'];
|
|
$imgConf['longdescURL.'] = $conf['longdescURL.'];
|
|
}
|
|
+ if (!strlen($imgConf['useMap']) && !is_array($imgConf['useMap.'])) {
|
|
+ $imgConf['useMap'] = $conf['useMap'];
|
|
+ $imgConf['useMap.'] = $conf['useMap.'];
|
|
+ }
|
|
} else {
|
|
$imgConf = array(
|
|
'altText' => $conf['altText'],
|
|
'titleText' => $conf['titleText'],
|
|
'longdescURL' => $conf['longdescURL'],
|
|
+ 'useMap' => $conf['useMap'],
|
|
'file' => $totalImagePath
|
|
);
|
|
}
|
|
@@ -2780,6 +2785,7 @@
|
|
$altText = trim($this->stdWrap($conf['altText'], $conf['altText.']));
|
|
$titleText = trim($this->stdWrap($conf['titleText'],$conf['titleText.']));
|
|
$longDesc = trim($this->stdWrap($conf['longdescURL'],$conf['longdescURL.']));
|
|
+ $useMap = trim($this->stdWrap($conf['useMap'],$conf['useMap.']));
|
|
|
|
// "alt":
|
|
$altParam = ' alt="'.htmlspecialchars(strip_tags($altText)).'"';
|
|
@@ -2800,6 +2806,10 @@
|
|
if ($longDesc) {
|
|
$altParam.= ' longdesc="'.htmlspecialchars(strip_tags($longDesc)).'"';
|
|
}
|
|
+ // "useMap" attribute
|
|
+ if ($longDesc) {
|
|
+ $altParam.= ' usemap="#'.htmlspecialchars(str_replace("#","",strip_tags($useMap))).'"';
|
|
+ }
|
|
|
|
return $altParam;
|
|
}
|
|
--- cms/locallang_ttc.save.xml Thu Feb 2 11:28:34 2006
|
|
+++ cms/locallang_ttc.xml Thu Feb 2 11:28:40 2006
|
|
@@ -137,6 +137,7 @@
|
|
<label index="image_altText">Alternative Text:</label>
|
|
<label index="image_titleText">Title Text:</label>
|
|
<label index="image_longdescURL">Long Description URL:</label>
|
|
+ <label index="image_useMap">use Image Map:</label>
|
|
<label index="cols">Table Columns:</label>
|
|
<label index="cols.I.0">Auto</label>
|
|
<label index="recursive.I.1">1 level</label>
|
|
--- cms/ext_tables.save.sql Thu Feb 2 11:31:52 2006
|
|
+++ cms/ext_tables.sql Thu Feb 2 11:32:08 2006
|
|
@@ -337,6 +337,7 @@
|
|
altText text NOT NULL,
|
|
titleText text NOT NULL,
|
|
longdescURL text NOT NULL,
|
|
+ useMap text NOT NULL,
|
|
header_layout varchar(30) DEFAULT '0' NOT NULL,
|
|
text_align varchar(6) DEFAULT '' NOT NULL,
|
|
text_face tinyint(3) unsigned DEFAULT '0' NOT NULL,
|
|
--- cms/tbl_tt_content.save.php Thu Feb 2 11:36:28 2006
|
|
+++ cms/tbl_tt_content.php Thu Feb 2 12:08:05 2006
|
|
@@ -629,6 +629,17 @@
|
|
'rows' => '3'
|
|
)
|
|
),
|
|
+ 'useMap' => Array (
|
|
+ 'exclude' => 1,
|
|
+ 'label' => 'LLL:EXT:cms/locallang_ttc.php:image_useMap',
|
|
+ 'config' => Array (
|
|
+ 'type' => 'input',
|
|
+ 'size' => '30',
|
|
+ 'max' => '256',
|
|
+ 'checkbox' => '',
|
|
+ 'eval' => 'trim',
|
|
+ )
|
|
+ ),
|
|
'cols' => Array (
|
|
'label' => 'LLL:EXT:cms/locallang_ttc.php:cols',
|
|
'config' => Array (
|
|
@@ -965,13 +976,13 @@
|
|
--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
|
|
--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
|
|
imagecaption;;5,
|
|
- altText;;;;1-1-1,titleText,longdescURL'),
|
|
+ altText;;;;1-1-1,titleText,longdescURL,useMap'),
|
|
'rte' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, bodytext;;;nowrap:richtext[*]:rte_transform[mode=ts_images-ts_reglinks];3-3-3'),
|
|
'image' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, image;;;;4-4-4, imageorient;;2, imagewidth;;13,
|
|
--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7,
|
|
--palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11,
|
|
imagecaption;;5,
|
|
- altText;;;;1-1-1,titleText,longdescURL'),
|
|
+ altText;;;;1-1-1,titleText,longdescURL,useMap'),
|
|
'bullets' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;;;3-3-3, bodytext;;9;nowrap, text_properties'),
|
|
'table' => Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, layout;;10;button;3-3-3, cols, bodytext;;9;nowrap:wizards[table], text_properties'),
|
|
'splash' => Array('showitem' => 'CType;;4;button;1-1-1, header;LLL:EXT:lang/locallang_general.php:LGL.name;;;2-2-2, splash_layout, bodytext;;;;3-3-3, image;;6'),
|
|
--- css_styled_content/static/setup.save.txt Thu Feb 2 11:57:00 2006
|
|
+++ css_styled_content/static/setup.txt Thu Feb 2 11:56:22 2006
|
|
@@ -387,6 +387,9 @@
|
|
longdescURL < .altText
|
|
longdescURL.field = longdescURL
|
|
|
|
+ useMap < .altText
|
|
+ useMap.field = useMap
|
|
+
|
|
emptyTitleHandling = {$styles.content.imgtext.emptyTitleHandling}
|
|
titleInLink = {$styles.content.imgtext.titleInLink}
|
|
titleInLinkAndImg = {$styles.content.imgtext.titleInLinkAndImg}
|