Cleaning Up

This commit is contained in:
Danang Probo Sayekti 2015-07-30 12:53:43 +07:00
commit 0d139d9401
6 changed files with 41 additions and 38 deletions

View file

@ -5,59 +5,59 @@ Options -Indexes
ErrorDocument 404 /index.php ErrorDocument 404 /index.php
# Set the default handler. # Set the default handler.
DirectoryIndex index.php index.html index.htm DirectoryIndex index.php
# Requires mod_expires to be enabled. # Requires mod_expires to be enabled.
<IfModule mod_expires.c> <IfModule mod_expires.c>
# to activate mode_expires # to activate mode_expires
ExpiresActive on # ExpiresActive on
ExpiresDefault "access plus 1 month" # ExpiresDefault "access plus 1 month"
# For CSS # For CSS
ExpiresByType text/css "access plus 1 month" # ExpiresByType text/css "access plus 1 month"
# For Data interchange # For Data interchange
ExpiresByType application/json "access plus 0 seconds" # ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds" # ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds" # ExpiresByType text/xml "access plus 0 seconds"
# For Favicon # For Favicon
ExpiresByType image/x-icon "access plus 1 year" # ExpiresByType image/x-icon "access plus 1 year"
# For HTML components (HTCs) # For HTML components (HTCs)
ExpiresByType text/x-component "access plus 1 month" # ExpiresByType text/x-component "access plus 1 month"
# For HTML # For HTML
ExpiresByType text/html "access plus 1 month" # ExpiresByType text/html "access plus 1 month"
# For JavaScript # For JavaScript
ExpiresByType application/javascript "access plus 1 month" # ExpiresByType application/javascript "access plus 1 month"
# For Manifest files # For Manifest files
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds" # ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds" # ExpiresByType text/cache-manifest "access plus 0 seconds"
# For Media # For Media
ExpiresByType audio/ogg "access plus 1 month" # ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month" # ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month" # ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month" # ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month" # ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month" # ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month" # ExpiresByType video/webm "access plus 1 month"
# For Web feeds # For Web feeds
ExpiresByType application/atom+xml "access plus 1 day" # ExpiresByType application/atom+xml "access plus 1 day"
ExpiresByType application/rss+xml "access plus 1 day" # ExpiresByType application/rss+xml "access plus 1 day"
# For Web fonts # For Web fonts
ExpiresByType application/font-woff "access plus 1 month" # ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month" # ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month" # ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month" # ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month" # ExpiresByType image/svg+xml "access plus 1 month"
</IfModule> </IfModule>
@ -119,4 +119,4 @@ DirectoryIndex index.php index.html index.htm
text/x-component \ text/x-component \
text/xml text/xml
</IfModule> </IfModule>

View file

@ -1,4 +1,4 @@
{ {
"id": 782014, "id": 782014,
"tag_name": "v2.5.5" "tag_name": "v2.5.6"
} }

View file

@ -65,6 +65,9 @@ related.count = "3"
; Recent posts ; Recent posts
recent.count = "5" recent.count = "5"
; Popular posts
popular.count = "5"
; Author info on blog post. Set "true" or "false". ; Author info on blog post. Set "true" or "false".
author.info = "true" author.info = "true"

View file

@ -19,11 +19,11 @@ if ($updater->able()) {
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>'; echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>'; echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>';
} else { } else {
echo '<h2>Congrats! You are Up to Date</h2>'; echo '<h2>Congrats! You have the latest version of HTMLy</h2>';
$info = $updater->getCurrentInfo(); $info = $updater->getCurrentInfo();
echo '<p>Release Title: '. $info['name'] .'</p>'; echo '<p>Release Title: '. $info['name'] .'</p>';
echo '<p>Version: '. $info['tag_name'] .'</p>'; echo '<p>Installed Version: '. $info['tag_name'] .'</p>';
echo '<p>Release Notes: </p>'; echo '<p>Release Notes: </p>';
echo '<pre><code>'. $info['body'] .'</code></pre>'; echo '<pre><code>'. $info['body'] .'</code></pre>';
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a></p>'; echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a>.</p>';
} }

View file

@ -61,9 +61,9 @@
<span class="more"><a class="btn btn-cta-secondary" href="<?php echo $p->url;?>">Read more</a></span> <span class="more"><a class="btn btn-cta-secondary" href="<?php echo $p->url;?>">Read more</a></span>
<?php endif;?> <?php endif;?>
<span class="share pull-right"> <span class="share pull-right">
<a class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a> <a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a> <a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
<a class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a> <a target="_blank" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>

View file

@ -49,9 +49,9 @@
<i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> comments</span></a> <i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> comments</span></a>
<?php } ?> <?php } ?>
<span class="share pull-right"> <span class="share pull-right">
<a class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a> <a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fa fa-facebook"></i></a>
<a href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a> <a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fa fa-twitter"></i></a>
<a class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a> <a target="_blank" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
</span> </span>
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>