Download project

This commit is contained in:
Roman Pyrih
2024-11-20 09:09:44 +01:00
parent 547a138d6a
commit 5ff041757f
40737 changed files with 7766183 additions and 0 deletions

View File

@@ -0,0 +1,559 @@
.blog_center_content .panel-heading + ul {
display: block;
float: left;
margin-bottom: -1px;
margin-left: -20px;
margin-top: 0;
padding: 0 20px;
width: calc(100% + 32px);
}
li.confi_tab {
border-left: 1px solid transparent;
border-right: 1px solid transparent;
border-top: 1px solid transparent;
color: #00aff0;
cursor: pointer;
display: inline-block;
float: left;
font-size: 13px;
height: 42px;
list-style: outside none none;
margin-bottom: -1px;
padding: 10px 15px;
position: relative;
}
li.confi_tab.active {
background-color: #fff;
border-color: #ddd #ddd #fff;
border-style: solid;
border-width: 1px;
color: #000;
}
html body:not(.adminstockmanagement):not(.adminpsthemecustoconfiguration):not(.adminpsthemecustoadvanced):not(.adminmodulesmanage):not(.adminaccess) .bootstrap [class*=col-] {
padding-right: 15px;
padding-left: 15px;
}
[class*=col-] > .input-group[class*=col-]{
padding-left: 0!important;
padding-right: 0!important;
}
body .bootstrap .form-horizontal .form-group {
margin-left: -15px;
margin-right: -15px;
}
body:not(.adminstockmanagement):not(.adminpsthemecustoconfiguration):not(.adminpsthemecustoadvanced):not(.adminmodulesmanage):not(.adminaccess) .bootstrap .row {
margin: 0 -15px;
}
svg{
fill: currentColor;
}
li.confi_tab.config_tab_option:before {
content: "\f0ca";
font-family: Fontawesome, sans-serif;
margin-right: 6px;
display: inline-block;
}
.mce-container-body iframe {
min-height: 200px;
}
a.btn.btn-default.add_new_link {
display: flex;
align-items: center;
color: #333;
transition: none!important;
border: 1px solid #ccc;
transition: none!important;
}
.ets-left-panel.col-lg-12 {
margin-bottom: 30px;
}
.growl.growl-error, html :is(body:not(.no-smb-reskin)) .growl.growl-error {
color: #fff;
background: rgba(224,143,149,.8);
}
a.btn.btn-default.add_new_link i.ets_icon {
height: 14px;
margin-right: 4px;
fill: inherit;
color: inherit;
transform: none!important;
transition: none!important;
}
.panel.ets_blog-panel .panel-heading span.panel-heading-action {
display: inline-block;
position: static!important;
}
.panel.ets_blog-panel .panel-heading span.panel-heading-action .btn.add_new_link {
top: 50%!important;
transform: translateY(-50%);
white-space: nowrap;
}
.module_confirmation.conf.confirm.alert {
position: fixed;
right: 60px;
top: 60px;
z-index: 1000;
min-width: 300px;
}
.panel.ets_blog-panel .panel-heading {
position: relative;
}
.ets-left-panel a.list-group-item {
border-radius: 0!important;
border: none;
position: relative;
}
.ets-left-panel a.list-group-item:focus {
z-index: 2;
color: #fff;
background-color: #25b9d7;
border-color: #25b9d7;
}
.ets-blog-tab-basic .mce-container-body iframe {
min-height: 350px;
}
a.btn.btn-default.add_new_link:hover {
background: #25b9d7;
color: #fff;
fill: #ffffff;
border-color: #25b9d7;
transition: none;
}
.blog-list-group .blog-list-group-item {
display: inline-block;
padding: 16px 10px;
font-size: 15px;
position: relative;
text-decoration: none!important;
outline: none!important;
margin-right: 20px;
}
.ets_blog-panel select {
width: auto;
min-width: 100%;
}
table.table td.reported, table.table th.reported, table.table td.approved, table.table th.approved {
text-align: center;
}
.table thead>tr.filter>th.reported select,
.table thead>tr.filter>th.approved select {
margin: 0 auto;
}
tr.nodrag.nodrop span.title_box,
.bootstrap .table th.table_action{
font-weight: 600;
}
.ets_blog-panel table .enabled,
.ets_blog-panel table .sort_order {
text-align: center;
}
.ets_blog-panel table .rating {
font-size: inherit;
}
.form_reply input.btn.btn-primary.btn-default {
color: #fff;
margin-top: 10px;
}
.form_reply input.btn.btn-primary.btn-default:hover {
background: #1a8196;
border-color: #1a8196;
}
.star:not(.star_on):before {
content: "\f006";
font-family: 'FontAwesome';
color: #999;
}
.ets_blog-panel table .rating {
font-size: inherit;
direction: ltr;
}
.module_error.alert.alert-danger {
position: fixed;
top: 60px;
right: 60px;
z-index: 1000;
min-width: 300px;
}
.module_error.alert.alert-danger ul {
padding-left: 20px;
}
.blog_center_content a, .blog_center_content a:hover, .blog_center_content a:focus {
text-decoration: none;
outline: none;
}
.blog-list-group {
display: flex;
width: 100%;
position: relative;
background: #fff;
border: 1px solid #ccc;
border-radius: 2px;
}
.blog-list-group .blog-list-group-item i {
font-size: 16px;
}
.blog-list-group .blog-list-group-item:not(.active) {
color: #333;
}
.blog-list-group .blog-list-group-item:before {
height: 3px;
background: transparent;
content: "";
position: absolute;
bottom: -1px;
width: 100%;
left: 0;
}
textarea {
min-height: 200px;
}
.clearfix{
clear: both;
}
.btn-group-action .dropdown-menu a.btn.btn-default {
width: 100%;
border: none;
padding: 7px 12px;
font-size: 12px;
text-align: left;
border-radius: 0;
outline: none!important;
box-shadow: none!important;
}
.bootstrap .dropdown-menu li:not(:last-child) {
border-bottom: 1px solid #ddd;
}
.bootstrap .dropdown-menu {
text-align: left;
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
}
a.btn, button.btn {
outline: none!important;
box-shadow: none!important;
}
.btn-group-action .dropdown-menu a.btn.btn-default i.fa {
font-size: 14px;
vertical-align: middle;
line-height: inherit;
width: auto;
margin-right: 5px;
min-width: 15px;
}
.blog-list-group .blog-list-group-item.active:before,
.blog-list-group .blog-list-group-item:not(.active):focus:before{
background: #25b9d7;
}
.blog-list-group .blog-list-group-item:not(.active):focus {
background: #ffffff;
border-color: #25b9d7;
color: #25b9d7;
fill: #25b9d7;
}
li.confi_tab.config_tab_seo:before {
content: "\f1a0";
font-family: Fontawesome, sans-serif;
margin-right: 6px;
display: inline-block;
}
li.confi_tab.config_tab_seo {
text-transform: uppercase;
}
li.confi_tab.config_tab_basic:before {
content: "\f044";
font-family: Fontawesome, sans-serif;
margin-right: 6px;
display: inline-block;
}
.ets_form_tab_header + .form-group-wapper, .tab_post + .form-wrapper {
background-color: #fff;
border: 1px solid #ddd;
clear: both;
padding: 30px 15px 20px;
}
.bootstrap .form-horizontal .form-wrapper {
max-width: 100%;
width: 100%;
}
.ets-form-group {
display: none;
}
.ets-form-group.active {
display: block;
}
.list-group-item {
display: inline-block;
float: left;
width: 139px;
}
.blog_center_content ul.tree-category {
border: 1px solid #c8d6db;
border-radius: 3px;
display: block;
margin: 0 20px 0 0;
max-width: 100%;
padding: 10px 20px 10px 30px;
width: 490px;
}
.blog_center_content ul.tree-category > li {
margin-left: 10px;
}
.category_default {
position: absolute;
right: 5px;
top: 0;
}
.category-blog-parent::before {
display: block;
font-size: 12px;
content: "";
border-left: 1px solid #333;
border-bottom: 1px solid #333;
width: 7px;
height: 7px;
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
position: absolute;
top: 50%;
left: 50%;
margin-top: -4px;
margin-left: -6px;
}
.category-blog-parent:hover {
border-color: #aaa;
color: #666;
}
.category-blog-parent {
color: #999;
cursor: pointer;
display: inline-block;
font-size: 0;
height: 18px;
line-height: 13px;
margin-left: 5px;
margin-top: -3px;
position: relative;
text-align: center;
vertical-align: middle;
width: 18px;
}
.blog_center_content ul.tree-category > li > .category-blog-parent {
position: absolute;
right: 100%;
top: 3px;
}
.blog_center_content ul.tree-category > li > .category-blog-parent + ul.children {
border-bottom: 0 none;
display: none;
margin: 0;
width: auto;
}
.category-blog-parent.active::before {
margin-top: -6px;
transform: rotate(-45deg);
}
.blog_center_content ul.tree-category > li > .category-blog-parent + ul.children.active {
display: block;
}
.blog_center_content ul {
display: block;
margin-left: 0;
max-width: 100%;
padding: 0 20px 5px;
}
.tree-category ul {
padding-right: 0;
}
.ets_blog_paggination .links a{
display: inline-block;
padding: 3px;
font-size: 13px;
}
.ets_blog_paggination .links {
float: right;
}
.ets_blog_paggination .links b, .ets_blog_paggination .links a {
border: 1px solid #ddd;
display: inline-block;
width: 26px;
height: 26px;
vertical-align: text-bottom;
color: #666;
line-height: 24px;
text-align: center;
padding: 0;
margin: 0 1px;
}
.ets_blog_paggination .links b {
background-color: #00aff0;
color: #fff;
border-color: #00aff0;
}
.ets_blog_paggination .links a:hover {
text-decoration: none;
background-color: #f7f7f7;
}
.ets_blogcomment_reply .panel-heading-action {
border-bottom: 1px solid #eee;
float: right;
margin-bottom: 20px;
padding-bottom: 15px;
width: 100%;
}
.ets_blogcomment_reply .panel-heading-action .list-action-enable.action-enabled, .ets_blogcomment_reply .panel-heading-action .list-action-enable.action-disabled {
border-radius: 0;
border-right: 1px solid #ccc;
color: #e08f95;
float: right;
font-size: 0;
margin-right: 9px;
}
.icon-check::before{
color: #72c279;
}
.no-viewed {
font-weight: bold;
}
.ets_blogcomment_reply .panel-heading-action .del_comment {
color: #999;
float: right;
font-size: 0;
}
.form_reply textarea {
font-size: 13px;
margin-bottom: 15px;
min-height: 150px;
}
.comment-content thead tr, .comment-content thead tr td {
font-family: Open sans,sans-serif;
font-weight: 600;
text-transform: uppercase;
}
.comment-content thead tr, .comment-content thead tr td {
background-color: #ecf6fb;
border-bottom: 1px solid #a0d0eb;
border-top: 1px solid #eee;
font-family: Open sans,sans-serif;
font-weight: 600;
text-transform: uppercase;
}
a.del_reply {
color: #999;
display: inline-block;
font-size: 0;
}
h4.comment_name span,h4.post_title span {
color: #00aff0;
font-family: Open sans,sans-serif;
font-size: 15px;
font-style: normal;
font-weight: 600;
text-transform: capitalize;
}
#list-ets_comment td.rating {
direction: initial !important;
min-width: 100px;
}
.ets-blog-panel .star {
position: relative;
top: -1px;
float: left;
width: 14px;
overflow: hidden;
cursor: pointer;
font-size: 14px;
font-weight: normal; }
.ets-blog-panel .star {
display: block; }
.star a {
display: block;
position: absolute;
text-indent: -5000px; }
.ets-blog-panel div.star:after {
content: "\f006";
font-family: "FontAwesome", sans-serif;
display: inline-block;
color: #777676; }
.ets-blog-panel div.star.star_on {
display: block;
}
div.star.star_on:after {
content: "\f005";
font-family: "FontAwesome", sans-serif;
display: inline-block;
color: #ef8743; }
.ets-blog-panel #list-ets_comment td.rating .star {
display: inline-block;
float: none;
cursor: default;
}
.ets-blog-panel div.star.star_hover:after {
content: "\f005";
font-family: "FontAwesome", sans-serif;
display: inline-block;
color: #ef8743;
}
.rating .star {
float: left;
margin-right: 2px;
}
th.rating{
font-size: 13px!important;
}
.ets-blog-tab-basic .row_short_description .mce-container-body iframe {
min-height: 150px;
}
.ets_blog_export_form_content .panel-heading {
background: transparent !important;
margin: 0 0 20px !important;
padding-left: 0 !important;
}
.ets_blog_export_option .submitExportBlog,
.submitImportBlog{
padding: 6px 15px;
font-size: 13px;
margin-bottom: 11px;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
}
.ets_blog_export_option .submitExportBlog .icon,
.submitImportBlog .icon {
margin-right: 8px;
}
.ets_blog_export_option .submitExportBlog:hover,
.submitImportBlog:hover {
background: #25b9d7;
color: #fff;
border-color: #25b9d7;
}
.ets_blog_import_options .option_group label,
.ets_blog_import_option_data_imoport .data-group label {
font-weight: normal;
}
.ets_blog_import_option_updata,
.ets_blog_import_options,
.ets_blog_import_option_data_imoport{
margin-bottom: 25px;
}
.ets_blog_import_options h4,
.ets_blog_import_option_data_imoport h4{
font-weight: 600;
font-size: 14px;
margin-bottom: 15px;
}
.ets_blog_import_option_updata label {
margin-bottom: 10px;
}
#ets_tab_backup i::before {
content: "\f0ee";
font-size: 16px;
font-family: Fontawesome;
vertical-align: middle;
}

View File

@@ -0,0 +1,6 @@
@media (min-width: 1200px) {
.adminetsblogsetting #configuration_form .form-group {
margin-left: -12px;
margin-right: -12px;
}
}

View File

