layout.html.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?php if (!defined('HTMLY')) die('HTMLy'); ?>
  2. <!DOCTYPE html>
  3. <html lang="<?php echo blog_language();?>">
  4. <head>
  5. <?php echo head_contents();?>
  6. <?php echo $metatags;?>
  7. <!-- Global CSS -->
  8. <link rel="stylesheet" href="<?php echo theme_path();?>css/bootstrap.min.css">
  9. <!-- Plugins CSS -->
  10. <link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
  11. <link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
  12. <link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
  13. <!-- Font CSS -->
  14. <link id="lato" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/lato.css">
  15. <link id="open-sans" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/source-sans.css">
  16. <link id="open-sans" rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/montserrat.css">
  17. <!-- Theme CSS -->
  18. <link id="theme-style" rel="stylesheet" href="<?php echo theme_path();?>css/styles.css?v=1">
  19. </head>
  20. <body class="<?php echo $bodyclass; ?>" itemscope="itemscope" itemtype="http://schema.org/Blog">
  21. <div class="hide">
  22. <meta content="<?php echo blog_title() ?>" itemprop="name"/>
  23. <meta content="<?php echo safe_html(strip_tags(blog_description())); ?>" itemprop="description"/>
  24. </div>
  25. <?php if (facebook()) { echo facebook(); } ?>
  26. <?php if (login()) { toolbar(); } ?>
  27. <!-- ******HEADER****** -->
  28. <header class="header">
  29. <div class="container">
  30. <div class="logo pull-left"><img class="logo-image" src="<?php echo theme_path();?>images/logo.png"/></div>
  31. <div class="branding pull-left">
  32. <?php if (is_index()) {?>
  33. <h1 class="name"><a href="<?php echo site_url();?>"><?php echo blog_title();?></a></h1>
  34. <?php } else {?>
  35. <h2 class="name"><a href="<?php echo site_url();?>"><?php echo blog_title();?></a></h2>
  36. <?php } ?>
  37. <p class="desc"><?php echo blog_tagline();?></p>
  38. <?php echo social('social');?>
  39. </div><!--//branding-->
  40. <nav id="main-nav" class="main-nav navbar-right" role="navigation" >
  41. <div class="navbar-header">
  42. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  43. <span class="sr-only">Toggle navigation</span>
  44. <span class="icon-bar"></span>
  45. <span class="icon-bar"></span>
  46. <span class="icon-bar"></span>
  47. </button>
  48. </div>
  49. <div id="navbar" class="menu navbar-collapse collapse pull-right">
  50. <ul class="nav navbar-nav navbar-right">
  51. <li class="dropdown">
  52. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-search"></i></a>
  53. <div class="dropdown-menu searchbox" role="menu">
  54. <form id="search" class="navbar-form search" role="search">
  55. <div class="input-group">
  56. <input type="search" name="search" class="form-control" placeholder="Type to search">
  57. <span class="input-group-btn"><button type="submit" class="btn btn-default btn-submit"><i class="fa fa-angle-right"></i></button></span>
  58. </div>
  59. </form>
  60. </div>
  61. </li><!-- /.searchbox -->
  62. </ul>
  63. <?php echo menu('navbar-nav navbar-right');?>
  64. </div>
  65. </nav>
  66. </div><!--//container-->
  67. </header><!--//header-->
  68. <div class="container sections-wrapper">
  69. <div class="row">
  70. <div class="primary col-md-8 col-sm-12 col-xs-12">
  71. <?php echo content();?>
  72. </div><!--//primary-->
  73. <div class="secondary col-md-4 col-sm-12 col-xs-12">
  74. <aside class="aside section">
  75. <div class="section-inner">
  76. <h2 class="heading"><?php echo i18n("About");?></h2>
  77. <div class="content">
  78. <?php echo blog_description();?>
  79. </div><!--//content-->
  80. </div><!--//section-inner-->
  81. </aside><!--//section-->
  82. <?php if (theme_config('recent_posts') || theme_config('popular_posts')):?>
  83. <aside class="recent-posts aside section">
  84. <div class="section-inner">
  85. <!-- Tab nav -->
  86. <ul class="nav nav-tabs" role="tablist">
  87. <?php if (theme_config('recent_posts')) :?>
  88. <li role="presentation" class="active"><a href="#recent-posts" aria-controls="recent-posts" role="tab" data-toggle="tab"><?php echo i18n("Recent_posts");?></a></li>
  89. <?php endif;?>
  90. <?php if (theme_config('popular_posts')) :?>
  91. <li role="presentation" class="<?php echo theme_config('recent_posts') ? '' : 'active';?>"><a href="#popular-posts" aria-controls="popular-posts" role="tab" data-toggle="tab"><?php echo i18n("Popular_posts");?></a></li>
  92. <?php endif;?>
  93. </ul>
  94. <!-- Tab content -->
  95. <div class="tab-content">
  96. <?php if (theme_config('recent_posts')) :?>
  97. <div role="tabpanel" class="tab-pane active" id="recent-posts">
  98. <h2 class="hide"><?php echo i18n("Recent_Posts");?></h2>
  99. <?php $recent = recent_posts(true);?>
  100. <?php foreach ($recent as $rc):?>
  101. <?php $recentTitle = (strlen(strip_tags($rc->title)) > 60) ? shorten($rc->title, 60) . '...' : $rc->title; ?>
  102. <div class="item">
  103. <h3 class="title"><a href="<?php echo $rc->url;?>"><?php echo $recentTitle;?></a></h3>
  104. <div class="content">
  105. <p><?php echo shorten($rc->body, 75); ?>...</p>
  106. <a class="more-link" href="<?php echo $rc->url;?>"><i class="fa fa-link"></i> <?php echo i18n("read_more");?></a>
  107. </div><!--//content-->
  108. </div>
  109. <?php endforeach;?>
  110. </div>
  111. <?php endif;?>
  112. <?php if (theme_config('popular_posts')) :?>
  113. <div role="tabpanel" class="tab-pane <?php echo theme_config('recent_posts') ? '' : 'active';?>" id="popular-posts">
  114. <h2 class="hide"><?php echo i18n("Popular_posts");?></h2>
  115. <?php $popular = popular_posts(true);?>
  116. <?php foreach ($popular as $pp):?>
  117. <?php $popularTitle = (strlen(strip_tags($pp->title)) > 60) ? shorten($pp->title, 60) . '...' : $pp->title; ?>
  118. <div class="item">
  119. <h3 class="title"><a href="<?php echo $pp->url;?>"><?php echo $popularTitle;?></a></h3>
  120. <div class="content">
  121. <p><?php echo shorten($pp->body, 75); ?>...</p>
  122. <a class="more-link" href="<?php echo $pp->url;?>"><i class="fa fa-link"></i> <?php echo i18n("read_more");?></a>
  123. </div><!--//content-->
  124. </div>
  125. <?php endforeach;?>
  126. </div>
  127. <?php endif;?>
  128. </div>
  129. </div><!--//section-inner-->
  130. </aside><!--//section-->
  131. <?php endif;?>
  132. <?php if (disqus()): ?>
  133. <aside class="comments aside section">
  134. <div class="section-inner">
  135. <h2 class="heading"><?php echo i18n("Comments");?></h2>
  136. <div class="content">
  137. <?php echo recent_comments() ?>
  138. <style>.dsq-widget-list {padding:0;}li.dsq-widget-item {color:#434343;border-bottom: 1px dotted #d9d9d9;margin: 0 0 10px;padding-bottom: 10px;font-size:14px;}li.dsq-widget-item:last-child{border-bottom:none;margin-bottom:0;}a.dsq-widget-user {font-weight:normal;}img.dsq-widget-avatar {margin-right:10px; }.dsq-widget-comment {display:block;padding-top:5px;}.dsq-widget-comment p {display:block;margin:0;padding:0!important;font-size:14px!important;}p.dsq-widget-meta {padding-top:5px!important;margin:0;font-size:14px!important;}#dsq-combo-widget.grey #dsq-combo-content .dsq-combo-box {background: transparent;}#dsq-combo-widget.grey #dsq-combo-tabs li {background: #DDDDDD;}</style>
  139. </div><!--//content-->
  140. </div><!--//section-inner-->
  141. </aside><!--//section-->
  142. <?php endif; ?>
  143. <?php if (theme_config('archive')):?>
  144. <aside class="archive aside section">
  145. <div class="section-inner">
  146. <h2 class="heading"><?php echo i18n("Archives");?></h2>
  147. <div class="content">
  148. <?php echo archive_list();?>
  149. </div><!--//content-->
  150. </div><!--//section-inner-->
  151. </aside><!--//section-->
  152. <?php endif;?>
  153. <?php if (theme_config('category_list')):?>
  154. <aside class="category-list aside section">
  155. <div class="section-inner">
  156. <h2 class="heading"><?php echo i18n('Category');?></h2>
  157. <div class="content">
  158. <?php echo category_list();?>
  159. </div><!--//content-->
  160. </div><!--//section-inner-->
  161. </aside><!--//section-->
  162. <?php endif;?>
  163. <?php if (theme_config('tagcloud')):?>
  164. <aside class="category-list aside section">
  165. <div class="section-inner">
  166. <h2 class="heading"><?php echo i18n("Tags");?></h2>
  167. <div class="content">
  168. <div class="tagcloud">
  169. <?php echo tag_cloud();?>
  170. </div>
  171. </div><!--//content-->
  172. </div><!--//section-inner-->
  173. </aside><!--//section-->
  174. <?php endif;?>
  175. </div><!--//secondary-->
  176. </div><!--//row-->
  177. </div><!--//masonry-->
  178. <!-- ******FOOTER****** -->
  179. <footer class="footer">
  180. <div class="container text-center">
  181. <?php echo copyright();?><br><span>Design by <a href="https://3rdwavemedia.com/" target="_blank" rel="nofollow">3rd Wave Media</a></span>
  182. </div><!--//container-->
  183. </footer><!--//footer-->
  184. <!-- Javascript -->
  185. <script type="text/javascript" src="<?php echo site_url();?>system/resources/js/jquery.min.js"></script>
  186. <script type="text/javascript" src="<?php echo theme_path();?>js/bootstrap.min.js"></script>
  187. <?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
  188. </body>
  189. </html>