|
|
@ -531,16 +531,16 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("method", "editSave");
|
|
|
|
print_hidden("method", "editSave");
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"dlgSec\">".__("Feed")."</div>";
|
|
|
|
print "<header>".__("Feed")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
/* Title */
|
|
|
|
/* Title */
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
|
|
|
print "<input dojoType='dijit.form.ValidationTextBox' required='1'
|
|
|
|
placeHolder=\"".__("Feed Title")."\"
|
|
|
|
placeHolder=\"".__("Feed Title")."\"
|
|
|
|
style=\"font-size : 16px; width: 500px\" name=\"title\" value=\"$title\">";
|
|
|
|
style='font-size : 16px; width: 500px' name='title' value=\"$title\">";
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
@ -551,10 +551,10 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "<fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label>" . __('URL:') . "</label> ";
|
|
|
|
print "<label>" . __('URL:') . "</label> ";
|
|
|
|
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
|
|
|
print "<input dojoType='dijit.form.ValidationTextBox' required='1'
|
|
|
|
placeHolder=\"".__("Feed URL")."\"
|
|
|
|
placeHolder=\"".__("Feed URL")."\"
|
|
|
|
regExp='^(http|https)://.*' style=\"width : 300px\"
|
|
|
|
regExp='^(http|https)://.*' style='width : 300px'
|
|
|
|
name=\"feed_url\" value=\"$feed_url\">";
|
|
|
|
name='feed_url' value=\"$feed_url\">";
|
|
|
|
|
|
|
|
|
|
|
|
$last_error = $row["last_error"];
|
|
|
|
$last_error = $row["last_error"];
|
|
|
|
|
|
|
|
|
|
|
@ -588,10 +588,10 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "<fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label>" . __('Site URL:') . "</label> ";
|
|
|
|
print "<label>" . __('Site URL:') . "</label> ";
|
|
|
|
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
|
|
|
print "<input dojoType='dijit.form.ValidationTextBox' required='1'
|
|
|
|
placeHolder=\"".__("Site URL")."\"
|
|
|
|
placeHolder=\"".__("Site URL")."\"
|
|
|
|
regExp='^(http|https)://.*' style=\"width : 300px\"
|
|
|
|
regExp='^(http|https)://.*' style='width : 300px'
|
|
|
|
name=\"site_url\" value=\"$site_url\">";
|
|
|
|
name='site_url' value=\"$site_url\">";
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
@ -609,10 +609,10 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"dlgSec\">".__("Update")."</div>";
|
|
|
|
print "<header>".__("Update")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
/* Update Interval */
|
|
|
|
/* Update Interval */
|
|
|
|
|
|
|
|
|
|
|
@ -641,7 +641,7 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
|
|
|
|
|
|
|
|
$auth_login = htmlspecialchars($row["auth_login"]);
|
|
|
|
$auth_login = htmlspecialchars($row["auth_login"]);
|
|
|
|
$auth_pass = htmlspecialchars($row["auth_pass"]);
|
|
|
|
$auth_pass = htmlspecialchars($row["auth_pass"]);
|
|
|
@ -650,44 +650,39 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
$auth_style = $auth_enabled ? '' : 'display: none';
|
|
|
|
$auth_style = $auth_enabled ? '' : 'display: none';
|
|
|
|
print "<div id='feedEditDlg_loginContainer' style='$auth_style'>";
|
|
|
|
print "<div id='feedEditDlg_loginContainer' style='$auth_style'>";
|
|
|
|
print "<div class=\"dlgSec\">".__("Authentication")."</div>";
|
|
|
|
print "<header>".__("Authentication")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.TextBox\" id=\"feedEditDlg_login\"
|
|
|
|
print "<input dojoType='dijit.form.TextBox' id='feedEditDlg_login'
|
|
|
|
placeHolder=\"".__("Login")."\"
|
|
|
|
placeHolder='".__("Login")."'
|
|
|
|
autocomplete=\"new-password\"
|
|
|
|
autocomplete='new-password'
|
|
|
|
name=\"auth_login\" value=\"$auth_login\">";
|
|
|
|
name='auth_login' value=\"$auth_login\">";
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset><fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\"
|
|
|
|
print "<input dojoType='dijit.form.TextBox' type='password' name='auth_pass'
|
|
|
|
autocomplete=\"new-password\"
|
|
|
|
autocomplete='new-password'
|
|
|
|
placeHolder=\"".__("Password")."\"
|
|
|
|
placeHolder='".__("Password")."'
|
|
|
|
value=\"$auth_pass\">";
|
|
|
|
value=\"$auth_pass\">";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div dojoType=\"dijit.Tooltip\" connectId=\"feedEditDlg_login\" position=\"below\">
|
|
|
|
print "<div dojoType='dijit.Tooltip' connectId='feedEditDlg_login' position='below'>
|
|
|
|
".__('<b>Hint:</b> you need to fill in your login information if your feed requires authentication, except for Twitter feeds.')."
|
|
|
|
".__('<b>Hint:</b> you need to fill in your login information if your feed requires authentication, except for Twitter feeds.')."
|
|
|
|
</div>";
|
|
|
|
</div>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div></div>";
|
|
|
|
print "</section></div>";
|
|
|
|
|
|
|
|
|
|
|
|
$auth_checked = $auth_enabled ? 'checked' : '';
|
|
|
|
$auth_checked = $auth_enabled ? 'checked' : '';
|
|
|
|
print "<div style=\"clear : both\">
|
|
|
|
print "<label class='checkbox'>
|
|
|
|
<input type=\"checkbox\" $auth_checked name=\"need_auth\" dojoType=\"dijit.form.CheckBox\" id=\"feedEditDlg_loginCheck\"
|
|
|
|
<input type='checkbox' $auth_checked name='need_auth' dojoType='dijit.form.CheckBox' id='feedEditDlg_loginCheck'
|
|
|
|
onclick='displayIfChecked(this, \"feedEditDlg_loginContainer\")'>
|
|
|
|
onclick='displayIfChecked(this, \"feedEditDlg_loginContainer\")'>
|
|
|
|
<label for=\"feedEditDlg_loginCheck\">".
|
|
|
|
".__('This feed requires authentication.')."</label>";
|
|
|
|
__('This feed requires authentication.')."</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Options').'">';
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Options').'">';
|
|
|
|
|
|
|
|
|
|
|
|
//print "<div class=\"dlgSec\">".__("Options")."</div>";
|
|
|
|
|
|
|
|
print "<div class=\"dlgSecSimple\">";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$private = $row["private"];
|
|
|
|
$private = $row["private"];
|
|
|
|
|
|
|
|
|
|
|
|
if ($private) {
|
|
|
|
if ($private) {
|
|
|
@ -745,9 +740,8 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"hide_images\"
|
|
|
|
print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='hide_images'
|
|
|
|
name=\"hide_images\"
|
|
|
|
name='hide_images' $checked> ".__('Do not embed media')."</label>";
|
|
|
|
$checked> ".__('Do not embed media')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
@ -761,9 +755,8 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"cache_images\"
|
|
|
|
print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='cache_images'
|
|
|
|
name=\"cache_images\"
|
|
|
|
name='cache_images' $checked> ". __('Cache media')."</label>";
|
|
|
|
$checked> ". __('Cache media')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
@ -777,42 +770,35 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input dojoType=\"dijit.form.CheckBox\" type=\"checkbox\" id=\"mark_unread_on_update\"
|
|
|
|
print "<label class='checkbox'><input dojoType='dijit.form.CheckBox' type='checkbox' id='mark_unread_on_update'
|
|
|
|
name=\"mark_unread_on_update\"
|
|
|
|
name='mark_unread_on_update' $checked> ".__('Mark updated articles as unread')."</label>";
|
|
|
|
$checked> ".__('Mark updated articles as unread')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Icon').'">';
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Icon').'">';
|
|
|
|
|
|
|
|
|
|
|
|
/* Icon */
|
|
|
|
/* Icon */
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"dlgSecSimple\">";
|
|
|
|
print "<img class='feedIcon' src=\"".Feeds::getFeedIcon($feed_id)."\">";
|
|
|
|
|
|
|
|
|
|
|
|
print "<img class=\"feedIcon\" src=\"".Feeds::getFeedIcon($feed_id)."\">";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<iframe name=\"icon_upload_iframe\"
|
|
|
|
print "<iframe name='icon_upload_iframe'
|
|
|
|
style=\"width: 400px; height: 100px; display: none;\"></iframe>";
|
|
|
|
style='width: 400px; height: 100px; display: none;'></iframe>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<form style='display : block' target=\"icon_upload_iframe\"
|
|
|
|
print "<form style='display : block' target='icon_upload_iframe'
|
|
|
|
enctype=\"multipart/form-data\" method=\"POST\"
|
|
|
|
enctype='multipart/form-data' method='POST'
|
|
|
|
action=\"backend.php\">
|
|
|
|
action='backend.php'>
|
|
|
|
<label class=\"dijitButton\">".__("Choose file...")."
|
|
|
|
<label class='dijitButton'>".__("Choose file...")."
|
|
|
|
<input style=\"display: none\" id=\"icon_file\" size=\"10\" name=\"icon_file\" type=\"file\">
|
|
|
|
<input style='display: none' id='icon_file' size='10' name='icon_file' type='file'>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<input type=\"hidden\" name=\"op\" value=\"pref-feeds\">
|
|
|
|
<input type='hidden' name='op' value='pref-feeds'>
|
|
|
|
<input type=\"hidden\" name=\"feed_id\" value=\"$feed_id\">
|
|
|
|
<input type='hidden' name='feed_id' value=\"$feed_id\">
|
|
|
|
<input type=\"hidden\" name=\"method\" value=\"uploadicon\">
|
|
|
|
<input type='hidden' name='method' value=\"uploadicon\">
|
|
|
|
<button class=\"\" dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.uploadFeedIcon();\"
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"return CommonDialogs.uploadFeedIcon();\"
|
|
|
|
type=\"submit\">".__('Replace')."</button>
|
|
|
|
type='submit'>".__('Replace')."</button>
|
|
|
|
<button class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.removeFeedIcon($feed_id);\"
|
|
|
|
<button class='alt-danger' dojoType='dijit.form.Button' onclick=\"return CommonDialogs.removeFeedIcon($feed_id);\"
|
|
|
|
type=\"submit\">".__('Remove')."</button>
|
|
|
|
type='submit'>".__('Remove')."</button>
|
|
|
|
</form>";
|
|
|
|
</form>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Plugins').'">';
|
|
|
|
print '</div><div dojoType="dijit.layout.ContentPane" title="'.__('Plugins').'">';
|
|
|
|
|
|
|
|
|
|
|
|
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED,
|
|
|
|
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED,
|
|
|
@ -822,16 +808,12 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
|
|
$title = htmlspecialchars($title, ENT_QUOTES);
|
|
|
|
$title = htmlspecialchars($title, ENT_QUOTES);
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgButtons'>
|
|
|
|
print "<footer>
|
|
|
|
<div style=\"float : left\">
|
|
|
|
<button style='float : left' class='alt-danger' dojoType='dijit.form.Button' onclick='return CommonDialogs.unsubscribeFeed($feed_id, \"$title\")'>".
|
|
|
|
<button class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick='return CommonDialogs.unsubscribeFeed($feed_id, \"$title\")'>".
|
|
|
|
__('Unsubscribe')."</button>
|
|
|
|
__('Unsubscribe')."</button>";
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('feedEditDlg').execute()\">".__('Save')."</button>
|
|
|
|
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('feedEditDlg').hide()\">".__('Cancel')."</button>
|
|
|
|
print "</div>";
|
|
|
|
</footer>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('feedEditDlg').execute()\">".__('Save')."</button>
|
|
|
|
|
|
|
|
<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('feedEditDlg').hide()\">".__('Cancel')."</button>
|
|
|
|
|
|
|
|
</div>";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -849,8 +831,8 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("method", "batchEditSave");
|
|
|
|
print_hidden("method", "batchEditSave");
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"dlgSec\">".__("Feed")."</div>";
|
|
|
|
print "<header>".__("Feed")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
/* Category */
|
|
|
|
/* Category */
|
|
|
|
|
|
|
|
|
|
|
@ -882,10 +864,10 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"dlgSec\">".__("Update")."</div>";
|
|
|
|
print "<header>".__("Update")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
/* Update Interval */
|
|
|
|
/* Update Interval */
|
|
|
|
|
|
|
|
|
|
|
@ -916,93 +898,85 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
print "<div class=\"dlgSec\">".__("Authentication")."</div>";
|
|
|
|
print "<header>".__("Authentication")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset>";
|
|
|
|
print "<fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<input dojoType=\"dijit.form.TextBox\"
|
|
|
|
print "<input dojoType='dijit.form.TextBox'
|
|
|
|
placeHolder=\"".__("Login")."\" disabled=\"1\"
|
|
|
|
placeHolder=\"".__("Login")."\" disabled='1'
|
|
|
|
autocomplete=\"new-password\"
|
|
|
|
autocomplete='new-password'
|
|
|
|
name=\"auth_login\" value=\"\">";
|
|
|
|
name='auth_login' value=''>";
|
|
|
|
|
|
|
|
|
|
|
|
$this->batch_edit_cbox("auth_login");
|
|
|
|
$this->batch_edit_cbox("auth_login");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "<input dojoType='dijit.form.TextBox' type='password' name='auth_pass'
|
|
|
|
print "<fieldset>";
|
|
|
|
autocomplete='new-password'
|
|
|
|
|
|
|
|
placeHolder=\"".__("Password")."\" disabled='1'
|
|
|
|
print "<input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\"
|
|
|
|
value=''>";
|
|
|
|
autocomplete=\"new-password\"
|
|
|
|
|
|
|
|
placeHolder=\"".__("Password")."\" disabled=\"1\"
|
|
|
|
|
|
|
|
value=\"\">";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->batch_edit_cbox("auth_pass");
|
|
|
|
$this->batch_edit_cbox("auth_pass");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
print "<div class=\"dlgSec\">".__("Options")."</div>";
|
|
|
|
print "<header>".__("Options")."</header>";
|
|
|
|
print "<div class=\"dlgSecCont\">";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
print "<fieldset class='narrow'>";
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" name=\"private\" id=\"private\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' name='private' id='private'
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ".__('Hide from Popular feeds')."</label>";
|
|
|
|
dojoType='dijit.form.CheckBox'> ".__('Hide from Popular feeds')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("private", "private_l");
|
|
|
|
print " "; $this->batch_edit_cbox("private", "private_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" id=\"include_in_digest\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' id='include_in_digest'
|
|
|
|
name=\"include_in_digest\"
|
|
|
|
name='include_in_digest' dojoType='dijit.form.CheckBox'> ".__('Include in e-mail digest')."</label>";
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ".__('Include in e-mail digest')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("include_in_digest", "include_in_digest_l");
|
|
|
|
print " "; $this->batch_edit_cbox("include_in_digest", "include_in_digest_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" id=\"always_display_enclosures\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' id='always_display_enclosures'
|
|
|
|
name=\"always_display_enclosures\"
|
|
|
|
name='always_display_enclosures' dojoType='dijit.form.CheckBox'> ".__('Always display image attachments')."</label>";
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ".__('Always display image attachments')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l");
|
|
|
|
print " "; $this->batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" id=\"hide_images\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' id='hide_images'
|
|
|
|
name=\"hide_images\"
|
|
|
|
name='hide_images' dojoType='dijit.form.CheckBox'> ". __('Do not embed media')."</label>";
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ". __('Do not embed media')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("hide_images", "hide_images_l");
|
|
|
|
print " "; $this->batch_edit_cbox("hide_images", "hide_images_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' id='cache_images'
|
|
|
|
name=\"cache_images\"
|
|
|
|
name='cache_images' dojoType='dijit.form.CheckBox'> ".__('Cache media')."</label>";
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ".__('Cache media')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("cache_images", "cache_images_l");
|
|
|
|
print " "; $this->batch_edit_cbox("cache_images", "cache_images_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
print "</fieldset><fieldset class='narrow'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<label class='checkbox'><input disabled=\"1\" type=\"checkbox\" id=\"mark_unread_on_update\"
|
|
|
|
print "<label class='checkbox'><input disabled='1' type='checkbox' id='mark_unread_on_update'
|
|
|
|
name=\"mark_unread_on_update\"
|
|
|
|
name='mark_unread_on_update' dojoType='dijit.form.CheckBox'> ".__('Mark updated articles as unread')."</label>";
|
|
|
|
dojoType=\"dijit.form.CheckBox\"> ".__('Mark updated articles as unread')."</label>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print " "; $this->batch_edit_cbox("mark_unread_on_update", "mark_unread_on_update_l");
|
|
|
|
print " "; $this->batch_edit_cbox("mark_unread_on_update", "mark_unread_on_update_l");
|
|
|
|
|
|
|
|
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgButtons'>
|
|
|
|
print "<footer>
|
|
|
|
<button dojoType=\"dijit.form.Button\" type='submit' class='alt-primary'
|
|
|
|
<button dojoType='dijit.form.Button' type='submit' class='alt-primary'
|
|
|
|
onclick=\"return dijit.byId('feedEditDlg').execute()\">".
|
|
|
|
onclick=\"return dijit.byId('feedEditDlg').execute()\">".
|
|
|
|
__('Save')."</button>
|
|
|
|
__('Save')."</button>
|
|
|
|
<button dojoType=\"dijit.form.Button\"
|
|
|
|
<button dojoType='dijit.form.Button'
|
|
|
|
onclick=\"return dijit.byId('feedEditDlg').hide()\">".
|
|
|
|
onclick=\"return dijit.byId('feedEditDlg').hide()\">".
|
|
|
|
__('Cancel')."</button>
|
|
|
|
__('Cancel')."</button>
|
|
|
|
</div>";
|
|
|
|
</footer>";
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1499,16 +1473,14 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
ORDER BY last_article");
|
|
|
|
ORDER BY last_article");
|
|
|
|
$sth->execute([$_SESSION['uid']]);
|
|
|
|
$sth->execute([$_SESSION['uid']]);
|
|
|
|
|
|
|
|
|
|
|
|
print "<p" .__("These feeds have not been updated with new content for 3 months (oldest first):") . "</p>";
|
|
|
|
print "<div dojoType='dijit.Toolbar'>";
|
|
|
|
|
|
|
|
print "<div dojoType='dijit.form.DropDownButton'>".
|
|
|
|
print "<div dojoType=\"dijit.Toolbar\">";
|
|
|
|
|
|
|
|
print "<div dojoType=\"dijit.form.DropDownButton\">".
|
|
|
|
|
|
|
|
"<span>" . __('Select')."</span>";
|
|
|
|
"<span>" . __('Select')."</span>";
|
|
|
|
print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">";
|
|
|
|
print "<div dojoType='dijit.Menu' style='display: none'>";
|
|
|
|
print "<div onclick=\"Tables.select('inactive-feeds-list', true)\"
|
|
|
|
print "<div onclick=\"Tables.select('inactive-feeds-list', true)\"
|
|
|
|
dojoType=\"dijit.MenuItem\">".__('All')."</div>";
|
|
|
|
dojoType='dijit.MenuItem'>".__('All')."</div>";
|
|
|
|
print "<div onclick=\"Tables.select('inactive-feeds-list', false)\"
|
|
|
|
print "<div onclick=\"Tables.select('inactive-feeds-list', false)\"
|
|
|
|
dojoType=\"dijit.MenuItem\">".__('None')."</div>";
|
|
|
|
dojoType='dijit.MenuItem'>".__('None')."</div>";
|
|
|
|
print "</div></div>";
|
|
|
|
print "</div></div>";
|
|
|
|
print "</div>"; #toolbar
|
|
|
|
print "</div>"; #toolbar
|
|
|
|
|
|
|
|
|
|
|
@ -1524,16 +1496,16 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "<tr data-row-id='$feed_id'>";
|
|
|
|
print "<tr data-row-id='$feed_id'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<td width='5%' align='center'><input
|
|
|
|
print "<td width='5%' align='center'><input
|
|
|
|
onclick='Tables.onRowChecked(this);' dojoType=\"dijit.form.CheckBox\"
|
|
|
|
onclick='Tables.onRowChecked(this);' dojoType='dijit.form.CheckBox'
|
|
|
|
type=\"checkbox\"></td>";
|
|
|
|
type='checkbox'></td>";
|
|
|
|
print "<td>";
|
|
|
|
print "<td>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<a class=\"visibleLink\" href=\"#\" ".
|
|
|
|
print "<a href='#' ".
|
|
|
|
"title=\"".__("Click to edit feed")."\" ".
|
|
|
|
"title=\"".__("Click to edit feed")."\" ".
|
|
|
|
"onclick=\"CommonDialogs.editFeed(".$line["id"].")\">".
|
|
|
|
"onclick=\"CommonDialogs.editFeed(".$line["id"].")\">".
|
|
|
|
htmlspecialchars($line["title"])."</a>";
|
|
|
|
htmlspecialchars($line["title"])."</a>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</td><td class=\"insensitive\" align='right'>";
|
|
|
|
print "</td><td class='insensitive' align='right'>";
|
|
|
|
print make_local_datetime($line['last_article'], false);
|
|
|
|
print make_local_datetime($line['last_article'], false);
|
|
|
|
print "</td>";
|
|
|
|
print "</td>";
|
|
|
|
print "</tr>";
|
|
|
|
print "</tr>";
|
|
|
@ -1544,16 +1516,12 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</table>";
|
|
|
|
print "</table>";
|
|
|
|
print "</div>";
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgButtons'>";
|
|
|
|
print "<footer>
|
|
|
|
print "<div style='float : left'>";
|
|
|
|
<button style='float : left' class=\"alt-danger\" dojoType='dijit.form.Button' onclick=\"dijit.byId('inactiveFeedsDlg').removeSelected()\">"
|
|
|
|
print "<button class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('inactiveFeedsDlg').removeSelected()\">"
|
|
|
|
.__('Unsubscribe from selected feeds')."</button>
|
|
|
|
.__('Unsubscribe from selected feeds')."</button> ";
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"dijit.byId('inactiveFeedsDlg').hide()\">"
|
|
|
|
print "</div>";
|
|
|
|
.__('Close this window')."</button>
|
|
|
|
|
|
|
|
</footer>";
|
|
|
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('inactiveFeedsDlg').hide()\">".
|
|
|
|
|
|
|
|
__('Close this window')."</button>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1607,16 +1575,14 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</table>";
|
|
|
|
print "</table>";
|
|
|
|
print "</div>";
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgButtons'>";
|
|
|
|
print "<footer>";
|
|
|
|
print "<div style='float : left'>";
|
|
|
|
print "<button style='float : left' class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('errorFeedsDlg').removeSelected()\">"
|
|
|
|
print "<button class=\"alt-danger\" dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('errorFeedsDlg').removeSelected()\">"
|
|
|
|
|
|
|
|
.__('Unsubscribe from selected feeds')."</button> ";
|
|
|
|
.__('Unsubscribe from selected feeds')."</button> ";
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('errorFeedsDlg').hide()\">".
|
|
|
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('errorFeedsDlg').hide()\">".
|
|
|
|
__('Close this window')."</button>";
|
|
|
|
__('Close this window')."</button>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</footer>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function remove_feed_category($id, $owner_uid) {
|
|
|
|
private function remove_feed_category($id, $owner_uid) {
|
|
|
@ -1710,9 +1676,8 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("op", "pref-feeds");
|
|
|
|
print_hidden("method", "batchaddfeeds");
|
|
|
|
print_hidden("method", "batchaddfeeds");
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgSecHoriz'>".__("One valid feed per line (no detection is done)")."</div>";
|
|
|
|
print "<header class='horizontal'>".__("One valid feed per line (no detection is done)")."</header>";
|
|
|
|
|
|
|
|
print "<section>";
|
|
|
|
print "<div class='dlgSecCont'>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<textarea
|
|
|
|
print "<textarea
|
|
|
|
style='font-size : 12px; width : 98%; height: 200px;'
|
|
|
|
style='font-size : 12px; width : 98%; height: 200px;'
|
|
|
@ -1725,16 +1690,18 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div id='feedDlg_loginContainer' style='display : none'>";
|
|
|
|
print "<div id='feedDlg_loginContainer' style='display : none'>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgSec'>" . __("Authentication") . "</div>";
|
|
|
|
print "<header>" . __("Authentication") . "</header>";
|
|
|
|
print "<div class='dlgSecCont'>";
|
|
|
|
print "<section>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<input dojoType='dijit.form.TextBox' name='login' placeHolder=\"".__("Login")."\">
|
|
|
|
print "<input dojoType='dijit.form.TextBox' name='login' placeHolder=\"".__("Login")."\">
|
|
|
|
<input placeHolder=\"".__("Password")."\" dojoType=\"dijit.form.TextBox\" type='password'
|
|
|
|
<input placeHolder=\"".__("Password")."\" dojoType=\"dijit.form.TextBox\" type='password'
|
|
|
|
autocomplete='new-password' name='pass''></div>";
|
|
|
|
autocomplete='new-password' name='pass''></div>";
|
|
|
|
|
|
|
|
|
|
|
|
print "</div>";
|
|
|
|
print "</section>";
|
|
|
|
print "</div>";
|
|
|
|
print "</div>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<fieldset class='narrow'>
|
|
|
|
print "<fieldset class='narrow'>
|
|
|
@ -1743,10 +1710,10 @@ class Pref_Feeds extends Handler_Protected {
|
|
|
|
__('Feeds require authentication.')."</label></div>";
|
|
|
|
__('Feeds require authentication.')."</label></div>";
|
|
|
|
print "</fieldset>";
|
|
|
|
print "</fieldset>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class='dlgButtons'>
|
|
|
|
print "<footer>
|
|
|
|
<button dojoType='dijit.form.Button' type='submit' class='alt-primary' onclick=\"return dijit.byId('batchSubDlg').execute()\">".__('Subscribe')."</button>
|
|
|
|
<button dojoType='dijit.form.Button' type='submit' class='alt-primary' onclick=\"return dijit.byId('batchSubDlg').execute()\">".__('Subscribe')."</button>
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('batchSubDlg').hide()\">".__('Cancel')."</button>
|
|
|
|
<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('batchSubDlg').hide()\">".__('Cancel')."</button>
|
|
|
|
</div>";
|
|
|
|
</footer>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function batchAddFeeds() {
|
|
|
|
function batchAddFeeds() {
|
|
|
|