@@ -0,0 +1,58 @@
@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
#subtab-AdminEtsBlogPost i,
#subtab-AdminEtsBlogCategory i,
#subtab-AdminEtsBlogComment i,
#subtab-AdminEtsBlogSetting i,
#subtab-AdminEtsBlogBackup i
{
font-size: 0;
position: relative;
width: 16px;
line-height: 1;
height: 16px;
display: inline-block;
vertical-align: middle;
}
.icon-AdminEtsBlog:before{
content: "\f044";
}
#subtab-AdminEtsBlogPost i:before{
content:"\f02c";
font-size: 16px;
font-family: FontAwesome;
}
#subtab-AdminEtsBlogCategory i:before{
content:"\f02d";
font-size: 16px;
font-family: FontAwesome;
}
#subtab-AdminEtsBlogComment i:before{
content:"\f086";
font-size: 16px;
font-family: FontAwesome;
}
#subtab-AdminEtsBlogSetting i:before{
content:"\f013";
font-size: 16px;
font-family: FontAwesome;
}
#subtab-AdminEtsBlogBackup .material-icons::before {
content: "\f0ee";
font-size: 16px;
font-family: Fontawesome;
vertical-align: middle;
}
#subtab-AdminEtsBlogComment .count_messages {
background-color: red;
border-radius: 20px;
color: #fff;
display: inline-block;
font-size: 9px;
height: 18px;
line-height: 18px;
margin-left: 3px;
min-width: 18px;
padding: 0 3px !important;
text-align: center;
vertical-align: middle;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,306 @@
@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
.page_home, .page_home_gallery {
background-color: #fff;
display: block;
clear: both;
margin-bottom: 60px;
padding: 15px;
width: 100%;
}
.page_home .title_blog, .page_home_gallery .title_blog {
margin-top: 15px;
}
.title_blog, .title_blog a {
color: #414141;
font-size: 16px;
margin-bottom: 28px;
margin-top: 0;
text-transform: uppercase;
}
div#block_myaccount_infos li {
width: 100%;
padding: 0;
}
div#block_myaccount_infos li span.ss_icon_group {
display: none;
}
.page_home ul, .page_home_gallery ul {
float: left;
margin-bottom: 0;
position: relative;
width: 100%;
}
.page_home.ets_block_default ul {
display: flex;
display: -webkit-flex;
width: 100%;
flex-wrap: wrap;
-webkit-flex-wrap: wrap;
}
.block_content li {
padding: 0 15px;
}
.ets_block_default .block_content li {
margin-bottom: 30px;
}
.ets_item_img {
float: left;
overflow: hidden;
position: relative;
background-color: #eee;
width: 100%;
}
.page_home img, .ets-blog img {
max-width: 100%;
}
.ets_item_img img {
transition: all 0.7s ease 0s;
-webkit-transition: all 0.7s ease 0s;
max-width: 100%;
width: 100%;
}
.ets_title_block {
color: #414141;
float: left;
font-size: 16px;
font-weight: bold;
line-height: 20px;
margin-bottom: 0;
margin-top: 9px;
padding: 5px 0 9px;
text-transform: uppercase;
width: 100%;
outline: none !important;
text-decoration: none !important;
}
.ets-blog-sidear-post-meta {
color: #b1b1b1;
display: none;
float: left;
font-size: 13px;
width: 100%;
}
.ets-blog-categories {
float: right;
margin-right: 15px;
}
.be-categories {
font-size: 14px;
color: #bfbfbf;
}
.be-categories > a, .ets-blog-tags a {
color: #bfbfbf;
}
.post-date {
float: left;
margin-bottom: 5px;
margin-right: 15px;
width: auto;
}
.ets-blog-latest-toolbar {
color: #bfbfbf;
float: left;
font-size: 14px;
margin-bottom: 7px;
width: 100%;
}
.ets-blog-latest-toolbar-views:before {
content: "\f06e";
font-family: FontAwesome;
padding-right: 3px;
}
.blog_description {
clear: left;
font-size: 14px;
line-height: 24px;
color: #414141;
}
.blog_description p:last-child {
margin-bottom: 0;
}
.read_more {
font-size: 14px;
text-decoration: none!important;
margin-top: 10px;
display: inline-block;
padding-bottom: 1px;
font-style: italic;
color: #999;
border-bottom: 1px dotted;
}
.page_home_gallery.ets_block_default ul {
margin-left: -5px;
width: calc(100% + 10px);
width: -webkit-calc(100% + 10px);
width: -moz-calc(100% + 10px);
width: -o-calc(100% + 10px);
width: -ms-calc(100% + 10px);
}
.ets_block_gallery ul > li {
padding: 0 15px 30px;
width: 16.6667%;
}
.page_home_gallery.ets_block_default li {
padding-left: 5px;
padding-bottom: 10px;
padding-right: 5px;
margin-bottom: 0;
}
.gallery_item {
backface-visibility: hidden;
float: left;
perspective: 500px;
-webkit-perspective: 500px;
-ms-perspective: 500px;
-o-perspective: 500px;
position: relative;
overflow: hidden;
width: 100%;
}
.gallery_item > img {
backface-visibility: hidden;
float: left;
max-width: 100%;
min-height: 50px;
perspective: 500px;
-webkit-perspective: 500px;
-ms-perspective: 500px;
-o-perspective: 500px;
transform: scale3d(1, 1, 1);
-webkit-transform: scale3d(1, 1, 1);
-o-transform: scale3d(1, 1, 1);
-ms-transform: scale3d(1, 1, 1);
-moz-transform: scale3d(1, 1, 1);
transition: all 0.35s ease 0s;
-webkit-transition: all 0.35s ease 0s;
-moz-transition: all 0.35s ease 0s;
-ms-transition: all 0.35s ease 0s;
-o-transition: all 0.35s ease 0s;
}
.page_home_gallery .ets_title_block {
display: none;
}
.clear {
clear: both;
}
.ets_block_slider .owl-item > li {
float: left;
overflow: hidden;
width: 100%;
}
#content-wrapper .ets_block_slider .owl-item > li {
padding-bottom: 15px;
}
.ets_block_slider .owl-controls, .ets_blog_related_posts_type_carousel .owl-controls, .ets_related_products_type_carousel .owl-controls {
bottom: 100%;
margin-bottom: 25px;
min-height: 20px;
min-width: 20px;
position: absolute;
right: 15px;
}
.ets_block_slider .owl-controls .owl-nav, .ets_blog_related_posts_type_carousel .owl-controls .owl-nav, .ets_related_products_type_carousel .owl-controls .owl-nav {
position: relative;
top: auto;
right: auto;
}
.ets_block_slider .owl-nav > div, .ets_blog_related_posts_type_carousel .owl-nav > div, .ets_related_products_type_carousel .owl-nav > div {
background: #fff none repeat scroll 0 0 !important;
border: 1px solid #ebebeb;
border-radius: 0 !important;
color: #c6c6c6 !important;
cursor: pointer;
float: left;
font-size: 20px;
height: 25px;
line-height: 21px;
margin: 0 2px !important;
padding: 0 !important;
width: 25px;
}
.ets_block_slider .owl-prev::before, .ets_blog_related_posts_type_carousel .owl-prev::before, .ets_related_products_type_carousel .owl-prev::before {
content: "\f104";
font-family: FontAwesome;
}
.ets_block_slider .owl-next::before, .ets_blog_related_posts_type_carousel .owl-next::before, .ets_related_products_type_carousel .owl-next::before {
content: "\f105";
font-family: FontAwesome;
}
.ets_block_slider .owl-nav > div:hover, .ets_blog_related_posts_type_carousel .owl-nav > div:hover, .ets_related_products_type_carousel .owl-nav > div:hover {
background-color: #f1f1f1!important;
color: #666!important;
}
.blog_view_all_button {
text-align: center;
padding: 15px 0;
display: block;
width: 100%;
clear: both;
margin-bottom: 0;
color: #fff;
}
.page_home .blog_view_all_button {
text-align: left;
}
.page_home_gallery .blog_view_all_button {
text-align: left;
padding-left: 0;
}
.blog_view_all, .view_all_link {
min-width: 150px;
text-align: center;
border: none;
outline: none!important;
font-size: 14px;
width: auto!important;
color: #fff!important;
text-transform: uppercase;
font-weight: 500;
padding: 6px 15px!important;
border-radius: 3px;
display: inline-block!important;
}
#left-column .block, #right-column .block {
background-color: #fff;
box-shadow: 2px 2px 11px 0 rgba(0, 0, 0, 0.1);
clear: left;
float: left;
margin-bottom: 30px;
padding: 15px 25px 30px;
width: 100%;
}
@media (min-width: 1200px){
.page_home.ets_block_default ul li.col-lg-3:nth-child(4n+1) {
clear: left;
}
}
@media (min-width: 768px) and (max-width: 991px){
.ets_blog_sidebar .blog_view_all, .ets_blog_sidebar .view_all_link {
min-width: 0;
text-align: center;
border: none;
outline: none!important;
font-size: 14px;
width: 100%!important;
color: #fff!important;
text-transform: uppercase;
font-weight: 500;
padding: 6px 5px!important;
border-radius: 3px;
display: block!important;
}
.ets_blog_sidebar .block_content.row .blog_view_all_button {
margin-left: 14px;
max-width: calc(100% - 30px);
}
#ets_blog_page #left-column .block,
#ets_blog_page #right-column .block {
padding: 15px 15px 20px;
}
}
@media (max-width: 767px){
#ets_blog_page #left-column,
#ets_blog_page #content-wrapper {
width: 100%;
}
}

View File

