first commit
35
modules/leoblog/views/css/admin/blogmenu.css
Normal file
@@ -0,0 +1,35 @@
|
||||
.icon-AdminLeoblogManagement:before {
|
||||
content: "\f040";
|
||||
font-family: FontAwesome
|
||||
}
|
||||
|
||||
#bloggeneralsetting .panel
|
||||
{
|
||||
border-radius: 0px 0px 5px 5px !important;
|
||||
}
|
||||
.nav-tabs a:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
.leoblog-globalconfig a:focus
|
||||
{
|
||||
|
||||
border-top: 3px solid #25b9d7 !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
.leoblog-globalconfig a:hover, .leoblog-globalconfig li.active a
|
||||
{
|
||||
border-top: 3px solid #25b9d7 !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
|
||||
#bloggeneralsetting .panel
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#bloggeneralsetting .panel.active
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
207
modules/leoblog/views/css/admin/form.css
Normal file
@@ -0,0 +1,207 @@
|
||||
#myTab{
|
||||
margin-left: 120px;
|
||||
}
|
||||
|
||||
.tree-megamenu{
|
||||
width:350px;
|
||||
float:left;
|
||||
overflow:hidden;
|
||||
margin-right:40px;
|
||||
}
|
||||
td > i {
|
||||
display:block;
|
||||
font-size:11px;
|
||||
}
|
||||
#content .ui-widget-header{
|
||||
background: none;
|
||||
border-bottom: solid 1px #ECECEC;
|
||||
font-weight: bold;
|
||||
}
|
||||
#content .ui-widget-header a{
|
||||
font-weight: bold;
|
||||
}
|
||||
#content .ui-widget-content{
|
||||
border: none;
|
||||
}
|
||||
|
||||
.megamenu-form input, .megamenu-form select{
|
||||
padding: 5px 6px;
|
||||
min-width: 100px
|
||||
}
|
||||
.quickdel{
|
||||
background:url(../../img/admin/edit-delete.png) no-repeat center center;
|
||||
|
||||
}
|
||||
.quickedit{
|
||||
background:url(../../img/admin/edit-rename.png) no-repeat center center;
|
||||
}
|
||||
table.table{
|
||||
width: 99%;
|
||||
}
|
||||
|
||||
table.table tr td{
|
||||
border-bottom: dotted 1px #CCC
|
||||
}
|
||||
.quickedit, .quickdel, .quickselect{
|
||||
float:right;
|
||||
width:25px;
|
||||
height:16px;
|
||||
display:block;
|
||||
cursor:hand; cursor:pointer;
|
||||
overflow:hidden;
|
||||
text-indent:-999em;
|
||||
margin:0 5px;
|
||||
}
|
||||
.hide{
|
||||
display:none
|
||||
}
|
||||
.show{
|
||||
display:block
|
||||
}
|
||||
#ajaxloading{
|
||||
position:fixed;
|
||||
top:0;
|
||||
right:0;
|
||||
width:100%;
|
||||
z-index:1200
|
||||
}
|
||||
#ajaxloading > div{
|
||||
margin:12px;
|
||||
}
|
||||
.megamenu-form{
|
||||
float:left;
|
||||
width: 700px;
|
||||
}
|
||||
.megamenu-form label {
|
||||
width: 100px !important;
|
||||
}
|
||||
.megamenu-form .margin-form {
|
||||
padding: 0 0 1em 110px !important;
|
||||
}
|
||||
.placeholder {
|
||||
outline: 1px dashed #4183C4;
|
||||
/*-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
margin: -1px;*/
|
||||
}
|
||||
|
||||
.mjs-nestedSortable-error {
|
||||
background: #fbe3e4;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
ol.sortable, ol.sortable ol {
|
||||
margin: 0 0 0 25px;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ol.sortable {
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
.sortable li {
|
||||
margin: 5px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sortable li div {
|
||||
border: 1px solid #d4d4d4;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
border-color: #D4D4D4 #D4D4D4 #BCBCBC;
|
||||
padding: 6px;
|
||||
margin: 0;
|
||||
cursor: move;
|
||||
background: #f6f6f6;
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed));
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
|
||||
background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
|
||||
background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
|
||||
background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 );
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-branch div {
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #f0ece9 100%);
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#f0ece9 100%);
|
||||
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-leaf div {
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #bcccbc 100%);
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#bcccbc 100%);
|
||||
|
||||
}
|
||||
|
||||
li.mjs-nestedSortable-collapsed.mjs-nestedSortable-hovering div {
|
||||
border-color: #999;
|
||||
background: #fafafa;
|
||||
}
|
||||
li.selected > div {
|
||||
border: solid 1px #D9534F
|
||||
}
|
||||
.disclose {
|
||||
cursor: pointer;
|
||||
width: 10px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-collapsed > ol {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-branch > div > .disclose {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-collapsed > div > .disclose > span:before {
|
||||
content: '+ ';
|
||||
}
|
||||
|
||||
.sortable li.mjs-nestedSortable-expanded > div > .disclose > span:before {
|
||||
content: '- ';
|
||||
}
|
||||
.leo_load {
|
||||
background: url("../../img/admin/loading.gif") no-repeat scroll 0 0 transparent;
|
||||
display: none;
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
.table.table-green tr th{
|
||||
background: #f3f3f3;
|
||||
padding: 12px 6px
|
||||
}
|
||||
.table.table-green tr td{
|
||||
padding: 9px 6px;
|
||||
}
|
||||
.pull-right{
|
||||
float: right;
|
||||
}
|
||||
|
||||
/****************DONGND:: delete image button BEGIN************************/
|
||||
.leoblog-del-img-bt
|
||||
{
|
||||
margin-top: 10px;
|
||||
}
|
||||
/****************DONGND:: delete image button END************************/
|
||||
|
||||
|
||||
/****************DONGND:: form BEGIN************************/
|
||||
.leoblog-comment-link-icon
|
||||
{
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
/****************DONGND:: form END************************/
|
||||
|
||||
36
modules/leoblog/views/css/admin/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
36
modules/leoblog/views/css/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
505
modules/leoblog/views/css/leoblog.css
Normal file
@@ -0,0 +1,505 @@
|
||||
/* MENU */
|
||||
|
||||
/* category */
|
||||
|
||||
/* blog listing */
|
||||
|
||||
.blogs-container{
|
||||
|
||||
}
|
||||
.blogs-container h3{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.blogs-container h4{
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.blogs-container .pagination .material-icons{
|
||||
font-size: 15px;
|
||||
}
|
||||
.blogs-container .product-count{
|
||||
margin-bottom: 1rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.blogs-container .blog-image img{
|
||||
max-width: 100%
|
||||
}
|
||||
|
||||
.blog-item{
|
||||
border-top: 1px solid #DDDDDD;
|
||||
padding: 30px 0
|
||||
}
|
||||
|
||||
.blog-item .more{
|
||||
margin-top: 15px;
|
||||
}
|
||||
.blog-item .blog-image, .blog-item .blog-shortinfo{
|
||||
padding-top: 12px;
|
||||
}
|
||||
.blog-meta span {
|
||||
font-size: 90%;
|
||||
color: #999999
|
||||
}
|
||||
.blog-meta > span{
|
||||
margin-right: 8px;
|
||||
display: inline-block;
|
||||
}
|
||||
.blog-meta > span > i{
|
||||
font-size: 16px;
|
||||
}
|
||||
.blog-item .blog-meta {
|
||||
font-size: 93%;
|
||||
}
|
||||
/* blog */
|
||||
.blog-detail .blog-description{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.blog-detail .pagination .material-icons{
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.blog-detail .product-count{
|
||||
margin-bottom: 1rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.blog-detail .blog-meta{
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.blog-tags, .extra-blogs , .blog-comments, .social-share,.blog-comment-block{
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.blog-tags a span{
|
||||
background: none repeat scroll 0 0 #666666;
|
||||
border-radius: 2px;
|
||||
color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
padding: 5px 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.extra-blogs ul li {
|
||||
padding: 6px 0 ;
|
||||
border-bottom: dotted 1px #DDDDDD
|
||||
}
|
||||
|
||||
.blog-video-code .inner{
|
||||
background: #DDD;
|
||||
padding: 12px;
|
||||
margin-bottom: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
/* comment */
|
||||
.comment-item{
|
||||
padding: 12px 0;
|
||||
}
|
||||
.comment-item img{
|
||||
padding-right:12px;
|
||||
}
|
||||
.comment-wrap{
|
||||
overflow:hidden;
|
||||
background: none repeat scroll 0 0 #FFFFFF;
|
||||
border: 1px solid #E5E5E5;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
transition: all 0.3s ease-out 0s;
|
||||
-o-transition: all 0.3s ease-out 0s;
|
||||
-ms-transition: all 0.3s ease-out 0s;
|
||||
-webkit-transition: all 0.3s ease-out 0s;
|
||||
}
|
||||
.comment-wrap .comment-meta{
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
font-size: 11px;
|
||||
margin: -20px -20px 10px;
|
||||
padding: 10px 20px;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: box;
|
||||
display: -webkit-flex;
|
||||
display: -moz-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-justify-content: space-between;
|
||||
/* Safari 6.1+ */
|
||||
justify-content: space-between;
|
||||
-webkit-align-items: center;
|
||||
/* Safari 7.0+ */
|
||||
align-items: center; }
|
||||
.comment-wrap .comment-infor > span {
|
||||
font-weight: bold;
|
||||
margin-right: 5px; }
|
||||
.rtl .comment-wrap .comment-infor > span {
|
||||
margin-left: 5px;
|
||||
margin-right: inherit; }
|
||||
.comment-wrap .comment-infor > span > span {
|
||||
font-weight: normal;
|
||||
white-space: inherit; }
|
||||
.blog-social .social-wrap > div { float:left; }
|
||||
.blog-social .social-heading{ padding-right:12px; }
|
||||
|
||||
.comment-link{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ipts-captcha img{
|
||||
float: left;
|
||||
padding-right:12px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.ipts-captcha input{
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.blog-comment-block .fb-comments {
|
||||
margin: 0 -8px;
|
||||
}
|
||||
#blog-localengine .comments{
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
#blog-localengine .form-horizontal{
|
||||
margin-bottom: 30px;
|
||||
background: white;
|
||||
padding: 20px;
|
||||
}
|
||||
#blog-localengine .form-horizontal label{
|
||||
display: block;
|
||||
margin-bottom: 0;
|
||||
padding-top: 7px;
|
||||
}
|
||||
#blog-localengine .form-horizontal .form-group:last-child{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
/* categories menu display on left or right sidebar */
|
||||
.blog-menu {
|
||||
-moz-box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
|
||||
-webkit-box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
|
||||
-o-box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
|
||||
-ms-box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: 2px 2px 11px 0px rgba(0, 0, 0, 0.1);
|
||||
margin-bottom: 1.5625rem;
|
||||
background: white;
|
||||
padding: 1.5625rem 1.25rem; }
|
||||
.blog-menu .block_content > ul {
|
||||
border-top: 1px solid #eaeaea; }
|
||||
.blog-menu .block_content li {
|
||||
position: relative; }
|
||||
.blog-menu ul > li > a {
|
||||
font-weight: 300;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0.9375rem; }
|
||||
.blog-menu ul > li:last-child > a {
|
||||
border-bottom: none; }
|
||||
.blog-menu ul > li li a {
|
||||
font-size: 0.8125rem;
|
||||
padding: 0.625rem 1.25rem; }
|
||||
.blog-menu .collapse-icons {
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
right: 10px; }
|
||||
.rtl .blog-menu .collapse-icons {
|
||||
left: 10px;
|
||||
right: auto; }
|
||||
.blog-menu .collapse-icons .material-icons {
|
||||
font-size: 0.9375rem; }
|
||||
.blog-menu .collapse-icons[aria-expanded="true"] .add {
|
||||
display: none; }
|
||||
.blog-menu .collapse-icons[aria-expanded="true"] .remove {
|
||||
display: block; }
|
||||
.blog-menu .collapse-icons .add,
|
||||
.blog-menu .collapse-icons .remove {
|
||||
color: #000; }
|
||||
.blog-menu .collapse-icons .add:hover,
|
||||
.blog-menu .collapse-icons .remove:hover {
|
||||
color: #3387f2; }
|
||||
.blog-menu .collapse-icons .remove {
|
||||
display: none; }
|
||||
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.comment-link{
|
||||
background: none repeat scroll 0 0 #F4F4F4;
|
||||
border-left: 1px solid #E5E5E5;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin: -11px -20px -10px 0;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
.blogs-container .product-count{
|
||||
text-align: right;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
.blog-detail .product-count{
|
||||
text-align: right;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
#blog-localengine .form-horizontal label{
|
||||
text-align: left;
|
||||
}
|
||||
.blog-detail .pagination{
|
||||
text-align: center;
|
||||
}
|
||||
.blogs-container .pagination{
|
||||
text-align: center;
|
||||
}
|
||||
.blog-detail .page-item{
|
||||
display: inline-block;
|
||||
}
|
||||
.blogs-container .page-item{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
/*********** DONGND:: CSS loading when submit commnent *******************/
|
||||
.leoblog-cssload-container {
|
||||
|
||||
width: 100%;
|
||||
/*height: 49px;*/
|
||||
height: 35px;
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.leoblog-cssload-container.cssload-speeding-wheel {
|
||||
/*
|
||||
width: 49px;
|
||||
height: 49px;
|
||||
*/
|
||||
margin: 0 auto;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
/*
|
||||
margin: 0 0 0 45px;
|
||||
*/
|
||||
border: 2px solid rgb(0,0,0);
|
||||
border-radius: 50%;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
/*
|
||||
animation: cssload-spin 575ms infinite linear;
|
||||
-o-animation: cssload-spin 575ms infinite linear;
|
||||
-ms-animation: cssload-spin 575ms infinite linear;
|
||||
-webkit-animation: cssload-spin 575ms infinite linear;
|
||||
-moz-animation: cssload-spin 575ms infinite linear;
|
||||
*/
|
||||
animation: cssload-spin 700ms infinite linear;
|
||||
-o-animation: cssload-spin 700ms infinite linear;
|
||||
-ms-animation: cssload-spin 700ms infinite linear;
|
||||
-webkit-animation: cssload-spin 700ms infinite linear;
|
||||
-moz-animation: cssload-spin 700ms infinite linear;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@keyframes cssload-spin {
|
||||
100%{ transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-o-keyframes cssload-spin {
|
||||
100%{ -o-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-ms-keyframes cssload-spin {
|
||||
100%{ -ms-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes cssload-spin {
|
||||
100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-moz-keyframes cssload-spin {
|
||||
100%{ -moz-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/********************DONGND:: CSS for tree category BEGIN ******************************/
|
||||
.blog-menu .tree .collapse-icons {
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.blog-menu .tree .collapse-icons .remove {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.blog-menu .tree .collapse-icons[aria-expanded="true"] .remove {
|
||||
display: block;
|
||||
}
|
||||
.blog-menu .tree .collapse-icons[aria-expanded="true"] .add {
|
||||
display: none;
|
||||
}
|
||||
/********************DONGND:: CSS for tree category END ******************************/
|
||||
|
||||
/*css search blog
|
||||
#form-search-blog {
|
||||
position: relative;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #f1f1f1;
|
||||
border-radius: 30px;
|
||||
}
|
||||
#search_blog {
|
||||
width: 100%;
|
||||
height: 45px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 12px;
|
||||
color: #a8a8a8;
|
||||
-moz-border-radius: 0 30px 30px 0;
|
||||
-webkit-border-radius: 0 30px 30px 0;
|
||||
border-radius: 0 30px 30px 0;
|
||||
padding: 8px 65px 8px 15px;
|
||||
}
|
||||
#search_blog_button {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
line-height: 45px;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: #e94a4a;
|
||||
border-radius: 50px;
|
||||
-webkit-transition: all 0.3s ease 0s;
|
||||
-o-transition: all 0.3s ease 0s;
|
||||
transition: all 0.3s ease 0s;
|
||||
}
|
||||
#search-blog form {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 20px 0; }
|
||||
#search-blog form input {
|
||||
width: calc(100% - 40px);
|
||||
margin: auto;
|
||||
height: 40px;
|
||||
background-color: #fff;
|
||||
border-radius: 20px;
|
||||
margin: auto;
|
||||
padding-right: 45px;
|
||||
font-size: 14px;
|
||||
color: #4E2B73;
|
||||
text-transform: uppercase; }
|
||||
#search-blog form input::-webkit-input-placeholder {
|
||||
opacity: 1;
|
||||
color: #4E2B73; }
|
||||
#search-blog form input::-moz-placeholder {
|
||||
opacity: 1;
|
||||
color: #4E2B73; }
|
||||
#search-blog form input:-moz-placeholder {
|
||||
opacity: 1;
|
||||
color: #4E2B73; }
|
||||
#search-blog form input:-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
color: #4E2B73; }
|
||||
#search-blog form input:focus {
|
||||
outline: none; }
|
||||
#search-blog form button {
|
||||
position: absolute;
|
||||
right: 21px;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
-moz-transform: translateY(-50%);
|
||||
-ms-transform: translateY(-50%);
|
||||
-o-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: none;
|
||||
padding: 0; }
|
||||
#search-blog form button i {
|
||||
font-size: 0; }
|
||||
#search-blog form button i:before {
|
||||
content: '';
|
||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgd2lkdGg9IjE3cHgiIGhlaWdodD0iMTdweCIgdmlld0JveD0iMCAwIDE3IDE3IiB2ZXJzaW9uPSIxLjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8ZGVzYz5DcmVhdGVkIHdpdGggTHVuYWN5PC9kZXNjPg0KICA8ZyBpZD0iSUNOLXNlYXJjaCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC41IDAuNSkiPg0KICAgIDxwYXRoIGQ9Ik0wIDBMMTYgMEwxNiAxNkwwIDE2TDAgMFoiIGlkPSJCb3giIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4NCiAgICA8cGF0aCBkPSJNMTEuMzQ0MyAxMi4yNTQ1QzEwLjE0NjMgMTMuMjcyNyA4LjYwMzUyIDEzLjg3MjcgNi45MTU0OCAxMy44NzI3QzMuMTIxOTUgMTMuODcyNyAwIDEwLjc2MzYgMCA2LjkyNzI3QzAgMy4xMjcyNyAzLjEyMTk1IDAgNi45MTU0OCAwQzEwLjc0NTMgMCAxMy44NDkxIDMuMTA5MDkgMTMuODQ5MSA2LjkyNzI3QzEzLjg0OTEgOC42MTgxOCAxMy4yMzIgMTAuMTYzNiAxMi4yMzM3IDExLjM2MzZMMTUuODA5NCAxNC45MjczQzE2LjA2MzUgMTUuMTYzNiAxNi4wNjM1IDE1LjU2MzYgMTUuODA5NCAxNS44MTgyQzE1LjY4MjQgMTUuOTQ1NSAxNS41MTkgMTYgMTUuMzU1NiAxNkMxNS4xNzQxIDE2IDE1LjAyODkgMTUuOTQ1NSAxNC45MDE5IDE1LjgxODJMMTEuMzQ0MyAxMi4yNTQ1Wk0xMi41Nzg2IDYuOTI3MjdDMTIuNTc4NiAzLjggMTAuMDM3NCAxLjI1NDU1IDYuOTE1NDkgMS4yNTQ1NUMzLjgxMTY4IDEuMjU0NTUgMS4yNTI0MSAzLjgxODE4IDEuMjUyNDEgNi45MjcyN0MxLjI1MjQxIDEwLjA1NDUgMy43OTM1MyAxMi42IDYuOTE1NDkgMTIuNkMxMC4wMzc0IDEyLjYgMTIuNTc4NiAxMC4wNTQ1IDEyLjU3ODYgNi45MjcyN1oiIGlkPSJTaGFwZSIgZmlsbD0iIzRFMkI3MyIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9Im5vbmUiIC8+DQogIDwvZz4NCjwvc3ZnPg==");
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto; }
|
||||
*/
|
||||
|
||||
#search-blog {
|
||||
background:#fff;
|
||||
padding: 1.5625rem 1.25rem;
|
||||
margin-bottom: 1.563rem;
|
||||
}
|
||||
#blog-nav li a {
|
||||
padding: 0.5rem 0;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
#search-blog form {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
margin-bottom:20px;
|
||||
}
|
||||
#search-blog button {
|
||||
position:absolute;
|
||||
right:1px;
|
||||
top:1px;
|
||||
height:36px;
|
||||
background: transparent;
|
||||
}
|
||||
.share_button {
|
||||
margin: 10px 0;
|
||||
display: flex;
|
||||
}
|
||||
.share_button span {
|
||||
margin-right:5px;
|
||||
margin-top: 7px;
|
||||
}
|
||||
.share_button span {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.share_button li {
|
||||
padding-left:2rem;
|
||||
background-image: none;
|
||||
position: relative;
|
||||
line-height:2rem;
|
||||
display:inline-block;
|
||||
|
||||
}
|
||||
.share_button li:first-child {
|
||||
margin-right:10px;
|
||||
}
|
||||
.share_button li:before {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
background-repeat: no-repeat;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
position:absolute;
|
||||
background-size: 70%;
|
||||
background-position: center;
|
||||
left:0;
|
||||
top:0;
|
||||
}
|
||||
|
||||
|
||||
BIN
modules/leoblog/views/img/admin/delete.png
Normal file
|
After Width: | Height: | Size: 715 B |
BIN
modules/leoblog/views/img/admin/edit-copy.png
Normal file
|
After Width: | Height: | Size: 498 B |
BIN
modules/leoblog/views/img/admin/edit-cut.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
modules/leoblog/views/img/admin/edit-delete.png
Normal file
|
After Width: | Height: | Size: 786 B |
BIN
modules/leoblog/views/img/admin/edit-paste.png
Normal file
|
After Width: | Height: | Size: 561 B |
BIN
modules/leoblog/views/img/admin/edit-rename.png
Normal file
|
After Width: | Height: | Size: 607 B |
BIN
modules/leoblog/views/img/admin/folder.png
Normal file
|
After Width: | Height: | Size: 498 B |
36
modules/leoblog/views/img/admin/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
BIN
modules/leoblog/views/img/admin/loading.gif
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
modules/leoblog/views/img/admin/refresh.png
Normal file
|
After Width: | Height: | Size: 912 B |
BIN
modules/leoblog/views/img/admin/upload.png
Normal file
|
After Width: | Height: | Size: 693 B |
BIN
modules/leoblog/views/img/b/b-blog-1.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-2.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-3.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-4.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-5.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-6.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
modules/leoblog/views/img/b/b-blog-7.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
36
modules/leoblog/views/img/b/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
BIN
modules/leoblog/views/img/c/[themeforest]_Floral_banner.jpg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
modules/leoblog/views/img/c/category-1.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
modules/leoblog/views/img/c/category-2.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
modules/leoblog/views/img/c/category-3.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
36
modules/leoblog/views/img/c/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
36
modules/leoblog/views/img/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
36
modules/leoblog/views/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
357
modules/leoblog/views/js/admin/form.js
Normal file
@@ -0,0 +1,357 @@
|
||||
/**
|
||||
* Owl carousel
|
||||
*
|
||||
* @copyright Commercial License By LeoTheme.Com
|
||||
* @email leotheme.com
|
||||
* @visit http://www.leotheme.com
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
$.fn.PavMegaMenuList = function(opts) {
|
||||
// default configuration
|
||||
var config = $.extend({}, {
|
||||
action:null,
|
||||
addnew : null,
|
||||
confirm_del:'Are you sure delete this?'
|
||||
}, opts);
|
||||
|
||||
function checkInputHanlder(){
|
||||
var _updateMenuType = function(){
|
||||
$(".menu-type-group").parent().parent().hide();
|
||||
$("[for^=content_text_]").parent().hide();
|
||||
|
||||
if( $("#menu_type").val() =='html' ){
|
||||
$("[for^=content_text_]").parent().show();
|
||||
}else {
|
||||
$("#"+$("#menu_type").val()+"_type").parent().parent().show();
|
||||
}
|
||||
};
|
||||
_updateMenuType();
|
||||
$("#menu_type").change( _updateMenuType );
|
||||
|
||||
var _updateSubmenuType = function(){
|
||||
if( $("#type_submenu").val() =='html' ){
|
||||
$("[for^=submenu_content_text_]").parent().show();
|
||||
}else{
|
||||
$("[for^=submenu_content_text_]").parent().hide();
|
||||
}
|
||||
};
|
||||
_updateSubmenuType();
|
||||
$("#type_submenu").change( _updateSubmenuType );
|
||||
|
||||
}
|
||||
|
||||
function manageTreeMenu(){
|
||||
if($('ol').hasClass("sortable")){
|
||||
$('ol.sortable').nestedSortable({
|
||||
forcePlaceholderSize: true,
|
||||
handle: 'div',
|
||||
helper: 'clone',
|
||||
items: 'li',
|
||||
opacity: .6,
|
||||
placeholder: 'placeholder',
|
||||
revert: 250,
|
||||
tabSize: 25,
|
||||
tolerance: 'pointer',
|
||||
toleranceElement: '> div',
|
||||
maxLevels: 4,
|
||||
|
||||
isTree: true,
|
||||
expandOnHover: 700,
|
||||
startCollapsed: true,
|
||||
|
||||
stop: function(){
|
||||
var serialized = $(this).nestedSortable('serialize');
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: config.action.replace(/amp;/g, '')+"&doupdatepos=1&rand="+Math.random(),
|
||||
data : serialized+'&updatePosition=1'
|
||||
}).done( function (msg) {
|
||||
showSuccessMessage(msg);
|
||||
} );
|
||||
}
|
||||
});
|
||||
|
||||
// $('#serialize').click(function(){
|
||||
// var serialized = $('ol.sortable').nestedSortable('serialize');
|
||||
// var text = $(this).val();
|
||||
// var $this = $(this);
|
||||
// $(this).val( $(this).data('loading-text') );
|
||||
// $.ajax({
|
||||
// type: 'POST',
|
||||
// url: config.action+"&doupdatepos=1&rand="+Math.random(),
|
||||
// data : serialized+'&updatePosition=1'
|
||||
// }).done( function () {
|
||||
// $this.val( text );
|
||||
// } );
|
||||
// });
|
||||
|
||||
$('#addcategory').click(function(){
|
||||
location.href=config.addnew.replace(/amp;/g, '');
|
||||
});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* initialize every element
|
||||
*/
|
||||
this.each(function() {
|
||||
$(".quickedit",this).click( function(){
|
||||
location.href=config.action.replace(/amp;/g, '')+"&id_leoblogcat="+$(this).attr('rel').replace("id_","");
|
||||
} );
|
||||
|
||||
$(".quickdel",this).click( function(){
|
||||
if( confirm(config.confirm_del) ){
|
||||
location.href=config.action.replace(/amp;/g, '')+"&dodel=1&id_leoblogcat="+$(this).attr('rel').replace("id_","");
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
$(".delete_many_menus",this).click( function(){
|
||||
if (confirm('Delete selected items?'))
|
||||
{
|
||||
var list_menu = '';
|
||||
$('.quickselect:checkbox:checked').each(function () {
|
||||
list_menu += $(this).val() + ",";
|
||||
|
||||
});
|
||||
|
||||
if(list_menu != ''){
|
||||
location.href=config.action.replace(/amp;/g, '')+"&delete_many_menu=1&list="+list_menu;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
manageTreeMenu();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
$(".leo-modal").fancybox({
|
||||
'type':'iframe',
|
||||
'width':980,
|
||||
'height':500,
|
||||
afterLoad:function( ){
|
||||
if( $('body',$('.fancybox-iframe').contents()).find("#main").length ){
|
||||
$('body',$('.fancybox-iframe').contents()).find("#header").hide();
|
||||
$('body',$('.fancybox-iframe').contents()).find("#footer").hide();
|
||||
}else {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#widgetds a.btn").fancybox( {'type':'iframe'} );
|
||||
|
||||
$(".leo-modal-action, #widgets a.btn").fancybox({
|
||||
'type':'iframe',
|
||||
'width':950,
|
||||
'height':500,
|
||||
afterLoad:function( ){
|
||||
if( $('body',$('.fancybox-iframe').contents()).find("#main").length ){
|
||||
$('body',$('.fancybox-iframe').contents()).find("#header").hide();
|
||||
$('body',$('.fancybox-iframe').contents()).find("#footer").hide();
|
||||
}else {
|
||||
|
||||
}
|
||||
},
|
||||
afterClose: function (event, ui) {
|
||||
// location.reload();
|
||||
},
|
||||
});
|
||||
|
||||
//DONGND:: delete image uploaded
|
||||
if ($('#image_link-images-thumbnails').length > 0)
|
||||
{
|
||||
|
||||
leoblog_del_img($('#image_link-images-thumbnails'), 'image');
|
||||
}
|
||||
|
||||
if ($('#thumb_link-images-thumbnails').length > 0)
|
||||
{
|
||||
|
||||
leoblog_del_img($('#thumb_link-images-thumbnails'), 'thumb');
|
||||
}
|
||||
|
||||
$('.leoblog-del-img-bt').click(function(){
|
||||
if( confirm(leoblog_del_img_mess) ){
|
||||
var id_parent = $(this).data('id');
|
||||
$('#'+id_parent).parent().fadeOut(function(){
|
||||
$(this).remove();
|
||||
});
|
||||
var id_element = $(this).data('element');
|
||||
$('#'+id_element).val('');
|
||||
}
|
||||
return false;
|
||||
})
|
||||
|
||||
//load data template
|
||||
$('#template').change(function(){
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: url_ajax_blog,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType: "json",
|
||||
data: {
|
||||
template: $(this).val(),
|
||||
action: 'loadDataTemplate'
|
||||
},
|
||||
success: function (data_)
|
||||
{
|
||||
var data = JSON.parse(data_.message);
|
||||
|
||||
console.log(data);
|
||||
console.log(data.listing_show_categoryinfo);
|
||||
$("[name = indexation]").removeAttr('checked');
|
||||
$("[name = indexation][value="+data.indexation+"]").attr('checked','checked').click();
|
||||
$('#rss_limit_item').val(data.rss_limit_item);
|
||||
$('#rss_title_item').val(data.rss_title_item);
|
||||
|
||||
$("[name = listing_show_categoryinfo]").removeAttr('checked');
|
||||
$("[name = listing_show_categoryinfo][value="+data.listing_show_categoryinfo+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_subcategories]").removeAttr('checked');
|
||||
$("[name = listing_show_subcategories][value="+data.listing_show_subcategories+"]").attr('checked','checked').click();
|
||||
|
||||
$('#listing_leading_column').val(data.listing_leading_column);
|
||||
$('#listing_leading_limit_items').val(data.listing_leading_limit_items);
|
||||
$('#listing_leading_img_width').val(data.listing_leading_img_width);
|
||||
$('#listing_leading_img_height').val(data.listing_leading_img_height);
|
||||
$('#listing_secondary_column').val(data.listing_secondary_column);
|
||||
$('#listing_secondary_limit_items').val(data.listing_secondary_limit_items);
|
||||
$('#listing_secondary_img_width').val(data.listing_secondary_img_width);
|
||||
$('#listing_secondary_img_height').val(data.listing_secondary_img_height);
|
||||
|
||||
$("[name = listing_show_title]").removeAttr('checked');
|
||||
$("[name = listing_show_title][value="+data.listing_show_title+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_description]").removeAttr('checked');
|
||||
$("[name = listing_show_description][value="+data.listing_show_description+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_readmore]").removeAttr('checked');
|
||||
$("[name = listing_show_readmore][value="+data.listing_show_readmore+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_image]").removeAttr('checked');
|
||||
$("[name = listing_show_image][value="+data.listing_show_image+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_author]").removeAttr('checked');
|
||||
$("[name = listing_show_author][value="+data.listing_show_author+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_category]").removeAttr('checked');
|
||||
$("[name = listing_show_category][value="+data.listing_show_category+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_created]").removeAttr('checked');
|
||||
$("[name = listing_show_created][value="+data.listing_show_created+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_hit]").removeAttr('checked');
|
||||
$("[name = listing_show_hit][value="+data.listing_show_hit+"]").attr('checked','checked').click();
|
||||
$("[name = listing_show_counter]").removeAttr('checked');
|
||||
$("[name = listing_show_counter][value="+data.listing_show_counter+"]").attr('checked','checked').click();
|
||||
$('#item_img_width').val(data.item_img_width);
|
||||
$('#item_img_height').val(data.item_img_height);
|
||||
|
||||
$("[name = item_show_description]").removeAttr('checked');
|
||||
$("[name = item_show_description][value="+data.item_show_description+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_image]").removeAttr('checked');
|
||||
$("[name = item_show_image][value="+data.item_show_image+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_author]").removeAttr('checked');
|
||||
$("[name = item_show_author][value="+data.item_show_author+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_category]").removeAttr('checked');
|
||||
$("[name = item_show_category][value="+data.item_show_category+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_created]").removeAttr('checked');
|
||||
$("[name = item_show_created][value="+data.item_show_created+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_hit]").removeAttr('checked');
|
||||
$("[name = item_show_hit][value="+data.item_show_hit+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_counter]").removeAttr('checked');
|
||||
$("[name = item_show_counter][value="+data.item_show_counter+"]").attr('checked','checked').click();
|
||||
|
||||
$('#social_code').val(data.social_code);
|
||||
$("[name = item_show_listcomment]").removeAttr('checked');
|
||||
$("[name = item_show_listcomment][value="+data.item_show_listcomment+"]").attr('checked','checked').click();
|
||||
$("[name = item_show_formcomment]").removeAttr('checked');
|
||||
$("[name = item_show_formcomment][value="+data.item_show_formcomment+"]").attr('checked','checked').click();
|
||||
$("#item_comment_engine option").removeAttr('selected');
|
||||
$("#item_comment_engine option[value="+data.item_comment_engine+"]").attr('selected','selected');
|
||||
$('#item_limit_comments').val(data.item_limit_comments);
|
||||
$('#item_diquis_account').val(data.item_diquis_account);
|
||||
$('#item_facebook_appid').val(data.item_facebook_appid);
|
||||
$('#item_facebook_width').val(data.item_facebook_width);
|
||||
$("#url_use_id option").removeAttr('selected');
|
||||
$("#url_use_id option[value="+data.url_use_id+"]").attr('selected','selected');
|
||||
data.url_use_id == 0 ? $('.url_use_id_sub').show(500) : $('.url_use_id_sub').hide(300)
|
||||
|
||||
$("[name = show_popular_blog]").removeAttr('checked');
|
||||
$("[name = show_popular_blog][value="+data.show_popular_blog+"]").attr('checked','checked').click();
|
||||
$('#limit_popular_blog').val(data.limit_popular_blog);
|
||||
$("[name = show_recent_blog]").removeAttr('checked');
|
||||
$("[name = show_recent_blog][value="+data.show_recent_blog+"]").attr('checked','checked').click();
|
||||
$('#limit_recent_blog').val(data.limit_recent_blog);
|
||||
$("[name = show_all_tags]").removeAttr('checked');
|
||||
$("[name = show_all_tags][value="+data.show_all_tags+"]").attr('checked','checked').click();
|
||||
for (var id_lang of data_.id_lang) {
|
||||
$('#meta_title_'+id_lang).val(data.meta_title_1);
|
||||
$('#meta_description_').val(data.meta_description_1);
|
||||
$('#meta_keywords_'+id_lang).val(data.meta_keywords_1);
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//DONGND;; function delete image uploaded
|
||||
|
||||
function leoblog_del_img(img_id_element, img_name_e)
|
||||
{
|
||||
img_id_element.append('<a class="btn btn-default leoblog-del-img-bt" href="#" data-element="'+img_name_e+'" data-id="'+img_id_element.attr('id')+'"><i class="icon-trash"></i>'+leoblog_del_img_txt+'</a>');
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
// var i = 0;
|
||||
// $("#bloggeneralsetting > form > .panel .form-group").hide();
|
||||
// $("#bloggeneralsetting > form > .panel .panel-footer").hide();
|
||||
|
||||
// $("#bloggeneralsetting > form > .panel").each( function() {
|
||||
// var panel = $(this);
|
||||
// $( "h3, .panel-heading" , this ).click( function(){
|
||||
// $("#bloggeneralsetting > form > .panel .form-group").hide();
|
||||
|
||||
|
||||
// $(".form-group",panel).show();
|
||||
// $(".panel-footer",panel).show();
|
||||
// } );
|
||||
// if(i++==0){
|
||||
// $(".form-group",this).show();
|
||||
// $(".panel-footer",this).show();
|
||||
// }
|
||||
|
||||
// } );
|
||||
|
||||
var id_panel = $("#bloggeneralsetting .leoblog-globalconfig li.active a").attr("href");
|
||||
$(id_panel).addClass('active').show();
|
||||
$('.leoblog-globalconfig li').click(function(){
|
||||
if(!$(this).hasClass('active'))
|
||||
{
|
||||
var default_tab = $(this).find('a').attr("href");
|
||||
$('#LEOBLOG_DASHBOARD_DEFAULTTAB').val(default_tab);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
/*
|
||||
* SHOW HIDE - URL include ID
|
||||
*/
|
||||
$(document).ready(function(){
|
||||
$('.form-action').change(function(){
|
||||
var elementName = $(this).attr('name');
|
||||
$('.'+elementName+'_sub').hide(300);
|
||||
$('.'+elementName+'-'+$(this).val()).show(500);
|
||||
});
|
||||
$('.form-action').trigger("change");
|
||||
|
||||
});
|
||||
36
modules/leoblog/views/js/admin/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
424
modules/leoblog/views/js/admin/jquery.nestable.js
Normal file
@@ -0,0 +1,424 @@
|
||||
/**
|
||||
* Owl carousel
|
||||
*
|
||||
* @copyright Commercial License By LeoTheme.Com
|
||||
* @email leotheme.com
|
||||
* @visit http://www.leotheme.com
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.widget("mjs.nestedSortable", $.extend({}, $.ui.sortable.prototype, {
|
||||
|
||||
options: {
|
||||
tabSize: 20,
|
||||
disableNesting: 'mjs-nestedSortable-no-nesting',
|
||||
errorClass: 'mjs-nestedSortable-error',
|
||||
doNotClear: false,
|
||||
listType: 'ol',
|
||||
maxLevels: 0,
|
||||
protectRoot: false,
|
||||
rootID: null,
|
||||
rtl: false,
|
||||
isAllowed: function(item, parent) { return true; }
|
||||
},
|
||||
|
||||
_create: function() {
|
||||
this.element.data('sortable', this.element.data('nestedSortable'));
|
||||
|
||||
if (!this.element.is(this.options.listType))
|
||||
throw new Error('nestedSortable: Please check the listType option is set to your actual list type');
|
||||
|
||||
return $.ui.sortable.prototype._create.apply(this, arguments);
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this.element
|
||||
.removeData("nestedSortable")
|
||||
.unbind(".nestedSortable");
|
||||
return $.ui.sortable.prototype.destroy.apply(this, arguments);
|
||||
},
|
||||
|
||||
_mouseDrag: function(event) {
|
||||
|
||||
//Compute the helpers position
|
||||
this.position = this._generatePosition(event);
|
||||
this.positionAbs = this._convertPositionTo("absolute");
|
||||
|
||||
if (!this.lastPositionAbs) {
|
||||
this.lastPositionAbs = this.positionAbs;
|
||||
}
|
||||
|
||||
var o = this.options;
|
||||
|
||||
//Do scrolling
|
||||
if(this.options.scroll) {
|
||||
var scrolled = false;
|
||||
if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') {
|
||||
|
||||
if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)
|
||||
this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;
|
||||
else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity)
|
||||
this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;
|
||||
|
||||
if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
|
||||
this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;
|
||||
else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity)
|
||||
this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;
|
||||
|
||||
} else {
|
||||
|
||||
if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
|
||||
scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
|
||||
else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
|
||||
scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
|
||||
|
||||
if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
|
||||
scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
|
||||
else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
|
||||
scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
|
||||
|
||||
}
|
||||
|
||||
if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
|
||||
$.ui.ddmanager.prepareOffsets(this, event);
|
||||
}
|
||||
|
||||
//Regenerate the absolute position used for position checks
|
||||
this.positionAbs = this._convertPositionTo("absolute");
|
||||
|
||||
// Find the top offset before rearrangement,
|
||||
var previousTopOffset = this.placeholder.offset().top;
|
||||
|
||||
//Set the helper position
|
||||
if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
|
||||
if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
|
||||
|
||||
//Rearrange
|
||||
for (var i = this.items.length - 1; i >= 0; i--) {
|
||||
|
||||
//Cache variables and intersection, continue if no intersection
|
||||
var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item);
|
||||
if (!intersection) continue;
|
||||
|
||||
if(itemElement != this.currentItem[0] //cannot intersect with itself
|
||||
&& this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before
|
||||
&& !$.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked
|
||||
&& (this.options.type == 'semi-dynamic' ? !$.contains(this.element[0], itemElement) : true)
|
||||
//&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container
|
||||
) {
|
||||
|
||||
$(itemElement).mouseenter();
|
||||
|
||||
this.direction = intersection == 1 ? "down" : "up";
|
||||
|
||||
if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) {
|
||||
$(itemElement).mouseleave();
|
||||
this._rearrange(event, item);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
||||
// Clear emtpy ul's/ol's
|
||||
this._clearEmpty(itemElement);
|
||||
|
||||
this._trigger("change", event, this._uiHash());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var parentItem = (this.placeholder[0].parentNode.parentNode &&
|
||||
$(this.placeholder[0].parentNode.parentNode).closest('.ui-sortable').length)
|
||||
? $(this.placeholder[0].parentNode.parentNode)
|
||||
: null,
|
||||
level = this._getLevel(this.placeholder),
|
||||
childLevels = this._getChildLevels(this.helper);
|
||||
|
||||
// To find the previous sibling in the list, keep backtracking until we hit a valid list item.
|
||||
var previousItem = this.placeholder[0].previousSibling ? $(this.placeholder[0].previousSibling) : null;
|
||||
if (previousItem != null) {
|
||||
while (previousItem[0].nodeName.toLowerCase() != 'li' || previousItem[0] == this.currentItem[0] || previousItem[0] == this.helper[0]) {
|
||||
if (previousItem[0].previousSibling) {
|
||||
previousItem = $(previousItem[0].previousSibling);
|
||||
} else {
|
||||
previousItem = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// To find the next sibling in the list, keep stepping forward until we hit a valid list item.
|
||||
var nextItem = this.placeholder[0].nextSibling ? $(this.placeholder[0].nextSibling) : null;
|
||||
if (nextItem != null) {
|
||||
while (nextItem[0].nodeName.toLowerCase() != 'li' || nextItem[0] == this.currentItem[0] || nextItem[0] == this.helper[0]) {
|
||||
if (nextItem[0].nextSibling) {
|
||||
nextItem = $(nextItem[0].nextSibling);
|
||||
} else {
|
||||
nextItem = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var newList = document.createElement(o.listType);
|
||||
|
||||
this.beyondMaxLevels = 0;
|
||||
|
||||
// If the item is moved to the left, send it to its parent's level unless there are siblings below it.
|
||||
if (parentItem != null && nextItem == null &&
|
||||
(o.rtl && (this.positionAbs.left + this.helper.outerWidth() > parentItem.offset().left + parentItem.outerWidth()) ||
|
||||
!o.rtl && (this.positionAbs.left < parentItem.offset().left))) {
|
||||
parentItem.after(this.placeholder[0]);
|
||||
this._clearEmpty(parentItem[0]);
|
||||
this._trigger("change", event, this._uiHash());
|
||||
}
|
||||
// If the item is below a sibling and is moved to the right, make it a child of that sibling.
|
||||
else if (previousItem != null &&
|
||||
(o.rtl && (this.positionAbs.left + this.helper.outerWidth() < previousItem.offset().left + previousItem.outerWidth() - o.tabSize) ||
|
||||
!o.rtl && (this.positionAbs.left > previousItem.offset().left + o.tabSize))) {
|
||||
this._isAllowed(previousItem, level, level+childLevels+1);
|
||||
if (!previousItem.children(o.listType).length) {
|
||||
previousItem[0].appendChild(newList);
|
||||
}
|
||||
// If this item is being moved from the top, add it to the top of the list.
|
||||
if (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) {
|
||||
previousItem.children(o.listType).prepend(this.placeholder);
|
||||
}
|
||||
// Otherwise, add it to the bottom of the list.
|
||||
else {
|
||||
previousItem.children(o.listType)[0].appendChild(this.placeholder[0]);
|
||||
}
|
||||
this._trigger("change", event, this._uiHash());
|
||||
}
|
||||
else {
|
||||
this._isAllowed(parentItem, level, level+childLevels);
|
||||
}
|
||||
|
||||
//Post events to containers
|
||||
this._contactContainers(event);
|
||||
|
||||
//Interconnect with droppables
|
||||
if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);
|
||||
|
||||
//Call callbacks
|
||||
this._trigger('sort', event, this._uiHash());
|
||||
|
||||
this.lastPositionAbs = this.positionAbs;
|
||||
return false;
|
||||
|
||||
},
|
||||
|
||||
_mouseStop: function(event, noPropagation) {
|
||||
|
||||
// If the item is in a position not allowed, send it back
|
||||
if (this.beyondMaxLevels) {
|
||||
|
||||
this.placeholder.removeClass(this.options.errorClass);
|
||||
|
||||
if (this.domPosition.prev) {
|
||||
$(this.domPosition.prev).after(this.placeholder);
|
||||
} else {
|
||||
$(this.domPosition.parent).prepend(this.placeholder);
|
||||
}
|
||||
|
||||
this._trigger("revert", event, this._uiHash());
|
||||
|
||||
}
|
||||
|
||||
// Clean last empty ul/ol
|
||||
for (var i = this.items.length - 1; i >= 0; i--) {
|
||||
var item = this.items[i].item[0];
|
||||
this._clearEmpty(item);
|
||||
}
|
||||
|
||||
$.ui.sortable.prototype._mouseStop.apply(this, arguments);
|
||||
|
||||
},
|
||||
|
||||
serialize: function(options) {
|
||||
|
||||
var o = $.extend({}, this.options, options),
|
||||
items = this._getItemsAsjQuery(o && o.connected),
|
||||
str = [];
|
||||
|
||||
$(items).each(function() {
|
||||
var res = ($(o.item || this).attr(o.attribute || 'id') || '')
|
||||
.match(o.expression || (/(.+)[-=_](.+)/)),
|
||||
pid = ($(o.item || this).parent(o.listType)
|
||||
.parent(o.items)
|
||||
.attr(o.attribute || 'id') || '')
|
||||
.match(o.expression || (/(.+)[-=_](.+)/));
|
||||
|
||||
if (res) {
|
||||
str.push(((o.key || res[1]) + '[' + (o.key && o.expression ? res[1] : res[2]) + ']')
|
||||
+ '='
|
||||
+ (pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID));
|
||||
}
|
||||
});
|
||||
|
||||
if(!str.length && o.key) {
|
||||
str.push(o.key + '=');
|
||||
}
|
||||
|
||||
return str.join('&');
|
||||
|
||||
},
|
||||
|
||||
toHierarchy: function(options) {
|
||||
|
||||
var o = $.extend({}, this.options, options),
|
||||
sDepth = o.startDepthCount || 0,
|
||||
ret = [];
|
||||
|
||||
$(this.element).children(o.items).each(function () {
|
||||
var level = _recursiveItems(this);
|
||||
ret.push(level);
|
||||
});
|
||||
|
||||
return ret;
|
||||
|
||||
function _recursiveItems(item) {
|
||||
var id = ($(item).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
|
||||
if (id) {
|
||||
var currentItem = {"id" : id[2]};
|
||||
if ($(item).children(o.listType).children(o.items).length > 0) {
|
||||
currentItem.children = [];
|
||||
$(item).children(o.listType).children(o.items).each(function() {
|
||||
var level = _recursiveItems(this);
|
||||
currentItem.children.push(level);
|
||||
});
|
||||
}
|
||||
return currentItem;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
toArray: function(options) {
|
||||
|
||||
var o = $.extend({}, this.options, options),
|
||||
sDepth = o.startDepthCount || 0,
|
||||
ret = [],
|
||||
left = 2;
|
||||
|
||||
ret.push({
|
||||
"item_id": o.rootID,
|
||||
"parent_id": 'none',
|
||||
"depth": sDepth,
|
||||
"left": '1',
|
||||
"right": ($(o.items, this.element).length + 1) * 2
|
||||
});
|
||||
|
||||
$(this.element).children(o.items).each(function () {
|
||||
left = _recursiveArray(this, sDepth + 1, left);
|
||||
});
|
||||
|
||||
ret = ret.sort(function(a,b){ return (a.left - b.left); });
|
||||
|
||||
return ret;
|
||||
|
||||
function _recursiveArray(item, depth, left) {
|
||||
|
||||
var right = left + 1,
|
||||
id,
|
||||
pid;
|
||||
|
||||
if ($(item).children(o.listType).children(o.items).length > 0) {
|
||||
depth ++;
|
||||
$(item).children(o.listType).children(o.items).each(function () {
|
||||
right = _recursiveArray($(this), depth, right);
|
||||
});
|
||||
depth --;
|
||||
}
|
||||
|
||||
id = ($(item).attr(o.attribute || 'id')).match(o.expression || (/(.+)[-=_](.+)/));
|
||||
|
||||
if (depth === sDepth + 1) {
|
||||
pid = o.rootID;
|
||||
} else {
|
||||
var parentItem = ($(item).parent(o.listType)
|
||||
.parent(o.items)
|
||||
.attr(o.attribute || 'id'))
|
||||
.match(o.expression || (/(.+)[-=_](.+)/));
|
||||
pid = parentItem[2];
|
||||
}
|
||||
|
||||
if (id) {
|
||||
ret.push({"item_id": id[2], "parent_id": pid, "depth": depth, "left": left, "right": right});
|
||||
}
|
||||
|
||||
left = right + 1;
|
||||
return left;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
_clearEmpty: function(item) {
|
||||
|
||||
var emptyList = $(item).children(this.options.listType);
|
||||
if (emptyList.length && !emptyList.children().length && !this.options.doNotClear) {
|
||||
emptyList.remove();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
_getLevel: function(item) {
|
||||
|
||||
var level = 1;
|
||||
|
||||
if (this.options.listType) {
|
||||
var list = item.closest(this.options.listType);
|
||||
while (list && list.length > 0 &&
|
||||
!list.is('.ui-sortable')) {
|
||||
level++;
|
||||
list = list.parent().closest(this.options.listType);
|
||||
}
|
||||
}
|
||||
|
||||
return level;
|
||||
},
|
||||
|
||||
_getChildLevels: function(parent, depth) {
|
||||
var self = this,
|
||||
o = this.options,
|
||||
result = 0;
|
||||
depth = depth || 0;
|
||||
|
||||
$(parent).children(o.listType).children(o.items).each(function (index, child) {
|
||||
result = Math.max(self._getChildLevels(child, depth + 1), result);
|
||||
});
|
||||
|
||||
return depth ? result + 1 : result;
|
||||
},
|
||||
|
||||
_isAllowed: function(parentItem, level, levels) {
|
||||
var o = this.options,
|
||||
isRoot = $(this.domPosition.parent).hasClass('ui-sortable') ? true : false,
|
||||
maxLevels = this.placeholder.closest('.ui-sortable').nestedSortable('option', 'maxLevels'); // this takes into account the maxLevels set to the recipient list
|
||||
|
||||
// Is the root protected?
|
||||
// Are we trying to nest under a no-nest?
|
||||
// Are we nesting too deep?
|
||||
if (!o.isAllowed(this.currentItem, parentItem) ||
|
||||
parentItem && parentItem.hasClass(o.disableNesting) ||
|
||||
o.protectRoot && (parentItem == null && !isRoot || isRoot && level > 1)) {
|
||||
this.placeholder.addClass(o.errorClass);
|
||||
if (maxLevels < levels && maxLevels != 0) {
|
||||
this.beyondMaxLevels = levels - maxLevels;
|
||||
} else {
|
||||
this.beyondMaxLevels = 1;
|
||||
}
|
||||
} else {
|
||||
if (maxLevels < levels && maxLevels != 0) {
|
||||
this.placeholder.addClass(o.errorClass);
|
||||
this.beyondMaxLevels = levels - maxLevels;
|
||||
} else {
|
||||
this.placeholder.removeClass(o.errorClass);
|
||||
this.beyondMaxLevels = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}));
|
||||
|
||||
$.mjs.nestedSortable.prototype.options = $.extend({}, $.ui.sortable.prototype.options, $.mjs.nestedSortable.prototype.options);
|
||||
})(jQuery);
|
||||
36
modules/leoblog/views/js/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
119
modules/leoblog/views/js/leoblog.js
Normal file
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
* Owl carousel
|
||||
*
|
||||
* @copyright Commercial License By LeoTheme.Com
|
||||
* @email leotheme.com
|
||||
* @visit http://www.leotheme.com
|
||||
*/
|
||||
$(document).ready( function(){
|
||||
/* */
|
||||
var src = $('#comment-form img.comment-capcha-image').attr('src');
|
||||
$("#comment-form").submit( function() {
|
||||
var action = $(this).attr('action');
|
||||
var data = $('#comment-form').serialize();
|
||||
|
||||
if( $("#comment-form").parent().find('.comment-message').length<=0 ){
|
||||
var msg = $('<div class="comment-message"></div>');
|
||||
$("#comment-form").before( msg );
|
||||
}else {
|
||||
var msg = $("#comment-form").parent().find(".comment-message");
|
||||
}
|
||||
// $('.btn-submit-comment').addClass('disable');
|
||||
$('.btn-submit-comment').css({'display':'none'});
|
||||
$('.btn-submit-comment-wrapper').addClass('bt-active');
|
||||
$('.leoblog-cssload-container').css({'display':'block'});
|
||||
$.ajax( {
|
||||
url:action,
|
||||
data: data+"&submitcomment="+Math.random(),
|
||||
type:'POST',
|
||||
dataType: 'json',
|
||||
success:function( ct ){
|
||||
if( !ct.error ){
|
||||
$( msg ).html('<div class="alert alert-info">'+ct.message+'</div>');
|
||||
$( 'input[type=text], textarea', '#comment-form' ).each( function(){
|
||||
$(this).val('');
|
||||
var srcn = src.replace('captchaimage','rand='+Math.random()+"&captchaimage");
|
||||
$('#comment-form img.comment-capcha-image').attr( 'src', srcn );
|
||||
} );
|
||||
}else {
|
||||
$( msg ).html('<div class="alert alert-warning">'+ct.message+'</div>');
|
||||
}
|
||||
// $('.btn-submit-comment').removeClass('disable');
|
||||
$('.btn-submit-comment').css({'display':'block'});
|
||||
$('.btn-submit-comment-wrapper').removeClass('bt-active');
|
||||
$('.leoblog-cssload-container').css({'display':'none'});
|
||||
}
|
||||
} );
|
||||
return false;
|
||||
} );
|
||||
|
||||
$('.top-pagination-content a.disabled').click(function(){
|
||||
return false;
|
||||
})
|
||||
|
||||
//DONGND:: update link in language block
|
||||
var current_lang = prestashop.language.iso_code;
|
||||
if (typeof array_list_rewrite != 'undefined')
|
||||
{
|
||||
var current_list_rewrite = array_list_rewrite[current_lang];
|
||||
var current_blog_rewrite = array_blog_rewrite[current_lang];
|
||||
var current_category_rewrite = array_category_rewrite[current_lang];
|
||||
var current_config_blog_rewrite = array_config_blog_rewrite[current_lang];
|
||||
var current_config_category_rewrite = array_config_category_rewrite[current_lang];
|
||||
|
||||
$.each(array_list_rewrite, function(iso_code, list_rewrite){
|
||||
if (iso_code != current_lang)
|
||||
{
|
||||
var url_search = prestashop.urls.base_url + iso_code;
|
||||
// console.log(url_search);
|
||||
//DONGND:: update for module blockgrouptop and default
|
||||
if ($('#leo_block_top').length)
|
||||
{
|
||||
var parent_o = $('#leo_block_top .language-selector');
|
||||
}
|
||||
else
|
||||
{
|
||||
var parent_o = $('.language-selector-wrapper');
|
||||
}
|
||||
|
||||
parent_o.find('li a').each(function(){
|
||||
|
||||
var lang_href = $(this).attr('href');
|
||||
|
||||
if(lang_href.indexOf(url_search) > -1 )
|
||||
{
|
||||
if ($('body#module-leoblog-list').length)
|
||||
{
|
||||
var url_change = lang_href.replace('/'+current_list_rewrite+'.html', '/'+list_rewrite+'.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
var url_change = lang_href.replace('/'+current_list_rewrite+'/', '/'+list_rewrite+'/');
|
||||
}
|
||||
|
||||
if ($('body#module-leoblog-blog').length)
|
||||
{
|
||||
if (config_url_use_id == 0)
|
||||
{
|
||||
url_change = url_change.replace('/'+current_config_blog_rewrite+'/', '/'+array_config_blog_rewrite[iso_code]+'/');
|
||||
}
|
||||
url_change = url_change.replace('/'+current_blog_rewrite, '/'+array_blog_rewrite[iso_code]);
|
||||
}
|
||||
|
||||
if ($('body#module-leoblog-category').length)
|
||||
{
|
||||
if (config_url_use_id == 0)
|
||||
{
|
||||
url_change = url_change.replace('/'+current_config_category_rewrite+'/', '/'+array_config_category_rewrite[iso_code]+'/');
|
||||
}
|
||||
url_change = url_change.replace('/'+current_category_rewrite, '/'+array_category_rewrite[iso_code]);
|
||||
}
|
||||
|
||||
$(this).attr('href', url_change);
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
} );
|
||||
36
modules/leoblog/views/templates/admin/_configure/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
38
modules/leoblog/views/templates/admin/category.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
var leoblog_del_img_txt = "{$leoblog_del_img_txt|escape:'htmlall':'UTF-8'}";
|
||||
var leoblog_del_img_mess = "{$leoblog_del_img_mess|escape:'htmlall':'UTF-8'}";
|
||||
var action = "{$action|escape:'htmlall':'UTF-8'}";
|
||||
var addnew = "{$addnew|escape:'htmlall':'UTF-8'}";
|
||||
</script>
|
||||
|
||||
<div class="" id="megamenu">
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default">
|
||||
<h3 class="panel-title">{$text_title|escape:'htmlall':'UTF-8'}</h3>
|
||||
<div class="panel-content">
|
||||
{$text_content|escape:'htmlall':'UTF-8'}
|
||||
<hr>
|
||||
<p>
|
||||
<input type="button" value="{$text_value|escape:'htmlall':'UTF-8'}" id="addcategory" data-loading-text="{$text_process|escape:'htmlall':'UTF-8'}" class="btn btn-danger" name="addcategory">
|
||||
</p>
|
||||
<hr>{$tree}{* HTML form , no escape necessary *}
|
||||
<a href="javascript:void(0);" class="btn btn-danger delete_many_menus">
|
||||
<i class="icon-trash"></i> Delete selected
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">{$generate_form}{* HTML form , no escape necessary *}</div>
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
$("#content").PavMegaMenuList({action:action, addnew:addnew});
|
||||
</script>
|
||||
{/literal}
|
||||
18
modules/leoblog/views/templates/admin/correct_module.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div class="panel form-horizontal">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-1">
|
||||
<a class="megamenu-correct-module btn btn-success" href="{$link->getAdminLink('AdminModules')|escape:'htmlall':'UTF-8'}&configure=leoblog&success=correct&correctmodule=1">
|
||||
<i class="icon-AdminParentPreferences"></i>{l s='Correct module' mod='leoblog'}
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-5">* {l s='Please backup the database before run correct module to safe' mod='leoblog'}</div>
|
||||
</div>
|
||||
</div>
|
||||
36
modules/leoblog/views/templates/admin/dashboard/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
26
modules/leoblog/views/templates/admin/errors.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
{if isset($errors) && count($errors) && current($errors) != ''}
|
||||
|
||||
<div class="bootstrap">
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
{if count($errors) == 1}
|
||||
{reset($errors|escape:'htmlall':'UTF-8')}
|
||||
{else }
|
||||
{l s='%d errors' sprintf=[$errors|count] mod='leoblog'}
|
||||
<br/>
|
||||
<ol>
|
||||
{foreach $errors as $error}
|
||||
<li>{$error|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
24
modules/leoblog/views/templates/admin/genTree.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<ol class="level{$level|escape:'htmlall':'UTF-8'}{$t|escape:'htmlall':'UTF-8'}">
|
||||
{foreach from=$data item=$menu}
|
||||
<li id="list_{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}" class="{if $param_id_leoblogcat == $menu.id_leoblogcat}selected{/if}">
|
||||
<div>
|
||||
<span class="disclose"><span></span></span>
|
||||
{$menu.title|escape:'htmlall':'UTF-8'} (ID:{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'})
|
||||
<input type="checkbox" name="menubox[]" value="{$menu['id_leoblogcat']|escape:'htmlall':'UTF-8'}" class="quickselect" title="Select to delete">
|
||||
<span class="quickedit" rel="id_{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}">E</span>
|
||||
<span class="quickdel" rel="id_{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}">D</span>
|
||||
</div>
|
||||
{if $menu.id_leoblogcat != $parent}
|
||||
{$model_leoblogcat->genTree($menu.id_leoblogcat, $level + 1)|escape:'htmlall':'UTF-8'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<ol class="level{$level|escape:'htmlall':'UTF-8'}">
|
||||
{foreach from=$data item=$menu}
|
||||
<li id="list_{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}">
|
||||
<input type="checkbox" value="{$menu.randkey|escape:'htmlall':'UTF-8'}" name="chk_cat[]" id="chk-{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}" {if $menu.id_leoblogcat|array_search:$select !== false}checked="checked"{/if}/>
|
||||
<label for="chk-{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'}">{$menu.title|escape:'htmlall':'UTF-8'} (ID:{$menu.id_leoblogcat|escape:'htmlall':'UTF-8'})</label>
|
||||
{if $menu.id_leoblogcat != $parent}
|
||||
{$model_leoblogcat->genTreeForApPageBuilder($menu.id_leoblogcat, $level + 1, $select)|escape:'htmlall':'UTF-8'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
36
modules/leoblog/views/templates/admin/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,32 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\admin\ap_page_builder_theme_configuration\helpers\form\form.tpl -->
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
{block name="input"}
|
||||
{if $input.type == 'date_leoblog'}
|
||||
<div class="row">
|
||||
<div class="input-group col-lg-4">
|
||||
<input
|
||||
id="{if isset($input.id)}{$input.id|escape:'htmlall':'UTF-8'}{else}{$input.name|escape:'htmlall':'UTF-8'}{/if}"
|
||||
type="text"
|
||||
data-hex="true"
|
||||
{if isset($input.class)} class="{$input.class}"
|
||||
{else}class="datepicker"{/if}
|
||||
name="{$input.name|escape:'htmlall':'UTF-8'}"
|
||||
value="{if isset($input.default) && $fields_value[$input.name] == ''}{$input.default|escape:'htmlall':'UTF-8'}{else}{$fields_value[$input.name]|escape:'html':'UTF-8'}{/if}" />
|
||||
<span class="input-group-addon">
|
||||
<i class="icon-calendar-empty"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,25 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\admin\ap_page_builder_theme_configuration\helpers\form\form.tpl -->
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
{block name="input"}
|
||||
{if $input.type == 'tabConfig'}
|
||||
<div class="row">
|
||||
{assign var=tabList value=$input.values}
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
{foreach $tabList as $key => $value name="tabList"}
|
||||
<li role="presentation" class="{if $smarty.foreach.tabList.first}active{/if}"><a href="#{$key|escape:'html':'UTF-8'}" class="aptab-config" role="tab" data-toggle="tab">{$value|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2014 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2014 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,141 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="blog-dashboard">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<a href="http://www.leotheme.com/support/prestashop-16x-guides.html">{l s='Click Here to see Module Guide' mod='leoblog'}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{l s='Global Config' mod='leoblog'}</div>
|
||||
|
||||
<div class="panel-content" id="bloggeneralsetting">
|
||||
<ul class="nav nav-tabs leoblog-globalconfig" role="tablist">
|
||||
<li class="nav-item{if $default_tab == '#fieldset_0'} active{/if}">
|
||||
<a class="nav-link" href="#fieldset_0" role="tab" data-toggle="tab">{l s='General Setting' mod='leoblog'}</a>
|
||||
</li>
|
||||
<li class="nav-item{if $default_tab == '#fieldset_1_1'} active{/if}">
|
||||
<a class="nav-link" href="#fieldset_1_1" role="tab" data-toggle="tab">{l s='Listing Blog Setting' mod='leoblog'}</a>
|
||||
</li>
|
||||
<li class="nav-item{if $default_tab == '#fieldset_2_2'} active{/if}">
|
||||
<a class="nav-link" href="#fieldset_2_2" role="tab" data-toggle="tab">{l s='Item Blog Setting' mod='leoblog'}</a>
|
||||
</li>
|
||||
<li class="nav-item{if $default_tab == '#fieldset_3_3'} active{/if}">
|
||||
<a class="nav-link" href="#fieldset_3_3" role="tab" data-toggle="tab">{l s='Left-Right Column' mod='leoblog'}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
{$globalform}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{l s='Quick Tools' mod='leoblog'}</div>
|
||||
<div class="panel-content">
|
||||
|
||||
<div id="quicktools" class="row">
|
||||
{foreach from=$quicktools item=tool}
|
||||
<div class="col-xs-3 col-lg-3 active">
|
||||
<a href="{$tool.href|escape:'html':'UTF-8'}" class="{$tool.class|escape:'html':'UTF-8'}">
|
||||
<i class="icon icon-3x {$tool.icon|escape:'html':'UTF-8'}"></i>
|
||||
<p>{$tool.title|escape:'html':'UTF-8'}</p>
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{l s='Statistics' mod='leoblog'}</div>
|
||||
<div class="panel-content" id="dashtrends">
|
||||
|
||||
<div class="row" id="dashtrends_toolbar">
|
||||
<dl class="col-xs-4 col-lg-4 active">
|
||||
<dt>{l s='Blogs' mod='leoblog'}</dt>
|
||||
<dd class="data_value size_l"><span id="sales_score">{$count_blogs|intval}</span></dd>
|
||||
|
||||
</dl>
|
||||
<dl class="col-xs-4 col-lg-4">
|
||||
<dt>{l s='Categories' mod='leoblog'}</dt>
|
||||
<dd class="data_value size_l"><span id="orders_score">{$count_cats|intval}</span></dd>
|
||||
|
||||
</dl>
|
||||
<dl class="col-xs-4 col-lg-4">
|
||||
<dt>{l s='Comments' mod='leoblog'}</dt>
|
||||
<dd class="data_value size_l"><span id="cart_value_score">{$count_comments|intval}</span></dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{l s='Modules' mod='leoblog'}</div>
|
||||
<div class="panel-content">
|
||||
|
||||
<section>
|
||||
<nav>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="">
|
||||
<a data-toggle="tab" href="#dash_latest_comment">
|
||||
<i class="icon-fire"></i> {l s='Lastest Comments' mod='leoblog'}
|
||||
</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#dash_most_viewed">
|
||||
<i class="icon-trophy"></i> {l s='Most Viewed' mod='leoblog'}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="tab-content panel">
|
||||
<div id="dash_latest_comment" class="tab-pane">
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
{foreach from=$latest_comments item=comment}
|
||||
<li><a href="{$comment_link|escape:'html':'UTF-8'}&id_comment={$comment.id_comment|intval}&updateleoblog_comment">
|
||||
{$comment.comment|strip_tags|truncate:65:'...'} </a/> {l s='Date' mod='leoblog'}({$comment.date_add|escape:'html':'UTF-8'}) - {l s='User :' mod='leoblog'} {$comment.user|escape:'html':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="dash_most_viewed" class="tab-pane active">
|
||||
<div>
|
||||
<ul>
|
||||
{foreach from=$blogs item=blog}
|
||||
<li><a href="{$blog_link|escape:'html':'UTF-8'}&id_leoblog_blog={$blog.id_leoblog_blog|intval}&updateleoblog_blog">{$blog.meta_title|escape:'html':'UTF-8'}</a/> - <i>{l s='Hits' mod='leoblog'}: {$blog.hits|intval}</i> </li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
34
modules/leoblog/views/templates/admin/widget.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if $warning}
|
||||
<div class="alert alert-danger">{$warning|escape:'html':'UTF-8'}</div>
|
||||
{/if}
|
||||
{if $widget_selected}
|
||||
{$form}{* HTML form , no escape necessary *}
|
||||
<script type="text/javascript">
|
||||
$('#widget_type').change( function(){
|
||||
location.href = '{html_entity_decode($fb_widget_action|escape:'html':'UTF-8')}&wtype='+$(this).val();
|
||||
} );
|
||||
</script>
|
||||
{else}
|
||||
<div class="widgets">
|
||||
{$i=0} <div class="row">
|
||||
{foreach $types as $widget => $text}
|
||||
|
||||
|
||||
<div class="col-md-4 col-sm-4">
|
||||
<div class="widget-item">
|
||||
<h4><a href="{html_entity_decode($fb_widget_action|escape:'html':'UTF-8')}&wtype={$widget|escape:'html':'UTF-8'}">{$text.label|escape:'html':'UTF-8'}</a></h4>
|
||||
<p><i>{$text.explain}{* HTML form , no escape necessary *}</i></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/foreach} <div class="row">
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,19 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = '{$config->get('item_diquis_account','demo4leotheme')|escape:'html':'UTF-8'}';
|
||||
var disqus_url = '{$blog_link|escape:'html':'UTF-8'}';
|
||||
(function() {
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>{l s='Please enable JavaScript to view the.' mod='leoblog'} <a href="http://disqus.com/?ref_noscript">{l s='Comments powered by Disqus.' mod='leoblog'}.</a></noscript>
|
||||
@@ -0,0 +1,21 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) {
|
||||
return;
|
||||
}
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={$config->get('item_facebook_appid')|escape:'html':'UTF-8'}";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
<div class="fb-comments" data-href="{$blog_link|escape:'html':'UTF-8'}"
|
||||
data-num-posts="{$config->get("item_limit_comments",10)|escape:'html':'UTF-8'}" data-width="{$config->get('facebook_width',600)|escape:'html':'UTF-8'}">
|
||||
</div>
|
||||
126
modules/leoblog/views/templates/front/default/_listing_blog.tpl
Normal file
@@ -0,0 +1,126 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<article class="blog-item">
|
||||
<div class="blog-image-container">
|
||||
{if $config->get('listing_show_title','1')}
|
||||
<h4 class="title">
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">{$blog.title|escape:'html':'UTF-8'}</a>
|
||||
</h4>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB') || Configuration::get('LEOBLOG_SHARE_TW') }
|
||||
<div class="share_button">
|
||||
<span><i class="fa fa-share-alt"></i>{l s='Share' d='Shop.Theme.Global'}</span>
|
||||
<ul>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB')}
|
||||
<li class="facebook">
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Facebook' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_TW')}
|
||||
<li class="twitter">
|
||||
<a href="https://twitter.com/intent/tweet?text={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Twitter' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="blog-meta">
|
||||
{if $config->get('listing_show_author','1')&&!empty($blog.author)}
|
||||
<span class="blog-author">
|
||||
<i class="material-icons">person</i> <span>{l s='Posted By' mod='leoblog'}:</span>
|
||||
<a href="{$blog.author_link|escape:'html':'UTF-8'}" title="{$blog.author|escape:'html':'UTF-8'}">{$blog.author|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_category','1')}
|
||||
<span class="blog-cat">
|
||||
<i class="material-icons">list</i> <span>{l s='In' mod='leoblog'}:</span>
|
||||
<a href="{$blog.category_link|escape:'html':'UTF-8'}" title="{$blog.category_title|escape:'html':'UTF-8'}">{$blog.category_title|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_created','1')}
|
||||
<span class="blog-created">
|
||||
<i class="material-icons"></i> <span>{l s='On' mod='leoblog'}: </span>
|
||||
<time class="date" datetime="{strtotime($blog.date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
|
||||
{assign var='blog_date' value=strtotime($blog.date_add)|date_format:"%A"}
|
||||
{l s=$blog_date mod='leoblog'}, <!-- day of week -->
|
||||
{assign var='blog_month' value=strtotime($blog.date_add)|date_format:"%B"}
|
||||
{l s=$blog_month mod='leoblog'} <!-- month-->
|
||||
{assign var='blog_day' value=strtotime($blog.date_add)|date_format:"%e"}
|
||||
{l s=$blog_day mod='leoblog'} <!-- day of month -->
|
||||
{assign var='blog_year' value=strtotime($blog.date_add)|date_format:"%Y"}
|
||||
{l s=$blog_year mod='leoblog'} <!-- year -->
|
||||
</time>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($blog.comment_count)&&$config->get('listing_show_counter','1')}
|
||||
<span class="blog-ctncomment">
|
||||
<i class="material-icons">comment</i> <span>{l s='Comment' mod='leoblog'}:</span>
|
||||
{$blog.comment_count|intval}
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('listing_show_hit','1')}
|
||||
<span class="blog-hit">
|
||||
<i class="material-icons">favorite</i> <span>{l s='Hit' mod='leoblog'}:</span>
|
||||
{$blog.hits|intval}
|
||||
</span>
|
||||
{/if}
|
||||
</div>
|
||||
{if $blog.image && $config->get('listing_show_image',1)}
|
||||
<div class="blog-image">
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog.preview_url|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" alt="" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" />
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="blog-info">
|
||||
{if $config->get('listing_show_description','1')}
|
||||
<div class="blog-shortinfo">
|
||||
{$blog.description|strip_tags:'UTF-8'|truncate:160:'...'|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
{if $config->get('listing_show_readmore',1)}
|
||||
<p>
|
||||
<a href="{$blog.link|escape:'html':'UTF-8'}" title="{$blog.title|escape:'html':'UTF-8'}" class="more btn btn-primary">{l s='Read more' mod='leoblog'}</a>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="hidden-xl-down hidden-xl-up datetime-translate">
|
||||
{l s='Sunday' mod='leoblog'}
|
||||
{l s='Monday' mod='leoblog'}
|
||||
{l s='Tuesday' mod='leoblog'}
|
||||
{l s='Wednesday' mod='leoblog'}
|
||||
{l s='Thursday' mod='leoblog'}
|
||||
{l s='Friday' mod='leoblog'}
|
||||
{l s='Saturday' mod='leoblog'}
|
||||
|
||||
{l s='January' mod='leoblog'}
|
||||
{l s='February' mod='leoblog'}
|
||||
{l s='March' mod='leoblog'}
|
||||
{l s='April' mod='leoblog'}
|
||||
{l s='May' mod='leoblog'}
|
||||
{l s='June' mod='leoblog'}
|
||||
{l s='July' mod='leoblog'}
|
||||
{l s='August' mod='leoblog'}
|
||||
{l s='September' mod='leoblog'}
|
||||
{l s='October' mod='leoblog'}
|
||||
{l s='November' mod='leoblog'}
|
||||
{l s='December' mod='leoblog'}
|
||||
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,97 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="blog-localengine">
|
||||
{if $config->get('item_show_listcomment','1') == 1}
|
||||
<h3>{l s='Comments' mod='leoblog'}</h3>
|
||||
|
||||
{if isset($comments) && count($comments) > 0}
|
||||
<div class="comments clearfix">
|
||||
{foreach from=$comments item=comment name=comment} {$default=''}
|
||||
<div class="comment-item" id="comment{$comment.id_comment|escape:'html':'UTF-8'}">
|
||||
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="http://www.gravatar.com/avatar/{md5(strtolower(trim($comment.email|escape:'html':'UTF-8')))}?d={urlencode($default|escape:'html':'UTF-8')}&s=60" align="left"/>
|
||||
<div class="comment-wrap">
|
||||
<div class="comment-meta">
|
||||
<span class="comment-infor">
|
||||
<span class="comment-created">{l s='Created On' mod='leoblog'}<span> {strtotime($comment.date_add)|date_format:"%A, %B %e, %Y"|escape:'html':'UTF-8'}</span></span>
|
||||
<span class="comment-postedby">{l s='Posted By' mod='leoblog'}<span> {$comment.user|escape:'html':'UTF-8'}</span></span>
|
||||
</span>
|
||||
|
||||
<span class="comment-link"><a href="{$blog_link|escape:'html':'UTF-8'}#comment{$comment.id_comment|intval}">{l s='Comment Link' mod='leoblog'}</a></span>
|
||||
</div>
|
||||
|
||||
<div class="comment-content">
|
||||
{$comment.comment|nl2br|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{if $blog_count_comment}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
{include file="$_pagination"}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-success">{l s='No comment at this time!' mod='leoblog'}</p>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_formcomment','1') == 1}
|
||||
<h3 class="title-comment">{l s='Leave your comment' mod='leoblog'}</h3>
|
||||
<form class="form-horizontal clearfix" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputFullName">{l s='Full Name' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="user" placeholder="{l s='Enter your full name' mod='leoblog'}" id="inputFullName" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputEmail">{l s='Email' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="email" placeholder="{l s='Enter your email' mod='leoblog'}" id="inputEmail" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputComment">{l s='Comment' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-9">
|
||||
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='leoblog'}" id="inputComment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-3">
|
||||
<label class="control-label" for="inputEmail">{l s='Captcha' mod='leoblog'}</label>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 ipts-captcha">
|
||||
<img src="{$captcha_image|escape:'html':'UTF-8'}" class="comment-capcha-image" align="left"/>
|
||||
<input class="form-control" type="text" name="captcha" value="" size="10" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id_leoblog_blog" value="{$id_leoblog_blog|intval}">
|
||||
<div class="form-group row">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<button class="btn btn-secondary btn-outline btn-submit-comment-wrapper" name="submitcomment" type="submit">
|
||||
<span class="btn-submit-comment">{l s='Submit' mod='leoblog'}</span>
|
||||
<span class="leoblog-cssload-container cssload-speeding-wheel"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
127
modules/leoblog/views/templates/front/default/_pagination.tpl
Normal file
@@ -0,0 +1,127 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
|
||||
{if isset($p) AND $p}
|
||||
{if ($n*$p) < $nb_items }
|
||||
{assign var='blogShowing' value=$n*$p}
|
||||
{else}
|
||||
{assign var='blogShowing' value=($n*$p-$nb_items-$n*$p)*-1}
|
||||
{/if}
|
||||
{if $p==1}
|
||||
{assign var='blogShowingStart' value=1}
|
||||
{else}
|
||||
{assign var='blogShowingStart' value=$n*$p-$n+1}
|
||||
{/if}
|
||||
|
||||
<nav class="pagination">
|
||||
{* <div class="col-xs-12 col-md-6 col-lg-6">
|
||||
{if $nb_items > 1}
|
||||
{l s='Showing' mod='leoblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='leoblog'} {$nb_items|escape:'htmlall':'UTF-8'} {l s='items' mod='leoblog'}
|
||||
{else}
|
||||
{l s='Showing' mod='leoblog'} {$blogShowingStart|escape:'htmlall':'UTF-8'} - {$blogShowing|escape:'htmlall':'UTF-8'} {l s='of' mod='leoblog'} 1 {l s='item' mod='leoblog'}
|
||||
{/if}
|
||||
</div> *}
|
||||
{if $start!=$stop}
|
||||
<div id="pagination{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}" class="col-xs-12 col-md-6 col-lg-6">
|
||||
<ul class="page-list clearfix text-sm-right text-xs-center">
|
||||
{if $p != 1}
|
||||
{assign var='p_previous' value=$p-1}
|
||||
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} class="previous" rel="prev" href="{$link->goPage($requestPage, $p_previous)|escape:'html':'UTF-8'}">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Previous' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li id="pagination_previous{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a class="previous disabled" rel="prev" href="#">
|
||||
<i class="material-icons"></i>
|
||||
<span>{l s='Previous' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $start==3}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 2)|escape:'html':'UTF-8'}">2</a></li>
|
||||
{/if}
|
||||
{if $start==2}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
{/if}
|
||||
{if $start>3}
|
||||
<li><a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, 1)|escape:'html':'UTF-8'}">1</a></li>
|
||||
<li class="truncate">...</li>
|
||||
{/if}
|
||||
{section name=pagination start=$start loop=$stop+1 step=1}
|
||||
{if $p == $smarty.section.pagination.index}
|
||||
<li class="current">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}" class="disabled">
|
||||
{$p|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li>
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html':'UTF-8'}">
|
||||
{$smarty.section.pagination.index|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{/section}
|
||||
{if $pages_nb>$stop+2}
|
||||
<li class="truncate">...</li>
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb==$stop+1}
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb==$stop+2}
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb-1)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb-1|intval}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$link->goPage($requestPage, $pages_nb)|escape:'html':'UTF-8'}">
|
||||
{$pages_nb|intval}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $pages_nb > 1 AND $p != $pages_nb}
|
||||
{assign var='p_next' value=$p+1}
|
||||
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a {$no_follow_text|escape:'html':'UTF-8'} class="next" rel="next" href="{$link->goPage($requestPage, $p_next)|escape:'html':'UTF-8'}">
|
||||
<span>{l s='Next' mod='leoblog'}</span>
|
||||
<i class="material-icons"></i>
|
||||
</a>
|
||||
</li>
|
||||
{else}
|
||||
<li id="pagination_next{if isset($paginationId)}_{$paginationId|escape:'html':'UTF-8'}{/if}">
|
||||
<a class="next disabled" rel="next" href="#">
|
||||
<span>{l s='Next' mod='leoblog'}</span>
|
||||
<i class="material-icons"></i>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</nav>
|
||||
{/if}
|
||||
56
modules/leoblog/views/templates/front/default/_social.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div class="social-wrap">
|
||||
<div class="social-heading"> <b>{l s='Like This' mod='leoblog'}</b> </div>
|
||||
{if $config->get('social_code','')}
|
||||
{$config->get('social_code','')|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
{else}
|
||||
<!-- Twitter Button -->
|
||||
<div class="itemTwitterButton">
|
||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" >
|
||||
{l s='Twitter' mod='leoblog'}
|
||||
</a>
|
||||
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Facebook Button -->
|
||||
<div class="itemFacebookButton">
|
||||
<div id="fb-root"></div>
|
||||
<script type="text/javascript">
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Google +1 Button -->
|
||||
<div class="itemGooglePlusOneButton">
|
||||
<g:plusone annotation="inline" width="120"></g:plusone>
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
window.___gcfg = { lang: 'en' }; // Define button default language here
|
||||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
228
modules/leoblog/views/templates/front/default/blog.tpl
Normal file
@@ -0,0 +1,228 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($error)}
|
||||
<div id="blogpage">
|
||||
<div class="blog-detail">
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div id="blogpage">
|
||||
<article class="blog-detail">
|
||||
{if $is_active}
|
||||
{* <h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB') || Configuration::get('LEOBLOG_SHARE_TW') }
|
||||
<div class="share_button">
|
||||
<span><i class="fa fa-share-alt"></i>{l s='Share' d='Shop.Theme.Global'}</span>
|
||||
<ul>
|
||||
{if Configuration::get('LEOBLOG_SHARE_FB')}
|
||||
<li class="facebook">
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Facebook' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if Configuration::get('LEOBLOG_SHARE_TW')}
|
||||
<li class="twitter">
|
||||
<a href="https://twitter.com/intent/tweet?text={$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$smarty.server.REQUEST_URI|escape:'htmlall':'UTF-8'}">
|
||||
<span>{l s='Twitter' mod='leoblog'}</span>
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/if} *}
|
||||
{* <div class="blog-meta">
|
||||
{if $config->get('item_show_author','1')}
|
||||
<span class="blog-author">
|
||||
<i class="material-icons">person</i> <span>{l s='Posted By' mod='leoblog'}: </span>
|
||||
<a href="{$blog->author_link|escape:'html':'UTF-8'}" title="{$blog->author|escape:'html':'UTF-8'}">{$blog->author|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_category','1')}
|
||||
<span class="blog-cat">
|
||||
<i class="material-icons">list</i> <span>{l s='In' mod='leoblog'}: </span>
|
||||
<a href="{$blog->category_link|escape:'html':'UTF-8'}" title="{$blog->category_title|escape:'html':'UTF-8'}">{$blog->category_title|escape:'html':'UTF-8'}</a>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if $config->get('item_show_created','1')}
|
||||
<span class="blog-created">
|
||||
<i class="material-icons"></i> <span>{l s='On' mod='leoblog'}: </span>
|
||||
<time class="date" datetime="{strtotime($blog->date_add)|date_format:"%Y"|escape:'html':'UTF-8'}">
|
||||
{assign var='blog_date' value=strtotime($blog->date_add)|date_format:"%A"}
|
||||
{l s=$blog_date mod='leoblog'}, <!-- day of week -->
|
||||
{assign var='blog_month' value=strtotime($blog->date_add)|date_format:"%B"}
|
||||
{l s=$blog_month mod='leoblog'} <!-- month-->
|
||||
{assign var='blog_day' value=strtotime($blog->date_add)|date_format:"%e"}
|
||||
{l s=$blog_day mod='leoblog'} <!-- day of month -->
|
||||
{assign var='blog_year' value=strtotime($blog->date_add)|date_format:"%Y"}
|
||||
{l s=$blog_year mod='leoblog'} <!-- year -->
|
||||
</time>
|
||||
</span>
|
||||
{/if}
|
||||
|
||||
{if isset($blog_count_comment)&&$config->get('item_show_counter','1')}
|
||||
<span class="blog-ctncomment">
|
||||
<i class="material-icons">comment</i> <span>{l s='Comment' mod='leoblog'}:</span>
|
||||
{$blog_count_comment|intval}
|
||||
</span>
|
||||
{/if}
|
||||
{if isset($blog->hits)&&$config->get('item_show_hit','1')}
|
||||
<span class="blog-hit">
|
||||
<i class="material-icons">favorite</i> <span>{l s='Hit' mod='leoblog'}:</span>
|
||||
{$blog->hits|intval}
|
||||
</span>
|
||||
{/if}
|
||||
</div> *}
|
||||
|
||||
{if $blog->preview_url && $config->get('item_show_image','1')}
|
||||
<div class="blog-image">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog->image_url|escape:'html':'UTF-8'}" title="{$blog->meta_title|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="article-mini-info">
|
||||
<p class="article-added-tile">{$blog->date_add|date_format:"%d/%m/%Y"}</p>
|
||||
<h1 class="blog-title">{$blog->meta_title|escape:'html':'UTF-8'}</h1>
|
||||
</div>
|
||||
|
||||
<div class="blog-description">
|
||||
{if $config->get('item_show_description',1)}
|
||||
{$blog->description nofilter}{* HTML form , no escape necessary *}
|
||||
{/if}
|
||||
{$blog->content nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{if trim($blog->video_code)}
|
||||
<div class="blog-video-code">
|
||||
<div class="inner ">
|
||||
{$blog->video_code nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="social-share">
|
||||
{include file="$_social"}
|
||||
</div>
|
||||
{if $tags}
|
||||
<div class="blog-tags">
|
||||
<span>{l s='Tags:' mod='leoblog'}</span>
|
||||
|
||||
{foreach from=$tags item=tag name=tag}
|
||||
<a href="{$tag.link|escape:'html':'UTF-8'}" title="{$tag.tag|escape:'html':'UTF-8'}"><span>{$tag.tag|escape:'html':'UTF-8'}</span></a>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($samecats)||!empty($tagrelated)}
|
||||
<div class="extra-blogs row">
|
||||
{if !empty($samecats)}
|
||||
<div class="col-lg-6 col-md-6 col-xs-12">
|
||||
<h4>{l s='In Same Category' mod='leoblog'}</h4>
|
||||
<ul>
|
||||
{foreach from=$samecats item=cblog name=cblog}
|
||||
<li><a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-xs-12">
|
||||
<h4>{l s='Related by Tags' mod='leoblog'}</h4>
|
||||
<ul>
|
||||
{foreach from=$tagrelated item=cblog name=cblog}
|
||||
<li><a href="{$cblog.link|escape:'html':'UTF-8'}">{$cblog.meta_title|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="article-social">
|
||||
<h2 class="article-social-text">
|
||||
Podziel się tym artykułem z Innymi!
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="http://www.facebook.com/sharer.php?u={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/FB.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://twitter.com/share?url={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/TWITTER.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.instagram.com/shareArticle?mini=true&url={$smarty.server.HTTP_REFERER}{$smarty.server.REQUEST_URI}">
|
||||
<img src="/themes/at_movic/assets/img/icons/IG.svg" alt="">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{if $productrelated}
|
||||
|
||||
{/if}
|
||||
{if $config->get('item_show_listcomment','1') == 1}
|
||||
<div class="blog-comment-block clearfix">
|
||||
{if $config->get('item_comment_engine','local')=='facebook'}
|
||||
{include file="$_facebook_comment"}
|
||||
{elseif $config->get('item_comment_engine','local')=='diquis'}
|
||||
{include file="$_diquis_comment"}
|
||||
{else}
|
||||
{include file="$_local_comment"}
|
||||
{/if}
|
||||
|
||||
{elseif $config->get('item_show_listcomment','1') == 0 && $config->get('item_show_formcomment','1') == 1}
|
||||
<div class="blog-comment-block clearfix">
|
||||
{include file="$_local_comment"}
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, This blog is not avariable. May be this was unpublished or deleted.' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="hidden-xl-down hidden-xl-up datetime-translate">
|
||||
{l s='Sunday' mod='leoblog'}
|
||||
{l s='Monday' mod='leoblog'}
|
||||
{l s='Tuesday' mod='leoblog'}
|
||||
{l s='Wednesday' mod='leoblog'}
|
||||
{l s='Thursday' mod='leoblog'}
|
||||
{l s='Friday' mod='leoblog'}
|
||||
{l s='Saturday' mod='leoblog'}
|
||||
|
||||
{l s='January' mod='leoblog'}
|
||||
{l s='February' mod='leoblog'}
|
||||
{l s='March' mod='leoblog'}
|
||||
{l s='April' mod='leoblog'}
|
||||
{l s='May' mod='leoblog'}
|
||||
{l s='June' mod='leoblog'}
|
||||
{l s='July' mod='leoblog'}
|
||||
{l s='August' mod='leoblog'}
|
||||
{l s='September' mod='leoblog'}
|
||||
{l s='October' mod='leoblog'}
|
||||
{l s='November' mod='leoblog'}
|
||||
{l s='December' mod='leoblog'}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
{/block}
|
||||
115
modules/leoblog/views/templates/front/default/category.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($category) && $category->id_leoblogcat && $category->active}
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-category" class="blogs-container">
|
||||
{if $category->show_title}
|
||||
<h1>{$category->title|escape:'html':'UTF-8'}</h1>
|
||||
{/if}
|
||||
<div class="inner">
|
||||
{if $config->get('listing_show_categoryinfo',1)}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{if $category->image}
|
||||
<div class="row">
|
||||
<div class="category-image col-xs-12 col-sm-12 col-lg-4 col-md-6 text-center">
|
||||
<img {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$category->image|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}" alt="" />
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-lg-8 col-md-6 category-info caption">
|
||||
{$category->content_text|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="category-info caption">
|
||||
{$category->content_text|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $childrens&&$config->get('listing_show_subcategories',1)}
|
||||
<div class="childrens">
|
||||
<h3 class="section-title">{l s='Childrens' mod='leoblog'}</h3>
|
||||
<div class="row">
|
||||
{foreach $childrens item=children name=children}
|
||||
<div class="col-lg-3">
|
||||
{if isset($children.thumb)}
|
||||
<img src="{$children.thumb|escape:'html':'UTF-8'}" class="img-fluid"/>
|
||||
{/if}
|
||||
<h4><a href="{$children.category_link|escape:'html':'UTF-8'}" title="{$children.title|escape:'html':'UTF-8'}">{$children.title|escape:'html':'UTF-8'}</a></h4>
|
||||
<div class="child-desc">{$children.content_text|cleanHtml nofilter}</div>{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
{if count($leading_blogs)+count($secondary_blogs)}
|
||||
<h3 class="section-title">{l s='Recent blog posts' mod='leoblog'}</h3>
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
|
||||
<div class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
{include file="$_pagination"}
|
||||
</div>
|
||||
{elseif empty($childrens)}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are updating data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
</section>
|
||||
{/block}
|
||||
46
modules/leoblog/views/templates/front/default/comment.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="blog-localengine">
|
||||
<form class="form-horizontal" method="post" id="comment-form" action="{$blog_link|escape:'html':'UTF-8'}" onsubmit="return false;">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputFullName">{l s='Full Name' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="fullname" placeholder="{l s='Enter your full name' mod='leoblog'}" id="inputFullName" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputEmail">{l s='Email' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" name="email" placeholder="{l s='Enter your email' mod='leoblog'}" id="inputEmail" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-lg-3 control-label" for="inputComment">{l s='Comment' mod='leoblog'}</label>
|
||||
<div class="col-lg-9">
|
||||
<textarea type="text" name="comment" rows="6" placeholder="{l s='Enter your comment' mod='leoblog'}" id="inputComment" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<img {if isset($aplazyload) && $aplazyload}class="lazy" data-src{else}src{/if}="{$captcha_image|escape:'html':'UTF-8'}" alt="" align="left"/>
|
||||
<input class="form-control" type="text" name="captcha" value="" size="10" />
|
||||
</div>
|
||||
<input type="hidden" name="id_leoblog_blog" value="{$id_leoblog_blog|intval}">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<button class="btn btn-default btn-outline btn-submit-comment-wrapper" name="submitcomment" type="submit">
|
||||
<span class="btn-submit-comment">{l s='Submit' mod='leoblog'}</span>
|
||||
<span class="leoblog-cssload-container cssload-speeding-wheel"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
36
modules/leoblog/views/templates/front/default/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
99
modules/leoblog/views/templates/front/default/listing.tpl
Normal file
@@ -0,0 +1,99 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
<div class="blog-header">
|
||||
<h1>Blog</h1>
|
||||
</div>
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-listing" class="blogs-container box">
|
||||
{* {if isset($filter.type)}
|
||||
{if $filter.type=='tag'}
|
||||
<h1>{l s='Filter Blogs By Tag' mod='leoblog'} : <span>{$filter.tag|escape:'html':'UTF-8'}</span></h1>
|
||||
{elseif $filter.type=='author'}
|
||||
{if isset($filter.id_employee)}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.employee->firstname|escape:'html':'UTF-8'}
|
||||
{$filter.employee->lastname|escape:'html':'UTF-8'}</span></h1>
|
||||
{else}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.author_name|escape:'html':'UTF-8'}</span></h1>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{else}
|
||||
<h1 class="blog-lastest-title">{l s='Lastest Blogs' mod='leoblog'}</h1>
|
||||
{if $url_rss != ''}
|
||||
<h4 class="blog-lastest-rss"><a href="{$url_rss|escape:'htmlall':'UTF-8'}">{l s='RSS' mod='leoblog'}</a></h4>
|
||||
{/if}
|
||||
{/if} *}
|
||||
|
||||
<div class="inner">
|
||||
{if count($leading_blogs)+count($secondary_blogs)>0}
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div
|
||||
class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
<div class="blog-tiles">
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
<div class="blog-tile">
|
||||
{include file="$_listing_blog"}
|
||||
</div>
|
||||
{* {if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div
|
||||
class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if} *}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
|
||||
{include file="$_pagination"}
|
||||
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are update data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
94
modules/leoblog/views/templates/front/default/search.tpl
Normal file
@@ -0,0 +1,94 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{extends file=$layout}
|
||||
|
||||
{block name='content'}
|
||||
<section id="main">
|
||||
{if isset($no_follow) AND $no_follow}
|
||||
{assign var='no_follow_text' value='rel="nofollow"'}
|
||||
{else}
|
||||
{assign var='no_follow_text' value=''}
|
||||
{/if}
|
||||
<div id="blog-listing" class="blogs-container box">
|
||||
{if isset($filter.type)}
|
||||
{if $filter.type=='tag'}
|
||||
<h1>{l s='Filter Blogs By Tag' mod='leoblog'} : <span>{$filter.tag|escape:'html':'UTF-8'}</span></h1>
|
||||
{elseif $filter.type=='author'}
|
||||
{if isset($filter.id_employee)}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.employee->firstname|escape:'html':'UTF-8'} {$filter.employee->lastname|escape:'html':'UTF-8'}</span></h1>
|
||||
{else}
|
||||
<h1>{l s='Filter Blogs By Blogger' mod='leoblog'} : <span>{$filter.author_name|escape:'html':'UTF-8'}</span></h1>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
{else}
|
||||
{if $title_page != 'Best articles' && $title_page != 'Latest articles' && $title_page != 'Articles favorite'}
|
||||
<h1>{l s='Search Blogs For : ' mod='leoblog'} <span>{$title_page|escape:'html':'UTF-8'}</span> </h1>
|
||||
{else}
|
||||
<h1 class="blog-lastest-title">{$title_page|escape:'html':'UTF-8'}</h1>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<div class="inner">
|
||||
{if count($leading_blogs)+count($secondary_blogs)>0}
|
||||
{if count($leading_blogs)}
|
||||
<div class="leading-blog">
|
||||
{foreach from=$leading_blogs item=blog name=leading_blog}
|
||||
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==1)&&$listing_leading_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_leading_column<=1}no{/if}col-lg-{floor(12/$listing_leading_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.leading_blog.iteration%$listing_leading_column==0||$smarty.foreach.leading_blog.last)&&$listing_leading_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{if count($secondary_blogs)}
|
||||
<div class="secondary-blog">
|
||||
|
||||
{foreach from=$secondary_blogs item=blog name=secondary_blog}
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==1)&&$listing_secondary_column>1}
|
||||
<div class="row">
|
||||
{/if}
|
||||
<div class="{if $listing_secondary_column<=1}no{/if}col-lg-{floor(12/$listing_secondary_column|escape:'html':'UTF-8')}">
|
||||
|
||||
{include file="$_listing_blog"}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{if ($smarty.foreach.secondary_blog.iteration%$listing_secondary_column==0||$smarty.foreach.secondary_blog.last)&&$listing_secondary_column>1}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="top-pagination-content clearfix bottom-line">
|
||||
|
||||
{include file="$_pagination"}
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-warning">{l s='Sorry, We are update data, please come back later!!!!' mod='leoblog'}</div>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{/block}
|
||||
36
modules/leoblog/views/templates/front/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
18
modules/leoblog/views/templates/hook/categories_menu.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<!-- Block categories module -->
|
||||
{if $tree}
|
||||
<div id="categories_blog_menu" class="block blog-menu">
|
||||
<h4 class="title_block">{if isset($currentCategory)}{$currentCategory->title|escape:'html':'UTF-8'}{else}{l s='Blog Categories' mod='leoblog'}{/if}</h4>
|
||||
<div class="block_content">
|
||||
{$tree|cleanHtml nofilter}{* HTML form , no escape necessary *}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- /Block categories module -->
|
||||
36
modules/leoblog/views/templates/hook/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
18
modules/leoblog/views/templates/hook/left_leoblogtags.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if isset($leoblogtags) AND !empty($leoblogtags)}
|
||||
<section id="tags_blog_block_left" class="block leo-blog-tags hidden-sm-down">
|
||||
<h4 class='title_block'><a href="">{l s='Tags Post' mod='leoblog'}</a></h4>
|
||||
<div class="block_content clearfix">
|
||||
{foreach from=$leoblogtags item="tag"}
|
||||
<a href="{$tag.link|escape:'htmlall':'UTF-8'}">{$tag.name|escape:'htmlall':'UTF-8'}</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
30
modules/leoblog/views/templates/hook/left_popular.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if isset($leading_blogs) AND !empty($leading_blogs)}
|
||||
<section id="blogPopularBlog" class="block leo-block-sidebar hidden-sm-down">
|
||||
<h4 class='title_block'><a href="">{l s='Popular Articles' mod='leoblog'}</a></h4>
|
||||
<div class="block_content products-block">
|
||||
<ul class="lists">
|
||||
{foreach from=$leading_blogs item="blog" name=leading_blog}
|
||||
<li class="list-item clearfix{if $smarty.foreach.leading_blog.last} last_item{elseif $smarty.foreach.leading_blog.first} first_item{else}{/if}">
|
||||
<div class="blog-image">
|
||||
<a class="products-block-image" title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">
|
||||
<img alt="{$blog.title|escape:'html':'UTF-8'}" {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog.preview_url|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="blog-content">
|
||||
<h3 class="post-name"><a title="{$blog.title|escape:'htmlall':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">{$blog.title}</a></h3>
|
||||
<span class="info">{$blog.date_add|date_format:"%b %d, %Y"}</span>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
31
modules/leoblog/views/templates/hook/left_recent.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
{if isset($leading_blogs) AND !empty($leading_blogs)}
|
||||
<section id="blogRecentBlog" class="block leo-block-sidebar hidden-sm-down">
|
||||
<h4 class='title_block'><a href="">{l s='Recent Articles' mod='leoblog'}</a></h4>
|
||||
<div class="block_content products-block">
|
||||
<ul class="lists">
|
||||
{foreach from=$leading_blogs item="blog" name=leading_blog}
|
||||
<li class="list-item clearfix{if $smarty.foreach.leading_blog.last} last_item{elseif $smarty.foreach.leading_blog.first} first_item{else}{/if}">
|
||||
<div class="blog-image">
|
||||
<a class="products-block-image" title="{$blog.title|escape:'html':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">
|
||||
<img alt="{$blog.title|escape:'html':'UTF-8'}" {if isset($aplazyload) && $aplazyload}data-src{else}src{/if}="{$blog.preview_url|escape:'html':'UTF-8'}" class="img-fluid{if isset($aplazyload) && $aplazyload} lazy{/if}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="blog-content">
|
||||
<h3 class="post-name"><a title="{$blog.title|escape:'htmlall':'UTF-8'}" href="{$blog.link|escape:'html':'UTF-8'}">{$blog.title|escape:'htmlall':'UTF-8'}</a></h3>
|
||||
<span class="info">{$blog.date_add|date_format:"%b %d, %Y"}</span>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
24
modules/leoblog/views/templates/hook/leoblogrss.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<!-- Block RSS module-->
|
||||
<div id="rss_block_left" class="block">
|
||||
<h4 class="title_block">{$title|escape:'html':'UTF-8'}</h4>
|
||||
<div class="block_content">
|
||||
{if $rss_links}
|
||||
<ul>
|
||||
{foreach from=$rss_links item='rss_link'}
|
||||
<li><a href="{$rss_link.url|escape:'html':'UTF-8'}" title="{$rss_link.title|escape:'html':'UTF-8'}">{$rss_link.title|escape:'html':'UTF-8'}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
<p>{l s='No RSS feed added' mod='leoblog'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Block RSS module-->
|
||||
9
modules/leoblog/views/templates/hook/link_list.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<a href="{$link|escape:'htmlall':'UTF-8'}" class="{$hook_name|escape:'htmlall':'UTF-8'} link-top-blog"><i class="material-icons"></i><span class="hidden-sm-down">{$title|escape:'htmlall':'UTF-8'}</span></a>
|
||||
29
modules/leoblog/views/templates/hook/search_blog.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{*
|
||||
* @Module Name: Leo Blog
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Content Management
|
||||
*}
|
||||
|
||||
<div id="search-blog" class="block">
|
||||
<div class="block_content">
|
||||
<form method="post" id="form-search-blog" action="{Context::getContext()->link->getModuleLink('leoblog', 'search', array())|escape:'htmlall':'UTF-8'}">
|
||||
<input class=" form-control " type="text" id="search_blog" name="search_blog" placeholder="{l s='Search...' mod='leoblog'}">
|
||||
<button type="submit" id="search_blog_button" class="btn btn-default button button-small"><i class="material-icons"></i></button>
|
||||
</form>
|
||||
<div id="blog-nav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{Context::getContext()->link->getModuleLink('leoblog', 'search', array())|escape:'htmlall':'UTF-8'}?search_blog=Best_articles"><span class="sidebar-text">{l s='Best articles' mod='leoblog'}</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{Context::getContext()->link->getModuleLink('leoblog', 'search', array())|escape:'htmlall':'UTF-8'}?search_blog=Latest_articles"><span class="sidebar-text">{l s='Latest articles' mod='leoblog'}</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{Context::getContext()->link->getModuleLink('leoblog', 'search', array())|escape:'htmlall':'UTF-8'}?search_blog=Articles_favorite"><span class="sidebar-text">{l s='Articles favorite' mod='leoblog'}</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
36
modules/leoblog/views/templates/index.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2012 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2012 PrestaShop SA
|
||||
* @version Release: $Revision: 13573 $
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||