/*==============================================================================
  Theme    : winkey14
  Update   : 2014/05/16
  Version  : 0.9.1
  Copyright (C) 2012-2014 by hiroron
  Author   : hiroron (hiroron AT hiroron DOT com)
  License  : GPLv2
  Homepage : http://www.winkey.jp/
==============================================================================*/


/*==============================================================================
  Profile
==============================================================================*/

Geeklog Theme using HTML 5 Transitional+CSS 3.0 and Responsive Web Design.
Design is based on Modern Curve.
Geeklog 2.1 Hack is required for HTML 5.

Feature
* HTML5+CSS3 
  <article> <aside> tags
* Responsive Web Design by using CSS3 Media Queries.
* Error 0 html5 validation check
* Right block downside and pinterest layout by using jQuery Masonry.
  http://masonry.desandro.com/
* Use the font icon - Entypo : by Daniel Bruce : License CC BY-SA 3.0
  http://www.entypo.com/

/*==============================================================================
  Install
==============================================================================*/

winkey14  --> <public_html>/layout/

Geeklog Admin:
Configuration - Theme - 
 Theme: Winkey14
 DOCTYPE: HTML5 with XHTML syntax


/*==============================================================================
  hack for HTML 5 
==============================================================================*/

1. a tag: remove "rel=category"

1-1. private/system/lib-story.php  : 129

from:
<code>
            $article->set_var( 'story_anchortag_and_image',
                COM_createLink(
                    $topicimage,
                    $topicurl,
                    array('rel'=>"category")
                )
                , false, true
            );
</code>

to:
<code>
            $article->set_var( 'story_anchortag_and_image',
                COM_createLink(
                    $topicimage,
                    $topicurl,
                    array()
                )
                , false, true
            );
</code>


1-2. private/system/lib-story.php  : 140

from:
<code>
            $article->set_var( 'story_anchortag_and_image_no_align',
                COM_createLink(
                    $topicimage_noalign,
                    $topicurl,
                    array('rel'=>"category")
                )
                , false, true
            );
</code>

to:
<code>
            $article->set_var( 'story_anchortag_and_image_no_align',
                COM_createLink(
                    $topicimage_noalign,
                    $topicurl,
                    array()
                )
                , false, true
            );
</code>


2. HTML 5 time tag for datetime

2-1. private/system/lib-story.php : 107

from:
<code>
    // Date formatting set by user therefore cannot be cached
    $article->set_var('story_date', $story->DisplayElements('date'), false, true);
</code>

to:
<code>
    // Date formatting set by user therefore cannot be cached
    $article->set_var('story_date', $story->DisplayElements('date'), false, true);
    $article->set_var('story_datetime', $story->DisplayElements('datetime'), false, true );
</code>


2-2. private/system/classes/story.class.php : 1807

from:
<code>
        default:
</code>

to:
<code>
        case 'datetime':
            $return = strftime('%FT%T', $this->_date);

            break;

        case 'unixdate':
</code>


2-3. public_html/lib-common.php 1189, 1881

add:
<code>
    $header->set_var( 'theme', $_CONF['theme'] );

</code>

to:
<code>
    $header->set_var( 'theme', $_CONF['theme'] );
    $header->set_var( 'datetime_html5', strftime('%FT%T', $curtime[1]) );

</code>


/*==============================================================================
  History
==============================================================================*/

0.9.1  2014/05/16
 * HTML5+CSS3のレスポンシブwebデザインテーマ「winkey14」を初リリース


/*==============================================================================
  Download site
==============================================================================*/

WinKey: http://www.winkey.jp/


/*==============================================================================
  Special thanks!
==============================================================================*/

milk: http://white-stage.com/

Icon fonts
  Entypo : by Daniel Bruce : License CC BY-SA 3.0

English Translation by Ivy - komma DOT ivywe DOT co DOT jp