@@ -0,0 +1,131 @@
.ets-blog-post-footer .read_more:hover,
.blog-managament-information button[type="submit"]:hover,
.ets-blog-tag-a:hover,
#form_blog .btn.edit_view_post:hover,
.form_reply_comment input[type="submit"]:hover,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"]:hover,
.form-polls-body button[name="polls_cancel"]:hover,
.form-polls-body button:hover
{
background:#00cefd;
border-color:#00cefd;
}
.ets-blog-like-span.active, .be-tag-block .be-tags a, .be-tag-block .be-tags,
.ets-blog-related-posts-meta-categories > a,
.view_post,
.comment-content h4.comment_name span,
.ets_block_categories .active > a,
.comment-content .post_title span a,
.blog-managament-information .help-block a,
.ets-blog-comment-info .post-author .ets_title_block {
color:#2fb5d2;
}
.ets-block-comment-reply:hover,
.ets_title_block:hover,
.read_more:hover,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"] + .btn.btn-default:hover,
.comment-content .post_title span a:hover,
.list_category_item .sub_category li a:hover,
.ets_block_categories .active > a:hover,
.ets-blog-comment-info .post-author .ets_title_block:hover,
.blog-managament-information .help-block a:hover,
#form_blog a.ets_button_backtolist:hover{
color: #00cefd;
}
.ets-blog-thumbnail-list.carousel .ets-blog-thumbnail-item.slick-current:before,
.ets-blog-slider.carousel .slick-dots .slick-active button{
border-color: #2fb5d2;
}
.ets-blog-form-comment .blog-submit .button,
.blog-managament-information button[type="submit"],
.ets-blog-slider.carousel .slick-dots .slick-active button,
.blog_view_all, .view_all_link,
.blog_view_all_button a,
.form-polls-body button,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"],
.add_new_post_blog a,
#form_blog button[type="submit"],
#form_blog .btn.edit_view_post,
.form_reply_comment input[type="submit"],
.ets_blog_loading .squaresWaveG
{
background:#2fb5d2;
}
.ets-blog-form-comment .blog-submit .button:hover,
.blog_view_all:hover, .view_all_link:hover,
.blog_view_all_button a:hover,
.add_new_post_blog a:hover,
#form_blog button[type='submit']:hover
{
background:#00cefd;
}
.ets_blog_ltr_mode a:hover,
.ets-blog-wrapper-detail a:hover,
.ets-blog-like-span:hover,
.blog-main-page a:hover,
.ets_button_backtolist:hover,
.ets-block-comment-report:hover{
color: #00cefd;
}
.form-polls-body button,
.form_reply_comment input[type="submit"]{
border: 1px solid #2fb5d2;
}
.blog_view_all, .view_all_link {
background-color: #2fb5d2;
}
.blog_view_all:hover, .view_all_link:hover,
.ets-blog-form-comment .blog-submit .button:hover {
background-color: #00cefd;
}
@keyframes bounce_squaresWaveG {
0% {
background-color: #2fb5d2;
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-o-keyframes bounce_squaresWaveG {
0% {
background-color: #2fb5d2;
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-ms-keyframes bounce_squaresWaveG {
0% {
background-color: #2fb5d2;
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-webkit-keyframes bounce_squaresWaveG {
0% {
background-color: #2fb5d2;
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-moz-keyframes bounce_squaresWaveG {
0% {
background-color: #2fb5d2;
}
100% {
background-color: rgb(255, 255, 255);
}
}

View File

@@ -0,0 +1,131 @@
.ets-blog-post-footer .read_more:hover,
.blog-managament-information button[type="submit"]:hover,
.ets-blog-tag-a:hover,
#form_blog .btn.edit_view_post:hover,
.form_reply_comment input[type="submit"]:hover,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"]:hover,
.form-polls-body button[name="polls_cancel"]:hover,
.form-polls-body button:hover
{
background:[color_hover];
border-color:[color_hover];
}
.ets-blog-like-span.active, .be-tag-block .be-tags a, .be-tag-block .be-tags,
.ets-blog-related-posts-meta-categories > a,
.view_post,
.comment-content h4.comment_name span,
.ets_block_categories .active > a,
.comment-content .post_title span a,
.blog-managament-information .help-block a,
.ets-blog-comment-info .post-author .ets_title_block {
color:[color];
}
.ets-block-comment-reply:hover,
.ets_title_block:hover,
.read_more:hover,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"] + .btn.btn-default:hover,
.comment-content .post_title span a:hover,
.list_category_item .sub_category li a:hover,
.ets_block_categories .active > a:hover,
.ets-blog-comment-info .post-author .ets_title_block:hover,
.blog-managament-information .help-block a:hover,
#form_blog a.ets_button_backtolist:hover{
color: [color_hover];
}
.ets-blog-thumbnail-list.carousel .ets-blog-thumbnail-item.slick-current:before,
.ets-blog-slider.carousel .slick-dots .slick-active button{
border-color: [color];
}
.ets-blog-form-comment .blog-submit .button,
.blog-managament-information button[type="submit"],
.ets-blog-slider.carousel .slick-dots .slick-active button,
.blog_view_all, .view_all_link,
.blog_view_all_button a,
.form-polls-body button,
.form_reply input.btn.btn-primary.btn-default[name="addReplyComment"],
.add_new_post_blog a,
#form_blog button[type="submit"],
#form_blog .btn.edit_view_post,
.form_reply_comment input[type="submit"],
.ets_blog_loading .squaresWaveG
{
background:[color];
}
.ets-blog-form-comment .blog-submit .button:hover,
.blog_view_all:hover, .view_all_link:hover,
.blog_view_all_button a:hover,
.add_new_post_blog a:hover,
#form_blog button[type='submit']:hover
{
background:[color_hover];
}
.ets_blog_ltr_mode a:hover,
.ets-blog-wrapper-detail a:hover,
.ets-blog-like-span:hover,
.blog-main-page a:hover,
.ets_button_backtolist:hover,
.ets-block-comment-report:hover{
color: [color_hover];
}
.form-polls-body button,
.form_reply_comment input[type="submit"]{
border: 1px solid [color];
}
.blog_view_all, .view_all_link {
background-color: [color];
}
.blog_view_all:hover, .view_all_link:hover,
.ets-blog-form-comment .blog-submit .button:hover {
background-color: [color_hover];
}
@keyframes bounce_squaresWaveG {
0% {
background-color: [color];
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-o-keyframes bounce_squaresWaveG {
0% {
background-color: [color];
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-ms-keyframes bounce_squaresWaveG {
0% {
background-color: [color];
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-webkit-keyframes bounce_squaresWaveG {
0% {
background-color: [color];
}
100% {
background-color: rgb(255, 255, 255);
}
}
@-moz-keyframes bounce_squaresWaveG {
0% {
background-color: [color];
}
100% {
background-color: rgb(255, 255, 255);
}
}

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,164 @@
/**
* Owl Carousel v2.2.1
* Copyright 2013-2017 David Deutsch
* Licensed under ()
*/
/*
* Owl Carousel - Core
*/
.owl-carousel {
display: none;
width: 100%;
-webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */
position: relative;
z-index: 1; }
.owl-carousel .owl-stage {
position: relative;
-ms-touch-action: pan-Y;
-moz-backface-visibility: hidden;
/* fix firefox animation glitch */ }
.owl-carousel .owl-stage-outer {
position: relative;
overflow: hidden;
/* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px); }
.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0); }
.owl-carousel .owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none; }
.owl-carousel .owl-item img {
display: block;
width: 100%; }
.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
display: none; }
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
cursor: pointer;
cursor: hand;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.owl-carousel.owl-loaded {
display: block; }
.owl-carousel.owl-loading {
opacity: 0;
display: block; }
.owl-carousel.owl-hidden {
opacity: 0; }
.owl-carousel.owl-refresh .owl-item {
visibility: hidden; }
.owl-carousel.owl-drag .owl-item {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; }
.owl-carousel.owl-grab {
cursor: move;
cursor: grab; }
.owl-carousel.owl-rtl {
direction: rtl; }
.owl-carousel.owl-rtl .owl-item {
float: right; }
/* No Js */
.no-js .owl-carousel {
display: block; }
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
animation-duration: 1000ms;
animation-fill-mode: both; }
.owl-carousel .owl-animated-in {
z-index: 0; }
.owl-carousel .owl-animated-out {
z-index: 1; }
.owl-carousel .fadeOut {
animation-name: fadeOut; }
@keyframes fadeOut {
0% {
opacity: 1; }
100% {
opacity: 0; } }
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
transition: height 500ms ease-in-out; }
/*
* Owl Carousel - Lazy Load Plugin
*/
.owl-carousel .owl-item .owl-lazy {
opacity: 0;
transition: opacity 400ms ease; }
.owl-carousel .owl-item img.owl-lazy {
transform-style: preserve-3d; }
/*
* Owl Carousel - Video Plugin
*/
.owl-carousel .owl-video-wrapper {
position: relative;
height: 100%;
background: #000; }
.owl-carousel .owl-video-play-icon {
position: absolute;
height: 80px;
width: 80px;
left: 50%;
top: 50%;
margin-left: -40px;
margin-top: -40px;
background: url("owl.video.play.png") no-repeat;
cursor: pointer;
z-index: 1;
-webkit-backface-visibility: hidden;
transition: transform 100ms ease; }
.owl-carousel .owl-video-play-icon:hover {
-ms-transform: scale(1.3, 1.3);
transform: scale(1.3, 1.3); }
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none; }
.owl-carousel .owl-video-tn {
opacity: 0;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
transition: opacity 400ms ease; }
.owl-carousel .owl-video-frame {
position: relative;
z-index: 1;
height: 100%;
width: 100%; }

View File

@@ -0,0 +1,88 @@
/*
* Owl Carousel Owl Demo Theme
* v1.3.3
*/
.owl-theme .owl-controls{
margin-top: 10px;
text-align: center;
}
/* Styling Next and Prev buttons */
.owl-theme .owl-controls .owl-buttons div {
border: medium none;
display: inline-block;
font-size: 12px;
font-weight:300;
height: 25px;
line-height: 25px;
overflow: hidden;
width: 25px;
}
/* Clickable class fix problem with hover on touch devices */
/* Use it for non-touch hover action */
.owl-theme .owl-controls.clickable .owl-buttons div:hover{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
text-decoration: none;
}
/* Styling Pagination*/
.owl-theme .owl-controls .owl-page{
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
}
.owl-theme .owl-controls .owl-page span{
display: block;
width: 12px;
height: 12px;
margin: 5px 7px;
filter: Alpha(Opacity=50);/*IE7 fix*/
opacity: 0.5;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
background: #869791;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
}
.nivo-caption > span {
display: block;
font-family: Open Sans;
font-size: 15px;
font-weight: bold;
text-transform: uppercase;
color: #333333;
}
@media (min-width: 768px) and (max-width: 991px){
.nivo-caption > span {
font-size:13px;
}
}
.ybc_blog_skin_black .nivo-caption > span {
color: #fff;
}
/* If PaginationNumbers is true */
.owl-theme .owl-controls .owl-page span.owl-numbers{
height: auto;
width: auto;
color: #FFF;
padding: 2px 10px;
font-size: 12px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
/* preloading images */
.owl-item.loading{
min-height: 150px;
background: url(../img/img/AjaxLoader.gif) no-repeat center center
}

View File

@@ -0,0 +1,163 @@
/*
* Owl Carousel CSS3 Transitions
* v1.3.2
*/
.owl-origin {
-webkit-perspective: 1200px;
-webkit-perspective-origin-x : 50%;
-webkit-perspective-origin-y : 50%;
-moz-perspective : 1200px;
-moz-perspective-origin-x : 50%;
-moz-perspective-origin-y : 50%;
perspective : 1200px;
}
/* fade */
.owl-fade-out {
z-index: 10;
-webkit-animation: fadeOut .7s both ease;
-moz-animation: fadeOut .7s both ease;
animation: fadeOut .7s both ease;
}
.owl-fade-in {
-webkit-animation: fadeIn .7s both ease;
-moz-animation: fadeIn .7s both ease;
animation: fadeIn .7s both ease;
}
/* backSlide */
.owl-backSlide-out {
-webkit-animation: backSlideOut 1s both ease;
-moz-animation: backSlideOut 1s both ease;
animation: backSlideOut 1s both ease;
}
.owl-backSlide-in {
-webkit-animation: backSlideIn 1s both ease;
-moz-animation: backSlideIn 1s both ease;
animation: backSlideIn 1s both ease;
}
/* goDown */
.owl-goDown-out {
-webkit-animation: scaleToFade .7s ease both;
-moz-animation: scaleToFade .7s ease both;
animation: scaleToFade .7s ease both;
}
.owl-goDown-in {
-webkit-animation: goDown .6s ease both;
-moz-animation: goDown .6s ease both;
animation: goDown .6s ease both;
}
/* scaleUp */
.owl-fadeUp-in {
-webkit-animation: scaleUpFrom .5s ease both;
-moz-animation: scaleUpFrom .5s ease both;
animation: scaleUpFrom .5s ease both;
}
.owl-fadeUp-out {
-webkit-animation: scaleUpTo .5s ease both;
-moz-animation: scaleUpTo .5s ease both;
animation: scaleUpTo .5s ease both;
}
/* Keyframes */
/*empty*/
@-webkit-keyframes empty {
0% {opacity: 1}
}
@-moz-keyframes empty {
0% {opacity: 1}
}
@keyframes empty {
0% {opacity: 1}
}
@-webkit-keyframes fadeIn {
0% { opacity:0; }
100% { opacity:1; }
}
@-moz-keyframes fadeIn {
0% { opacity:0; }
100% { opacity:1; }
}
@keyframes fadeIn {
0% { opacity:0; }
100% { opacity:1; }
}
@-webkit-keyframes fadeOut {
0% { opacity:1; }
100% { opacity:0; }
}
@-moz-keyframes fadeOut {
0% { opacity:1; }
100% { opacity:0; }
}
@keyframes fadeOut {
0% { opacity:1; }
100% { opacity:0; }
}
@-webkit-keyframes backSlideOut {
25% { opacity: .5; -webkit-transform: translateZ(-500px); }
75% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
100% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
}
@-moz-keyframes backSlideOut {
25% { opacity: .5; -moz-transform: translateZ(-500px); }
75% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
100% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
}
@keyframes backSlideOut {
25% { opacity: .5; transform: translateZ(-500px); }
75% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
100% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
}
@-webkit-keyframes backSlideIn {
0%, 25% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(200%); }
75% { opacity: .5; -webkit-transform: translateZ(-500px); }
100% { opacity: 1; -webkit-transform: translateZ(0) translateX(0); }
}
@-moz-keyframes backSlideIn {
0%, 25% { opacity: .5; -moz-transform: translateZ(-500px) translateX(200%); }
75% { opacity: .5; -moz-transform: translateZ(-500px); }
100% { opacity: 1; -moz-transform: translateZ(0) translateX(0); }
}
@keyframes backSlideIn {
0%, 25% { opacity: .5; transform: translateZ(-500px) translateX(200%); }
75% { opacity: .5; transform: translateZ(-500px); }
100% { opacity: 1; transform: translateZ(0) translateX(0); }
}
@-webkit-keyframes scaleToFade {
to { opacity: 0; -webkit-transform: scale(.8); }
}
@-moz-keyframes scaleToFade {
to { opacity: 0; -moz-transform: scale(.8); }
}
@keyframes scaleToFade {
to { opacity: 0; transform: scale(.8); }
}
@-webkit-keyframes goDown {
from { -webkit-transform: translateY(-100%); }
}
@-moz-keyframes goDown {
from { -moz-transform: translateY(-100%); }
}
@keyframes goDown {
from { transform: translateY(-100%); }
}
@-webkit-keyframes scaleUpFrom {
from { opacity: 0; -webkit-transform: scale(1.5); }
}
@-moz-keyframes scaleUpFrom {
from { opacity: 0; -moz-transform: scale(1.5); }
}
@keyframes scaleUpFrom {
from { opacity: 0; transform: scale(1.5); }
}
@-webkit-keyframes scaleUpTo {
to { opacity: 0; -webkit-transform: scale(1.5); }
}
@-moz-keyframes scaleUpTo {
to { opacity: 0; -moz-transform: scale(1.5); }
}
@keyframes scaleUpTo {
to { opacity: 0; transform: scale(1.5); }
}

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,98 @@
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
$(document).ready(function(){
if($('input.color').length)
{
setTimeout(function(){
$('input.color').each(function(){
if($(this).val())
$(this).css('background',$(this).val());
});
},1000);
}
$('.adminetsblogcategory .page-title').html('Categories');
$('.category-blog-parent').click(function(){
$(this).toggleClass('active');
$(this).next().toggleClass('active');
});
$('.ets-blog-tab-basic').addClass('active');
$('.ets-blog-tab-general').addClass('active');
$('.confi_tab').click(function(){
$('.ets-form-group').removeClass('active');
$('.ets-blog-tab-'+$(this).data('tab-id')).addClass('active');
$('.confi_tab').removeClass('active');
$(this).addClass('active');
});
$(document).on('change','input.title',function(){
EtsBlog_updateFriendlyURL();
});
$(document).on('change','select[name="ETS_BLOG_CAPTCHA_TYPE"]',function(){
EtsBlogdisplayFormSettings();
});
EtsBlogdisplayFormSettings();
});
function EtsBlogdisplayFormSettings()
{
if($('select[name="ETS_BLOG_CAPTCHA_TYPE"]').length && $('select[name="ETS_BLOG_CAPTCHA_TYPE"]').val()=='google')
{
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').addClass('active');
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').addClass('active');
}
else
{
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').removeClass('active');
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').removeClass('active');
}
if($('select[name="ETS_BLOG_CAPTCHA_TYPE"]').length && $('select[name="ETS_BLOG_CAPTCHA_TYPE"]').val()=='google3')
{
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').addClass('active');
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').addClass('active');
}
else
{
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').removeClass('active');
$('select[name="ETS_BLOG_CAPTCHA_TYPE"]').closest('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').next('.ets-form-group').removeClass('active');
}
}
function etsblog_str2url(str)
{
var ok=true;
while(ok)
{
var first_char = str.charAt(0);
if(!isNaN(first_char))
{
str =str.slice(1);
}
else
return str;
}
}
function EtsBlog_updateFriendlyURL()
{
if($('input[name="itemId"]').val()==0)
{
$('#url_alias_'+id_language).val(str2url(etsblog_str2url($('#title_'+id_language).val()), 'UTF-8'));
}
else
if($('#url_alias_'+id_language).val() == '')
$('#url_alias_'+id_language).val(str2url(etsblog_str2url($('#title_'+id_language).val()), 'UTF-8'));
}

View File

@@ -0,0 +1,106 @@
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
$(document).ready(function(){
ets_blog.runowl();
$('#module-ets_blog-blog').addClass('ets-blog');
$(document).on('click','.ets-category-blog-parent',function(){
$(this).next().toggleClass('show');
$(this).toggleClass('active');
});
$(document).on('click','.ets_axpand_button',function(){
if($(this).hasClass('closed'))
{
$(this).next('.list-months').removeClass('hidden');
$(this).removeClass('closed').addClass('opened');
}
else
{
$(this).next('.list-months').addClass('hidden');
$(this).removeClass('opened').addClass('closed');
}
});
$('#ets-blog-capcha-refesh').click(function(){
originalCapcha = $('#ets-blog-capcha-img').attr('src');
originalCode = $('#ets-blog-capcha-img').attr('rel');
newCode = Math.random();
$('#ets-blog-capcha-img').attr('src', originalCapcha.replace(originalCode,newCode));
$('#ets-blog-capcha-img').attr('rel', newCode);
});
$('.blog_rating_star').click(function(){
var rating = parseInt($(this).attr('rel'));
$('.blog_rating_star').removeClass('star_on');
$('#blog_rating').val(rating);
for(i = 1; i<= rating; i++)
{
$('.blog_rating_star_'+i).addClass('star_on');
}
});
});
ets_blog = {
runowl: function()
{
if ( $('.ets_blog_rtl_mode').length > 0 ){
var rtl_blog = true;
} else {
var rtl_blog = false;
}
if ($('.page_blog.ets_block_slider ul').length > 0)
$('.page_blog.ets_block_slider ul').etsowlCarousel({
items : 1,
nav : true,
navigation : true,
navigationText : ["",""],
pagination : false,
loop: $(".page_blog.ets_block_slider ul li").length > 1,
rewindNav : false,
dots : false,
navText: ['', ''],
callbacks: true,
rtl: rtl_blog,
});
if($('.ets_blog_related_posts_type_carousel ul').length)
{
$('.ets_blog_related_posts_type_carousel ul').etsowlCarousel({
items : 3,
nav : true,
navigation : true,
navigationText : ["",""],
pagination : false,
loop: $(".ets_blog_related_posts_type_carousel ul li").length > 3,
rewindNav : false,
dots : false,
navText: ['', ''],
callbacks: true,
rtl: rtl_blog,
responsive: {
0: {
items: 1
},
768: {
items: 2
},
1200: {
items: 3
}
}
});
}
}
}

View File

@@ -0,0 +1,60 @@
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
$(document).ready(function(){
Etsblog_runowl();
});
function Etsblog_runowl()
{
if ( $('.ets_blog_rtl_mode').length > 0 ){
var rtl_blog = true;
} else {
var rtl_blog = false;
}
if ($('.page_home.ets_block_slider ul').length > 0) {
$('.page_home.ets_block_slider ul').etsowlCarousel({
items: 4,
responsive: {
0: {
items: 1
},
480: {
items: 1
},
768: {
items: 3
},
992: {
items: 3
},
1199: {
items: 4
}
},
rtl: rtl_blog,
nav: true,
dots: true,
loop: $(".page_home.ets_block_slider ul li").length > 1,
rewindNav: false,
dots: false,
navText: ['', ''],
callbacks: true
});
}
}

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,504 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{extends file="helpers/form/form.tpl"}
{block name="input"}
{if $input.type == 'switch'}
<span class="switch prestashop-switch fixed-width-lg">
{foreach $input.values as $value}
<input type="radio" name="{$input.name|escape:'html':'UTF-8'}"{if $value.value == 1} id="{$input.name|escape:'html':'UTF-8'}_on"{else} id="{$input.name|escape:'html':'UTF-8'}_off"{/if} value="{$value.value|escape:'html':'UTF-8'}"{if $fields_value[$input.name] == $value.value} checked="checked"{/if}{if isset($input.disabled) && $input.disabled} disabled="disabled"{/if}/>
{strip}
<label {if $value.value == 1} for="{$input.name|escape:'html':'UTF-8'}_on"{else} for="{$input.name|escape:'html':'UTF-8'}_off"{/if}>
{$value.label|escape:'html':'UTF-8'}
</label>
{/strip}
{/foreach}
<a class="slide-button btn"></a>
</span>
{elseif $input.type == 'checkbox'}
{if isset($input.values.query) && $input.values.query}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:'all'}
{assign var=checkall value=true}
{foreach $input.values.query as $value}
{if !(isset($fields_value[$input.name]) && is_array($fields_value[$input.name]) && $fields_value[$input.name] && in_array($value.value,$fields_value[$input.name]))}
{assign var=checkall value=false}
{/if}
{/foreach}
<div class="checkbox_all checkbox">
{strip}
<label for="{$id_checkbox|escape:'html':'UTF-8'}">
<input type="checkbox" name="{$input.name|escape:'html':'UTF-8'}[]" id="{$id_checkbox|escape:'html':'UTF-8'}" {if isset($value.value)} value="0"{/if}{if $checkall} checked="checked"{/if} />
{l s='Select/Unselect all' mod='ets_blog'}
</label>
{/strip}
</div>
{foreach $input.values.query as $value}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]|escape:'html':'UTF-8'}
<div class="checkbox{if isset($input.expand) && strtolower($input.expand.default) == 'show'} hidden{/if}">
{strip}
<label for="{$id_checkbox|escape:'html':'UTF-8'}">
<input type="checkbox" name="{$input.name|escape:'html':'UTF-8'}[]" id="{$id_checkbox|escape:'html':'UTF-8'}" {if isset($value.value)} value="{$value.value|escape:'html':'UTF-8'}"{/if}{if isset($fields_value[$input.name]) && is_array($fields_value[$input.name]) && $fields_value[$input.name] && in_array($value.value,$fields_value[$input.name])} checked="checked"{/if} />
{$value[$input.values.name]|escape:'html':'UTF-8'}
</label>
{/strip}
</div>
{/foreach}
{/if}
{elseif $input.type == 'file_lang'}
{if $languages|count > 1}
<div class="form-group">
{/if}
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
<div class="col-lg-9">
{else}
<div class="col-lg-12">
{/if}
<div class="dummyfile input-group sass">
<input id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" type="file" name="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" class="hide-file-upload" />
<span class="input-group-addon"><i class="icon-file"></i></span>
<input id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name" type="text" class="disabled" name="filename" readonly />
<span class="input-group-btn">
<button id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> {l s='Choose a file' mod='ets_blog'}
</button>
</span>
</div>
{if isset($fields_value[$input.name]) && $fields_value[$input.name] && $fields_value[$input.name][$language.id_lang]}
<div class="clearfix"></div>
<p>&nbsp;</p>
<div class="uploaded_img_wrapper">
<a target="_blank" class="ets_fancy" href="{$image_baseurl|escape:'html':'UTF-8'}{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}">
<img title="{l s='Click to see full size image' mod='ets_blog'}" style="display: inline-block; max-width: 200px;" src="{$image_baseurl|escape:'html':'UTF-8'}{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}" />
</a>
{if $input.name=='thumb' && isset($thumb_del_link) && $thumb_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$thumb_del_link|escape:'html':'UTF-8'}&id_lang={$language.id_lang|intval}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
{if $input.name=='image' && isset($img_del_link) && $img_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$img_del_link|escape:'html':'UTF-8'}&id_lang={$language.id_lang|intval}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{/if}
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code|escape:'html':'UTF-8'}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang|intval});" tabindex="-1">{$lang.name|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
<script>
$(document).ready(function(){
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-selectbutton").click(function(e){
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}").trigger('click');
});
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name").click(function(e){
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}").trigger('click');
});
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}").change(function(e){
var val = $(this).val();
var file = val.split(/[\\/]/);
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name").val(file[file.length-1]);
});
});
</script>
{/foreach}
{if $languages|count > 1}
</div>
{/if}
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="field"}
{if $input.type!='select_category' && $input.type != 'profile_employee' && $input.type != 'blog_categories' && $input.type != 'products_search' && $input.name !='url_alias'}
{$smarty.block.parent}
{if $input.type == 'file' && (!isset($input.imageType) || isset($input.imageType) && $input.imageType!='thumb')&& isset($display_img) && $display_img}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ets_blog'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<a target="_blank" class="ets_fancy" href="{$display_img|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ets_blog'}" style="display: inline-block; max-width: 200px;" src="{$display_img|escape:'html':'UTF-8'}" /></a>
{if isset($img_del_link) && $img_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$img_del_link|escape:'html':'UTF-8'}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{elseif $input.type == 'file' && isset($input.imageType) && $input.imageType=='thumb' && isset($display_thumb) && $display_thumb}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ets_blog'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<a target="_blank" class="ets_fancy" href="{$display_thumb|escape:'html':'UTF-8'}"><img title="{l s='Click to see full size image' mod='ets_blog'}" style="display: inline-block; max-width: 200px;" src="{$display_thumb|escape:'html':'UTF-8'}" /></a>
{if isset($thumb_del_link) && $thumb_del_link && !(isset($input.required) && $input.required)}
<a class="delete_url" style="display: inline-block; text-decoration: none!important;" href="{$thumb_del_link|escape:'html':'UTF-8'}"><span style="color: #666"><i style="font-size: 20px;" class="process-icon-delete"></i></span></a>
{/if}
</div>
{/if}
{if $input.name=='YBC_BLOG_ENABLE_RSS'}
<span class="link_rss rss_setting">
<label class="link-rss-label">{l s='RSS feed URLs' mod='ets_blog'}:</label>
<span class="link-rss-lang">
{foreach from=$urls_rss item='url_rss'}
<span>
<img src="{$url_rss.img|escape:'html':'UTF-8'}"/><a href="{$url_rss.link|escape:'html':'UTF-8'}" target="_blank">&nbsp;{$url_rss.link|escape:'html':'UTF-8'}</a>
</span>
{/foreach}
</span>
</span>
{/if}
{if $input.name=='YBC_BLOG_ENABLE_SITEMAP'}
<span class="link_sitemap sitemap_setting">
<label class="link-sitemap-label">{l s='Sitemap URLs' mod='ets_blog'}</label>
<br />
<span class="main-sitemap">{l s='Main sitemap' mod='ets_blog'}:&nbsp;<a href="{$url_sitemap|escape:'html':'UTF-8'}" target="_blank">{$url_sitemap|escape:'html':'UTF-8'}</a></span>
<span class="link-sitemap-lang">
{foreach from=$urls_sitemap item='url_sitemap'}
<span>
<img src="{$url_sitemap.img|escape:'html':'UTF-8'}"/><a href="{$url_sitemap.link|escape:'html':'UTF-8'}" target="_blank">&nbsp;{$url_sitemap.link|escape:'html':'UTF-8'}</a><br />
</span>
{/foreach}
</span>
</span>
{/if}
{else}
{if $input.type=='select_category'}
<div class="col-lg-9">
<select id="{$input.name|escape:'html':'UTF-8'}" class=" fixed-width-xl" name="{$input.name|escape:'html':'UTF-8'}">
{$input.blogCategoryotpionsHtml nofilter}
</select>
</div>
{/if}
{if $input.type == 'blog_categories'}
<div class="col-lg-9">
<ul style="float: left; padding: 0; margin-top: 5px;">
{$input.html_content nofilter}
</ul>
{if isset($input.desc) && $input.desc}
<p class="help-block">{$input.desc|escape:'html':'UTF-8'} </p>
{/if}
</div>
{/if}
{if $input.type == 'profile_employee'}
<div class="col-lg-9">
<ul style="float: left; padding: 0; margin-top: 5px">
{if $input.profiles}
{foreach from=$input.profiles item='profile'}
{if $profile.title}
<li style="list-style: none;"><input {if in_array($profile.id, $input.selected_profile)} checked="checked" {/if} style="margin: 2px 7px 0 5px; float: left;" type="checkbox" value="{$profile.id|escape:'html':'UTF-8'}" name="profile_employee[]" id="ets_input_profile_employee_{str_replace(' ','_',$profile.id)|escape:'html':'UTF-8'}" /><label for="ets_input_profile_employee_{$profile.id|escape:'html':'UTF-8'}">{$profile.title|escape:'html':'UTF-8'}</label></li>
{/if}
{/foreach}
{/if}
</ul>
</div>
{/if}
{if $input.name == "url_alias"}
<script type="text/javascript">
{if isset($PS_ALLOW_ACCENTED_CHARS_URL) && $PS_ALLOW_ACCENTED_CHARS_URL}
var PS_ALLOW_ACCENTED_CHARS_URL = 1;
{else}
var PS_ALLOW_ACCENTED_CHARS_URL = 0;
{/if}
</script>
{$smarty.block.parent}
{/if}
{if $input.type == 'products_search'}
<div class="col-lg-9">
<div id="ajax_choose_product">
<input type="hidden" name="inputAccessories" id="inputAccessories" value="{if $input.selected_products}{foreach from=$input.selected_products item=accessory}{$accessory.id_product|intval}-{/foreach}{/if}" />
<input type="hidden" name="nameAccessories" id="nameAccessories" value="{if $input.selected_products}{foreach from=$input.selected_products item=accessory}{$accessory.name|escape:'html':'UTF-8'}¤{/foreach}{/if}" />
<div class="input-group">
<input type="text" id="product_autocomplete_input" name="product_autocomplete_input" placeholder="{l s='Search product by name, reference or ID' mod='ets_blog'}" />
<span class="input-group-addon"><i class="icon-search"></i></span>
</div>
<div id="divAccessories">
{if $input.selected_products}
{foreach from=$input.selected_products item=accessory}
<div class="form-control-static form-control-static_{$accessory.id_product|intval}">
<button type="button" class="btn btn-default" onclick="ybcDelAccessory({$accessory.id_product|intval});" name="{$accessory.id_product|intval}">
<i class="icon-remove text-danger"></i>
</button>
<img src="{$accessory.link_image|escape:'html':'UTF-8'}" style="width:32px;" />
{$accessory.name|escape:'html':'UTF-8'}{if !empty($accessory.reference)}{$accessory.reference|escape:'html':'UTF-8'}{/if}
</div>
{/foreach}
{/if}
</div>
</div>
<p class="help-block">{l s='Related products are displayed on the post detail page' mod='ets_blog'}</p>
</div>
{/if}
{/if}
{/block}
{block name="footer"}
{capture name='form_submit_btn'}{counter name='form_submit_btn'}{/capture}
{if isset($fieldset['form']['submit']) || isset($fieldset['form']['buttons'])}
{if isset($blog_object)}
<input type="hidden" name="blog_object" value="{$blog_object|escape:'html':'UTF-8'}" />
<input type="hidden" name="itemId" value="{$item_id|intval}" />
<input type="hidden" name="blog_form_submitted" value="1" />
{/if}
<div class="panel-footer">
{if isset($cancel_url) && $cancel_url}
<a class="btn btn-default" href="{$cancel_url|escape:'html':'UTF-8'}"><i class="process-icon-cancel"></i>{l s='Back' mod='ets_blog'}</a>
{/if}
{if isset($fieldset['form']['submit']) && !empty($fieldset['form']['submit'])}
<div class="img_loading_wrapper">
{*
<img src="{$image_baseurl|escape:'html':'UTF-8'}img/loading-admin.gif" title="{l s='Loading' mod='ets_blog'}" class="ets_blog_loading" />
*}
</div>
<button type="submit" value="1" id="{if isset($fieldset['form']['submit']['id'])}{$fieldset['form']['submit']['id']|escape:'html':'UTF-8'}{else}{$table|escape:'html':'UTF-8'}_form_submit_btn{/if}{if $smarty.capture.form_submit_btn > 1}_{($smarty.capture.form_submit_btn - 1)|intval}{/if}" name="{if isset($fieldset['form']['submit']['name'])}{$fieldset['form']['submit']['name']|escape:'html':'UTF-8'}{else}{$submit_action|escape:'html':'UTF-8'}{/if}{if isset($fieldset['form']['submit']['stay']) && $fieldset['form']['submit']['stay']}AndStay{/if}" class="{if isset($fieldset['form']['submit']['class'])}{$fieldset['form']['submit']['class']|escape:'html':'UTF-8'}{else}btn btn-default pull-right{/if}">
<i class="{if isset($fieldset['form']['submit']['icon'])}{$fieldset['form']['submit']['icon']|escape:'html':'UTF-8'}{else}process-icon-save{/if}"></i> {$fieldset['form']['submit']['title']|escape:'html':'UTF-8'}
</button>
{/if}
{if isset($fieldset['form']['buttons'])}
<a class="link_preview_post" href="http://localhost/ps1760/en/blog/post/2-test.html" target="_blank">&nbsp;&nbsp;</a>
{foreach from=$fieldset['form']['buttons'] item=btn key=k}
{if isset($btn.href) && trim($btn.href) != ''}
<a href="{$btn.href|escape:'html':'UTF-8'}" {if isset($btn['id'])}id="{$btn['id']|escape:'html':'UTF-8'}"{/if} class="btn btn-default{if isset($btn['class'])} {$btn['class']|escape:'html':'UTF-8'}{/if}" {if isset($btn.js) && $btn.js} onclick="{$btn.js|escape:'html':'UTF-8'}"{/if}>{if isset($btn['icon'])}<i class="{$btn['icon']|escape:'html':'UTF-8'}" ></i> {/if}{$btn.title|escape:'html':'UTF-8'}</a>
{else}
<button type="{if isset($btn['type'])}{$btn['type']|escape:'html':'UTF-8'}{else}button{/if}" {if isset($btn['id'])}id="{$btn['id']|escape:'html':'UTF-8'}"{/if} class="btn btn-default{if isset($btn['class'])} {$btn['class']|escape:'html':'UTF-8'}{/if}" name="{if isset($btn['name'])}{$btn['name']|escape:'html':'UTF-8'}{else}submitOptions{$table|escape:'html':'UTF-8'}{/if}"{if isset($btn.js) && $btn.js} onclick="{$btn.js|escape:'html':'UTF-8'}"{/if}>{if isset($btn['icon'])}<i class="{$btn['icon']|escape:'html':'UTF-8'}" ></i> {/if}{$btn.title|escape:'html':'UTF-8'}</button>
{/if}
{/foreach}
{/if}
</div>
{/if}
{/block}
{block name="legend"}
<div class="panel-heading">
{if isset($field.image) && isset($field.title)}<img src="{$field.image|escape:'html':'UTF-8'}" alt="{$field.title|escape:'html':'UTF-8'}" />{/if}
{if isset($field.icon)}<i class="{$field.icon|escape:'html':'UTF-8'}"></i>{/if}
{$field.title|escape:'html':'UTF-8'}
{if isset($addNewUrl) || (isset($preview_link) && $preview_link)}
<span class="panel-heading-action">
{if isset($preview_link) && $preview_link}
<a target="_blank" class="list-toolbar-btn" href="{$preview_link|escape:'html':'UTF-8'}">
<span data-placement="top" data-html="true" data-original-title="{l s='View post ' mod='ets_blog'}" class="label-tooltip" data-toggle="tooltip" title="">
<i style="margin-left: 5px;" class="icon-search-plus"></i>
</span>
</a>
{/if}
{if isset($addNewUrl)}
<a class="list-toolbar-btn ets-blog-add-new" href="{$addNewUrl|escape:'html':'UTF-8'}">
<span data-placement="top" data-html="true" data-original-title="{l s='Add new item ' mod='ets_blog'}" class="label-tooltip" data-toggle="tooltip" title="">
<i class="process-icon-new"></i>
</span>
</a>
{/if}
</span>
{/if}
{if isset($post_key) && $post_key}<input type="hidden" name="post_key" value="{$post_key|escape:'html':'UTF-8'}" />{/if}
</div>
{if isset($configTabs) && $configTabs}
<ul>
{foreach from=$configTabs item='tab' key='tabId'}
<li class="confi_tab config_tab_{$tabId|escape:'html':'UTF-8'}" data-tab-id="{$tabId|escape:'html':'UTF-8'}">{$tab|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{if isset($tab_post) && $tab_post}
<ul class="tab_post">
<li class="confi_tab config_tab_basic active" data-tab-id="basic">{l s='Basic content' mod='ets_blog'}</li>
<li class="confi_tab config_tab_seo" data-tab-id="seo">{l s='Seo' mod='ets_blog'}</li>
</ul>
{/if}
{if isset($tab_category) && $tab_category}
<ul class="tab_post">
<li class="confi_tab config_tab_basic active" data-tab-id="basic">{l s='Basic info' mod='ets_blog'}</li>
<li class="confi_tab config_tab_seo" data-tab-id="seo">{l s='Seo' mod='ets_blog'}</li>
</ul>
{/if}
{/block}
{block name="input_row"}
{if $input.name=='YBC_BLOG_SIDEBAR_POSITION' || $input.name=='YBC_BLOG_HOME_POST_TYPE'}
<h3 class="title-elements">{l s='Configuration' mod='ets_blog'}</h3>
{/if}
{if $input.name=='YBC_BLOG_SHOW_LATEST_NEWS_BLOCK'}
<ul id="sidebar-positions" class="sidebar-positions">
{foreach from =$position_sidebar key='key' item='position'}
{assign var ='sidebar' value=$sidebars.$position}
{if isset($fields_value[$sidebar.name])}
{assign var='value_text' value=$fields_value[$sidebar.name]}
{else}
{assign var='value_text' value=0}
{/if}
<li id="sidebar-position-{$position|escape:'html':'UTF-8'}">
<div>
<div class="title-sidebar">
<span class="position_number" >
<span>
{$key+1|intval}
</span>
</span>
{$sidebar.title|escape:'html':'UTF-8'}
</div>
{*{if $position!='sidebar_rss'}*}
<div class="setting" data-setting="{$position|escape:'html':'UTF-8'}"><i class="icon-AdminAdmin"></i>{l s='Setting' mod='ets_blog'}</div>
<label class="ets_sl_switch{if $value_text} active{/if}">
<input class="ets_sl_slider" type="checkbox" {if $value_text}checked ="checked"{/if} value="1" data-field="{$sidebar.name|escape:'html':'UTF-8'}"/>
<span class="ets_sl_slider_label on">{l s='On' mod='ets_blog'}</span>
<span class="ets_sl_slider_label off">{l s='Off' mod='ets_blog'}</span>
</label>
{*{/if}*}
</div>
</li>
{/foreach}
</ul>
{/if}
{if $input.name=='YBC_BLOG_SHOW_LATEST_BLOCK_HOME'}
<ul id="sidebar-positions" class="sidebar-positions">
{foreach from =$position_homepages key='key' item='position'}
{assign var ='homepage' value=$homepages.$position}
{assign var='value_text' value=$fields_value[$homepage.name]}
<li id="sidebar-position-{$position|escape:'html':'UTF-8'}">
<div>
<div class="title-sidebar">
<span class="position_number" >
<span>
{$key+1|intval}
</span>
</span>
{$homepage.title|escape:'html':'UTF-8'}
</div>
<div class="setting" data-setting="{$position|escape:'html':'UTF-8'}"><i class="icon-AdminAdmin"></i>{l s='Setting' mod='ets_blog'}</div>
<label class="ets_sl_switch{if $value_text} active{/if}">
<input class="ets_sl_slider" type="checkbox" {if $value_text} checked ="checked"{/if} value="1" data-field="{$homepage.name|escape:'html':'UTF-8'}" />
<span class="ets_sl_slider_label on">{l s='On' mod='ets_blog'}</span>
<span class="ets_sl_slider_label off">{l s='Off' mod='ets_blog'}</span>
</label>
</div>
</li>
{/foreach}
</ul>
{/if}
{if $input.name=='YBC_BLOG_SHOW_LATEST_BLOCK_HOME' || $input.name=='YBC_BLOG_SHOW_POPULAR_BLOCK_HOME' || $input.name=='YBC_BLOG_SHOW_FEATURED_BLOCK_HOME' || $input.name=="YBC_BLOG_SHOW_CATEGORY_BLOCK_HOME" || $input.name=="YBC_BLOG_SHOW_GALLERY_BLOCK_HOME" || $input.name=="YBC_BLOG_SHOW_LATEST_NEWS_BLOCK" ||$input.name=='YBC_BLOG_SHOW_FEATURED_BLOCK' || $input.name=='YBC_BLOG_SHOW_POPULAR_POST_BLOCK' || $input.name=='YBC_BLOG_SHOW_GALLERY_BLOCK' || $input.name=='YBC_BLOG_SHOW_ARCHIVES_BLOCK' || $input.name=='YBC_BLOG_SHOW_CATEGORIES_BLOCK' || $input.name=='YBC_BLOG_SHOW_SEARCH_BLOCK'|| $input.name=='YBC_BLOG_SHOW_TAGS_BLOCK' || $input.name=='YBC_BLOG_SHOW_COMMENT_BLOCK' || $input.name=='YBC_BLOG_SHOW_AUTHOR_BLOCK' || $input.name=='YBC_BLOG_ENABLE_RSS_SIDEBAR' || $input.name=='YBC_BLOG_SHOW_HTML_BOX'}
<div class="ets-form-group-sidebar{if isset($input.form_group_class)} {$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<div class="ets_table">
<div class="ets_table-cell">
<div class="ets-form-group-sidebar-wapper">
<span class="close-setting-sidebar">{l s='Close' mod='ets_blog'}</span>
<div class="setting-title" ><i class="icon-AdminAdmin"></i>{l s='Setting' mod='ets_blog'}</div>
{/if}
{if $input.name=='YBC_BLOG_ENABLE_MAIL'}
<p><strong>{l s='Send email to Administrator and Authors: ' mod='ets_blog'}</strong></p>
{/if}
{if $input.name=='YBC_BLOG_ENABLE_MAIL_NEW_COMMENT'}
<p><strong>{l s='Send email to Users/Customers:' mod='ets_blog'}</strong></p>
{/if}
{if $input.type=='image'}
<div class="form-group">
<div class="label-text">{$input.label|escape:'html':'UTF-8'}</div>
<label class="control-label col-lg-3 required">{l s='Width' mod='ets_blog'}</label>
<div class="col-lg-9">
<div class="input-group ">
<input id="{$input.name|escape:'html':'UTF-8'}_WIDTH" class="" type="text" required="required" value="{$fields_value[$input.name]['width']|intval}" name="{$input.name|escape:'html':'UTF-8'}_WIDTH" />
<span class="input-group-addon"> px </span>
</div>
<p class="help-block">{l s='Valid values: 50 - 3000' mod='ets_blog'} </p>
</div>
<label class="control-label col-lg-3 required">{l s='Height' mod='ets_blog'}</label>
<div class="col-lg-9">
<div class="input-group ">
<input id="{$input.name|escape:'html':'UTF-8'}_HEIGHT" class="" type="text" required="required" value="{$fields_value[$input.name]['height']|intval}" name="{$input.name|escape:'html':'UTF-8'}_HEIGHT" />
<span class="input-group-addon"> px </span>
</div>
<p class="help-block">{l s='Valid values: 50 - 3000' mod='ets_blog'} </p>
</div>
</div>
{elseif (isset($isConfigForm) && $isConfigForm) || (isset($tab_post) && $tab_post) || isset($tab_category) && $tab_category}
<div class="ets-form-group{if isset($input.tab) && $input.tab} ets-blog-tab-{$input.tab|escape:'html':'UTF-8'}{/if}">
{$smarty.block.parent}
{if isset($input.info) && $input.info}
<div class="ets_tc_info alert alert-warning">{$input.info|escape:'html':'UTF-8'}</div>
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{if $input.name=='YBC_BLOG_CUSTOMER_EMAIL_APPROVED_POST'}
<div class="alert alert-info">
{l s='You can edit or translate all email templates using a text editor such as Notepad, PhpStorm, etc. All email template files are located in this folder: ' mod='ets_blog'} <span class="ets_folder"><strong>modules/ets_blog/mails/</strong></span>
</div>
{/if}
{if $input.name=='datetime_active'}
{if isset($form_author_post)}
<div class="ets_form_author_post">
{if $form_author_post}
{$form_author_post nofilter}
{/if}
</div>
{/if}
{if isset($check_suspend) && $check_suspend}
<div class="ets-form-group ets-blog-tab-basic">
<div class="alert alert-warning">
{l s='This post is hidden on the front office because its author is suspended' mod='ets_blog'}
</div>
</div>
{/if}
{/if}
{if $input.name=="YBC_BLOG_LATEST_POST_NUMBER_HOME" || $input.name=='YBC_BLOG_POPULAR_POST_NUMBER_HOME' || $input.name=='YBC_BLOG_FEATURED_POST_NUMBER_HOME' || $input.name=='YBC_BLOG_CATEGORY_POST_NUMBER_HOME' || $input.name=='YBC_BLOG_GALLERY_POST_NUMBER_HOME' || $input.name=='YBC_BLOG_LATES_POST_NUMBER' || $input.name=='YBC_BLOG_PUPULAR_POST_NUMBER' || $input.name=='YBC_BLOG_FEATURED_POST_NUMBER' || $input.name=='YBC_BLOG_GALLERY_POST_NUMBER' || $input.name=='YBC_BLOG_EXPAND_ARCHIVES_BLOCK' || $input.name=='YBC_BLOG_SHOW_CATEGORIES_BLOCK' || $input.name=='YBC_BLOG_SHOW_SEARCH_BLOCK' || $input.name=='YBC_BLOG_TAGS_NUMBER' || $input.name=='YBC_BLOG_COMMENT_LENGTH' || $input.name=='YBC_BLOG_AUTHOR_NUMBER' || $input.name=='YBC_BLOG_ENABLE_RSS_SIDEBAR' || $input.name=='YBC_BLOG_CONTENT_HTML_BOX'}
<div class="popup_footer">
<button class="module_form_submit_btn_sidebar btn btn-default pull-right" type="button">
<i class="process-icon-save"></i>
{l s='Save' mod='ets_blog'}
</button>
</div>
</div>
</div>
</div>
</div>
{/if}
{/block}
{block name="label"}
{if isset($input.label)}
<label class="control-label col-lg-3{if ((isset($input.required) && $input.required) || (isset($input.required2) && $input.required2) ) && $input.type != 'radio'} required{/if}">
{if isset($input.hint)}
<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="{if is_array($input.hint)}
{foreach $input.hint as $hint}
{if is_array($hint)}
{$hint.text|escape:'html':'UTF-8'}
{else}
{$hint|escape:'html':'UTF-8'}
{/if}
{/foreach}
{else}
{$input.hint|escape:'html':'UTF-8'}
{/if}">
{/if}
{$input.label|escape:'html':'UTF-8'}
{if isset($input.hint)}
</span>
{/if}
</label>
{/if}
{/block}

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,29 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{extends file="page.tpl"}
{block name="content"}
<div id="left-column" class="col-xs-12 col-sm-4 col-md-3">
<div class="ets_blog_sidebar ">
{$blog_left_sidebar nofilter}
</div>
</div>
<div id="content-wrapper" class="left-column col-xs-12 col-sm-8 col-md-9">
{$blog_content nofilter}
</div>
{/block}

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,40 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{extends file="page.tpl"}
{block name="content"}
<div id="content-wrapper">
<div id="main">
<header class="page-header">
<h1>{l s='My blog comments' mod='ets_blog'}</h1>
</header>
{if $sucsecfull_html}
{$sucsecfull_html nofilter}
{/if}
{if isset($errors_html) && $errors_html}
{$errors_html nofilter}
{/if}
<section id="content">
<div class="ets_blog_layout_list ets-blog-wrapper-form-managament ets-blog-wrapper-detail">
{$html_content nofilter}
</div>
</section>
{hook h='displayFooterYourAccount'}
</div>
</div>
{/block}

View File

@@ -0,0 +1,23 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{$ets_blog_sidebar nofilter}
<div class="blog_center_content col-lg-12 ets_blogpost">
{$ets_blog_content nofilter}
</div>
{Module::getInstanceByName('ets_blog')->displayIframe() nofilter}

View File

@@ -0,0 +1,46 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
var ets_blog_link_ajax_comment='{$ets_blog_link_ajax_comment nofilter}';
$(document).ready(function(){
$.ajax({
url: ets_blog_link_ajax_comment,
data: 'action=getCountCommentsNoViewed',
type: 'post',
dataType: 'json',
success: function(json){
if(parseInt(json.count) >0)
{
if($('#subtab-AdminEtsBlogComment span').length)
$('#subtab-AdminEtsBlogComment span').append('<span class="count_messages ">'+json.count+'</span>');
else
$('#subtab-AdminEtsBlogComment a').append('<span class="count_messages ">'+json.count+'</span>');
}
else
{
if($('#subtab-AdminEtsBlogComment span').length)
$('#subtab-AdminEtsBlogComment span').append('<span class="count_messages hide">'+json.count+'</span>');
else
$('#subtab-AdminEtsBlogComment a').append('<span class="count_messages hide">'+json.count+'</span>');
}
},
});
});
</script>

View File

@@ -0,0 +1,42 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $years}
<div class="block ets_block_archive {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">
{l s='Archived posts' mod='ets_blog'}
</h4>
<div class="content_block block_content">
<ul class="list-year row">
{foreach from=$years item='year'}
<li class="year-item">
<a href="{$year.link|escape:'html':'UTF-8'}">{l s='Posted in' mod='ets_blog'}&nbsp;{$year.year_add|escape:'html':'UTF-8'} ({$year.total_post|intval})</a>
{*<span class="ets_axpand_button close closed"></span>*}
{if $year.months}
<ul class="list-months">{*hidden*}
{foreach from=$year.months item='month'}
<li class="month-item"><a href="{$month.link|escape:'html':'UTF-8'}">{$month.month_add|escape:'html':'UTF-8'} ({$month.total_post|intval})</a></li>
{/foreach}
</ul>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if}

