diff options
author | Andrew Dolgov <[email protected]> | 2021-02-14 09:15:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-14 09:15:51 +0300 |
commit | 15fd23c374eb32c50733de1906065f552afbfbc4 (patch) | |
tree | 7c693cf1a27d7c3049fe75af85bcf98ee4d2f836 /plugins | |
parent | d4c925819b9d85a00520e413a90cfbcd61a1c667 (diff) |
use shortcut echo syntax for php templates
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/af_redditimgur/init.php | 4 | ||||
-rw-r--r-- | plugins/auth_internal/init.php | 18 | ||||
-rw-r--r-- | plugins/toggle_sidebar/init.php | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/plugins/af_redditimgur/init.php b/plugins/af_redditimgur/init.php index 2e89fcdff..b9a2db68d 100755 --- a/plugins/af_redditimgur/init.php +++ b/plugins/af_redditimgur/init.php @@ -648,11 +648,11 @@ class Af_RedditImgur extends Plugin { <form action="backend.php?op=pluginhandler&method=testurl&plugin=af_redditimgur" method="post"> <fieldset> <label>URL:</label> - <input name="url" size="100" value="<?php echo htmlspecialchars($url) ?>"></input> + <input name="url" size="100" value="<?= htmlspecialchars($url) ?>"></input> </fieldset> <fieldset> <label>Article URL:</label> - <input name="article_url" size="100" value="<?php echo htmlspecialchars($article_url) ?>"></input> + <input name="article_url" size="100" value="<?= htmlspecialchars($article_url) ?>"></input> </fieldset> <fieldset> <button type="submit">Test</button> diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php index a69ea444c..6a68534ea 100644 --- a/plugins/auth_internal/init.php +++ b/plugins/auth_internal/init.php @@ -63,21 +63,21 @@ class Auth_Internal extends Auth_Base { <title>Tiny Tiny RSS</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> - <?php echo stylesheet_tag("themes/light.css") ?> + <?= stylesheet_tag("themes/light.css") ?> <body class="ttrss_utility otp"> - <h1><?php echo __("Authentication") ?></h1> + <h1><?= __("Authentication") ?></h1> <div class="content"> - <form action="public.php?return=<?php echo $return ?>" + <form action="public.php?return=<?= $return ?>" method="POST" class="otpform"> <input type="hidden" name="op" value="login"> - <input type="hidden" name="login" value="<?php echo htmlspecialchars($login) ?>"> - <input type="hidden" name="password" value="<?php echo htmlspecialchars($password) ?>"> - <input type="hidden" name="bw_limit" value="<?php echo htmlspecialchars($_POST["bw_limit"]) ?>"> - <input type="hidden" name="remember_me" value="<?php echo htmlspecialchars($_POST["remember_me"]) ?>"> - <input type="hidden" name="profile" value="<?php echo htmlspecialchars($_POST["profile"]) ?>"> + <input type="hidden" name="login" value="<?= htmlspecialchars($login) ?>"> + <input type="hidden" name="password" value="<?= htmlspecialchars($password) ?>"> + <input type="hidden" name="bw_limit" value="<?= htmlspecialchars($_POST["bw_limit"]) ?>"> + <input type="hidden" name="remember_me" value="<?= htmlspecialchars($_POST["remember_me"]) ?>"> + <input type="hidden" name="profile" value="<?= htmlspecialchars($_POST["profile"]) ?>"> <fieldset> - <label><?php echo __("Please enter your one time password:") ?></label> + <label><?= __("Please enter your one time password:") ?></label> <input autocomplete="off" size="6" name="otp" value=""/> <input type="submit" value="Continue"/> </fieldset> diff --git a/plugins/toggle_sidebar/init.php b/plugins/toggle_sidebar/init.php index f8ec35a91..19ca960e2 100644 --- a/plugins/toggle_sidebar/init.php +++ b/plugins/toggle_sidebar/init.php @@ -24,7 +24,7 @@ class Toggle_Sidebar extends Plugin { <button dojoType="dijit.form.Button" onclick="Plugins.Toggle_Sidebar.toggle(this)"> <i class="material-icons toggle-sidebar-label" - title="<?php echo __('Toggle sidebar') ?>">chevron_left</i> + title="<?= __('Toggle sidebar') ?>">chevron_left</i> </button> <?php |