Browse Source

Cleaning Up

pull/189/head
Danang Probo Sayekti 10 years ago
parent
commit
0d139d9401
6 changed files with 41 additions and 38 deletions
  1. +28
    -28
      .htaccess
  2. +1
    -1
      cache/installedVersion.json
  3. +3
    -0
      config/config.ini.example
  4. +3
    -3
      system/admin/views/update.html.php
  5. +3
    -3
      themes/blog/main.html.php
  6. +3
    -3
      themes/blog/post.html.php

+ 28
- 28
.htaccess View File

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

+ 1
- 1
cache/installedVersion.json View File

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

+ 3
- 0
config/config.ini.example View File

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


+ 3
- 3
system/admin/views/update.html.php 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><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>';
} else {
echo '<h2>Congrats! You are Up to Date</h2>';
echo '<h2>Congrats! You have the latest version of HTMLy</h2>';
$info = $updater->getCurrentInfo();
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 '<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>';
}

+ 3
- 3
themes/blog/main.html.php View File

@ -61,9 +61,9 @@
<span class="more"><a class="btn btn-cta-secondary" href="<?php echo $p->url;?>">Read more</a></span>
<?php endif;?>
<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 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="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" 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" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
</span>
<div style="clear:both;"></div>
</div>


+ 3
- 3
themes/blog/post.html.php 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>
<?php } ?>
<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 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="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" 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" class="last" href="https://plus.google.com/share?url=<?php echo $p->url ?>"><i class="fa fa-google-plus"></i></a>
</span>
<div style="clear:both;"></div>
</div>


Loading…
Cancel
Save