View File

@@ -0,0 +1,211 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper ets-blog-wrapper-blog-list{if isset($ets_blog_config.ETS_BLOG_AUTO_LOAD) &&$ets_blog_config.ETS_BLOG_AUTO_LOAD} loadmore{/if} {if $blog_latest}ets-page-latest{elseif $blog_category}ets-page-category{elseif $blog_search}ets-page-search{elseif $author}ets-page-author{else}ets-page-home{/if}">
{if $blog_category}
{if isset($blog_category.enabled) && $blog_category.enabled}
<div class="blog-category {if $blog_category.image}has-blog-image{/if}">
{if $blog_category.image}
<div class="ets_item_img">
<img src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`category/`$blog_category.image|escape:'htmlall':'UTF-8'`")}" alt="{$blog_category.title|escape:'html':'UTF-8'}" title="{$blog_category.title|escape:'html':'UTF-8'}" width="1920px" height="750px" />
</div>
{/if}
<h1 class="page-heading product-listing">{$blog_category.title|escape:'html':'UTF-8'}</h1>
{if $blog_category.description}
<div class="blog-category-desc">
{$blog_category.description|escape nofilter}
</div>
{/if}
</div>
{else}
<p class="alert alert-warning">{l s='This category is not available' mod='ets_blog'}</p>
{/if}
{elseif $blog_latest}
<h1 class="page-heading product-listing">{l s='Latest posts' mod='ets_blog'}</h1>
{elseif $blog_search}
<h1 class="page-heading product-listing">{l s='Search: ' mod='ets_blog'}"{ucfirst(str_replace('+',' ',$blog_search))|escape:'html':'UTF-8'}"</h1>
{elseif $author}
{if isset($author.disabled) && $author.disabled}
<p class="alert alert-warning">{l s='This author is not available' mod='ets_blog'}</p>
{else}
{if isset($ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION)&& $ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION}
{if isset($author.description)&&$author.description}
<div class="ets-block-author ets-block-author-avata">
{if $author.avata}
<div class="avata_img">
<img class="avata" src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`avata/`$author.avata|escape:'html':'UTF-8'`")}"/>
</div>
{/if}
<div class="ets-des-and-author">
<div class="ets-author-name">
<h1 class="page-heading product-listing">
<a href="{$author.author_link|escape:'html':'UTF-8'}">
{l s='Author' mod='ets_blog'}: {$author.name|escape:'html':'UTF-8'}
</a>
</h1>
</div>
{if isset($author.description)&&$author.description}
<div class="ets-author-description">
{$author.description nofilter}
</div>
{/if}
</div>
</div>
{else}
<div class="ets-author-name">
<h1 class="page-heading product-listing">
{l s='Author' mod='ets_blog'}: {$author.name|escape:'html':'UTF-8'}
</h1>
</div>
{/if}
{else}
<h1 class="page-heading product-listing">{l s='Author: ' mod='ets_blog'}"{$author.name|escape:'html':'UTF-8'}"</h1>
{/if}
{/if}
{elseif $month}
<h1 class="page-heading product-listing">{l s='Posted in: ' mod='ets_blog'}"{$month|escape:'html':'UTF-8'}"</h1>
{elseif $year}
<h1 class="page-heading product-listing">{l s='Posted in: ' mod='ets_blog'}"{$year|escape:'html':'UTF-8'}"</h1>
{/if}
{if !($blog_category && (!isset($blog_category.enabled) || isset($blog_category.enabled) && !$blog_category.enabled)) && ($blog_category || $blog_search || $author || $is_main_page || $blog_latest || $month || $year) && (!$author || ($author && !isset($author.disabled)))}
{if isset($blog_posts) && $blog_posts}
<ul class="ets-blog-list row {if $is_main_page}blog-main-page{/if}">
{assign var='first_post' value=true}
{foreach from=$blog_posts item='post'}
<li>
<div class="post-wrapper">
{if $is_main_page && $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $post.image}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.image|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.image|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{elseif $post.thumb}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.thumb|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.thumb|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{/if}
{assign var='first_post' value=false}
{elseif $post.thumb}
<a class="ets_item_img{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} ets_item_img_ladyload{/if}" href="{$post.link|escape:'html':'UTF-8'}">
<img title="{$post.title|escape:'html':'UTF-8'}" src="{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD) && $ets_blog_config.ETS_BLOG_LAZY_LOAD}{$link->getMediaLink("`$smarty.const._MODULE_DIR_`ets_blog/views/img/bg-grey.png")|escape:'html':'UTF-8'}{else}{$post.thumb|escape:'html':'UTF-8'}{/if}" alt="{$post.title|escape:'html':'UTF-8'}" {if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD} data-original="{$post.thumb|escape:'html':'UTF-8'}" class="lazyload"{/if} />
{if isset($ets_blog_config.ETS_BLOG_LAZY_LOAD)&& $ets_blog_config.ETS_BLOG_LAZY_LOAD}
<svg width="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_WIDTH'|escape:'html':'UTF-8')}" height="{Configuration::get('ETS_BLOG_IMAGE_BLOG_THUMB_HEIGHT'|escape:'html':'UTF-8')}" style="width: 100%;height: auto">
</svg>
{/if}
</a>
{/if}
<div class="ets-blog-wrapper-content">
<div class="ets-blog-wrapper-content-main">
<a class="ets_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
{if $show_categories && $post.categories}
<div class="ets-blog-sidear-post-meta">
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
{if $show_categories && $post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
</div>
{/if}
<div class="ets-blog-latest-toolbar">
{if $allow_rating && $post.total_review}
<div class="blog_rating_wrapper">
<span class="total_views" >{$post.total_review|intval}</span>
<span>
{if $post.total_review != 1}
{l s='Comments' mod='ets_blog'}
{else}
{l s='Comment' mod='ets_blog'}
{/if}
</span>
{if $allow_rating && isset($post.everage_rating) && $post.everage_rating}
{assign var='everage_rating' value=$post.everage_rating}
<div class="blog-extra-item be-rating-block item">
<div class="blog_rating_wrapper">
<div class="ets_blog_review" title="{l s='Average rating' mod='ets_blog'}">
{for $i = 1 to $everage_rating}
{if $i <= $everage_rating}
<div class="star star_on"></div>
{else}
<div class="star star_on_{($i-$everage_rating)*10|intval}"></div>
{/if}
{/for}
{if $everage_rating<5}
{for $i = $everage_rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
(<span class="ets-blog-rating-value" >{number_format((float)$everage_rating, 1, '.', '')|escape:'html':'UTF-8'}</span>)
</div>
</div>
</div>
{/if}
</div>
{/if}
</div>
<div class="blog_description">
{if $post.short_description}
<p>{$post.short_description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{elseif $post.description}
<p>{$post.description|strip_tags:'UTF-8'|truncate:500:'...'|escape:'html':'UTF-8'}</p>
{/if}
</div>
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{if $ets_blog_config.ETS_BLOG_TEXT_READMORE}{$ets_blog_config.ETS_BLOG_TEXT_READMORE|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{if isset($ets_blog_config.ETS_BLOG_AUTO_LOAD) &&$ets_blog_config.ETS_BLOG_AUTO_LOAD}
<div class="ets_blog_loading">
<span id="squaresWaveG">
<span id="squaresWaveG_1" class="squaresWaveG"></span>
<span id="squaresWaveG_2" class="squaresWaveG"></span>
<span id="squaresWaveG_3" class="squaresWaveG"></span>
<span id="squaresWaveG_4" class="squaresWaveG"></span>
<span id="squaresWaveG_5" class="squaresWaveG"></span>
</span>
</div>
<div class="clearfix"></div>
{/if}
{else}
<p>{l s='No posts found' mod='ets_blog'}</p>
{/if}
{/if}
</div>

View File

@@ -0,0 +1,19 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<option class="search_depth_level_{$depth_level|intval}" value="{$id_category|intval}"{if $selected_blog_category==$id_category} selected="selected"{/if} >{if $levelSeparator}{$levelSeparator|escape:'html':'UTF-8'} {/if}{$title|escape:'html':'UTF-8'}</option>

View File

@@ -0,0 +1,41 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $blockCategTree}
{if isset($link_view_all)}
<div class="block ets_block_categories {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Blog categories' mod='ets_blog'}</h4>
<div class="content_block block_content">
{/if}
<ul class="tree">
{foreach from=$blockCategTree[0].children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child}
{/if}
{/foreach}
</ul>
{if isset($link_view_all)}
<div class="blog_view_all_button">
<a class="blog_view_all" href="{$link_view_all|escape:'html':'UTF-8'}">{l s='View all categories' mod='ets_blog'}</a>
</div>
</div>
</div>
{/if}
{/if}

View File

@@ -0,0 +1,30 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $blockCategTree}
<ul class="tree-category">
<li class="form-control-label text-right main-category" style="list-style: none;">{l s='Main category' mod='ets_blog'}</li>
{foreach from=$blockCategTree[0].children item=child name=blockCategTree}
{if $smarty.foreach.blockCategTree.last}
{include file="$branche_tpl_path_input" node=$child last='true'}
{else}
{include file="$branche_tpl_path_input" node=$child}
{/if}
{/foreach}
</ul>
{/if}

View File

@@ -0,0 +1,25 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $categories && count($categories) > 1}
{foreach from=$categories item='category'}
{$category.title|escape:'html':'UTF-8'}<br />
{/foreach}
{elseif isset($categories.0.title)}
{$categories.0.title|escape:'html':'UTF-8'}
{/if}

View File

@@ -0,0 +1,36 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li style="list-style: none; position: relative;">
<input style="margin: 2px 7px 0 0; float: left;" type="checkbox" {if in_array($node.id_category,$disabled_categories)}disabled="disabled"{else}{if in_array($node.id_category, $selected_categories)} checked="checked"{/if}{/if} value="{$node.id_category|escape:'html':'UTF-8'}" name="{$name|escape:'html':'UTF-8'}[]" id="ybc_input_blog_category_{$node.id_category|escape:'html':'UTF-8'}" /><label for="ybc_input_blog_category_{$node.id_category|intval}">{if isset($node.thumb_link)}{$node.thumb_link nofilter}&nbsp;{/if}{$node.title|escape:'html':'UTF-8'}</label>
{if $node.children|@count > 0}
<span class="category-blog-parent">click</span>
<ul class="children">
{foreach from=$node.children item=child name=categoryTreeBranch}
{if $smarty.foreach.categoryTreeBranch.last}
{include file="$branche_tpl_path_input" node=$child last='true'}
{else}
{include file="$branche_tpl_path_input" node=$child last='false'}
{/if}
{/foreach}
</ul>
{/if}
<input type="radio" name="id_category_default" class="category_default" value="{$node.id_category|intval}"{if $node.id_category==$id_category_default} checked="checked"{/if} />
</li>

View File

@@ -0,0 +1,33 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li class="category_{$node.id_category|intval}{if isset($last) && $last == 'true'} last{/if} {if $node.id_category==$active}active{/if}">
<a href="{$node.link|escape:'html':'UTF-8'}">{$node.title|escape:'html':'UTF-8'}&nbsp;({$node.count_posts|intval})</a>
{if $node.children|@count > 0}
<span class="ets-category-blog-parent">click</span>
<ul class="children">
{foreach from=$node.children item=child name=categoryTreeBranch}
{if $smarty.foreach.categoryTreeBranch.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child last='false'}
{/if}
{/foreach}
</ul>
{/if}
</li>

View File

@@ -0,0 +1,19 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{l s='This comment was posted by' mod='ets_blog'} <a href="{$customerLink|escape:'html':'UTF-8'}">{$comment->name|escape:'html':'UTF-8'}</a> {l s='on' mod='ets_blog'} <a href="{$postLink|escape:'html':'UTF-8'}" target="_blank">{$post_title|escape:'html':'UTF-8'}</a> {l s='on' mod='ets_blog'} {dateFormat date=$comment->date_add|escape:'html':'UTF-8'}

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="bootstrap">
<div class="module_confirmation conf confirm alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
{$ets_blog_string|escape:'html':'UTF-8'}
{if isset($link_view) && $link_view}
<a href="{$link_view|escape:'html':'UTF-8'}" target="_blank">{$view_text|escape:'html':'UTF-8'}</a>
{/if}
</div>
</div>

View File

@@ -0,0 +1,144 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if isset($import_ok) && $import_ok}
<div class="ets_blog_alert success">
<div class="bootstrap">
<div class="module_confirmation conf confirm alert alert-success">
<button data-dismiss="alert" class="close" type="button">×</button>
{l s='Import successfully' mod='ets_blog'}
</div>
</div>
</div>
{/if}
<form id="module_form" class="defaultForm form-horizontal" novalidate="" enctype="multipart/form-data" method="post" action="{$link->getAdminLink('AdminEtsBlogBackup')|escape:'html':'UTF-8'}">
<div id="fieldset_0" class="panel">
<div class="panel-heading">
<i class="material-icons"></i>
{l s='Import/Export' mod='ets_blog'}
</div>
<div class="ets_blog_export_form_content form-group">
<div class="ets_blog_export_option col-lg-6">
<div class="panel-heading">
{l s='EXPORT' mod='ets_blog'}
</div>
<button type="submit" name="submitExportBlog" class="submitExportBlog">
<i class="icon icon-download"></i>{l s='EXPORT' mod='ets_blog'}
</button>
<p class="ets_blog_export_option_note">
{l s='Export entire your blog data including blog posts, blog categories, comments and module configuration. The exported data is a complete backup of your blog module and can be restored using "IMPORT FROM BLOG" feature' mod='ets_blog'}
</p>
</div>
<div class="ets_blog_import_blog_option col-lg-6">
<div class="panel-heading">
{l s='Import' mod='ets_blog'}
</div>
<div class="ets_blog_import_option_updata">
<label for="blogdata">{l s='Data package' mod='ets_blog'}</label>
<input id="blogdata" type="file" name="blogdata" />
</div>
<div class="ets_blog_import_option_data_imoport">
<h4>{l s='Select types of data to import:' mod='ets_blog'}</h4>
<div class="data-group post-category">
<label for="data_import_posts_categories"><input type="checkbox" id="data_import_posts_categories" name="data_import[]" value="posts_categories" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('posts_categories',$data_import))}checked="checked"{/if} /> {l s='Posts and categories' mod='ets_blog'}</label>
</div>
<div class="data-group comments">
<label for="data_import_posts_comments"><input type="checkbox" id="data_import_posts_comments" name="data_import[]" value="posts_comments" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('posts_comments',$data_import))}checked="checked"{/if}/> {l s='Posts comments' mod='ets_blog'}</label>
</div>
<div class="data-group config">
<label for="data_import_module_configuration"><input type="checkbox" id="data_import_module_configuration" name="data_import[]" value="module_configuration" {if !isset($data_import) || (isset($data_import) && is_array($data_import) && in_array('module_configuration',$data_import))}checked="checked"{/if}/> {l s='Module configuration' mod='ets_blog'}</label>
</div>
</div>
<div class="ets_blog_import_options">
<h4>{l s='Import options:' mod='ets_blog'}</h4>
<div class="option_group importoverride">
<label for="importoverride"><input type="checkbox" name="importoverride" id="importoverride" value="1" {if !isset($importoverride) ||(isset($importoverride) && $importoverride)}checked="checked"{/if} /> {l s='Override existing if exist the same ID' mod='ets_blog'}</label>
</div>
<div class="option_group keepauthorid">
<label for="keepauthorid"><input type="checkbox" name="keepauthorid" id="keepauthorid" value="1" {if !isset($keepauthorid) ||(isset($keepauthorid) && $keepauthorid)}checked="checked"{/if}/> {l s='Keep post author ID' mod='ets_blog'}</label>
</div>
<div class="option_group keepcommenter">
<label for="keepcommenter"><input type="checkbox" name="keepcommenter" id="keepcommenter" value="1" {if !isset($keepcommenter) ||(isset($keepcommenter) && $keepcommenter)}checked="checked"{/if} /> {l s='Keep commenter ID' mod='ets_blog'}</label>
</div>
</div>
<div class="ets_blog_import_option_button">
<div class="ets_blog_import_submit">
<button type="submit" name="submitImportBlog" class="submitImportBlog"><i class="icon icon-compress"></i>{l s='IMPORT' mod='ets_blog'}</button>
</div>
</div>
</div>
</div>
</div>
</form>
{if isset($errors) && $errors}
<div class="ets_blog_alert error" style="width: 100%;">
<div class="bootstrap">
<div class="module_error alert alert-danger">
<button data-dismiss="alert" class="close" type="button">×</button>
<ul>
{foreach from=$errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
</div>
</div>
{/if}
<script type="text/javascript">
$(document).ready(function(){
$('#data_import_posts_comments,#data_import_posts_categories').change(function(){
if($('#data_import_posts_categories').is(':checked'))
{
$('.data-group.comments').show();
$('.option_group.keepauthorid').show();
if($('#data_import_posts_comments').is(':checked'))
{
$('.option_group.keepcommenter').show();
}
else
$('.option_group.keepcommenter').hide();
}
else
{
$('.data-group.comments').hide();
$('.option_group.keepauthorid').hide();
$('.option_group.keepcommenter').hide();
$('#data_import_posts_comments').prop('checked',false);
}
});
if($('#data_import_posts_categories').is(':checked'))
{
$('.data-group.comments').show();
$('.option_group.keepauthorid').show();
if($('#data_import_posts_comments').is(':checked'))
{
$('.option_group.keepcommenter').show();
}
else
$('.option_group.keepcommenter').hide();
}
else
{
$('.data-group.comments').hide();
$('.option_group.keepauthorid').hide();
$('.option_group.keepcommenter').hide();
$('#data_import_posts_comments').prop('checked',false);
}
});
</script>

View File

@@ -0,0 +1,57 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<form id="form_comment" class="defaultForm form-horizontal" novalidate="" enctype="multipart/form-data" method="post" action="">
<div class="panel ets-blog-panel">
<div class="panel-heading">
{l s='Edit customer comment' mod='ets_blog'}
</div>
<section class="form-fields">
<div class="form-group row ">
<label class="col-md-3 form-control-label" for="subject">{l s='Subject' mod='ets_blog'}<span class="required">*</span></label>
<div class="col-md-9">
<input id="subject" class="form-control" type="text" value="{if isset($smarty.post.subject)}{$smarty.post.subject|escape:'html':'UTF-8'}{else}{if $ets_comment->id}{$ets_comment->subject|escape:'html':'UTF-8'}{/if}{/if}" name="subject" title="{if $ets_comment->id}{$ets_comment->subject|escape:'html':'UTF-8'}{/if}" />
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label" for="rating">{l s='Rating' mod='ets_blog'}</label>
<div class="col-md-9">
<select id="rating" class="form-control fixed-width-xl" name="rating">
<option value="1" {if $ets_comment->rating==1}selected="selected"{/if}>{l s='1 rating' mod='ets_blog'}</option>
<option value="2" {if $ets_comment->rating==2}selected="selected"{/if}>{l s='2 ratings' mod='ets_blog'}</option>
<option value="3" {if $ets_comment->rating==3}selected="selected"{/if}>{l s='3 ratings' mod='ets_blog'}</option>
<option value="4" {if $ets_comment->rating==4}selected="selected"{/if}>{l s='4 ratings' mod='ets_blog'}</option>
<option value="5" {if $ets_comment->rating==5}selected="selected"{/if}>{l s='5 ratings' mod='ets_blog'}</option>
</select>
</div>
</div>
<div class="form-group row ">
<label class="col-md-3 form-control-label" for="comment">{l s='Comment' mod='ets_blog'}<span class="required">*</span></label>
<div class="col-md-9">
<textarea rows="5" class="form-control" name="comment" id="comment">{if isset($smarty.post.comment)}{$smarty.post.comment|escape:'html':'UTF-8'}{else}{if $ets_comment->id}{$ets_comment->comment nofilter}{/if}{/if}</textarea>
</div>
</div>
<input name="id_comment" value="{if $ets_comment->id}{$ets_comment->id|intval}{/if}" type="hidden" />
</section>
</div>
<a class="btn btn-primary float-xs-left" href="{$link_back_list|escape:'html':'UTF-8'}">
{l s='Back to list' mod='ets_blog'}
</a>
<button class="btn btn-primary float-xs-right" name="submitComment" type="submit">{l s='Save' mod='ets_blog'}</button>
<button class="btn btn-primary float-xs-right" name="submitCommentStay" type="submit">{l s='Save and stay' mod='ets_blog'}</button>
</form>

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if isset($ets_blog_post_header)}
<meta property="og:app_id" content="id_app" />
<meta property="og:type" content="article" />
<meta property="og:title" content="{$ets_blog_post_header.title|escape:'html':'UTF-8'}" />
<meta property="og:image" content="{if $ets_blog_post_header.image}{$ets_blog_post_header.image|escape:'html':'UTF-8'}{else}{$ets_blog_post_header.thumb|escape:'html':'UTF-8'}{/if}" />
<meta property="og:description" content="{$ets_blog_post_header.short_description|strip_tags|escape:'html':'UTF-8'}" />
<meta property="og:url" content="{$ets_blog_post_header.link|escape:'quotes':'UTF-8'}" />
<meta name="twitter:card" content="summary_large_image" />
{/if}

