remove deprecated theme_image()
This commit is contained in:
parent
4e4048024a
commit
2a3b6de0ef
|
@ -236,8 +236,7 @@ class Dlg extends Handler_Protected {
|
|||
|
||||
print "<div style='float : right'>
|
||||
<img style='display : none'
|
||||
id='feed_add_spinner' src='".
|
||||
theme_image($this->link, 'images/indicator_white.gif')."'></div>";
|
||||
id='feed_add_spinner' src='images/indicator_white.gif'></div>";
|
||||
|
||||
print "<input style=\"font-size : 16px; width : 20em;\"
|
||||
placeHolder=\"".__("Feed or site URL")."\"
|
||||
|
@ -311,8 +310,7 @@ class Dlg extends Handler_Protected {
|
|||
print "<div dojoType=\"dijit.Toolbar\">
|
||||
<div style='float : right'>
|
||||
<img style='display : none'
|
||||
id='feed_browser_spinner' src='".
|
||||
theme_image($this->link, 'images/indicator_white.gif')."'>
|
||||
id='feed_browser_spinner' src='images/indicator_white.gif'>
|
||||
<input name=\"search\" dojoType=\"dijit.form.TextBox\" size=\"20\" type=\"search\"
|
||||
onchange=\"dijit.byId('feedBrowserDlg').update()\" value=\"$browser_search\">
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('feedBrowserDlg').update()\">".__('Search')."</button>
|
||||
|
|
|
@ -321,24 +321,22 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
if ($line["marked"] == "t" || $line["marked"] == "1") {
|
||||
$marked_pic = "<img id=\"FMPIC-$id\"
|
||||
src=\"".theme_image($this->link, 'images/mark_set.svg')."\"
|
||||
src=\"images/mark_set.svg\"
|
||||
class=\"markedPic\" alt=\"Unstar article\"
|
||||
onclick='javascript:toggleMark($id)'>";
|
||||
} else {
|
||||
$marked_pic = "<img id=\"FMPIC-$id\"
|
||||
src=\"".theme_image($this->link, 'images/mark_unset.svg')."\"
|
||||
src=\"images/mark_unset.svg\"
|
||||
class=\"markedPic\" alt=\"Star article\"
|
||||
onclick='javascript:toggleMark($id)'>";
|
||||
}
|
||||
|
||||
if ($line["published"] == "t" || $line["published"] == "1") {
|
||||
$published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($this->link,
|
||||
'images/pub_set.svg')."\"
|
||||
$published_pic = "<img id=\"FPPIC-$id\" src=\"images/pub_set.svg\"
|
||||
class=\"markedPic\"
|
||||
alt=\"Unpublish article\" onclick='javascript:togglePub($id)'>";
|
||||
} else {
|
||||
$published_pic = "<img id=\"FPPIC-$id\" src=\"".theme_image($this->link,
|
||||
'images/pub_unset.svg')."\"
|
||||
$published_pic = "<img id=\"FPPIC-$id\" src=\"images/pub_unset.svg\"
|
||||
class=\"markedPic\"
|
||||
alt=\"Publish article\" onclick='javascript:togglePub($id)'>";
|
||||
}
|
||||
|
@ -363,8 +361,7 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
$score = $line["score"];
|
||||
|
||||
$score_pic = theme_image($this->link,
|
||||
"images/" . get_score_pic($score));
|
||||
$score_pic = "images/" . get_score_pic($score);
|
||||
|
||||
/* $score_title = __("(Click to change)");
|
||||
$score_pic = "<img class='hlScorePic' src=\"images/$score_pic\"
|
||||
|
@ -650,8 +647,7 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
$tags_str = format_tags_string($line["tags"], $id);
|
||||
|
||||
$reply['content'] .= "<img src='".theme_image($this->link,
|
||||
'images/tag.png')."' alt='Tags' title='Tags'>
|
||||
$reply['content'] .= "<img src='images/tag.png' alt='Tags' title='Tags'>
|
||||
<span id=\"ATSTR-$id\">$tags_str</span>
|
||||
<a title=\"".__('Edit tags for this article')."\"
|
||||
href=\"#\" onclick=\"editArticleTags($id, $feed_id, true)\">(+)</a>";
|
||||
|
|
|
@ -663,7 +663,7 @@ class RPC extends Handler_Protected {
|
|||
score = '$score' WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]);
|
||||
|
||||
print json_encode(array("id" => $id,
|
||||
"score_pic" => theme_image($link, get_score_pic($score))));
|
||||
"score_pic" => get_score_pic($score)));
|
||||
}
|
||||
|
||||
function setpanelmode() {
|
||||
|
|
|
@ -786,11 +786,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
// Deprecated, TODO: remove
|
||||
function theme_image($link, $filename) {
|
||||
return $filename;
|
||||
}
|
||||
|
||||
function convert_timestamp($timestamp, $source_tz, $dest_tz) {
|
||||
|
||||
try {
|
||||
|
@ -1825,10 +1820,10 @@
|
|||
function make_init_params($link) {
|
||||
$params = array();
|
||||
|
||||
$params["sign_progress"] = theme_image($link, "images/indicator_white.gif");
|
||||
$params["sign_progress_tiny"] = theme_image($link, "images/indicator_tiny.gif");
|
||||
$params["sign_excl"] = theme_image($link, "images/sign_excl.svg");
|
||||
$params["sign_info"] = theme_image($link, "images/sign_info.svg");
|
||||
$params["sign_progress"] = "images/indicator_white.gif";
|
||||
$params["sign_progress_tiny"] = "images/indicator_tiny.gif";
|
||||
$params["sign_excl"] = "images/sign_excl.svg";
|
||||
$params["sign_info"] = "images/sign_info.svg";
|
||||
|
||||
foreach (array("ON_CATCHUP_SHOW_NEXT_FEED", "HIDE_READ_FEEDS",
|
||||
"ENABLE_FEED_CATS", "FEEDS_SORT_BY_UNREAD", "CONFIRM_FEED_CATCHUP",
|
||||
|
@ -2839,19 +2834,19 @@
|
|||
function format_warning($msg, $id = "") {
|
||||
global $link;
|
||||
return "<div class=\"warning\" id=\"$id\">
|
||||
<img src=\"".theme_image($link, "images/sign_excl.svg")."\">$msg</div>";
|
||||
<img src=\"images/sign_excl.svg\">$msg</div>";
|
||||
}
|
||||
|
||||
function format_notice($msg, $id = "") {
|
||||
global $link;
|
||||
return "<div class=\"notice\" id=\"$id\">
|
||||
<img src=\"".theme_image($link, "images/sign_info.svg")."\">$msg</div>";
|
||||
<img src=\"images/sign_info.svg\">$msg</div>";
|
||||
}
|
||||
|
||||
function format_error($msg, $id = "") {
|
||||
global $link;
|
||||
return "<div class=\"error\" id=\"$id\">
|
||||
<img src=\"".theme_image($link, "images/sign_excl.svg")."\">$msg</div>";
|
||||
<img src=\"images/sign_excl.svg\">$msg</div>";
|
||||
}
|
||||
|
||||
function print_notice($msg) {
|
||||
|
@ -3040,7 +3035,7 @@
|
|||
if (!$entry_comments) $entry_comments = " "; # placeholder
|
||||
|
||||
$rv['content'] .= "<div class='postTags' style='float : right'>
|
||||
<img src='".theme_image($link, 'images/tag.png')."'
|
||||
<img src='images/tag.png'
|
||||
class='tagsPic' alt='Tags' title='Tags'> ";
|
||||
|
||||
if (!$zoom_mode) {
|
||||
|
|
|
@ -128,11 +128,11 @@
|
|||
<div id="header">
|
||||
<img id="net-alert" style="display : none"
|
||||
title="<?php echo __("Communication problem with server.") ?>"
|
||||
src="<?php echo theme_image($link, 'images/alert.png') ?>"/>
|
||||
src="images/alert.png"/>
|
||||
|
||||
<img id="newVersionIcon" style="display:none" onclick="newVersionDlg()"
|
||||
width="13" height="13"
|
||||
src="<?php echo theme_image($link, 'images/new_version.png') ?>"
|
||||
src="images/new_version.png"
|
||||
title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>"
|
||||
alt="new_version_icon"/>
|
||||
</div>
|
||||
|
@ -201,12 +201,12 @@
|
|||
<button id="net-alert" dojoType="dijit.form.Button" style="display : none" disabled="true"
|
||||
title="<?php echo __("Communication problem with server.") ?>">
|
||||
<img
|
||||
src="<?php echo theme_image($link, 'images/alert.png') ?>" />
|
||||
src="images/alert.png" />
|
||||
</button>
|
||||
|
||||
<button id="newVersionIcon" dojoType="dijit.form.Button" style="display : none">
|
||||
<img onclick="newVersionDlg()"
|
||||
src="<?php echo theme_image($link, 'images/new_version.png') ?>"
|
||||
src="images/new_version.png"
|
||||
title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>" />
|
||||
</button>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class Close_Button extends Plugin {
|
|||
|
||||
function hook_article_button($line) {
|
||||
if (!get_pref($this->link, "COMBINED_DISPLAY_MODE")) {
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/close_button/button.png')."\"
|
||||
$rv = "<img src=\"plugins/close_button/button.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"closeArticlePanel()\"
|
||||
title='".__('Close article')."'>";
|
||||
|
|
|
@ -25,7 +25,7 @@ class Flattr extends Plugin {
|
|||
$encoded = urlencode($article_link);
|
||||
$r = file_get_contents("https://api.flattr.com/rest/v2/things/lookup/?url=$encoded");
|
||||
$response = json_decode($r, true);
|
||||
$image = "<img src=\"".theme_image($this->link, 'plugins/flattr/flattr.png')."\"
|
||||
$image = "<img src=\"plugins/flattr/flattr.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
title='".__('Flattr this article.')."'>";
|
||||
// if Flattr has it in the catalogue, we display the button
|
||||
|
|
|
@ -23,7 +23,7 @@ class GooglePlus extends Plugin {
|
|||
function hook_article_button($line) {
|
||||
$article_id = $line["id"];
|
||||
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/googleplus/googleplus.png')."\"
|
||||
$rv = "<img src=\"plugins/googleplus/googleplus.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"shareArticleToGooglePlus($article_id)\"
|
||||
title='".__('Share on Google+')."'>";
|
||||
|
|
|
@ -23,7 +23,7 @@ class Identica extends Plugin {
|
|||
function hook_article_button($line) {
|
||||
$article_id = $line["id"];
|
||||
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/identica/identica.png')."\"
|
||||
$rv = "<img src=\"plugins/identica/identica.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"shareArticleToIdentica($article_id)\"
|
||||
title='".__('Share on identi.ca')."'>";
|
||||
|
|
|
@ -22,7 +22,7 @@ class Mail extends Plugin {
|
|||
}
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<img src=\"".theme_image($link, 'plugins/mail/mail.png')."\"
|
||||
return "<img src=\"plugins/mail/mail.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"emailArticle(".$line["id"].")\"
|
||||
alt='Zoom' title='".__('Forward by email')."'>";
|
||||
|
|
|
@ -22,7 +22,7 @@ class MailTo extends Plugin {
|
|||
}
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<img src=\"".theme_image($link, 'plugins/mailto/mail.png')."\"
|
||||
return "<img src=\"plugins/mailto/mail.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"mailtoArticle(".$line["id"].")\"
|
||||
alt='Zoom' title='".__('Forward by email')."'>";
|
||||
|
|
|
@ -22,7 +22,7 @@ class Note extends Plugin {
|
|||
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<img src=\"".theme_image($this->link, "plugins/note/note.png")."\"
|
||||
return "<img src=\"plugins/note/note.png\"
|
||||
style=\"cursor : pointer\" style=\"cursor : pointer\"
|
||||
onclick=\"editArticleNote(".$line["id"].")\"
|
||||
class='tagsPic' title='".__('Edit article note')."'>";
|
||||
|
|
|
@ -68,7 +68,7 @@ class OwnCloud extends Plugin {
|
|||
}
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<img src=\"".theme_image($this->link, "plugins/owncloud/owncloud.png")."\"
|
||||
return "<img src=\"plugins/owncloud/owncloud.png\"
|
||||
style=\"cursor : pointer\" style=\"cursor : pointer\"
|
||||
onclick=\"ownArticle(".$line["id"].")\"
|
||||
class='tagsPic' title='".__('Bookmark on OwnCloud ')."'>";
|
||||
|
|
|
@ -23,7 +23,7 @@ class Pinterest extends Plugin {
|
|||
function hook_article_button($line) {
|
||||
$article_id = $line["id"];
|
||||
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/pinterest/pinterest.png')."\"
|
||||
$rv = "<img src=\"plugins/pinterest/pinterest.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"pinterest($article_id)\"
|
||||
title='".__('Pinterest')."'>";
|
||||
|
|
|
@ -24,7 +24,7 @@ class Pocket extends Plugin {
|
|||
function hook_article_button($line) {
|
||||
$article_id = $line["id"];
|
||||
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/pocket/pocket.png')."\"
|
||||
$rv = "<img src=\"plugins/pocket/pocket.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"shareArticleToPocket($article_id)\"
|
||||
title='".__('Pocket')."'>";
|
||||
|
|
|
@ -21,7 +21,7 @@ class Share extends Plugin {
|
|||
}
|
||||
|
||||
function hook_article_button($line) {
|
||||
return "<img src=\"".theme_image($this->link, 'plugins/share/share.png')."\"
|
||||
return "<img src=\"plugins/share/share.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"shareArticle(".$line['int_id'].")\"
|
||||
title='".__('Share by URL')."'>";
|
||||
|
|
|
@ -23,7 +23,7 @@ class Tweet extends Plugin {
|
|||
function hook_article_button($line) {
|
||||
$article_id = $line["id"];
|
||||
|
||||
$rv = "<img src=\"".theme_image($this->link, 'plugins/tweet/tweet.png')."\"
|
||||
$rv = "<img src=\"plugins/tweet/tweet.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"tweetArticle($article_id)\"
|
||||
title='".__('Share on Twitter')."'>";
|
||||
|
|
Loading…
Reference in New Issue