if (f['imgID']) {
imgID = f['imgID'].value;
}
+ baseURL = '';
+ if (f['baseURL']) {
+ baseURL = f['baseURL'].value;
+ }
floating = 'center';
if (f['serendipity[align]'][0].checked == true) {
}
if (f['serendipity[isLink]'][1].checked == true) {
- insert = "<a class='serendipity_image_link' href='" + f['serendipity[url]'].value + "'>" + img + "</a>";
+ if (f['serendipity[target]'].selectedIndex) {
+ targetval = f['serendipity[target]'].options[f['serendipity[target]'].selectedIndex].value;
+ } else {
+ targetval = '';
+ }
+
+ prepend = '';
+ ilink = f['serendipity[url]'].value;
+ if (!targetval || targetval == 'none') {
+ itarget = '';
+ } else if (targetval == 'js') {
+ itarget = ' onclick="F1 = window.open(\'' + f['serendipity[url]'].value + '\',\'Zoom\',\''
+ + 'height=' + (parseInt(f['imgHeight'].value) + 15) + ','
+ + 'width=' + (parseInt(f['imgWidth'].value) + 15) + ','
+ + 'top=' + (screen.height - f['imgHeight'].value) /2 + ','
+ + 'left=' + (screen.width - f['imgWidth'].value) /2 + ','
+ + 'toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes\'); return false;"';
+ } else if (targetval == '_blank') {
+ itarget = ' target="_blank"';
+ } else if (targetval == 'plugin') {
+ itarget = ' id="s9yisphref' + imgID + '"';
+ prepend = '<a title="' + ilink + '" id="s9yisp' + imgID + '"></a>';
+ ilink = baseURL + 'serendipity_admin_image_selector.php?serendipity[step]=showItem&serendipity[image]=' + imgID;
+ }
+
+ insert = prepend + "<a class='serendipity_image_link' href='" + ilink + "'" + itarget + ">" + img + "</a>";
} else {
insert = img;
}
- Search/Filter for specific properties/keywords.
- Enhanced media filter for keywords
- Use entered comments in the "You choose..." picking page
+ - Integrate new page for viewing images with media properties
+ through serendipity_admin_image_selector.php?serendipity[image]=X
+ - Integrate imageselectorplus plugin options for giving a target
+ to links
TODO:
- - Store uploader authorid (new DB column required)
-
- New option for image_Selector to save a specific sized version
(?fid=XXX&targetSize=XX)
- Track referrers by image selector and store as property
if (isset($_REQUEST['go_properties'])) {
serendipity_showPropertyForm($new_media);
+ } else {
+ $hidden = array(
+ 'author' => $serendipity['serendipityUser'],
+ 'authorid' => $serendipity['authorid']
+ );
+
+ foreach($new_media AS $nm) {
+ serendipity_insertMediaProperty('base_hidden', '', $nm['image_id'], $hidden);
+ }
}
break;
$keywords[$i] = serendipity_db_escape_string($keyword);
}
- $join_properties = $join_keywords = $join_filterproperties = false;
+ $join_properties = $join_keywords = $join_filterproperties = $join_hiddenproperties = false;
if (count($keywords) > 0) {
$where_sql .= " AND (mk.property IN ('" . implode("', '", $keywords) . "'))\n";
$join_keywords = true;
} else {
$where_sql .= " AND ($f >= " . (int)$fval['from'] . " AND $f <= " . (int)$fval['to'] . ")\n";
}
+ } elseif ($f == 'i.authorid') {
+ $where_sql .= " AND (
+ (hp.property = 'authorid' AND hp.value = " . (int)$fval . ")
+ OR
+ (i.authorid = " . (int)$fval . ")
+ )\n";
+ $join_hiddenproperties = true;
} elseif ($orderfields[$f]['type'] == 'int') {
if (substr($f, 0, 3) === 'bp.') {
$realf = substr($f, 3);
ON (bp2.mediaid = i.id AND bp2.property_group = 'base_property')\n";
}
+ if ($join_hiddenproperties) {
+ $cond['joins'] .= "\n LEFT OUTER JOIN {$serendipity['dbPrefix']}mediaproperties AS hp
+ ON (hp.mediaid = i.id AND hp.property_group = 'base_hidden')\n";
+ }
+
if ($serendipity['dbType'] == 'postgres') {
$cond['group'] = '';
$cond['distinct'] = 'DISTINCT';
return array();
}
- $total_query = "SELECT count(i.id)
+ $total_query = "SELECT count(DISTINCT i.id)
$basequery";
$total_rs = serendipity_db_query($total_query, true, 'num');
if (is_array($total_rs)) {
$mirror = array();
serendipity_checkPropertyAccess($new_media, $mirror, 'read');
- $dprops = explode(';', $serendipity['mediaProperties']);
- $keywords = explode(';', $serendipity['mediaKeywords']);
-
$editform_hidden = '';
if (isset($GLOBALS['image_selector_addvars']) && is_array($GLOBALS['image_selector_addvars'])) {
// These variables may come from serendipity_admin_image_selector.php to show embedded upload form
}
}
+ $dprops = explode(';', $serendipity['mediaProperties']);
+ $keywords = explode(';', $serendipity['mediaKeywords']);
+
$now = serendipity_serverOffsetHour();
$show = array();
foreach($new_media AS $idx => $media) {
serendipity_plugin_api::hook_event('media_getproperties_cached', $show[$idx]['metadata'], $show[$idx]['realfile']);
}
- foreach($dprops AS $prop) {
- $type = 'input';
- $parts = explode(':', trim($prop));
+ serendipity_parseMediaProperties($dprops, $keywords, $show[$idx], $props, $keywordsPerBlock, $is_edit);
+ }
- if (in_array('MULTI', $parts)) {
- $type = 'textarea';
- }
+ $smarty_vars = array(
+ 'is_edit' => $is_edit,
+ 'editform_hidden' => $editform_hidden,
+ 'keywordsPerBlock' => $keywordsPerBlock,
+ 'keywords' => $keywords,
+ 'dprops' => $dprops
+ );
+ return serendipity_showMedia(
+ $show,
+ $mirror,
+ $url,
+ false,
+ 1,
+ false,
+ $smarty_vars);
+}
- if (preg_match('@(AUDIO|VIDEO|DOCUMENT|IMAGE|ARCHIVE|BINARY)@i', $prop)) {
- $show_item = false;
- if ($show[$idx]['mediatype'] == 'video' && in_array('VIDEO', $parts)) {
- $show_item = true;
- }
+/**
+ * Parse/Convert properties
+ *
+ * @param array Holds the property key array
+ * @param array Holds the keyword key array
+ * @param int Holds the media metadata
+ * @param int Holds the media properties
+ * @param int How many keyword checkboxes to display next to each other?
+ * @param boolean Can existing data be modified?
+ * @return boolean
+ *
+ */
+function serendipity_parseMediaProperties(&$dprops, &$keywords, &$media, &$props, $keywordsPerBlock, $is_edit) {
+ global $serendipity;
- if ($show[$idx]['mediatype'] == 'audio' && in_array('AUDIO', $parts)) {
- $show_item = true;
- }
+ if (!is_array($dprops)) {
+ $dprops = explode(';', $serendipity['mediaProperties']);
+ }
+ if (!is_array($keywords)) {
+ $keywords = explode(';', $serendipity['mediaKeywords']);
+ }
- if ($show[$idx]['mediatype'] == 'image' && in_array('IMAGE', $parts)) {
- $show_item = true;
- }
+ foreach($dprops AS $prop) {
+ $type = 'input';
+ $parts = explode(':', trim($prop));
- if ($show[$idx]['mediatype'] == 'document' && in_array('DOCUMENT', $parts)) {
- $show_item = true;
- }
+ if (in_array('MULTI', $parts)) {
+ $type = 'textarea';
+ }
- if ($show[$idx]['mediatype'] == 'archive' && in_array('ARCHIVE', $parts)) {
- $show_item = true;
- }
+ if (preg_match('@(AUDIO|VIDEO|DOCUMENT|IMAGE|ARCHIVE|BINARY)@i', $prop)) {
+ $show_item = false;
+ if ($media['mediatype'] == 'video' && in_array('VIDEO', $parts)) {
+ $show_item = true;
+ }
- if ($show[$idx]['mediatype'] == 'binary' && in_array('BINARY', $parts)) {
- $show_item = true;
- }
+ if ($media['mediatype'] == 'audio' && in_array('AUDIO', $parts)) {
+ $show_item = true;
+ }
- if (!$show_item) {
- continue;
- }
+ if ($media['mediatype'] == 'image' && in_array('IMAGE', $parts)) {
+ $show_item = true;
}
- if (!$is_edit) {
- $type = 'readonly';
+ if ($media['mediatype'] == 'document' && in_array('DOCUMENT', $parts)) {
+ $show_item = true;
}
- $val =& serendipity_mediaTypeCast($parts[0], $props['base_property'][$parts[0]], true);
-
- $propkey = htmlspecialchars($parts[0]) . $idx;
-
- $show[$idx]['base_property'][$propkey] = array(
- 'label' => htmlspecialchars(defined('MEDIA_PROPERTY_' . strtoupper($parts[0])) ? constant('MEDIA_PROPERTY_' . strtoupper($parts[0])) : $parts[0]),
- 'type' => $type,
- 'val' => $val,
- 'title' => htmlspecialchars($parts[0])
- );
-
- if (empty($val)) {
- switch($parts[0]) {
- case 'DATE':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_strftime(DATE_FORMAT_SHORT, serendipity_pickKey($show[$idx]['metadata'], 'DateCreated', $now));
- break;
-
- case 'RUN_LENGTH':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'RunLength', '00:00:00.00');
- break;
-
- case 'DPI':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'XResolution', 72);
- break;
-
- case 'COPYRIGHT':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'Creator', $serendipity['serendipityUser']);
- break;
-
- case 'TITLE':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'Title', $media['internal']['realname']);
- break;
-
- case 'COMMENT1':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'Keywords', '');
- break;
-
- case 'COMMENT2':
- $show[$idx]['base_property'][$propkey]['val'] = serendipity_pickKey($show[$idx]['metadata'], 'PhotoLocation', '');
- break;
-
- default:
- serendipity_plugin_api('media_showproperties', $show[$idx], $propkey);
- break;
- }
+
+ if ($media['mediatype'] == 'archive' && in_array('ARCHIVE', $parts)) {
+ $show_item = true;
+ }
+
+ if ($media['mediatype'] == 'binary' && in_array('BINARY', $parts)) {
+ $show_item = true;
+ }
+
+ if (!$show_item) {
+ continue;
}
}
+ if (!$is_edit) {
+ $type = 'readonly';
+ }
+ $val =& serendipity_mediaTypeCast($parts[0], $props['base_property'][$parts[0]], true);
+
+ $propkey = htmlspecialchars($parts[0]) . $idx;
+
+ $media['base_property'][$propkey] = array(
+ 'label' => htmlspecialchars(defined('MEDIA_PROPERTY_' . strtoupper($parts[0])) ? constant('MEDIA_PROPERTY_' . strtoupper($parts[0])) : $parts[0]),
+ 'type' => $type,
+ 'val' => $val,
+ 'title' => htmlspecialchars($parts[0])
+ );
+
+ if (empty($val)) {
+ switch($parts[0]) {
+ case 'DATE':
+ $media['base_property'][$propkey]['val'] = serendipity_strftime(DATE_FORMAT_SHORT, serendipity_pickKey($media['metadata'], 'DateCreated', $now));
+ break;
+
+ case 'RUN_LENGTH':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'RunLength', '00:00:00.00');
+ break;
+
+ case 'DPI':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'XResolution', 72);
+ break;
+
+ case 'COPYRIGHT':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'Creator', $serendipity['serendipityUser']);
+ break;
+
+ case 'TITLE':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'Title', $media['internal']['realname']);
+ break;
+
+ case 'COMMENT1':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'Keywords', '');
+ break;
+
+ case 'COMMENT2':
+ $media['base_property'][$propkey]['val'] = serendipity_pickKey($media['metadata'], 'PhotoLocation', '');
+ break;
+
+ default:
+ serendipity_plugin_api::hook_event('media_showproperties', $media, $propkey);
+ break;
+ }
+ }
+ }
+
+ if ($keywordsPerBlock > 0) {
$rows = ceil(count($keywords) / $keywordsPerBlock);
for($i = 0; $i < $rows; $i++) {
for ($j = 0; $j < $keywordsPerBlock; $j++) {
$kidx = ($i*$keywordsPerBlock) + $j;
if (isset($keywords[$kidx])) {
- $show[$idx]['base_keywords'][$i][$j] = array(
+ $media['base_keywords'][$i][$j] = array(
'name' => htmlspecialchars($keywords[$kidx]),
'selected' => isset($props['base_keyword'][$keywords[$kidx]]) ? true : false
);
} else {
- $show[$idx]['base_keywords'][$i][$j] = array();
+ $media['base_keywords'][$i][$j] = array();
}
}
}
}
-
- // TODO: EXIF!
- $smarty_vars = array(
- 'is_edit' => $is_edit,
- 'editform_hidden' => $editform_hidden,
- 'keywordsPerBlock' => $keywordsPerBlock,
- 'keywords' => $keywords,
- 'dprops' => $dprops
- );
- return serendipity_showMedia(
- $show,
- $mirror,
- $url,
- false,
- 1,
- false,
- $smarty_vars);
}
/**
*/
function serendipity_mediaTypeCast($key, $val, $invert = false) {
if (stristr($key, 'date') !== FALSE) {
- if ($invert && is_int($val)) {
+ if ($invert && is_numeric($val)) {
return serendipity_strftime(DATE_FORMAT_SHORT, $val, false);
} elseif ($invert === false) {
$tmp = strtotime($val);
return $val;
}
+/**
+ * Inserts media properties
+ *
+ * @param string Property_group
+ * @return array array('image_id') holding the last created thumbnail for immediate processing
+ *
+ */
+function serendipity_insertMediaProperty($property_group, $property_subgroup = '', $image_id, &$media, $use_cast = true) {
+ global $serendipity;
+
+ serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}mediaproperties
+ WHERE mediaid = " . (int)$image_id . "
+ " . ($property_subgroup != 'ALL' ? "AND property_subgroup = '" . serendipity_db_escape_string($property_subgroup) . "'" : '') . "
+ AND property_group = '" . serendipity_db_escape_string($property_group) . "'");
+
+ if (is_array($media)) {
+ foreach($media AS $key => $val) {
+ if ($key == 'image_id') continue;
+
+ if (is_array($val)) {
+ $use_property_subgroup = $key;
+ $use_val = $val;
+ } else {
+ $use_property_subgroup = $property_subgroup;
+ $use_val = array($key => $val);
+ }
+
+ foreach($use_val AS $insert_key => $insert_val) {
+ if ($use_cast) {
+ $insert_val = serendipity_mediaTypeCast($insert_key, $insert_val);
+ }
+ $q = sprintf("INSERT INTO {$serendipity['dbPrefix']}mediaproperties
+ (mediaid, property_group, property_subgroup, property, value)
+ VALUES (%d, '%s', '%s', '%s', '%s')",
+ $image_id,
+ serendipity_db_escape_string($property_group),
+ serendipity_db_escape_string($useproperty_subgroup),
+ serendipity_db_escape_string($insert_key),
+ serendipity_db_escape_string($insert_val));
+ serendipity_db_query($q);
+ }
+ }
+ }
+}
+
/**
* Inserts the submitted properties of uploaded media items
*
serendipity_checkPropertyAccess($serendipity['POST']['mediaProperties'], $serendipity['POST']['mediaKeywords'], 'write');
foreach($serendipity['POST']['mediaProperties'] AS $id => $media) {
- serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}mediaproperties
- WHERE mediaid = " . (int)$media['image_id'] . "
- AND property_subgroup = ''
- AND property_group = 'base_property'");
- foreach($media AS $key => $val) {
- if ($key == 'image_id') continue;
- $val = serendipity_mediaTypeCast($key, $val);
- $q = sprintf("INSERT INTO {$serendipity['dbPrefix']}mediaproperties
- (mediaid, property_group, property_subgroup, property, value)
- VALUES (%d, 'base_property', '', '%s', '%s')",
- $media['image_id'],
- serendipity_db_escape_string($key),
- serendipity_db_escape_string($val));
- serendipity_db_query($q);
- }
+ serendipity_insertMediaProperty('base_property', '', $media['image_id'], $media);
$s9y_img = $media['internal'];
$s9y_img['image_id'] = $media['image_id'];
serendipity_prepareMedia($s9y_img);
$s9y_img['metadata'] =& serendipity_getMetaData($s9y_img['realfile'], $s9y_img['header']);
- serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}mediaproperties
- WHERE mediaid = " . (int)$media['image_id'] . "
- property_group = 'base_metadata'");
- foreach($s9y_img['metadata'] AS $maingroup => $items) {
- foreach($items AS $key => $val) {
- $val = serendipity_mediaTypeCast($key, $val);
- $q = sprintf("INSERT INTO {$serendipity['dbPrefix']}mediaproperties
- (mediaid, property_group, property_subgroup, property, value)
- VALUES (%d, 'base_metadata', '%s', '%s', '%s')",
- $media['image_id'],
- $maingroup,
- serendipity_db_escape_string($key),
- serendipity_db_escape_string($val));
- serendipity_db_query($q);
- }
- }
+ serendipity_insertMediaProperty('base_metadata', 'ALL', $media['image_id'], $s9y_img['metadata']);
+ $s9y_img['hidden'] = array(
+ 'author' => $serendipity['serendipityUser'],
+ 'authorid' => $serendipity['authorid']
+ );
+ serendipity_insertMediaProperty('base_hidden', '', $media['image_id'], $s9y_img['hidden']);
}
foreach($serendipity['POST']['mediaKeywords'] AS $id => $keywords) {
- serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}mediaproperties
- WHERE mediaid = " . (int)$serendipity['POST']['mediaProperties'][$id]['image_id'] . "
- AND property_subgroup = ''
- AND property_group = 'base_keyword'");
-
- foreach($keywords AS $keyword => $checked) {
- $q = sprintf("INSERT INTO {$serendipity['dbPrefix']}mediaproperties
- (mediaid, property_group, property_subgroup, property, value)
- VALUES (%d, 'base_keyword', '', '%s', '1')",
- $serendipity['POST']['mediaProperties'][$id]['image_id'],
- serendipity_db_escape_string($keyword));
- serendipity_db_query($q);
- }
+ serendipity_insertMediaProperty('base_keyword', '', $serendipity['POST']['mediaProperties'][$id]['image_id'], $keywords);
}
$array = array(
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Въведете максималната височина в пиксели на изображенията, които ще се качват.');
@define('MEDIA_UPLOAD_DIMERROR', 'Грешка: Не можете да качвате изображения, по-големи от %s x %s пиксела.');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_cn.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_cn.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
/* vim: set sts=4 ts=4 expandtab : */
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_cs.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_cs.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) 2005 Josef Klimosz <ok2wo@centrum.cz>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_cz.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_cz.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) 2004 Josef Klimosz <ok2wo@centrum.cz>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_da.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_da.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) by Tom Sommer, <ts@dreamcoder.dk>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_de.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_de.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) Jannis Hermanns, Garvin Hicking and others
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_en.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_en.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
/* vim: set sts=4 ts=4 expandtab : */
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_es.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_es.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) by Luis Cervantes <LuisCervantes@ono.com>,
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_fa.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_fa.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# this translation, translated by Omid Mottaghi <http://oxygenws.com>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_fi.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_fi.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation by Mauri Sahlberg <mos@iki.fi>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_fr.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_fr.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation by Sebastian Mordziol <argh@php-tools.net>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_is.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_is.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation by Örn Arnarson <orn@arnarson.net>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_ja.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_ja.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) Tadashi Jokagi <elf2000@users.sourceforge.net>, 2004-2005.
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_ko.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_ko.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translated by: Wesley Hwang-Chung <wesley96@gmail.com>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_nl.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_nl.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) by Christiaan Heerze <webmaster@heimp.nl>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_no.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_no.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) by Jo Christian Oterhals <oterhals@gmail.com>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_pt.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_pt.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation (c) by Agner Olson <agner@agner.net>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_ru.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_ru.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translation by Nightly <nightly@reys.net>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_tn.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_tn.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translated by CapriSkye <admin@capriskye.com>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_tw.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_tw.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
# Translated by CapriSkye <admin@capriskye.com>
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-<?php # $Id: serendipity_lang_zh.inc.php 1119 2006-04-19 08:32:48Z garvinhicking $
+<?php # $Id: serendipity_lang_zh.inc.php 1122 2006-04-19 11:07:47Z garvinhicking $
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
/* vim: set sts=4 ts=4 expandtab : */
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
-@define('MEDIA_UPLOAD_SIZE', 'Max. file upload size');
-@define('MEDIA_UPLOAD_SIZE_DESC', 'Enter the maximum filesize for uploaded files in bytes. This setting can be overruled by server-side settings in PHP.ini: upload_max_filesize, post_max_size, max_input_time all take precedence over this option. An empty string means to only use the server-side limits.');
-@define('MEDIA_UPLOAD_SIZEERROR', 'Error: You cannot upload files larger than %s bytes!');
-@define('MEDIA_UPLOAD_MAXWIDTH', 'Max. width of image files for upload');
-@define('MEDIA_UPLOAD_MAXWIDTH_DESC', 'Enter the maximum image width in pixels for uploaded images.');
-@define('MEDIA_UPLOAD_MAXHEIGHT', 'Max. height of image files for upload');
-@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
-@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Âúâåäåòå ìàêñèìàëíàòà âèñî÷èíà â ïèêñåëè íà èçîáðàæåíèÿòà, êîèòî ùå ñå êà÷âàò.');
@define('MEDIA_UPLOAD_DIMERROR', 'Ãðåøêà: Íå ìîæåòå äà êà÷âàòå èçîáðàæåíèÿ, ïî-ãîëåìè îò %s x %s ïèêñåëà.');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
@define('MEDIA_UPLOAD_MAXHEIGHT_DESC', 'Enter the maximum image height in pixels for uploaded images.');
@define('MEDIA_UPLOAD_DIMERROR', 'Error: You cannot upload image files larger than %s x %s pixels!');
+@define('MEDIA_TARGET', 'Target for this link');
+@define('MEDIA_TARGET_JS', 'Popup window (via JavaScript, adaptive size)');
+@define('MEDIA_ENTRY', 'Isolated Entry');
+@define('MEDIA_TARGET_BLANK', 'Popup window (via target=_blank)');
+
header('Content-Type: text/html; charset=' . LANG_CHARSET);
-if ($_SESSION['serendipityAuthedUser'] !== true) {
+if ($_SESSION['serendipityAuthedUser'] !== true && $serendipity['GET']['step'] != 'showItem') {
die(HAVE_TO_BE_LOGGED_ON);
}
return;
}
+$showFile = 'admin/media_choose.tpl';
$body_id = 'serendipityAdminBodyImageSelector';
if ($serendipity['GET']['step'] === 'tree') {
$body_id = 'serendipityAdminBodyImageSelectorTree';
'only_path' => $serendipity['GET']['only_path'],
'css' => serendipity_rewriteURL('serendipity_admin.css'),
'css_tree' => serendipity_getTemplateFile('treeview/tree.css'),
+ 'css_front' => serendipity_rewriteURL('serendipity.css'),
'token_url' => serendipity_setFormToken('url'),
- 'imgID' => (int)$serendipity['GET']['image']
+ 'imgID' => (int)$serendipity['GET']['image'],
+ 'from' => $serendipity['GET']['from']
);
switch ($serendipity['GET']['step']) {
serendipity_plugin_api::hook_event('media_getproperties_cached', $media['file']['props']['base_metadata'], $media['file']['realfile']);
if ($file['is_image']) {
- $file['finishJSFunction'] = 'serendipity_imageSelector_done(\'' . htmlspecialchars($serendipity['GET']['textarea']) . '\')';
+ $file['finishJSFunction'] = $file['origfinishJSFunction'] = 'serendipity_imageSelector_done(\'' . htmlspecialchars($serendipity['GET']['textarea']) . '\')';
if (!empty($serendipity['GET']['filename_only']) && $serendipity['GET']['filename_only'] !== 'true') {
$file['fast_select'] = true;
$media['paths'] =& $paths;
break;
+ case 'showItem':
+ $media['case'] = 'showitem';
+ $file = serendipity_fetchImageFromDatabase((int)$serendipity['GET']['image']);
+ $media['file'] = &$file;
+ $keywords = $dprops = '';
+
+ if (!is_array($file)) {
+ $media['perm_denied'] = true;
+ break;
+ }
+
+ serendipity_prepareMedia($file);
+
+ $media['file']['props'] =& serendipity_fetchMediaProperties((int)$serendipity['GET']['image']);
+ serendipity_plugin_api::hook_event('media_getproperties_cached', $media['file']['props']['base_metadata'], $media['file']['realfile']);
+
+ serendipity_parseMediaProperties($keywords, $dprops, $media['file'], $media['file']['props'], 0, false);
+ serendipity_plugin_api::hook_event('frontend_media_showitem', $media);
+ if ($media['perm_denied']) {
+ unset($media['file']);
+ unset($file);
+ }
+ $showFile = 'admin/media_showitem.tpl';
+ break;
+
case 'default':
default:
if (!empty($serendipity['GET']['adminAction']) && $serendipity['GET']['adminModule'] == 'images' && $serendipity['GET']['adminAction'] != 'default') {
$media = array_merge($serendipity['GET'], $media);
$serendipity['smarty']->assign('media', $media);
-$serendipity['smarty']->display(serendipity_getTemplateFile('admin/media_choose.tpl', 'serendipityPath'));
+$serendipity['smarty']->display(serendipity_getTemplateFile($showFile, 'serendipityPath'));
/* vim: set sts=4 ts=4 expandtab : */
\ No newline at end of file
if (f['imgID']) {
imgID = f['imgID'].value;
}
+ baseURL = '';
+ if (f['baseURL']) {
+ baseURL = f['baseURL'].value;
+ }
floating = 'center';
if (f['serendipity[align]'][0].checked == true) {
}
if (f['serendipity[isLink]'][1].checked == true) {
- insert = "<a class='serendipity_image_link' href='" + f['serendipity[url]'].value + "'>" + img + "</a>";
+ if (f['serendipity[target]'].selectedIndex) {
+ targetval = f['serendipity[target]'].options[f['serendipity[target]'].selectedIndex].value;
+ } else {
+ targetval = '';
+ }
+
+ prepend = '';
+ ilink = f['serendipity[url]'].value;
+ if (!targetval || targetval == 'none') {
+ itarget = '';
+ } else if (targetval == 'js') {
+ itarget = ' onclick="F1 = window.open(\'' + f['serendipity[url]'].value + '\',\'Zoom\',\''
+ + 'height=' + (parseInt(f['imgHeight'].value) + 15) + ','
+ + 'width=' + (parseInt(f['imgWidth'].value) + 15) + ','
+ + 'top=' + (screen.height - f['imgHeight'].value) /2 + ','
+ + 'left=' + (screen.width - f['imgWidth'].value) /2 + ','
+ + 'toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes\'); return false;"';
+ } else if (targetval == '_blank') {
+ itarget = ' target="_blank"';
+ } else if (targetval == 'plugin') {
+ itarget = ' id="s9yisphref' + imgID + '" onclick="javascript:this.href = this.href + \'&serendipity[from]=\' + self.location.href;"';
+ prepend = '<a title="' + ilink + '" id="s9yisp' + imgID + '"></a>';
+ ilink = baseURL + 'serendipity_admin_image_selector.php?serendipity[step]=showItem&serendipity[image]=' + imgID;
+ }
+
+ insert = prepend + "<a class='serendipity_image_link' href='" + ilink + "'" + itarget + ">" + img + "</a>";
} else {
insert = img;
}
<input type="hidden" name="imgWidth" value="{$media.file.dimensions_width}" />
<input type="hidden" name="imgHeight" value="{$media.file.dimensions_height}" />
<input type="hidden" name="imgID" value="{$media.imgID}" />
+ <input type="hidden" name="baseURL" value="{$serendipityBaseURL}" />
+ <input type="hidden" name="indexFile" value="{$serendipityIndexFile}" />
<input type="hidden" name="imgName" value="{$media.file.full_file}" />
<input type="hidden" name="thumbName" value="{$media.file.show_thumb}" />
<input type="hidden" name="hotlink" value="{$media.file.hotlink}" />
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_link_url' eventData=$media.file.links}
<input type="text" name="serendipity[url]" size="30" value="{$media.file.links.imagelinkurl}" /><br />
{/if}
- {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagelink' eventData=$media.file}
+
+ <label id="select_image_target">{$CONST.MEDIA_TARGET}</label>
+ <select name="serendipity[target]" id="select_image_target">
+ <option value="none" {'target'|@ifRemember:'none':false:'selected'}>{$CONST.NONE}</option>
+ <option value="js" {'target'|@ifRemember:'js':false:'selected'}>{$CONST.MEDIA_TARGET_JS}</option>
+ <option value="plugin" {'target'|@ifRemember:'plugin':false:'selected'}>{$CONST.MEDIA_ENTRY}</option>
+ <option value="_blank" {'target'|@ifRemember:'_blank':false:'selected'}>{$CONST.MEDIA_TARGET_BLANK}</option>
+ </select>
+ <br />
+
+ {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagelink2' eventData=$media.file}
<br />
<b>{$CONST.COMMENT}:</b>
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file}
<input type="button" value="{$CONST.BACK}" onclick="history.go(-1);" />
- <input type="button" value="{$CONST.DONE}" onclick="rememberOptions(); {$media.file.finishJSFunction}" />
+ <input type="button" value="{$CONST.DONE}" onclick="rememberOptions(); {$media.file.origfinishJSFunction}" />
{serendipity_hookPlugin hookAll=true hook='frontend_image_selector_submit' eventData=$media.file}
{/if}
</div>
--- /dev/null
+<html>
+ <head>
+ <title>{$media.file.props.base_property.TITLE|@default:$media.file.realname}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset={$CONST.LANG_CHARSET}" />
+ <link rel="stylesheet" type="text/css" href="{$media.css}" />
+ <link rel="stylesheet" type="text/css" href="{$media.css_front}" />
+ </head>
+
+<body id="{$media.body_id}">
+ {if $perm_denied}
+ {$CONST.PERM_DENIED}
+ {else}
+ <div class="serendipity_Entry_Date">
+ <h3 class="serendipity_date">{$media.file.realname}</h3>
+ <h4 class="serendipity_title"><a href="#">{$media.file.props.base_property.TITLE|@default:''}</a></h4>
+
+ <div class="serendipity_entry">
+ <div class="serendipity_entry_body">
+ <div class="serendipity_center">
+ {if $media.file.is_image}
+ <img src="{$media.file.full_file}" />
+ {else}
+ <a href="{$media.file.full_file}">{$media.file.realname} ({$media.file.displaymime})</a>
+ {/if}
+ <br /><a href="{$media.from|@escape}" title="{$CONST.BACK_TO_BLOG}">{$CONST.BACK_TO_BLOG}</a>
+ </div>
+ <br />
+
+ {if $media.file.base_property}
+ <h3>{$CONST.MEDIA_PROP}</h3>
+ <div>
+ <dl>
+ {foreach from=$media.file.base_property key="prop_fieldname" item="prop_content"}
+ {if $prop_content.val}
+ <dt>{$prop_content.label}</dt>
+ <dd>{$prop_content.val|@escape}</dd>
+ {/if}
+ {/foreach}
+ </dl>
+ </div>
+ {/if}
+
+ {if $media.file.props.base_keyword}
+ <h3>{$CONST.MEDIA_KEYWORDS}</h3>
+ <div>
+ {foreach from=$media.file.props.base_keyword key="prop_fieldname" item="prop_content"}
+ {$prop_fieldname|@escape}
+ {/foreach}
+ <p></p>
+ </div>
+ {/if}
+
+ {if $media.file.props.base_metadata}
+ <h3>EXIF/IPTC/XMP</h3>
+ <div>
+ <dl>
+ {foreach from=$media.file.props.base_metadata key="meta_type" item="meta_data"}
+ <dt><strong>{$meta_type}</strong></dt>
+ <dd><table>
+ {foreach from=$meta_data key="meta_name" item="meta_value"}
+ <tr>
+ <td valign="top"><em>{$meta_name}</em></th>
+ <td>{if is_array($meta_value)}<pre>{$meta_value|@print_r}</pre>{else}{$meta_value|@formatTime:DATE_FORMAT_SHORT:false:$meta_name}{/if}</td>
+ </tr>
+ {/foreach}
+ </table></dd>
+ {/foreach}
+ </dl>
+ </div>
+ {/if}
+ </div>
+ </div>
+ </div>
+ {/if}
+</body>
+</html>