View File

@@ -0,0 +1,38 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $tag}
<{$tag|escape:'html':'UTF-8'}
{if $tag_class} class="{$tag_class|escape:'html':'UTF-8'}"{/if}
{if $tag_id} id="{$tag_id|escape:'html':'UTF-8'}"{/if}
{if $rel} rel="{$rel|escape:'html':'UTF-8'}"{/if}
{if $type} type="{$type|escape:'html':'UTF-8'}"{/if}
{if $data_id_product} data-id_product="{$data_id_product|escape:'html':'UTF-8'}"{/if}
{if $value} value="{$value|escape:'html':'UTF-8'}"{/if}
{if $href} href="{$href nofilter}"{/if}{if $tag=='a' && $blank} target="_blank"{/if}
{if $tag=='img' && $src} src="{$src nofilter}"{/if}
{if $attr_name} name="{$attr_name|escape:'html':'UTF-8'}"{/if}
{if $attr_datas}
{foreach from=$attr_datas item='data'}
{$data.name|escape:'html':'UTF-8'}="{$data.value|escape:'html':'UTF-8'}"
{/foreach}
{/if}
{if $tag=='img' || $tag=='br' || $tag=='input'} /{/if}
>
{/if}{if $tag && $tag!='img' && $tag!='input' && $tag!='br' && !is_null($content)}{$content nofilter}{/if}{if $tag && $tag!='img' && $tag!='input' && $tag!='br'}</{$tag|escape:'html':'UTF-8'}>{/if}

