Skip to content

Commit

Permalink
Merge duplicate HTML elements
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Mar 5, 2016
1 parent 0acb6ac commit c60e8c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions admin/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
yourls_html_menu();
?>

<div class="sub_wrap">
<main role="main">
<main role="main" class="sub_wrap">

<h2><?php yourls_e( 'Bookmarklets' ); ?></h2>

Expand Down Expand Up @@ -330,9 +329,8 @@
</ul>

<p><?php yourls_se( 'See the <a href="%s">API documentation</a> for more', YOURLS_SITE . '/readme.html#API' ); ?></p>

</main>
</div>

</main>

<?php } // end is private ?>

Expand Down
4 changes: 2 additions & 2 deletions includes/functions-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ function yourls_html_footer() {
$num_queries = sprintf( yourls_n( '1 query', '%s queries', $ydb->num_queries ), $ydb->num_queries );
?>
</div><?php // wrap ?>
<div id="footer"><footer role="contentinfo"><p>
<footer id="footer" role="contentinfo"><p>
<?php
$footer = yourls_s( 'Powered by %s', '<a href="http://yourls.org/" title="YOURLS">YOURLS</a> v ' . YOURLS_VERSION );
$footer .= ' &ndash; '.$num_queries;
echo yourls_apply_filter( 'html_footer_text', $footer );
?>
</p></footer></div>
</p></footer>
<?php if( defined( 'YOURLS_DEBUG' ) && YOURLS_DEBUG == true ) {
echo '<div style="text-align:left"><pre>';
echo join( "\n", $ydb->debug_log );
Expand Down

0 comments on commit c60e8c9

Please sign in to comment.