Просмотр исходного кода

changed <h2> to <legend> (#3676)

* changed <h2> to <legend>

* white spaces replaced to tabs

Thanks for the review

* fixed shortcut.phtml headline

legend -> h2

* fixed bookmarklet.phtml headline

legend -> h2
maTh 4 лет назад
Родитель
Сommit
3ed9d00f0a

+ 1 - 1
app/views/configure/shortcut.phtml

@@ -11,7 +11,7 @@
 
 	<?php $s = FreshRSS_Context::$user_conf->shortcuts; ?>
 
-	<legend><?= _t('conf.shortcut') ?></legend>
+	<h2><?= _t('conf.shortcut') ?></h2>
 	<?php if ([] !== $nonStandard = getNonStandardShortcuts($s)): ?>
 		<p class="alert alert-error">
 			<?= _t('conf.shortcut.non_standard', implode('</kbd>, <kbd>', $nonStandard)) ?>

+ 2 - 6
app/views/extension/index.phtml

@@ -4,12 +4,10 @@
 	<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
 
 	<h1><?= _t('admin.extensions.title') ?></h1>
-
+	<h2><?= _t('admin.extensions.system') ?></h2>
 	<form id="form-extension" method="post">
 	<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
-	<?php if (!empty($this->extension_list['system'])) { ?>
-	<h2><?= _t('admin.extensions.system') ?></h2>
-	<?php
+	<?php if (!empty($this->extension_list['system'])) {
 		foreach ($this->extension_list['system'] as $ext) {
 			$this->ext_details = $ext;
 			$this->renderHelper('extension/details');
@@ -24,8 +22,6 @@
 			$this->ext_details = $ext;
 			$this->renderHelper('extension/details');
 		}
-	?>
-	<?php
 	}
 
 	if (empty($this->extension_list['system']) && empty($this->extension_list['user'])) {

+ 4 - 2
app/views/subscription/add.phtml

@@ -3,8 +3,9 @@
 <div class="post drop-section">
 	<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
 
-	<h2><?= _t('sub.title.add_category') ?></h2>
+	
 	<form action="<?= _url('category', 'create') ?>" method="post">
+		<legend><?= _t('sub.title.add_category') ?></legend>
 		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 		<div class="form-group">
 			<label class="group-name" for="new-category"><?= _t('sub.category') ?></label>
@@ -20,8 +21,9 @@
 		</div>
 	</form>
 
-	<h2><?= _t('sub.title.add_feed') ?></h2>
+	
 	<form id="add_rss" method="post" action="<?= _url('feed', 'add') ?>" autocomplete="off">
+		<legend><?= _t('sub.title.add_feed') ?></legend>
 		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 
 		<div class="form-group">

+ 3 - 3
app/views/subscription/bookmarklet.phtml

@@ -3,20 +3,20 @@
 <div class="post">
 	<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
 
-	<legend><?= _t('sub.bookmarklet.title') ?></legend>
+	<h2><?= _t('sub.bookmarklet.title') ?></h2>
 	<p><a class="btn btn-important"
 		href="javascript:(function(){var%20url%20=%20location.href;var%20otherWindow=window.open('about:blank','_blank');otherWindow.opener=null;otherWindow.location='<?=
 		Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss='+encodeURIComponent(url);})();"><?= _t('sub.bookmarklet.label') ?></a></p>
 	<?= _t('sub.bookmarklet.documentation') ?>
 
-	<legend><?= _t('sub.firefox.title') ?></legend>
+	<h2><?= _t('sub.firefox.title') ?></h2>
 	<p class="alert alert-warn">
 		<?= _t('sub.firefox.obsolete_63', $this->default_category->name()) ?>
 	</p>
 	<p><?= _t('sub.firefox.documentation') ?></p>
 	<pre>browser.contentHandlers.types.number.uri → <?= Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss=%s</pre>
 
-	<legend><?= _t('sub.api.title') ?></legend>
+	<h2><?= _t('sub.api.title') ?></h2>
 	<p><?= _t('sub.api.documentation') ?></p>
 	<pre><?= Minz_Url::display(array('c' => 'feed', 'a' => 'add'), 'html', true) ?>&amp;url_rss=%s</pre>
 </div>

+ 5 - 4
app/views/tag/index.phtml

@@ -3,8 +3,8 @@
 <div class="post">
 	<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
 
-	<h2><?= _t('sub.title.add_label') ?></h2>
-		<form id="add_tag" method="post" action="<?= _url('tag', 'add') ?>" autocomplete="off">
+	<form id="add_tag" method="post" action="<?= _url('tag', 'add') ?>" autocomplete="off">
+		<legend><?= _t('sub.title.add_label') ?></legend>
 		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 		<div class="form-group">
 			<label class="group-name" for="category"><?= _t('sub.tag.name') ?></label>
@@ -20,8 +20,9 @@
 		</div>
 	</form>
 
-	<h2><?= _t('sub.title.rename_label') ?></h2>
+	
 	<form id="rename_tag" method="post" action="<?= _url('tag', 'rename') ?>" autocomplete="off">
+		<legend><?= _t('sub.title.rename_label') ?></legend>
 		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 		<div class="form-group">
 			<label class="group-name" for="category"><?= _t('sub.tag.old_name') ?></label>
@@ -47,8 +48,8 @@
 		</div>
 	</form>
 
-	<h2><?= _t('sub.title.delete_label') ?></h2>
 	<form id="delete_tag" method="post" action="<?= _url('tag', 'delete') ?>" autocomplete="off">
+		<legend><?= _t('sub.title.delete_label') ?></legend>
 		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
 		<div class="form-group">
 			<label class="group-name" for="category"><?= _t('sub.tag.name') ?></label>