View File

@@ -0,0 +1,31 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
function phProductFeedResizeIframe(obj) {
$('iframe').css('height','auto');
setTimeout(function() {
$('iframe').css('opacity',1);
var pHeight = $(obj).parent().height();
$(obj).css('height','540px');
}, 300);
}
</script>
<div id="ph_preview_template_html">
<iframe src="{$url_iframe|escape:'html':'UTF-8'}" style="background: #ffffff ; border : 1px solid #ccc;width:100%;height:0;opacity:0;border-radius:5px" onload="phProductFeedResizeIframe(this)"></iframe>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;

View File

@@ -0,0 +1,94 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{if $posts}
<div class="block ets_block_latest {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'} {if isset($page) && $page}page_{$page|escape:'html':'UTF-8'}{else}page_blog{/if} ets_block_slider">
<h4 class="title_blog title_block">{l s='Latest posts' mod='ets_blog'}</h4>
{assign var='product_row' value=4}
<div class="block_content row">
<ul class="owl-rtl {if count($posts)>1}owl-carousel{/if}">
{foreach from=$posts item='post'}
<li {if $page=='home'}class="col-xs-12 col-sm-4 col-lg-{12/$product_row|intval}"{/if}>
{if $post.thumb}
<a class="ets_item_img" href="{$post.link|escape:'html':'UTF-8'}">
<img src="{$post.thumb|escape:'html':'UTF-8'}" alt="{$post.title|escape:'html':'UTF-8'}" title="{$post.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<div class="ets-blog-latest-post-content">
<a class="ets_title_block" href="{$post.link|escape:'html':'UTF-8'}">{$post.title|escape:'html':'UTF-8'}</a>
<div class="ets-blog-sidear-post-meta">
{if isset($post.categories) && $post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}<span class="comma">, </span>{/if}
{/foreach}
</div>
</div>
{/if}
<span class="post-date">{dateFormat date=$post.date_add full=0}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ets-blog-latest-toolbar">
{if $show_views}
<span class="ets-blog-latest-toolbar-views">{$post.click_number|intval} {if $post.click_number!=1}<span>{l s='views' mod='ets_blog'}</span>{else}<span>{l s='view' mod='ets_blog'}</span>{/if}</span>
{/if}
{if $allowComments && $post.comments_num>0}
<span class="ets-blog-latest-toolbar-comments">{$post.comments_num|intval} {if $post.comments_num!=1}<span>
{l s='comments' mod='ets_blog'}</span>{else}<span>{l s='comment' mod='ets_blog'}</span>{/if}</span>
{/if}
{if $allow_like}
<span title="{if $post.liked}{l s='Liked' mod='ets_blog'}{else}{l s='Like this post' mod='ets_blog'}{/if}" class="ets-blog-like-span ets-blog-like-span-{$post.id_post|intval} {if $post.liked}active{/if}" data-id-post="{$post.id_post|intval}">
<span class="ben_{$post.id_post|intval}">{$post.likes|intval}</span>
<span class="blog-post-like-text blog-post-like-text-{$post.id_post|intval}">{l s='Liked' mod='ets_blog'}</span>
</span>
{/if}
</div>
{/if}
{if $post.short_description}
<div class="blog_description">
<p>
{$post.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
</p>
</div>
{elseif $post.description}
<div class="blog_description">
<p>
{$post.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}
</p>
</div>
{/if}
<a class="read_more" href="{$post.link|escape:'html':'UTF-8'}">{if $ets_blog_text_Readmore}{$ets_blog_text_Readmore|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</div>
</li>
{/foreach}
</ul>
{if $page!='home'}
<div class="blog_view_all_button">
<a href="{$latest_link|escape:'html':'UTF-8'}" class="view_all_link">{l s='View all latest posts' mod='ets_blog'}</a>
</div>
{/if}
</div>
<div class="clear"></div>
</div>
{/if}

View File

@@ -0,0 +1,103 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper ets-blog-wrapper-blog-list{if isset($blog_config.ETS_BLOG_AUTO_LOAD) &&$blog_config.ETS_BLOG_AUTO_LOAD} loadmore{/if}">
{if $blog_categories}
<h2 class="page-heading product-listing">{l s='All categories' mod='ets_blog'}</h2>
<ul class="ets-blog-list row">
{assign var='first_post' value=true}
{foreach from=$blog_categories item='category'}
<li class="list_category_item">
<div class="post-wrapper">
{if $first_post && ($blog_layout == 'large_list' || $blog_layout == 'large_grid')}
{if $category.thumb}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.thumb|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{elseif $category.image}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.image|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{assign var='first_post' value=false}
{else}
{if $category.thumb}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.thumb|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{elseif $category.image}
<a class="ets_item_img" href="{$category.link|escape:'html':'UTF-8'}">
<img title="{$category.title|escape:'html':'UTF-8'}" src="{$category.image|escape:'html':'UTF-8'}" alt="{$category.title|escape:'html':'UTF-8'}" />
</a>
{/if}
{/if}
<div class="ets-blog-wrapper-content">
<div class="ets-blog-wrapper-content-main">
<a class="ets_title_block" href="{$category.link|escape:'html':'UTF-8'}">
{$category.title|escape:'html':'UTF-8'}&nbsp;({$category.count_posts|intval})
</a>
{if $category.sub_categogires}
<div class="sub_category">
<ul>
{foreach from=$category.sub_categogires item='sub_category'}
<li>
<a href="{$sub_category.link|escape:'html':'UTF-8'}">{$sub_category.title|escape:'html':'UTF-8'}</a>
</li>
{/foreach}
</ul>
</div>
{/if}
<div class="blog_description">
{if $category.description}
{$category.description|truncate:500:'...'|escape:'html':'UTF-8' nofilter}
{/if}
</div><div class="clearfix"></div>
{if ( $category.count_posts > 0 )}
{if ( $category.count_posts == 1 )}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View %d post' sprintf=[$category.count_posts] mod='ets_blog'}
</a>
{else}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View %d posts' sprintf=[$category.count_posts] mod='ets_blog'}
</a>
{/if}
{else}
<a class="view_detail_link blog_view_all" href="{$category.link|escape:'html':'UTF-8'}">
{l s='View detail' mod='ets_blog'}
</a>
{/if}
</div>
</div>
</div>
</li>
{/foreach}
</ul>
{if $blog_paggination}
<div class="blog-paggination">
{$blog_paggination nofilter}
</div>
{/if}
{else}
<p>{l s='No category found' mod='ets_blog'}</p>
{/if}
</div>

View File

@@ -0,0 +1,377 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
var text_update_position='{l s='Successfully updated' mod='ets_blog'}';
</script>
<div class="panel ets_blog-panel{if isset($class)} {$class|escape:'html':'UTF-8'}{/if}">
<div class="panel-heading">{*if isset($icon) && $icon}<i class="{$icon|escape:'html':'UTF-8'}"></i>&nbsp;{/if*}{$title nofilter}
{if isset($totalRecords) && $totalRecords>0}<span class="badge">{$totalRecords|intval}</span>{/if}
<span class="panel-heading-action">
{if isset($show_add_new) && $show_add_new}
<a class="btn btn-default add_new_link" href="{if isset($link_new)}{$link_new|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
<i class="ets_icon">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>
</i> {if isset($add_new_text)}{$add_new_text|escape:'html':'UTF-8'}{else} {l s='Add new' mod='ets_blog'}{/if}
</a>
{/if}
</span>
</div>
{if $fields_list}
<div class="table-responsive clearfix">
<form method="post" action="{if isset($postIndex)}{$postIndex|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
{if isset($bulk_action_html)}
{$bulk_action_html nofilter}
{/if}
<table class="table configuration list-{$name|escape:'html':'UTF-8'}">
<thead>
<tr class="nodrag nodrop">
{assign var ='i' value=1}
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if}>
<span class="title_box">
{$field.title|escape:'html':'UTF-8'}
{if isset($field.sort) && $field.sort}
<span class="soft">
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=desc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='desc'} class="active"{/if}><i class="fa fa-caret-down icon-caret-down"></i></a>
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=asc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='asc'} class="active"{/if}><i class="fa fa-caret-up icon-caret-up"></i></a>
</span>
{/if}
</span>
</th>
{assign var ='i' value=$i+1}
{/foreach}
{if $show_action && $actions}
<th class="table_action" style="text-align: right;">{l s='Action' mod='ets_blog'}</th>
{/if}
</tr>
{if $show_toolbar}
<tr class="nodrag nodrop filter row_hover">
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}">
{if isset($field.filter) && $field.filter}
{if $field.type=='text'}
<input class="filter" name="{$index|escape:'html':'UTF-8'}" type="text" {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} {if isset($field.active)}value="{$field.active|escape:'html':'UTF-8'}"{/if}/>
{/if}
{if $field.type=='select' || $field.type=='active'}
<select {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} name="{$index|escape:'html':'UTF-8'}">
<option value=""> -- </option>
{if isset($field.filter_list.list) && $field.filter_list.list}
{assign var='id_option' value=$field.filter_list.id_option}
{assign var='value' value=$field.filter_list.value}
{foreach from=$field.filter_list.list item='option'}
<option {if ($field.active!=='' && $field.active==$option.$id_option) || ($field.active=='' && $index=='has_post' && $option.$id_option==1 )} selected="selected"{/if} value="{$option.$id_option|escape:'html':'UTF-8'}">{$option.$value|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
{/if}
{if $field.type=='int'}
<label for="{$index|escape:'html':'UTF-8'}_min"><input type="text" placeholder="{l s='Min' mod='ets_blog'}" name="{$index|escape:'html':'UTF-8'}_min" value="{$field.active.min|escape:'html':'UTF-8'}" /></label>
<label for="{$index|escape:'html':'UTF-8'}_max"><input type="text" placeholder="{l s='Max' mod='ets_blog'}" name="{$index|escape:'html':'UTF-8'}_max" value="{$field.active.max|escape:'html':'UTF-8'}" /></label>
{/if}
{if $field.type=='date'}
<fieldset class="form-group">
<div class="input-group ets_blog_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_min" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_min" placeholder="{l s='From' mod='ets_blog'}" value="{$field.active.min|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
<fieldset class="form-group">
<div class="input-group ets_blog_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_max" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_max" placeholder="{l s='To' mod='ets_blog'}" value="{$field.active.max|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
{/if}
{elseif ( ($name == 'mp_front_products' || $name == 'mp_products') && $field.type == 'text' && isset($index) && $index == 'input_box') }
<div class="md-checkbox">
<label>
<input id="bulk_action_select_all" onclick="$('table').find('td input:checkbox').prop('checked', $(this).prop('checked')); ets_blog_updateBulkMenu();" value="" type="checkbox" />
<i class="md-checkbox-control"></i>
</label>
</div>
{elseif ( $field.type == 'text' && isset($index) && $index == 'input_box') }
<div class="md-checkbox">
<label>
<input id="bulk_action_select_all" onclick="$('table').find('td input:checkbox').prop('checked', $(this).prop('checked')); ets_blog_updateBulkMenu();" value="" type="checkbox" />
<i class="md-checkbox-control"></i>
</label>
</div>
{else}
{l s=' -- ' mod='ets_blog'}
{/if}
</th>
{/foreach}
{if $show_action}
<th class="actions">
<span class="pull-right flex">
<input type="hidden" name="post_filter" value="yes" />
{if $show_reset}<a class="btn btn-warning" href="{$currentIndex|escape:'html':'UTF-8'}"><i class="icon-eraser"></i> {l s='Reset' mod='ets_blog'}</a> &nbsp;{/if}
<button class="btn btn-default" name="ets_blog_submit_{$name|escape:'html':'UTF-8'}" id="ets_blog_submit_{$name|escape:'html':'UTF-8'}" type="submit">
<i class="fa fa-search icon-search"></i> {l s='Filter' mod='ets_blog'}
</button>
</span>
</th>
{/if}
</tr>
{/if}
</thead>
<tbody id="list-{$name|escape:'html':'UTF-8'}">
{if $field_values}
{foreach from=$field_values item='row'}
<tr {if isset($row.viewed) && !$row.viewed}class="no-viewed"{/if} data-id="{$row.$identifier|intval}">
{assign var='i' value=1}
{foreach from=$fields_list item='field' key='key'}
<td class="{$key|escape:'html':'UTF-8'} {if isset($sort)&& $sort==$key && isset($sort_type) && $sort_type=='asc' && isset($field.update_position) && $field.update_position}pointer dragHandle center{/if}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if} >
{if isset($field.rating_field) && $field.rating_field}
{if isset($row.$key) && $row.$key > 0}
{for $i=1 to (int)$row.$key}
<div class="star star_on"></div>
{/for}
{if (int)$row.$key < 5}
{for $i=(int)$row.$key+1 to 5}
<div class="star"></div>
{/for}
{/if}
{else}
{l s=' -- ' mod='ets_blog'}
{/if}
{elseif $field.type != 'active'}
{if $field.type=='date'}
{if !$row.$key}
--
{else}
{if $key!='date_from' && $key!='date_to'}
{dateFormat date=$row.$key full=1}
{else}
{dateFormat date=$row.$key full=0}
{/if}
{/if}
{elseif $field.type=='checkbox'}
<input type="checkbox" name="{$name|escape:'html':'UTF-8'}_boxs[]" value="{$row.$identifier|escape:'html':'UTF-8'}" class="{$name|escape:'html':'UTF-8'}_boxs" />
{elseif $field.type=='input_number'}
{assign var='field_input' value=$field.field}
<div class="qty edit_quantity" data-v-599c0dc5="">
<div class="ps-number edit-qty hover-buttons" data-{$identifier|escape:'html':'UTF-8'}="{$row.$identifier|escape:'html':'UTF-8'}">
<input class="form-control {$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}" type="number" name="{$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}[{$row.$identifier|escape:'html':'UTF-8'}]" value="" placeholder="0" />
<div class="ps-number-spinner d-flex">
<span class="ps-number-up"></span>
<span class="ps-number-down"></span>
</div>
</div>
<button class="check-button" disabled="disabled"><i class="fa fa-check icon-check"></i></button>
</div>
{else}
{if isset($field.update_position) && $field.update_position}
<div class="dragGroup">
<span class="positions">
{/if}
{if isset($row.$key) && $row.$key!=='' && !is_array($row.$key)}{if isset($field.strip_tag) && !$field.strip_tag}{$row.$key nofilter}{else}{$row.$key|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}{/if}{else}--{/if}
{if isset($row.$key) && is_array($row.$key) && isset($row.$key.image_field) && $row.$key.image_field}
<a class="ets_blog_fancy" href="{$row.$key.img_url|escape:'html':'UTF-8'}"><img style="{if isset($row.$key.height) && $row.$key.height}max-height: {$row.$key.height|intval}px;{/if}{if isset($row.$key.width) && $row.$key.width}max-width: {$row.$key.width|intval}px;{/if}" src="{$row.$key.img_url|escape:'html':'UTF-8'}" /></a>
{/if}
{if isset($field.update_position) && $field.update_position}
</div>
</span>
{/if}
{/if}
{else}
{if isset($row.$key) && $row.$key}
{if (!isset($row.action_edit_approved) || $row.action_edit_approved)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=0&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-enabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to unreport' mod='ets_blog'}{else}{l s='Click to disable' mod='ets_blog'}{/if}">
<i class="icon icon-check fa fa-check"></i>
</a>
{else}
<span class="list-action-enable action-enabled" title="{l s='Enabled' mod='ets_blog'}">
<i class="icon icon-check fa fa-check"></i>
</span>
{/if}
{else}
{if (!isset($row.action_edit_approved) || $row.action_edit_approved)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=1&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-disabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to mark as reported' mod='ets_blog'}{else}{l s='Click to enable' mod='ets_blog'}{/if}">
<i class="icon icon-remove fa fa-remove"></i>
</a>
{else}
<span class="list-action-enable action-disabled" title="{l s='Disabled' mod='ets_blog'}">
<i class="icon icon-remove fa fa-remove"></i>
</span>
{/if}
{/if}
{/if}
</td>
{assign var='i' value=$i+1}
{/foreach}
{if $show_action}
{if $actions}
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
{if $actions[0]=='view'}
{if (isset($row.child_view_url) && $row.child_view_url) || (isset($row.view_url) && $row.view_url)}
{if isset($row.child_view_url) && $row.child_view_url}
<a class="btn btn-default" href="{$row.child_view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View sub' mod='ets_blog'}</a>
{elseif isset($row.view_url) && $row.view_url}
<a class="btn btn-default" href="{$row.view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View' mod='ets_blog'}</a>
{/if}
{elseif !isset($row.action_edit) || $row.action_edit}
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
{/if}
{/if}
{if $actions[0]=='edit'}
{if isset($row.child_view_url) && $row.child_view_url}
<a class="btn btn-default" href="{$row.child_view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='Sub categories' mod='ets_blog'}</a>
{else}
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
{/if}
{/if}
{if $actions[0]=='delete'}
<a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes"><i class="icon icon-trash fa fa-trash"></i> {l s='Delete' mod='ets_blog'}</a>
{/if}
{if $actions[0]=='send_mail'}
<a class="btn btn-default btn-send-mail" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&submitSendMail=1"><i class="icon icon-envelope fa fa-envelope"></i> {l s='Send mail' mod='ets_blog'}</a>
{/if}
{if $actions|count >=2 && (!isset($row.action_edit) || $row.action_edit || in_array('action',$actions) || (isset($row.action_delete) &&$row.action_delete) )}
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
<i class="fa fa-caret-down icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
{if $actions[0]=='edit' && isset($row.child_view_url) && $row.child_view_url}
<li>
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
</li>
{/if}
{foreach from=$actions item='action' key='key'}
{if $key!=0}
{if $action=='delete' && (!isset($row.view_order_url) || (isset($row.view_order_url) && !$row.view_order_url) )}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete' mod='ets_blog'}</a></li>
{/if}
{if $action=='delete_all'}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this shop and all of its data?' mod='ets_blog' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&delall=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete all' mod='ets_blog'}</a></li>
{/if}
{if $action=='view_post' && isset($row.post_url)}
<li><a class="btn btn-default" target="_blank" href="{$row.post_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View post' mod='ets_blog'}</a></li>
{/if}
{if $action=='approve' && isset($row.approved_url)}
<li><a class="btn btn-default" href="{$row.approved_url|escape:'html':'UTF-8'}"><i class="fa fa-check icon icon-check"></i> {l s='Approved' mod='ets_blog'}</a></li>
{/if}
{if $action=='view'}
{if isset($row.view_url) && $row.view_url}
<li><a class="btn btn-default" target="_blank" href="{$row.view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View' mod='ets_blog'}</a></li>
{else}
<li>
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_blog'}</a>
</li>
{/if}
{/if}
{if $action =='edit'}
<li><a class="btn btn-default" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}"><i class="fa fa-pencil icon icon-pencil"></i> {l s='Edit' mod='ets_blog'}</a></li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>
</div>
</td>
{/if}
{/if}
</tr>
{/foreach}
{/if}
{if !$field_values}
<tr class="no-record not_items_found list-empty">
<td colspan="100%">
<p class="list-empty-msg">
<i class="icon-warning-sign list-empty-icon"></i>
{l s='No items found' mod='ets_blog'}</p>
</td>
</tr>
{/if}
</tbody>
</table>
{if isset($show_bulk_action) && $show_bulk_action}
<div id="catalog-actions" class="col order-first">
<div class="row">
<div class="col">
<div class="d-inline-block hide">
<div class="btn-group dropdown bulk-catalog">
<button id="product_bulk_menu" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="true" style="color:black;">
{l s='Bulk actions' mod='ets_blog'}
<i class="fa fa-caret-up icon-caret-up"></i>
</button>
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 35px, 0px); top: 0px; left: 0px; will-change: transform;">
<div class="dropdown-divider"></div>
<button class="dropdown-item" name="submitBulkDelete" type="submit" style="border:none;background:none" onclick="return confirm('{l s='Do you want to delete the selected items?' mod='ets_blog' js=1}');">
<i class="fa fa-trash-o icon-trash-o" aria-hidden="true"></i>
{l s='Delete selected' mod='ets_blog'}
</button>
</div>
{if $name=='mail_queue'}
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 35px, 0px); top: 32px; left: 0px; will-change: transform;">
<div class="dropdown-divider"></div>
<button class="dropdown-item" name="submitBulkSend" type="submit" style="border:none;background:none" onclick="return confirm('{l s='Do you want to send email to the selected items?' mod='ets_blog' js=1}');">
<i class="icon icon-envelope fa fa-envelope" aria-hidden="true"></i>
{l s='Send email' mod='ets_blog'}
</button>
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
{/if}
{if $paggination}
<div class="ets_blog_paggination" style="margin-top: 10px;">
{$paggination nofilter}
</div>
{/if}
</form>
</div>
{/if}
</div>
<script type="text/javascript">
function ets_blog_updateBulkMenu()
{
$('tbody input[type="checkbox"]').parent().removeClass('checked');
$('tbody input[type="checkbox"]:checked').parent().addClass('checked');
if($('tbody input[type="checkbox"]:checked').length) {
$('#product_bulk_menu').removeAttr('disabled').parents('.d-inline-block').removeClass('hide');
} else {
$('#product_bulk_menu').attr('disabled','disabled').parents('.d-inline-block').addClass('hide');
}
}
$(document).ready(function(){
$(document).on('click','tbody input[type="checkbox"]',function(){
ets_blog_updateBulkMenu();
});
});
$(document).on('change','.paginator_select_limit',function(e){
$(this).parents('form').submit();
});
</script>

View File

@@ -0,0 +1,28 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<li class="col-lg-4 col-md-6 col-sm-6 col-xs-12" >
<a id="author-blog-comment-link" href="{$link->getModuleLink('ets_blog','comments')|escape:'html':'UTF-8'}" title="{l s='My blog comments' mod='ets_blog'}">
<span class="link-item">
<span class="ss_icon_group">
<i class="fa fa-comments"></i>
</span>
{l s='My blog comments' mod='ets_blog'}
</span>
</a>
</li>

View File

@@ -0,0 +1,112 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="panel ets_blogcomment_reply">
<div class="comment-content">
<span class="panel-heading-action">
<span>
{l s='Status' mod='ets_blog'}:&nbsp;{if $comment->approved}{l s='Approved' mod='ets_blog'}{else}{l s='Pending' mod='ets_blog'}{/if}
</span>
<a class="del_comment" title="{l s='Delete' mod='ets_blog'}" onclick="return confirm('Do you want to delete this comment?');" href="{$link_delete|escape:'html':'UTF-8'}">
<i class="icon-trash"></i>
{l s='Delete' mod='ets_blog'}
</a>
{if $comment->approved}
<a class="field-approved list-action-enable action-disabled" title="{l s='Click to disapprove' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_comment={$comment->id|intval}&change_comment_approved=0">
<i class="icon-check"></i>
</a>
{else}
<a class="field-approved list-action-enable action-enabled" title="{l s='Click to mark as approved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_comment={$comment->id|intval}&change_comment_approved=1">
<i class="icon-remove"></i>
</a>
{/if}
</span>
<h4 class="subject_comment">{$comment->subject|escape:'html':'UTF-8'}</h4>
{if $comment->name}
<h4 class="comment_name">
{l s='By' mod='ets_blog'}: <span>{$comment->name|escape:'html':'UTF-8'}</span>
</h4>
{/if}
<h4 class="post_title">
{l s='Post title' mod='ets_blog'}: <span><a target="_blank" href="{$post_link|escape:'html':'UTF-8'}" title="{$post_class->title|escape:'html':'UTF-8'}">{$post_class->title|escape:'html':'UTF-8'}</a></span>
</h4>
<div class="comment-content">
<p>{$comment->comment|nl2br nofilter}</p>
</div>
<form method="post" action="">
<div class="form_reply">
<textarea id="reply_comwent_text" placeholder="{l s='Reply ...' mod='ets_blog'}" name="reply_comwent_text">{if isset($reply_comwent_text)}{$reply_comwent_text|escape:'html':'UTF-8'}{/if}</textarea>
<input class="btn btn-primary btn-default" type="submit" value="{l s='Send' mod='ets_blog'}" name="addReplyComment"/><br />
</div>
{if $replies}
<h4 class="replies_comment">{l s='Replies' mod='ets_blog'}:</h4>
<div class="table-responsive clearfix">
<table class="table configuration">
<thead>
<tr class="nodrag nodrop">
<script type="text/javascript">
var detele_confirm ="{l s='Do you want to delete this item?' mod='ets_blog'}";
</script>
<td>{l s='Id' mod='ets_blog'}</td>
<td>{l s='Name' mod='ets_blog'}</td>
<td>{l s='Reply content' mod='ets_blog'}</td>
<td class="text-center">{l s='Approved' mod='ets_blog'}</td>
<td class="text-center">{l s='Action' mod='ets_blog'}</td>
</tr>
</thead>
<tbody id="list-ets_reply">
{foreach from=$replies item='reply'}
<tr>
<td>{$reply.id_reply|intval}</td>
<td>{$reply.name|escape:'html':'UTF-8'}</td>
<td>{$reply.reply|nl2br nofilter}</td>
<td class="text-center">
{if $reply.approved}
<a class="list-action field-approved list-action-enable action-enabled list-item-{$reply.id_reply|intval}" data-id="{$reply.id_reply|intval}" title="{l s='Unapproved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_reply={$reply.id_reply|intval}&change_approved=0">
<i class="icon-check"></i>
</a>
{else}
<a class="list-action field-approved list-action-enable action-disabled list-item-{$reply.id_reply|intval}" data-id="{$reply.id_reply|intval}" title="{l s='Approved' mod='ets_blog'}" href="{$curenturl|escape:'html':'UTF-8'}&id_reply={$reply.id_reply|intval}&change_approved=1">
<i class="icon-remove"></i>
</a>
{/if}
</td>
<td class="text-center">
<a class="del_reply" href="{$curenturl|escape:'html':'UTF-8'}&delreply=1&id_reply={$reply.id_reply|intval}" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_blog'}');" title="{l s='Delete' mod='ets_blog'}"><i class="icon-trash"></i>{l s='Delete' mod='ets_blog'}</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
<select id="bulk_action_reply" name="bulk_action_reply" style="display:none;width: 200px;">
<option value="">{l s='Bulk actions' mod='ets_blog'}</option>
<option value="mark_as_approved">{l s='Approved' mod='ets_blog'}</option>
<option value="mark_as_unapproved">{l s='Unapproved' mod='ets_blog'}</option>
<option value="delete_selected">{l s='Delete selected' mod='ets_blog'}</option>
</select>
</div>
{/if}
<div class="panel-footer">
<a class="btn btn-default" href="{$link_back|escape:'html':'UTF-8'}" title="{l s='Back' mod='ets_blog'}">
<i class="process-icon-cancel"></i>
{l s='Back' mod='ets_blog'}
</a>
</div>
</form>
</div>
</div>

