Browse Source

Add feed link

pull/674/head
danpros 1 year ago
parent
commit
f6fe970ef4
12 changed files with 25 additions and 27 deletions
  1. +2
    -0
      system/htmly.php
  2. +0
    -5
      themes/twentyfifteen/README.md
  3. +1
    -1
      themes/twentyfifteen/css/style.css
  4. +1
    -1
      themes/twentyfifteen/css/style_v2.css
  5. +5
    -0
      themes/twentyfifteen/layout.html.php
  6. +5
    -5
      themes/twentyfifteen/main.html.php
  7. +2
    -2
      themes/twentyfifteen/profile.html.php
  8. +0
    -5
      themes/twentysixteen/README.md
  9. +1
    -1
      themes/twentysixteen/css/style.css
  10. +1
    -0
      themes/twentysixteen/layout.html.php
  11. +5
    -5
      themes/twentysixteen/main.html.php
  12. +2
    -2
      themes/twentysixteen/profile.html.php

+ 2
- 0
system/htmly.php View File

@ -280,6 +280,7 @@ get('/author/:name', function ($name) {
'posts' => null,
'about' => $author->about,
'name' => $author->name,
'author' => $author,
'type' => 'is_profile',
'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,
@ -307,6 +308,7 @@ get('/author/:name', function ($name) {
'posts' => $posts,
'about' => $author->about,
'name' => $author->name,
'author' => $author,
'type' => 'is_profile',
'bodyclass' => 'in-profile author-' . $name,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Profile_for') . ' ' . $author->name,


+ 0
- 5
themes/twentyfifteen/README.md View File

@ -1,11 +1,6 @@
# HTMLy Theme Twenty Fifteen
WordPress Twenty Fifteen ported to HTMLy.
## Installations
- Upload and extract the zip file into themes directory.
- Rename the extracted folder to `twentyfifteen`.
- Change the `views.root` using `http://www.example.com/admin/config` to `themes/twentyfifteen`
## License
See the LICENSE.txt

+ 1
- 1
themes/twentyfifteen/css/style.css View File

@ -880,7 +880,7 @@ a:focus {
content: "\f516";
}
.social-navigation a[href$="/feed/rss"]:before {
.social-navigation a[href*="/feed"]:before {
content: "\f413";
}


+ 1
- 1
themes/twentyfifteen/css/style_v2.css View File

@ -881,7 +881,7 @@ a:focus {
content: "\f516";
}
.social-navigation a[href$="/feed/rss"]:before {
.social-navigation a[href*="/feed"]:before {
content: "\f413";
}


+ 5
- 0
themes/twentyfifteen/layout.html.php View File

@ -47,6 +47,11 @@
<nav id="social-navigation" class="social-navigation" role="navigation">
<div class="menu-social-links-container">
<ul id="menu-social-links" class="menu">
<li class="menu-item">
<a href="<?php echo site_url();?>feed/rss">
<span class="screen-reader-text">RSS</span>
</a>
</li>
<?php if(!empty(config('social.twitter'))):?>
<li class="menu-item">
<a href="<?php echo config('social.twitter');?>">


+ 5
- 5
themes/twentyfifteen/main.html.php View File

@ -1,18 +1,18 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if ($is_category):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $category->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<?php endif;?>
<?php if ($is_tag):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $tag->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1></header>
<?php endif;?>
<?php if ($is_archive):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $archive->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<?php endif;?>
<?php if ($is_search):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $search->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<?php endif;?>
<?php if ($is_type):?>
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<header class="page-header"><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $type->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<?php endif;?>
<?php foreach ($posts as $p): ?>
<article class="post type-post hentry <?php if ($p->image || $p->audio || $p->video):?>has-post-thumbnail<?php endif;?>">


+ 2
- 2
themes/twentyfifteen/profile.html.php View File

@ -1,10 +1,10 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<article class="page type-page hentry">
<header class="entry-header">
<h1 class="entry-title"><?php echo $name ?></h1>
<h1 class="entry-title"><?php echo $author->name ?></h1><span class="social-navigation" style="margin:0 auto;float:right;"><a style="height:100%" href="<?php echo $author->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span>
</header>
<div class="entry-content">
<?php echo $about ?>
<?php echo $author->about ?>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if ($posts) { ?>
<ul class="post-list">


+ 0
- 5
themes/twentysixteen/README.md View File

@ -1,11 +1,6 @@
# HTMLy Theme Twenty Sixteen
WordPress Twenty Sixteen ported to HTMLy.
## Installations
- Upload and extract the zip file into themes directory.
- Rename the extracted folder to `twentysixteen`.
- Change the `views.root` using `http://www.example.com/admin/config` to `themes/twentysixteen`
## License
See the LICENSE.txt

+ 1
- 1
themes/twentysixteen/css/style.css View File

@ -1023,7 +1023,7 @@ a:active {
content: "\f516";
}
.social-navigation a[href$="/feed/"]:before {
.social-navigation a[href*="/feed"]:before {
content: "\f413";
}


+ 1
- 0
themes/twentysixteen/layout.html.php View File

@ -125,6 +125,7 @@
<ul class="social-links-menu" id="menu-social-links">
<?php if(!empty(config('social.twitter'))):?><li><a href="<?php echo config('social.twitter');?>"><span class="screen-reader-text">Twitter</span></a></li><?php endif;?>
<?php if(!empty(config('social.facebook'))):?><li><a href="<?php echo config('social.facebook');?>"><span class="screen-reader-text">Facebook</span></a></li><?php endif;?>
<li><a href="<?php echo site_url();?>feed/rss"><span class="screen-reader-text">RSS</span></a></li>
</ul>
</div>
</nav>


+ 5
- 5
themes/twentysixteen/main.html.php View File

@ -1,18 +1,18 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if ($is_category):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?></h1><div class="taxonomy-description"><?php echo $category->body;?></div></header>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Category');?>: <?php echo $category->title;?> </h1><span class="social-navigation" style="display:inline;margin:0 auto;float:right;"><a href="<?php echo $category->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span><div class="taxonomy-description"><?php echo $category->body;?> </div> </header>
<?php endif;?>
<?php if ($is_tag):?>
<header class="page-header"><h1 class="page-title">Tag: <?php echo $tag->title;?></h1></header>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Tags');?>: <?php echo $tag->title;?></h1><span class="social-navigation" style="float:right;"><a href="<?php echo $tag->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span></header>
<?php endif;?>
<?php if ($is_archive):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1></header>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Archives');?>: <?php echo $archive->title;?></h1><span class="social-navigation" style="float:right;"><a href="<?php echo $archive->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span></header>
<?php endif;?>
<?php if ($is_search):?>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1></header>
<header class="page-header"><h1 class="page-title"><?php echo i18n('Search');?>: <?php echo $search->title;?></h1><span class="social-navigation" style="float:right;"><a href="<?php echo $search->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span></header>
<?php endif;?>
<?php if ($is_type):?>
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1></header>
<header class="page-header"><h1 class="page-title">Type: <?php echo ucfirst($type->title);?></h1><span class="social-navigation" style="float:right;"><a href="<?php echo $type->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span></header>
<?php endif;?>
<?php foreach ($posts as $p):?>
<article class="post <?php if ($p->type == 'post') {echo 'format-standard';} else { echo 'format-' . $p->type;} ?> hentry single">


+ 2
- 2
themes/twentysixteen/profile.html.php View File

@ -1,10 +1,10 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<article class="page type-page hentry">
<header class="entry-header">
<h1 class="entry-title"><?php echo $name ?></h1>
<h1 class="entry-title"><?php echo $author->name ?></h1><span class="social-navigation" style="float:right;"><a href="<?php echo $author->url;?>/feed"><span class="screen-reader-text">RSS</span></a></span>
</header>
<div class="entry-content">
<?php echo $about ?>
<?php echo $author->about ?>
<h2 class="post-index"><?php echo i18n('Post_by_author');?></h2>
<?php if ($posts) { ?>
<ul class="post-list">


Loading…
Cancel
Save