From 97710fe0215d7c260614450ea01392ea282e513e Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 14 Jul 2009 09:22:06 +0000 Subject: [PATCH] * Removed inline styles of the s9y media insertion, they will now properly utilize CSS classes (defined in the new file style_fallback.css). Also added support for entering "ALT" attributes to an tag, can be used as a media property if you add "ALT" to the list of "Media properties" in the main configuration. (garvinhicking) --- deployment/serendipity_editor.js | 24 ++++-- docs/NEWS | 7 ++ include/functions_entries_admin.inc.php | 1 + include/functions_images.inc.php | 8 +- include/tpl/config_local.inc.php | 2 +- lang/UTF-8/plugin_lang.php | 3 + lang/UTF-8/serendipity_lang_bg.inc.php | 3 + lang/UTF-8/serendipity_lang_cn.inc.php | 5 +- lang/UTF-8/serendipity_lang_cs.inc.php | 3 + lang/UTF-8/serendipity_lang_cz.inc.php | 3 + lang/UTF-8/serendipity_lang_da.inc.php | 5 +- lang/UTF-8/serendipity_lang_de.inc.php | 5 +- lang/UTF-8/serendipity_lang_en.inc.php | 5 +- lang/UTF-8/serendipity_lang_es.inc.php | 5 +- lang/UTF-8/serendipity_lang_fa.inc.php | 5 +- lang/UTF-8/serendipity_lang_fi.inc.php | 5 +- lang/UTF-8/serendipity_lang_fr.inc.php | 5 +- lang/UTF-8/serendipity_lang_hu.inc.php | 3 + lang/UTF-8/serendipity_lang_is.inc.php | 5 +- lang/UTF-8/serendipity_lang_it.inc.php | 3 + lang/UTF-8/serendipity_lang_ja.inc.php | 5 +- lang/UTF-8/serendipity_lang_ko.inc.php | 5 +- lang/UTF-8/serendipity_lang_nl.inc.php | 5 +- lang/UTF-8/serendipity_lang_no.inc.php | 5 +- lang/UTF-8/serendipity_lang_pl.inc.php | 3 + lang/UTF-8/serendipity_lang_pt.inc.php | 5 +- lang/UTF-8/serendipity_lang_pt_PT.inc.php | 3 + lang/UTF-8/serendipity_lang_ro.inc.php | 3 + lang/UTF-8/serendipity_lang_ru.inc.php | 5 +- lang/UTF-8/serendipity_lang_sa.inc.php | 3 + lang/UTF-8/serendipity_lang_se.inc.php | 3 + lang/UTF-8/serendipity_lang_ta.inc.php | 3 + lang/UTF-8/serendipity_lang_tn.inc.php | 5 +- lang/UTF-8/serendipity_lang_tr.inc.php | 3 + lang/UTF-8/serendipity_lang_tw.inc.php | 5 +- lang/UTF-8/serendipity_lang_zh.inc.php | 5 +- lang/addlang.txt | 4 +- lang/plugin_lang.php | 3 + lang/serendipity_lang_bg.inc.php | 3 + lang/serendipity_lang_cn.inc.php | 3 + lang/serendipity_lang_cs.inc.php | 3 + lang/serendipity_lang_cz.inc.php | 3 + lang/serendipity_lang_da.inc.php | 3 + lang/serendipity_lang_de.inc.php | 3 + lang/serendipity_lang_en.inc.php | 3 + lang/serendipity_lang_es.inc.php | 3 + lang/serendipity_lang_fa.inc.php | 3 + lang/serendipity_lang_fi.inc.php | 3 + lang/serendipity_lang_fr.inc.php | 3 + lang/serendipity_lang_hu.inc.php | 3 + lang/serendipity_lang_is.inc.php | 3 + lang/serendipity_lang_it.inc.php | 3 + lang/serendipity_lang_ja.inc.php | 3 + lang/serendipity_lang_ko.inc.php | 3 + lang/serendipity_lang_nl.inc.php | 3 + lang/serendipity_lang_no.inc.php | 3 + lang/serendipity_lang_pl.inc.php | 3 + lang/serendipity_lang_pt.inc.php | 3 + lang/serendipity_lang_pt_PT.inc.php | 3 + lang/serendipity_lang_ro.inc.php | 3 + lang/serendipity_lang_ru.inc.php | 3 + lang/serendipity_lang_sa.inc.php | 3 + lang/serendipity_lang_se.inc.php | 3 + lang/serendipity_lang_ta.inc.php | 3 + lang/serendipity_lang_tn.inc.php | 3 + lang/serendipity_lang_tr.inc.php | 3 + lang/serendipity_lang_tw.inc.php | 3 + lang/serendipity_lang_zh.inc.php | 3 + serendipity.css.php | 6 ++ serendipity_config.inc.php | 2 +- serendipity_editor.js | 15 ++-- templates/default/admin/media_choose.tpl | 6 ++ templates/default/style_fallback.css | 91 +++++++++++++++++++++++ 73 files changed, 350 insertions(+), 38 deletions(-) create mode 100644 templates/default/style_fallback.css diff --git a/deployment/serendipity_editor.js b/deployment/serendipity_editor.js index e9d01dbf..e4a46d29 100644 --- a/deployment/serendipity_editor.js +++ b/deployment/serendipity_editor.js @@ -58,11 +58,20 @@ function IEWrap(txtarea, lft, rgt) { } function wrapSelection(txtarea, lft, rgt) { + if (txtarea.scrollTop) { + scrollPos = txtarea.scrollTop; + } + if (document.all) { IEWrap(txtarea, lft, rgt); } else if (document.getElementById) { mozWrap(txtarea, lft, rgt); } + + if (scrollPos) { + txtarea.focus(); + txtarea.scrollTop = scrollPos; + } } function wrapSelectionWithLink(txtarea) { @@ -270,6 +279,7 @@ function serendipity_imageSelector_done(textarea) var insert = ''; var img = ''; var src = ''; + var alt = ''; var f = document.forms['serendipity[selForm]'].elements; if (f['serendipity[linkThumbnail]'] && f['serendipity[linkThumbnail]'][0].checked == true) { @@ -308,11 +318,9 @@ function serendipity_imageSelector_done(textarea) } } - if (document.getElementById('serendipity_imagecomment').value != '') { - styled = false; - } else { - styled = true; - } + alt = f['serendipity[alt]'].value; + + styled = false; // Templates now do this. imgID = 0; if (f['imgID']) { @@ -325,12 +333,12 @@ function serendipity_imageSelector_done(textarea) floating = 'center'; if (f['serendipity[align]'][0].checked == true) { - img = "\"\""; + img = "\"""; } else if (f['serendipity[align]'][1].checked == true) { - img = "\"\""; + img = "\"""; floating = 'left'; } else if (f['serendipity[align]'][2].checked == true) { - img = "\"\""; + img = "\"""; floating = 'right'; } diff --git a/docs/NEWS b/docs/NEWS index 95270f47..89501579 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,13 @@ Version 1.5 () ------------------------------------------------------------------------ + * Removed inline styles of the s9y media insertion, they will now + properly utilize CSS classes (defined in the new file + style_fallback.css). Also added support for entering "ALT" + attributes to an tag, can be used as a media property if + you add "ALT" to the list of "Media properties" in the + main configuration. (garvinhicking) + * Filter entries only by authors that have written at least one article (garvinhicking) diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 9ef60c2c..55781486 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -583,6 +583,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { (defined('LANG_DIRECTION') ? LANG_DIRECTION : 'ltr') ), + file_get_contents(serendipity_getTemplateFile('style_fallback.css', 'serendipityPath')) . file_get_contents(serendipity_getTemplateFile('htmlarea.css', 'serendipityPath')) ); ?> diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index 9a5daa34..4315b55f 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -659,7 +659,7 @@ function serendipity_makeThumbnail($file, $directory = '', $size = false, $thumb } $newSize = $r['width'] . 'x' . $r['height']; if ($fdim['mime'] == 'application/pdf') { - $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -flatten -scale '. serendipity_escapeshellarg($newSize) .' '. serendipity_escapeshellarg($infile) .' '. serendipity_escapeshellarg($outfile . '.png'); + $cmd = escapeshellcmd($serendipity['convert']) . ' -antialias -flatten -scale '. serendipity_escapeshellarg($newSize) .' "'. serendipity_escapeshellarg($infile) .'[0]" '. serendipity_escapeshellarg($outfile . '.png'); } else { if (!$force_resize && serendipity_ini_bool(ini_get('safe_mode')) === false) { $newSize .= '>'; // Tell imagemagick to not enlarge small images, only works if safe_mode is off (safe_mode turns > in to \>) @@ -2384,6 +2384,7 @@ function serendipity_parseMediaProperties(&$dprops, &$keywords, &$media, &$props 'COPYRIGHT' => array('Creator'), 'TITLE' => array('Title', 'ObjectName'), 'COMMENT1' => array('Description'), + 'ALT' => array('Title', 'ObjectName'), 'COMMENT2' => array('Keywords', 'PhotoLocation') ); } @@ -2414,6 +2415,11 @@ function serendipity_parseMediaProperties(&$dprops, &$keywords, &$media, &$props $default_iptc_val = $media['realname']; } + case 'ALT': + if (!isset($default_iptc_val)) { + $default_iptc_val = ''; + } + case 'COMMENT1': if (!isset($default_iptc_val)) { $default_iptc_val = ''; diff --git a/include/tpl/config_local.inc.php b/include/tpl/config_local.inc.php index df66d604..55f3153f 100644 --- a/include/tpl/config_local.inc.php +++ b/include/tpl/config_local.inc.php @@ -607,7 +607,7 @@ 'description' => MEDIA_PROP_DESC . MEDIA_PROP_MULTIDESC, 'type' => 'string', 'permission' => 'blogConfiguration', - 'default' => 'DPI:IMAGE;RUN_LENGTH:VIDEO:AUDIO;DATE;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI'), + 'default' => 'DPI:IMAGE;RUN_LENGTH:VIDEO:AUDIO;DATE;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI;ALT'), array('var' => 'mediaKeywords', 'title' => MEDIA_KEYWORDS, diff --git a/lang/UTF-8/plugin_lang.php b/lang/UTF-8/plugin_lang.php index d2f2f906..ed4605df 100644 --- a/lang/UTF-8/plugin_lang.php +++ b/lang/UTF-8/plugin_lang.php @@ -134,3 +134,6 @@ foreach($const['missing'] AS $file => $constants) { @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_bg.inc.php b/lang/UTF-8/serendipity_lang_bg.inc.php index e74fd2d9..687b842d 100644 --- a/lang/UTF-8/serendipity_lang_bg.inc.php +++ b/lang/UTF-8/serendipity_lang_bg.inc.php @@ -939,3 +939,6 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'Ако установите тази опция на "Force", ще можете да пренасочвате RSS емисиите към всеки webservice, не само към FeedBurner. Вижте опцията "Feedburner ID" по-долу за да въведете абсолютен URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Коментарът очаква одобрение от потребителя'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_cn.inc.php b/lang/UTF-8/serendipity_lang_cn.inc.php index 7fcf5449..f6f809b6 100644 --- a/lang/UTF-8/serendipity_lang_cn.inc.php +++ b/lang/UTF-8/serendipity_lang_cn.inc.php @@ -1,4 +1,4 @@ - @@ -945,3 +945,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_de.inc.php b/lang/UTF-8/serendipity_lang_de.inc.php index 32fd304f..9fc6c4d3 100644 --- a/lang/UTF-8/serendipity_lang_de.inc.php +++ b/lang/UTF-8/serendipity_lang_de.inc.php @@ -1,4 +1,4 @@ -, @@ -964,3 +964,6 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_fa.inc.php b/lang/UTF-8/serendipity_lang_fa.inc.php index 5ad20db8..9497a55a 100644 --- a/lang/UTF-8/serendipity_lang_fa.inc.php +++ b/lang/UTF-8/serendipity_lang_fa.inc.php @@ -1,4 +1,4 @@ - @@ -948,3 +948,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_fi.inc.php b/lang/UTF-8/serendipity_lang_fi.inc.php index 8059aef5..7a3ad49f 100644 --- a/lang/UTF-8/serendipity_lang_fi.inc.php +++ b/lang/UTF-8/serendipity_lang_fi.inc.php @@ -1,4 +1,4 @@ - @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_fr.inc.php b/lang/UTF-8/serendipity_lang_fr.inc.php index 72279f79..beb3ea3b 100644 --- a/lang/UTF-8/serendipity_lang_fr.inc.php +++ b/lang/UTF-8/serendipity_lang_fr.inc.php @@ -1,4 +1,4 @@ - @@ -953,3 +953,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_hu.inc.php b/lang/UTF-8/serendipity_lang_hu.inc.php index 12141faa..ffaa65c8 100644 --- a/lang/UTF-8/serendipity_lang_hu.inc.php +++ b/lang/UTF-8/serendipity_lang_hu.inc.php @@ -944,3 +944,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_is.inc.php b/lang/UTF-8/serendipity_lang_is.inc.php index 2d0d6b4b..e3132fb1 100644 --- a/lang/UTF-8/serendipity_lang_is.inc.php +++ b/lang/UTF-8/serendipity_lang_is.inc.php @@ -1,4 +1,4 @@ - @@ -947,3 +947,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_it.inc.php b/lang/UTF-8/serendipity_lang_it.inc.php index f2cf5858..c1b85072 100644 --- a/lang/UTF-8/serendipity_lang_it.inc.php +++ b/lang/UTF-8/serendipity_lang_it.inc.php @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_ja.inc.php b/lang/UTF-8/serendipity_lang_ja.inc.php index 19921347..1abee4e9 100644 --- a/lang/UTF-8/serendipity_lang_ja.inc.php +++ b/lang/UTF-8/serendipity_lang_ja.inc.php @@ -1,4 +1,4 @@ -, 2004-2005. @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'ユーザーの確認を保留しています'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_ko.inc.php b/lang/UTF-8/serendipity_lang_ko.inc.php index 55e98060..0e290923 100644 --- a/lang/UTF-8/serendipity_lang_ko.inc.php +++ b/lang/UTF-8/serendipity_lang_ko.inc.php @@ -1,4 +1,4 @@ - @@ -949,3 +949,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_nl.inc.php b/lang/UTF-8/serendipity_lang_nl.inc.php index fed2581b..080d51c3 100644 --- a/lang/UTF-8/serendipity_lang_nl.inc.php +++ b/lang/UTF-8/serendipity_lang_nl.inc.php @@ -1,4 +1,4 @@ - @@ -948,3 +948,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_no.inc.php b/lang/UTF-8/serendipity_lang_no.inc.php index 277a36c9..3570cba9 100644 --- a/lang/UTF-8/serendipity_lang_no.inc.php +++ b/lang/UTF-8/serendipity_lang_no.inc.php @@ -1,4 +1,4 @@ - @@ -949,3 +949,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_pl.inc.php b/lang/UTF-8/serendipity_lang_pl.inc.php index 8c8d559f..a0e146a4 100644 --- a/lang/UTF-8/serendipity_lang_pl.inc.php +++ b/lang/UTF-8/serendipity_lang_pl.inc.php @@ -945,3 +945,6 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_pt.inc.php b/lang/UTF-8/serendipity_lang_pt.inc.php index ea6f19f2..552fbb94 100644 --- a/lang/UTF-8/serendipity_lang_pt.inc.php +++ b/lang/UTF-8/serendipity_lang_pt.inc.php @@ -1,4 +1,4 @@ - @@ -951,3 +951,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_pt_PT.inc.php b/lang/UTF-8/serendipity_lang_pt_PT.inc.php index 99e056d2..578e41b6 100644 --- a/lang/UTF-8/serendipity_lang_pt_PT.inc.php +++ b/lang/UTF-8/serendipity_lang_pt_PT.inc.php @@ -958,3 +958,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_ro.inc.php b/lang/UTF-8/serendipity_lang_ro.inc.php index f527dcd8..4c448d12 100644 --- a/lang/UTF-8/serendipity_lang_ro.inc.php +++ b/lang/UTF-8/serendipity_lang_ro.inc.php @@ -947,3 +947,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_ru.inc.php b/lang/UTF-8/serendipity_lang_ru.inc.php index d018f7d5..5e342dbe 100644 --- a/lang/UTF-8/serendipity_lang_ru.inc.php +++ b/lang/UTF-8/serendipity_lang_ru.inc.php @@ -1,4 +1,4 @@ - @@ -950,3 +950,6 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_sa.inc.php b/lang/UTF-8/serendipity_lang_sa.inc.php index 00e3cdd3..f1457604 100644 --- a/lang/UTF-8/serendipity_lang_sa.inc.php +++ b/lang/UTF-8/serendipity_lang_sa.inc.php @@ -865,3 +865,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_se.inc.php b/lang/UTF-8/serendipity_lang_se.inc.php index a539bc5b..6f73856a 100644 --- a/lang/UTF-8/serendipity_lang_se.inc.php +++ b/lang/UTF-8/serendipity_lang_se.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_ta.inc.php b/lang/UTF-8/serendipity_lang_ta.inc.php index 0a3341d3..12ad1e7f 100644 --- a/lang/UTF-8/serendipity_lang_ta.inc.php +++ b/lang/UTF-8/serendipity_lang_ta.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_tn.inc.php b/lang/UTF-8/serendipity_lang_tn.inc.php index 9389613f..956f9e84 100644 --- a/lang/UTF-8/serendipity_lang_tn.inc.php +++ b/lang/UTF-8/serendipity_lang_tn.inc.php @@ -1,4 +1,4 @@ - @@ -950,3 +950,6 @@ $i18n_unknown = 'tw'; @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_tr.inc.php b/lang/UTF-8/serendipity_lang_tr.inc.php index 86d094f8..d957dfb3 100644 --- a/lang/UTF-8/serendipity_lang_tr.inc.php +++ b/lang/UTF-8/serendipity_lang_tr.inc.php @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_tw.inc.php b/lang/UTF-8/serendipity_lang_tw.inc.php index 2fb7c1ff..9e9c2483 100644 --- a/lang/UTF-8/serendipity_lang_tw.inc.php +++ b/lang/UTF-8/serendipity_lang_tw.inc.php @@ -1,4 +1,4 @@ - @@ -951,3 +951,6 @@ $i18n_unknown = 'tw'; @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/UTF-8/serendipity_lang_zh.inc.php b/lang/UTF-8/serendipity_lang_zh.inc.php index b4c22610..d973378b 100644 --- a/lang/UTF-8/serendipity_lang_zh.inc.php +++ b/lang/UTF-8/serendipity_lang_zh.inc.php @@ -1,4 +1,4 @@ - $constants) { @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_bg.inc.php b/lang/serendipity_lang_bg.inc.php index c77457d5..9aa9593a 100644 --- a/lang/serendipity_lang_bg.inc.php +++ b/lang/serendipity_lang_bg.inc.php @@ -939,3 +939,6 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', ' "Force", RSS webservice, FeedBurner. "Feedburner ID" - URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', ' '); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_cn.inc.php b/lang/serendipity_lang_cn.inc.php index 99718d74..40ef9cac 100644 --- a/lang/serendipity_lang_cn.inc.php +++ b/lang/serendipity_lang_cn.inc.php @@ -948,3 +948,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_cs.inc.php b/lang/serendipity_lang_cs.inc.php index 6f143d1c..ce46bd97 100644 --- a/lang/serendipity_lang_cs.inc.php +++ b/lang/serendipity_lang_cs.inc.php @@ -956,3 +956,6 @@ $i18n_filename_to = array ( @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'Pokud nastavte tuto volbu na "Vynutit", mete pesmrovat RSS kanl na jakoukoliv webovou slubu, nejen na FeedBurner. Podvejte se ne na volbu "Feedburner ID" pro zadn absolutn adresy.'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'ek na potvrzen uivatelem'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_cz.inc.php b/lang/serendipity_lang_cz.inc.php index 750d6d73..5d05198f 100644 --- a/lang/serendipity_lang_cz.inc.php +++ b/lang/serendipity_lang_cz.inc.php @@ -956,3 +956,6 @@ $i18n_filename_to = array ( @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'Pokud nastavte tuto volbu na "Vynutit", mete pesmrovat RSS kanl na jakoukoliv webovou slubu, nejen na FeedBurner. Podvejte se ne na volbu "Feedburner ID" pro zadn absolutn adresy.'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'ek na potvrzen uivatelem'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_da.inc.php b/lang/serendipity_lang_da.inc.php index fa239e6a..e0329a1a 100644 --- a/lang/serendipity_lang_da.inc.php +++ b/lang/serendipity_lang_da.inc.php @@ -945,3 +945,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_de.inc.php b/lang/serendipity_lang_de.inc.php index c1a2b941..9aa7fa10 100644 --- a/lang/serendipity_lang_de.inc.php +++ b/lang/serendipity_lang_de.inc.php @@ -949,3 +949,6 @@ @define('INSTALL_OFFSET_ON_SERVER_TIME', 'Worauf basiert die Zeitdifferenz zur Server-Zeitzone?'); @define('INSTALL_OFFSET_ON_SERVER_TIME_DESC', 'Eintragszeiten nach Server-Zeitzone eintragen oder nicht. YES whlt die Server-Zeitzone als Basis, NO whlt GMT.'); @define('NOT_WRITABLE_SPARTACUS', ' (Nur notwendig wenn Spartacus zur Plugin-Installation ber das Internet genutzt werden soll)'); +@define('MEDIA_ALT', 'ALT-Attribut (Bildinhalt oder Kurzbeschreibung)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Bildinhalt (Zusammenfassung fr das ALT-Attribut)'); + diff --git a/lang/serendipity_lang_en.inc.php b/lang/serendipity_lang_en.inc.php index 8696772f..b80f2f35 100644 --- a/lang/serendipity_lang_en.inc.php +++ b/lang/serendipity_lang_en.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_es.inc.php b/lang/serendipity_lang_es.inc.php index 55062d3f..37d46082 100644 --- a/lang/serendipity_lang_es.inc.php +++ b/lang/serendipity_lang_es.inc.php @@ -964,3 +964,6 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_fa.inc.php b/lang/serendipity_lang_fa.inc.php index 7adb2fa1..ba925e9a 100644 --- a/lang/serendipity_lang_fa.inc.php +++ b/lang/serendipity_lang_fa.inc.php @@ -948,3 +948,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_fi.inc.php b/lang/serendipity_lang_fi.inc.php index 544398e3..8f39b6f1 100644 --- a/lang/serendipity_lang_fi.inc.php +++ b/lang/serendipity_lang_fi.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_fr.inc.php b/lang/serendipity_lang_fr.inc.php index 903efc49..3dc53271 100644 --- a/lang/serendipity_lang_fr.inc.php +++ b/lang/serendipity_lang_fr.inc.php @@ -953,3 +953,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_hu.inc.php b/lang/serendipity_lang_hu.inc.php index 0e9f7c60..d601f21f 100644 --- a/lang/serendipity_lang_hu.inc.php +++ b/lang/serendipity_lang_hu.inc.php @@ -944,3 +944,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_is.inc.php b/lang/serendipity_lang_is.inc.php index d8178a89..62333c6c 100644 --- a/lang/serendipity_lang_is.inc.php +++ b/lang/serendipity_lang_is.inc.php @@ -947,3 +947,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_it.inc.php b/lang/serendipity_lang_it.inc.php index bbb1b89e..bd4c1fa4 100644 --- a/lang/serendipity_lang_it.inc.php +++ b/lang/serendipity_lang_it.inc.php @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_ja.inc.php b/lang/serendipity_lang_ja.inc.php index fc8139cf..4240dd02 100644 --- a/lang/serendipity_lang_ja.inc.php +++ b/lang/serendipity_lang_ja.inc.php @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'ユーザーの確認を保留しています'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php index 027b9b24..e4eef43f 100644 --- a/lang/serendipity_lang_ko.inc.php +++ b/lang/serendipity_lang_ko.inc.php @@ -949,3 +949,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php index 605bd33e..c1207110 100644 --- a/lang/serendipity_lang_nl.inc.php +++ b/lang/serendipity_lang_nl.inc.php @@ -948,3 +948,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php index a5603090..9dba95cc 100644 --- a/lang/serendipity_lang_no.inc.php +++ b/lang/serendipity_lang_no.inc.php @@ -949,3 +949,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_pl.inc.php b/lang/serendipity_lang_pl.inc.php index 02d950dc..ffc31648 100644 --- a/lang/serendipity_lang_pl.inc.php +++ b/lang/serendipity_lang_pl.inc.php @@ -945,3 +945,6 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php index 69b15ef1..ee8adde7 100644 --- a/lang/serendipity_lang_pt.inc.php +++ b/lang/serendipity_lang_pt.inc.php @@ -951,3 +951,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php index 9cb88283..914e1688 100644 --- a/lang/serendipity_lang_pt_PT.inc.php +++ b/lang/serendipity_lang_pt_PT.inc.php @@ -958,3 +958,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php index f527dcd8..4c448d12 100644 --- a/lang/serendipity_lang_ro.inc.php +++ b/lang/serendipity_lang_ro.inc.php @@ -947,3 +947,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php index da49df4b..c1023d09 100644 --- a/lang/serendipity_lang_ru.inc.php +++ b/lang/serendipity_lang_ru.inc.php @@ -950,3 +950,6 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_sa.inc.php b/lang/serendipity_lang_sa.inc.php index 3ca6178c..813547e3 100644 --- a/lang/serendipity_lang_sa.inc.php +++ b/lang/serendipity_lang_sa.inc.php @@ -865,3 +865,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php index 2aef3d8d..f8386791 100644 --- a/lang/serendipity_lang_se.inc.php +++ b/lang/serendipity_lang_se.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_ta.inc.php b/lang/serendipity_lang_ta.inc.php index 0a3341d3..12ad1e7f 100644 --- a/lang/serendipity_lang_ta.inc.php +++ b/lang/serendipity_lang_ta.inc.php @@ -946,3 +946,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php index 421bcf04..021a59ab 100644 --- a/lang/serendipity_lang_tn.inc.php +++ b/lang/serendipity_lang_tn.inc.php @@ -950,3 +950,6 @@ $i18n_unknown = 'tw'; @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_tr.inc.php b/lang/serendipity_lang_tr.inc.php index 86d094f8..d957dfb3 100644 --- a/lang/serendipity_lang_tr.inc.php +++ b/lang/serendipity_lang_tr.inc.php @@ -950,3 +950,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php index 3477ac05..518fb56c 100644 --- a/lang/serendipity_lang_tw.inc.php +++ b/lang/serendipity_lang_tw.inc.php @@ -951,3 +951,6 @@ $i18n_unknown = 'tw'; @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php index 945bf268..8cb2aaa5 100644 --- a/lang/serendipity_lang_zh.inc.php +++ b/lang/serendipity_lang_zh.inc.php @@ -947,3 +947,6 @@ @define('SYNDICATION_PLUGIN_FEEDBURNERID_FORWARD2', 'If you set this option to "Force" you can forward the RSS feed to any webservice, not only FeedBurner. Look at the option "Feedburner ID" below to enter an absolute URL)'); @define('COMMENTS_FILTER_NEED_CONFIRM', 'Pending user confirmation'); @define('NOT_WRITABLE_SPARTACUS', ' (Only required when you plan to use Spartacus plugin for remote plugin download)'); +@define('MEDIA_ALT', 'ALT-Attribute (depiction or short description)'); +@define('MEDIA_PROPERTY_COMMENT1', 'Depiction (summary for ALT-Attribute)'); + diff --git a/serendipity.css.php b/serendipity.css.php index 92c4a9f5..4ba23c13 100644 --- a/serendipity.css.php +++ b/serendipity.css.php @@ -67,7 +67,13 @@ if (IS_installed === false) { } +// First all of our fallback classes, so they can be overridden by the usual template. $out = serendipity_printStylesheet( + serendipity_getTemplateFile('style_fallback.css', 'serendipityPath'), + serendipity_getTemplateFile('style_fallback.css', '') +); + +$out .= serendipity_printStylesheet( serendipity_getTemplateFile($css_file, 'serendipityPath'), serendipity_getTemplateFile($css_file, '') ); diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index 104ba4fe..ee39ae09 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -90,7 +90,7 @@ if (!isset($serendipity['RSSfetchLimit'])) { } if (!isset($serendipity['mediaProperties'])) { - $serendipity['mediaProperties'] = 'DPI;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI'; + $serendipity['mediaProperties'] = 'DPI;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI;ALT'; } if (!isset($serendipity['use_PEAR'])) { diff --git a/serendipity_editor.js b/serendipity_editor.js index 5d766be1..e4a46d29 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -279,6 +279,7 @@ function serendipity_imageSelector_done(textarea) var insert = ''; var img = ''; var src = ''; + var alt = ''; var f = document.forms['serendipity[selForm]'].elements; if (f['serendipity[linkThumbnail]'] && f['serendipity[linkThumbnail]'][0].checked == true) { @@ -317,11 +318,9 @@ function serendipity_imageSelector_done(textarea) } } - if (document.getElementById('serendipity_imagecomment').value != '') { - styled = false; - } else { - styled = true; - } + alt = f['serendipity[alt]'].value; + + styled = false; // Templates now do this. imgID = 0; if (f['imgID']) { @@ -334,12 +333,12 @@ function serendipity_imageSelector_done(textarea) floating = 'center'; if (f['serendipity[align]'][0].checked == true) { - img = "\"\""; + img = "\"""; } else if (f['serendipity[align]'][1].checked == true) { - img = "\"\""; + img = "\"""; floating = 'left'; } else if (f['serendipity[align]'][2].checked == true) { - img = "\"\""; + img = "\"""; floating = 'right'; } diff --git a/templates/default/admin/media_choose.tpl b/templates/default/admin/media_choose.tpl index c0db5d81..3316a569 100644 --- a/templates/default/admin/media_choose.tpl +++ b/templates/default/admin/media_choose.tpl @@ -251,6 +251,12 @@ {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagecomment' eventData=$media.file}
+ + {$CONST.MEDIA_ALT}: +
+ + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_alt' eventData=$media.file} +
{/if} {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file} diff --git a/templates/default/style_fallback.css b/templates/default/style_fallback.css new file mode 100644 index 00000000..2d362bf0 --- /dev/null +++ b/templates/default/style_fallback.css @@ -0,0 +1,91 @@ +/* This is the templates/default/style_fallback.css file. + It emits CSS rules that all templates should have. + Classes are declared on top of the file, so if you + want to make changes in your own template, you + should override the rules on the bottom of your + style.css template. + IT IS NOT ADVISED TO CREATE YOUR OWN style_fallback.css FILE! */ + +/* Default image classes for left/right/usual layout */ +.serendipity_image_center { + border: 0px; + padding-left: 5px; + padding-right: 5px; +} + +.serendipity_image_left { + float: left; + border: 0px; + padding-left: 5px; + padding-right: 5px; +} + +.serendipity_image_right { + float: right; + border: 0px; + padding-left: 5px; + padding-right: 5px; +} + +/* Default listing without spacers */ +.plainList { + list-style: none; + margin-left: 0; + padding-left: 0; +} + +/* Messages: Centered, important, notice */ +.serendipity_center { + margin-left: auto; + margin-right: auto; + text-align: center; +} + +.serendipity_msg_important { + color: red; +} + +.serendipity_msg_notice { + color: green; +} + +/* Embedded images with comments inside the s9y image manager */ +.serendipity_imageComment_center, +.serendipity_imageComment_left, +.serendipity_imageComment_right { + border: 1px solid #DDDDDD; + background-color: #EFEFEF; + margin: 3px; + padding: 3px; + text-align: center; +} + +.serendipity_imageComment_center { + margin: auto; +} + +.serendipity_imageComment_left { + float: left; +} + +.serendipity_imageComment_right { + float: right; +} + +.serendipity_imageComment_img, +.serendipity_imageComment_img img { + margin: 0px; + padding: 0px; + text-align: center; +} + +.serendipity_imageComment_txt { + border-top: 1px solid #DDDDDD; + margin: 0px; + padding: 3px; + clear: both; + font-size: 8pt; + text-align: center; +} + +/* END OF style_fallback.css */ \ No newline at end of file