View File

@@ -0,0 +1,28 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="block ets_block_search {$ETS_BLOG_RTL_CLASS|escape:'html':'UTF-8'}">
<h4 class="title_blog title_block">{l s='Search in blog' mod='ets_blog'}</h4>
<div class="content_block block_content">
<form action="{$action|escape:'html':'UTF-8'}" method="post">
<input class="form-control" type="text" name="ets_blog_search" placeholder="{l s='Type in keywords...' mod='ets_blog'}" value="{$search|escape:'html':'UTF-8'}" />
<input class="button" type="submit" value="{l s='Search' mod='ets_blog'}" />
<span class="icon_search"></span>
</form>
</div>
</div>

View File

@@ -0,0 +1,27 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<div class="ets-left-panel col-lg-12">
<div class="blog-list-group">
{if $list}
{foreach from=$list item='tab'}
<a class="{if $controller == $tab.controller} active{/if} blog-list-group-item" href="{$tab.url|escape:'html':'UTF-8'}" id="{$tab.id|escape:'html':'UTF-8'}">{if isset($tab.icon)}<i class="{$tab.icon|escape:'html':'UTF-8'}"></i> {/if}{$tab.label|escape:'html':'UTF-8'}{if isset($tab.total_result) && $tab.total_result} ({$tab.total_result|intval}){/if}</a>
{/foreach}
{/if}
</div>
</div>

View File

