From d924f20e7df738ed810343a58685f19e0994be68 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 26 Oct 2017 10:35:23 -0400 Subject: [PATCH] Template optimization. --- themes/bootstrap3/templates/admin/tags/manage.phtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/bootstrap3/templates/admin/tags/manage.phtml b/themes/bootstrap3/templates/admin/tags/manage.phtml index fb143e0451d..ce46884c0d0 100644 --- a/themes/bootstrap3/templates/admin/tags/manage.phtml +++ b/themes/bootstrap3/templates/admin/tags/manage.phtml @@ -15,9 +15,9 @@ <div class="form-group"> <label for="type" class="control-label"><?=$this->translate('delete_tags_by')?>:</label> <select id="type" name="type" class="form-control"> - <option value="user" <? if("user" == $this->type) echo " selected=selected";?>><?=$this->translate('Username')?></option> - <option value="tag" <? if("tag" == $this->type) echo " selected=selected";?>><?=$this->translate('Tag')?></option> - <option value="resource" <? if("resource" == $this->type) echo " selected=selected";?>><?=$this->translate('Title')?></option> + <option value="user" <?=("user" == $this->type) ? ' selected=selected' : ''?>><?=$this->translate('Username')?></option> + <option value="tag" <?=("tag" == $this->type) ? ' selected=selected' : ''?>><?=$this->translate('Tag')?></option> + <option value="resource" <?=("resource" == $this->type) ? ' selected=selected' : ''?>><?=$this->translate('Title')?></option> </select> <input type="submit" value="<?=$this->translate('Submit')?>" class="btn btn-primary"/> </div> -- GitLab