@@ -0,0 +1,432 @@
{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
<script type="text/javascript">
ets_blog_report_url = '{$report_url nofilter}';
ets_blog_report_warning ="{l s='Do you want to report this comment?' mod='ets_blog'}";
ets_blog_error = "{l s='There was a problem while submitting your report. Try again later' mod='ets_blog'}";
</script>
<div class="ets_blog_layout_{$blog_layout|escape:'html':'UTF-8'} ets-blog-wrapper-detail" itemscope itemType="http://schema.org/newsarticle">
<div itemprop="publisher" itemtype="http://schema.org/Organization" itemscope="">
<meta itemprop="name" content="{Configuration::get('PS_SHOP_NAME')|escape:'html':'UTF-8'}" />
{if Configuration::get('PS_LOGO')}
<div itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<meta itemprop="url" content="{$ets_blog_config.ETS_BLOG_SHOP_URI|escape:'html':'UTF-8'}img/{Configuration::get('PS_LOGO')|escape:'html':'UTF-8'}" />
<meta itemprop="width" content="200px" />
<meta itemprop="height" content="100px" />
</div>
{/if}
</div>
{if $blog_post.image}
<div class="ets_blog_img_wrapper" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<div class="ets_image-single">
<img title="{$blog_post.title|escape:'html':'UTF-8'}" src="{$blog_post.image|escape:'html':'UTF-8'}" alt="{$blog_post.title|escape:'html':'UTF-8'}" itemprop="url"/>
</div>
<meta itemprop="width" content="600px" />
<meta itemprop="height" content="300px" />
</div>
{/if}
<div class="ets-blog-wrapper-content">
{if $blog_post}
<h1 class="page-heading product-listing" itemprop="mainEntityOfPage"><span class="title_cat" itemprop="headline">{$blog_post.title|escape:'html':'UTF-8'}</span></h1>
<div class="post-details">
<div class="blog-extra">
<div class="ets-blog-latest-toolbar">
{if $allow_rating && $everage_rating}
<div class="blog_rating_wrapper">
{if $total_review}
<span title="{l s='Comments' mod='ets_blog'}" class="blog_rating_reviews">
<span class="total_views">{$total_review|intval}</span>
<span>
{if $total_review != 1}
{l s='Comments' mod='ets_blog'}
{else}
{l s='Comment' mod='ets_blog'}
{/if}
</span>
</span>
{/if}
<div title="{l s='Average rating' mod='ets_blog'}" class="ets_blog_review">
{for $i = 1 to $everage_rating}
{if $i <= $everage_rating}
<div class="star star_on"></div>
{else}
<div class="star star_on_{($i-$everage_rating)*10|intval}"></div>
{/if}
{/for}
{if Ceil($everage_rating)<5}
{for $i = ceil($everage_rating)+1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ets-blog-rating-value">({$everage_rating|escape:'html':'UTF-8'})</span>
</div>
</div>
{/if}
{if $show_date}
{if !$date_format}{assign var='date_format' value='F jS Y'}{/if}
<span class="post-date">
<span class="be-label">{l s='Posted on' mod='ets_blog'}: </span>
<span>{date($date_format,strtotime($blog_post.date_add))|escape:'html':'UTF-8'}</span>
<meta itemprop="datePublished" content="{date('Y-m-d',strtotime($blog_post.date_add))|escape:'html':'UTF-8'}" />
<meta itemprop="dateModified" content="{date('Y-m-d',strtotime($blog_post.date_upd))|escape:'html':'UTF-8'}" />
</span>
{/if}
{if $show_author && isset($blog_post.employee) && $blog_post.employee}
<div class="author-block" itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="post-author-label">{l s='By ' mod='ets_blog'}</span>
<a itemprop="url" href="{$blog_post.author_link|escape:'html':'UTF-8'}">
<span class="post-author-name" itemprop="name">
{if isset($blog_post.employee.name) && $blog_post.employee.name}
{ucfirst($blog_post.employee.name)|escape:'html':'UTF-8'}
{else}
{ucfirst($blog_post.employee.firstname)|escape:'html':'UTF-8'} {ucfirst($blog_post.employee.lastname)|escape:'html':'UTF-8'}
{/if}
</span>
</a>
</div>
{/if}
{if isset($blog_post.link_edit) && $blog_post.link_edit}
<a class="ets-block-post-edit" href="{$blog_post.link_edit|escape:'html':'UTF-8'}" title="{l s='Edit' mod='ets_blog'}"><i class="fa fa-pencil" aria-hidden="true"></i>&nbsp;{l s='Edit' mod='ets_blog'}</a>
{/if}
</div>
</div>
<div class="blog_description">
{if $blog_post.description}
{$blog_post.description nofilter}
{else}
{$blog_post.short_description nofilter}
{/if}
</div>
{if ($show_tags && $blog_post.tags) || ($show_categories && $blog_post.categories)}
<div class="extra_tag_cat">
{if $show_tags && $blog_post.tags}
<div class="ets-blog-tags">
{assign var='ik' value=0}
{assign var='totalTag' value=count($blog_post.tags)}
<span class="be-label">
{if $totalTag > 1}{l s='Tags' mod='ets_blog'}
{else}{l s='Tag' mod='ets_blog'}{/if}:
</span>
{foreach from=$blog_post.tags item='tag'}
{assign var='ik' value=$ik+1}
<a href="{$tag.link|escape:'html':'UTF-8'}">{ucfirst($tag.tag)|escape:'html':'UTF-8'}</a>{if $ik < $totalTag}, {/if}
{/foreach}
</div>
{/if}
{if $show_categories && $blog_post.categories}
<div class="ets-blog-categories">
{assign var='ik' value=0}
{assign var='totalCat' value=count($blog_post.categories)}
<div class="be-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$blog_post.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
</div>
{/if}
</div>
{/if}
{if isset($ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION)&& $ets_blog_config.ETS_BLOG_AUTHOR_INFORMATION && isset($blog_post.employee.description)&& $blog_post.employee.description}
<div class="ets-block-author ets-block-author-avata {if $blog_post.employee.avata} ets-block-author-avata{/if}">
{if $blog_post.employee.avata}
<div class="avata_img">
<img class="avata" src="{$link->getMediaLink("`$smarty.const._PS_ETS_BLOG_IMG_`avata/`$blog_post.employee.avata|escape:'htmlall':'UTF-8'`")}"/>
</div>
{/if}
<div class="ets-des-and-author">
<div class="ets-author-name">
<a href="{$blog_post.author_link|escape:'html':'UTF-8'}">
{l s='Author' mod='ets_blog'}: {$blog_post.employee.name|escape:'html':'UTF-8'}
</a>
</div>
{if isset($blog_post.employee.description)&&$blog_post.employee.description}
<div class="ets-author-description">
{$blog_post.employee.description nofilter}
</div>
{/if}
</div>
</div>
{/if}
<div class="ets-blog-wrapper-comment">
{if $allowComments}
<div class="ets_comment_form_blog">
<h4 class="title_blog">{l s='Leave a comment' mod='ets_blog'}</h4>
<div class="ets-blog-form-comment" id="ets-blog-form-comment">
{if $hasLoggedIn || $allowGuestsComments}
<form action="#ets-blog-form-comment" method="post">
{if isset($comment_edit->id) && $comment_edit->id && !$justAdded}
<input type="hidden" value="{$comment_edit->id|intval}" name="id_comment" />
{/if}
{if !$hasLoggedIn}
<div class="blog-comment-row blog-name">
<label for="bc-name">{l s='Name' mod='ets_blog'}</label>
<input class="form-control" name="name_customer" id="bc-name" type="text" value="{if isset($name_customer)}{$name_customer|escape:'html':'UTF-8'}{elseif isset($comment_edit->name) && !$justAdded}{$comment_edit->name|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-email">
<label for="bc-email">{l s='Email' mod='ets_blog'}</label>
<input class="form-control" name="email_customer" id="bc-email" type="text" value="{if isset($email_customer)}{$email_customer|escape:'html':'UTF-8'}{elseif isset($comment_edit->email)&& !$justAdded}{$comment_edit->email|escape:'html':'UTF-8'}{/if}" />
</div>
{/if}
<div class="blog-comment-row blog-title">
<label for="bc-subject">{l s='Subject ' mod='ets_blog'}</label>
<input class="form-control" name="subject" id="bc-subject" type="text" value="{if isset($subject)}{$subject|escape:'html':'UTF-8'}{elseif isset($comment_edit->subject)&& !$justAdded}{$comment_edit->subject|escape:'html':'UTF-8'}{/if}" />
</div>
<div class="blog-comment-row blog-content-comment">
<label for="bc-comment">{l s='Comment ' mod='ets_blog'}</label>
<textarea class="form-control" name="comment" id="bc-comment">{if isset($comment)}{$comment|escape:'html':'UTF-8'}{elseif isset($comment_edit->comment)&& !$justAdded}{$comment_edit->comment|escape:'html':'UTF-8'}{/if}</textarea>
</div>
<div class="blog-comment-row flex_space_between flex-bottom">
{if $allow_rating}
<div class="blog-rate-capcha">
{if $allow_rating}
<div class="blog-rate-post">
<label>{l s='Rating: ' mod='ets_blog'}</label>
<div class="blog_rating_box">
{if $default_rating > 0 && $default_rating <5}
<input id="blog_rating" type="hidden" name="rating" value="{$default_rating|intval}" />
{for $i = 1 to $default_rating}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{for $i = $default_rating + 1 to 5}
<div rel="{$i|intval}" class="star blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{else}
<input id="blog_rating" type="hidden" name="rating" value="5" />
{for $i = 1 to 5}
<div rel="{$i|intval}" class="star star_on blog_rating_star blog_rating_star_{$i|intval}"></div>
{/for}
{/if}
</div>
</div>
{/if}
</div>
{/if}
<div class="blog-submit-form">
{if !Configuration::get('ETS_BLOG_DISPLAY_GDPR_NOTIFICATION')}
<div class="blog-submit">
<input class="button" type="submit" value="{l s='Submit Comment' mod='ets_blog'}" name="bcsubmit" />
</div>
{/if}
</div>
{if isset($blog_errors) && is_array($blog_errors) && $blog_errors && !isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul>
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
</div>
<div class="blog-comment-row">
<div class="blog-submit-form">
{if Configuration::get('ETS_BLOG_DISPLAY_GDPR_NOTIFICATION')}
<label for="check_gpdr">
<input id="check_gpdr" type="checkbox" type="check_gpdr" value="1"/>&nbsp;{$text_gdpr|escape:'html':'UTF-8'}
<a href="{if Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_URL_MORE',$id_lang)}{Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_URL_MORE',$id_lang)|escape:'html':'UTF-8'}{else}#{/if}">{if Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_TEXT_MORE',$id_lang)}{Configuration::get('ETS_BLOG_TEXT_GDPR_NOTIFICATION_TEXT_MORE',$id_lang)|escape:'html':'UTF-8'}{else}{l s='View more details here' mod='ets_blog'}{/if}</a>
</label>
<div class="blog-submit">
<input class="button" type="submit" disabled="disabled" value="{l s='Submit Comment' mod='ets_blog'}" name="bcsubmit" />
</div>
{/if}
</div>
</div>
{if isset($blog_success) && $blog_success}
<p class="alert alert-success ets_alert-success">
<button class="close" type="button" data-dismiss="alert">×</button>
{$blog_success|escape:'html':'UTF-8'}
</p>
{/if}
</form>
{else}
<p class="alert alert-warning">{l s='Log in to post comments' mod='ets_blog'}</p>
{/if}
</div>
</div>
{if count($comments)}
<div class="ets_blog-comments-list">
<h4 class="title_blog">{l s='Comments' mod='ets_blog'}</h4>
<ul id="blog-comments-list" class="blog-comments-list">
{foreach from=$comments item='comment'}
<li id="blog_comment_line_{$comment.id_comment|intval}" class="blog-comment-line" {*itemprop="review" itemscope="" itemtype="http://schema.org/Review"*}>
{*<meta itemprop="author" content="{ucfirst($comment.name)|escape:'html':'UTF-8'}"/>*}
<div class="ets-blog-detail-comment">
<h5 class="comment-subject">{$comment.subject|escape:'html':'UTF-8'}</h5>
{if $comment.name}<span class="comment-by">{l s='By: ' mod='ets_blog'}<b>{ucfirst($comment.name)|escape:'html':'UTF-8'}</b></span>{/if}
<span class="comment-time"><span>{l s='On' mod='ets_blog'} </span>{date($date_format,strtotime($comment.date_add))|escape:'html':'UTF-8'}</span>
{if $allow_rating && $comment.rating > 0}
<div class="comment-rating" >
<span>{l s='Rating: ' mod='ets_blog'}</span>
<div class="ets_blog_review">
{for $i = 1 to $comment.rating}
<div class="star star_on"></div>
{/for}
{if $comment.rating<5}
{for $i = $comment.rating + 1 to 5}
<div class="star"></div>
{/for}
{/if}
<span class="ets-blog-everage-rating"> {number_format((float)$comment.rating, 1, '.', '')|escape:'html':'UTF-8'}</span>
</div>
</div>
{/if}
<div class="ets-block-report-reply-edit-delete">
{if isset($comment.reply) && $comment.reply}
<span class="ets-block-comment-reply comment-reply-{$comment.id_comment|intval}" rel="{$comment.id_comment|intval}"><i class="fa fa-reply" aria-hidden="true" title="{l s='Reply' mod='ets_blog'}"></i></span>
{/if}
{if isset($comment.url_edit)}
<a class="ets-block-comment-edit comment-edit-{$comment.id_comment|intval}" href="{$comment.url_edit|escape:'html':'UTF-8'}"><i class="fa fa-pencil" aria-hidden="true" title="{l s='Edit this comment' mod='ets_blog'}"></i></a>
{/if}
{if isset($comment.url_delete)}
<a class="ets-block-comment-delete delete-edit-{$comment.id_comment|intval}" href="{$comment.url_delete|escape:'html':'UTF-8'}"><i class="fa fa-trash" aria-hidden="true" title="{l s='Delete this comment' mod='ets_blog'}"></i></a>
{/if}
</div>
{if $comment.comment}<p class="comment-content">{$comment.comment nofilter}</p>{/if}
{if $comment.replies}
{foreach $comment.replies item='reply'}
<p class="comment-reply">
<span class="ets-blog-replied-by">
{l s='Replied by: ' mod='ets_blog'}
<span class="ets-blog-replied-by-name">
{ucfirst($reply.name)|escape:'html':'UTF-8'}
</span>
</span>
<span class="comment-time"><span>{l s='On' mod='ets_blog'} </span>{date($date_format,strtotime($reply.date_add))|escape:'html':'UTF-8'}</span>
<span class="ets-blog-reply-content">
{$reply.reply|nl2br nofilter}
</span>
</p>
{/foreach}
{/if}
{if isset($replyCommentsave) && $replyCommentsave==$comment.id_comment}
{if isset($replyCommentsaveok) && $blog_success}
<p class="alert alert-success ets_alert-success">
<button class="close" type="button" data-dismiss="alert">×</button>{$blog_success|escape:'html':'UTF-8'}
</p>
{else}
{if isset($comment.reply) && $comment.reply}
<form class="form_reply_comment" action="#blog_comment_line_{$comment.id_comment|intval}" method="post">
{if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul >
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
<input type="hidden" name="replyCommentsave" value="{$comment.id_comment|intval}" />
<textarea name="reply_comwent_text" placeholder="{l s='Enter your message...' mod='ets_blog'}">{$reply_comwent_text nofilter}</textarea>
<input type="submit" value="Send" />
</form>
{else}
{if $blog_errors && is_array($blog_errors) && isset($replyCommentsave)}
<div class="alert alert-danger ets_alert-danger">
<button class="close" type="button" data-dismiss="alert">×</button>
<ul >
{foreach from=$blog_errors item='error'}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</div>
{/if}
{/if}
{/if}
{/if}
</div>
</li>
{/foreach}
</ul>
{if isset($link_view_all_comment)}
<div class="blog_view_all_button">
<a href="{$link_view_all_comment|escape:'html':'UTF-8'}" class="view_all_link">{l s='View all comments' mod='ets_blog'}</a>
</div>
{/if}
</div>
{/if}
{/if}
</div>
</div>
{else}
<p class="warning">{l s='No posts found' mod='ets_blog'}</p>
{/if}
{if $blog_post.related_posts}
<div class="ets-blog-related-posts ets_blog_related_posts_type_{if $blog_related_posts_type}{$blog_related_posts_type|escape:'html':'UTF-8'}{else}default{/if}">
<h4 class="title_blog">{l s='Related posts' mod='ets_blog'}</h4>
<div class="ets-blog-related-posts-wrapper">
{assign var='post_row' value=3}
<ul class="ets-blog-related-posts-list dt-{$post_row|intval}">
{foreach from=$blog_post.related_posts item='rpost'}
<li class="ets-blog-related-posts-list-li col-xs-12 col-sm-4 col-lg-{12/$post_row|intval} thumbnail-container">
{if $rpost.thumb}
<a class="ets_item_img" href="{$rpost.link|escape:'html':'UTF-8'}">
<img src="{$rpost.thumb|escape:'html':'UTF-8'}" alt="{$rpost.title|escape:'html':'UTF-8'}" />
</a>
{/if}
<a class="ets_title_block" href="{$rpost.link|escape:'html':'UTF-8'}">{$rpost.title|escape:'html':'UTF-8'}</a>
<div class="ets-blog-sidear-post-meta">
{if $rpost.categories}
{assign var='ik' value=0}
{assign var='totalCat' value=count($rpost.categories)}
<div class="ets-blog-categories">
<span class="be-label">{l s='Posted in' mod='ets_blog'}: </span>
{foreach from=$rpost.categories item='cat'}
{assign var='ik' value=$ik+1}
<a href="{$cat.link|escape:'html':'UTF-8'}">{ucfirst($cat.title)|escape:'html':'UTF-8'}</a>{if $ik < $totalCat}, {/if}
{/foreach}
</div>
{/if}
<span class="post-date">{date($date_format,strtotime($rpost.date_add))|escape:'html':'UTF-8'}</span>
</div>
{if $allowComments || $show_views || $allow_like}
<div class="ets-blog-latest-toolbar">
{if $allowComments}
{if $rpost.comments_num > 0 }
<span class="ets-blog-latest-toolbar-comments">{$rpost.comments_num|intval}
{if $rpost.comments_num!=1}
<span>{l s='comments' mod='ets_blog'}</span>
{else}
<span>{l s='comment' mod='ets_blog'}</span>
{/if}
</span>
{/if}
{/if}
</div>
{/if}
{if $display_desc}
{if $rpost.short_description}
<div class="blog_description">{$rpost.short_description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{elseif $rpost.description}
<div class="blog_description">{$rpost.description|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}</div>
{/if}
{/if}
<a class="read_more" href="{$rpost.link|escape:'html':'UTF-8'}">{if $ets_blog_config.ETS_BLOG_TEXT_READMORE}{$ets_blog_config.ETS_BLOG_TEXT_READMORE|escape:'html':'UTF-8'}{else}{l s='Read More' mod='ets_blog'}{/if}</a>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*/
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;