first commit

This commit is contained in:
2024-10-28 22:14:22 +01:00
commit b65352c452
40581 changed files with 5712079 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 .
drwxr-xr-x 9 30094 users 16 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 css
-rw-r--r-- 1 30094 users 891 Aug 31 2021 index.php
drwxr-xr-x 2 30094 users 5 Oct 6 10:16 js
drwxr-xr-x 2 30094 users 6 Oct 6 10:16 scss
drwxr-xr-x 5 30094 users 6 Oct 6 10:16 templates

View File

@@ -0,0 +1,4 @@
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1736 Aug 31 2021 jxblog.css
-rw-r--r-- 1 30094 users 685 Aug 31 2021 jxblog_admin.css

View File

@@ -0,0 +1,69 @@
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
.blog-category .blog-category-info {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-moz-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
}
.blog-category .blog-category-info .btn {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-moz-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.blog-category .blog-category-info .btn:not(.active) span:last-child {
display: none;
}
.blog-category .blog-category-info .btn:not(.active) + .blog-category-description-short + .blog-category-description {
display: none;
}
.blog-category .blog-category-info .btn.active span:first-child {
display: none;
}
.blog-category .blog-category-info .btn.active + .blog-category-description-short {
display: none;
}
.post-meta.author-hidden .post-author {
display: none;
}

View File

@@ -0,0 +1,25 @@
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
a#collapse-all-blog-categories-tree, a#expand-all-blog-categories-tree {
display: none;
}

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
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,5 @@
drwxr-xr-x 2 30094 users 5 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 891 Aug 31 2021 index.php
-rw-r--r-- 1 30094 users 593 Aug 31 2021 jxblog.js
-rw-r--r-- 1 30094 users 593 Aug 31 2021 jxblog_admin.js

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
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,21 @@
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/

View File

@@ -0,0 +1,21 @@
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/

View File

@@ -0,0 +1,6 @@
drwxr-xr-x 2 30094 users 6 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 891 Aug 31 2021 index.php
-rw----r-- 1 30094 users 1271 Sep 5 07:45 jxblog.css
-rw----r-- 1 30094 users 289 Sep 5 07:45 jxblog.css.map
-rw-r--r-- 1 30094 users 1203 Aug 31 2021 jxblog.scss

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
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,2 @@
.blog-category .blog-category-info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.blog-category .blog-category-info .btn{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.blog-category .blog-category-info .btn:not(.active) span:last-child{display:none}.blog-category .blog-category-info .btn:not(.active)+.blog-category-description-short+.blog-category-description{display:none}.blog-category .blog-category-info .btn.active span:first-child{display:none}.blog-category .blog-category-info .btn.active+.blog-category-description-short{display:none}.post-meta.author-hidden .post-author{display:none}
/*# sourceMappingURL=jxblog.css.map */

View File

@@ -0,0 +1,9 @@
{
"version": 3,
"mappings": "AAsBA,AACE,cADY,CACZ,mBAAmB,AAAC,CAClB,OAAO,CAAE,IAAI,CACb,cAAc,CAAE,MAAM,CACtB,WAAW,CAAE,UAAU,CAoBxB,AAxBH,AAKI,cALU,CACZ,mBAAmB,CAIjB,IAAI,AAAC,CACH,KAAK,CAAE,CAAC,CAiBT,AAvBL,AAQQ,cARM,CACZ,mBAAmB,CAIjB,IAAI,AAED,IAAK,CAAA,OAAO,EACX,IAAI,AAAA,WAAW,AAAC,CACd,OAAO,CAAE,IAAI,CACd,AAVT,AAWQ,cAXM,CACZ,mBAAmB,CAIjB,IAAI,AAED,IAAK,CAAA,OAAO,EAIT,gCAAgC,CAAG,0BAA0B,AAAC,CAC9D,OAAO,CAAE,IAAI,CACd,AAbT,AAgBQ,cAhBM,CACZ,mBAAmB,CAIjB,IAAI,AAUD,OAAO,CACN,IAAI,AAAA,YAAY,AAAC,CACf,OAAO,CAAE,IAAI,CACd,AAlBT,AAmBQ,cAnBM,CACZ,mBAAmB,CAIjB,IAAI,AAUD,OAAO,CAIJ,gCAAgC,AAAC,CACjC,OAAO,CAAE,IAAI,CACd,AAMT,AAEI,UAFM,AACP,cAAc,CACb,YAAY,AAAC,CACX,OAAO,CAAE,IAAI,CACd",
"sources": [
"jxblog.scss"
],
"names": [],
"file": "jxblog.css"
}

View File

@@ -0,0 +1,56 @@
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
.blog-category {
.blog-category-info {
display: flex;
flex-direction: column;
align-items: flex-start;
.btn {
order: 1;
&:not(.active) {
span:last-child {
display: none;
}
+ .blog-category-description-short + .blog-category-description {
display: none;
}
}
&.active {
span:first-child {
display: none;
}
+ .blog-category-description-short {
display: none;
}
}
}
}
}
.post-meta {
&.author-hidden {
.post-author {
display: none;
}
}
}

View File

@@ -0,0 +1,6 @@
drwxr-xr-x 5 30094 users 6 Oct 6 10:16 .
drwxr-xr-x 6 30094 users 7 Oct 6 10:16 ..
drwxr-xr-x 5 30094 users 5 Oct 6 10:16 admin
drwxr-xr-x 3 30094 users 10 Oct 6 10:16 front
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 hook
-rw-r--r-- 1 30094 users 891 Aug 31 2021 index.php

View File

@@ -0,0 +1,5 @@
drwxr-xr-x 5 30094 users 5 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 6 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 jx_blog_categories
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 jx_blog_images
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 jx_blog_posts

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 5 Oct 6 10:16 ..
drwxr-xr-x 4 30094 users 4 Oct 6 10:16 helpers

View File

@@ -0,0 +1,4 @@
drwxr-xr-x 4 30094 users 4 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 form
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 list

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 4 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1034 Aug 31 2021 form.tpl

View File

@@ -0,0 +1,42 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file="helpers/form/form.tpl"}
{block name="script"}
var ps_force_friendly_product = false;
{/block}
{block name="input"}
{if $input.name == "link_rewrite"}
<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}
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 4 30094 users 4 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1567 Aug 31 2021 list_header.tpl

View File

@@ -0,0 +1,48 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file="helpers/list/list_header.tpl"}
{block name=override_header}
<ul class="breadcrumb cat_bar2">
{assign var=i value=0}
{foreach $categories_tree key=key item=category}
<li>
{if $i++ == 0}
<i class="icon-home"></i>
{assign var=params_url value=""}
{elseif isset($category.id_jxblog_category)}
{assign var=params_url value="&id_jxblog_category={$category.id_jxblog_category|intval}&viewcategory"}
{/if}
{if isset($category.id_jxblog_category) && $category.id_jxblog_category == $categories_tree_current_id}
{$category.name|escape:'html':'UTF-8'}
<a class="edit" href="{$category.edit_link}" title="{l s='Edit' d='Admin.Global'}">
&nbsp;<i class="icon-pencil"></i> {l s='Edit' d='Admin.Global'}
</a>
{else}
<a href="{$current|escape:'html':'UTF-8'}{$params_url|escape:'html':'UTF-8'}&amp;token={$token|escape:'html':'UTF-8'}">{$category.name|escape:'html':'UTF-8'}</a>
{/if}
</li>
{/foreach}
</ul>
{/block}

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 5 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 helpers

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 form

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 4093 Aug 31 2021 form.tpl

View File

@@ -0,0 +1,84 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file="helpers/form/form.tpl"}
{block name="field"}
{if $input.type == 'multilingual_image'}
<div class="row">
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|escape:'htmlall':'UTF-8'}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-6">
{if isset($input.images[$language.id_lang]) && $input.images[$language.id_lang]}
<img
src="{$input.images[$language.id_lang]|escape:'html':'UTF-8'}"
class="img-thumbnail" />
<input class="hidden-image-name" type="hidden" name="old_image_{$input.images[$language.id_lang]|escape:'htmlall':'UTF-8'}" value="{$input.images[$language.id_lang]|escape:'html':'UTF-8'}" />
{/if}
<div class="dummyfile input-group">
<input id="{$input.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}" type="file" name="{$input.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}" class="hide-file-upload"/>
<span class="input-group-addon"><i class="icon-file"></i></span>
<input id="{$input.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}-name" type="text" class="disabled" name="{$input.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}" readonly/>
<span class="input-group-btn">
<button id="{$input.name|escape:'htmlall':'UTF-8'}_{$language.id_lang|escape:'htmlall':'UTF-8'}-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> {l s='Choose a file' mod='jxblog'}
</button>
</span>
</div>
<p class="help-block">{if isset($input.description) && $input.description}{$input.description|escape:'htmlall':'UTF-8'}{/if}</p>
</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:'htmlall':'UTF-8'}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li>
<a href="javascript:hideOtherLanguage({$lang.id_lang|escape:'htmlall':'UTF-8'});" tabindex="-1">{$lang.name|escape:'htmlall':'UTF-8'}</a>
</li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
<script>
$(document).ready(function() {
$('#{$input.name|escape:"htmlall":"UTF-8"}_{$language.id_lang|escape:"htmlall":"UTF-8"}-selectbutton').click(function(e) {
$('#{$input.name|escape:"htmlall":"UTF-8"}_{$language.id_lang|escape:"htmlall":"UTF-8"}').trigger('click');
});
$('#{$input.name|escape:"htmlall":"UTF-8"}_{$language.id_lang|escape:"htmlall":"UTF-8"}').change(function(e) {
var val = $(this).val();
var file = val.split(/[\\/]/);
$('#{$input.name|escape:"htmlall":"UTF-8"}_{$language.id_lang|escape:"htmlall":"UTF-8"}-name').val(file[file.length - 1]);
});
});
</script>
{/foreach}
</div>
{/if}
{$smarty.block.parent}
{/block}

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 5 Oct 6 10:16 ..
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 helpers

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 form

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 3 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 3212 Aug 31 2021 form.tpl

View File

@@ -0,0 +1,82 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file="helpers/form/form.tpl"}
{block name="script"}
var ps_force_friendly_product = false;
{/block}
{block name="input"}
{if $input.name == "link_rewrite"}
<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}
{elseif $input.type == "cat_list"}
<div id="category_block">
<div class="panel">
<ul id="associated-categories-tree" class="cattree tree">
{foreach from=$input.categories item='category' name='categories_loop'}
<li class="tree-folder">
<span class="tree-folder-name">
<input type="radio" {if $input.id_jxblog_category_default && $input.id_jxblog_category_default == $category.id_jxblog_category}checked="checked"{elseif $smarty.foreach.categories_loop.iteration == 1}checked="checked"{/if} name="id_jxblog_category_default" value="{$category.id_jxblog_category}" />
<input id="jxcategoryBox{$category.id_jxblog_category}" {if $input.related_categories && $category.id_jxblog_category|in_array:$input.related_categories}checked="checked"{/if} type="checkbox" name="jxcategoryBox[]" value="{$category.id_jxblog_category}" />
<label class="tree-toggler"> {$category.name}</label>
</span>
</li>
{/foreach}
</div>
</div>
{elseif $input.type == "autocomplete"}
{if isset($input.url) && $input.url}
<input type="hidden" name="ajax_url" value="{$input.url}" />
{/if}
{assign var="type" value="related_`$input.id`"}
<input id="input{$input.id}" name="input{$input.id}" value="{if $fields_value[$type]}{foreach from=$fields_value[$type] item='item'}{$item.id}-{/foreach}{else}-{/if}" type="hidden">
<input id="name{$input.id}" name="name{$input.id}" value="{if $fields_value[$type]}{foreach from=$fields_value[$type] item='item'}{$item.name}¤{/foreach}{else}¤{/if}" type="hidden">
<div id="ajax_choose_{$input.id}">
<div class="input-group">
<input type="text" id="{$input.id}_autocomplete_input" name="{$input.id}_autocomplete_input"/>
<span class="input-group-addon"><i class="icon-search"></i></span>
</div>
</div>
<div id="div{$input.id}">
{if $fields_value[$type]}
{foreach from=$fields_value[$type] item='item'}
<div class="form-control-static">
<button type="button" class="btn btn-default del{$input.id}" name="{$item.id}">
<i class="icon-remove text-danger"></i>
</button>
{$item.name}
</div>
{/foreach}
{/if}
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,10 @@
drwxr-xr-x 3 30094 users 10 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 6 Oct 6 10:16 ..
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 _partials
-rw-r--r-- 1 30094 users 1017 Aug 31 2021 author.tpl
-rw-r--r-- 1 30094 users 2860 Aug 31 2021 blog.tpl
-rw-r--r-- 1 30094 users 2420 Aug 31 2021 categories.tpl
-rw-r--r-- 1 30094 users 3575 Aug 31 2021 category.tpl
-rw-r--r-- 1 30094 users 2517 Aug 31 2021 post.tpl
-rw-r--r-- 1 30094 users 1181 Aug 31 2021 search.tpl
-rw-r--r-- 1 30094 users 988 Aug 31 2021 tag.tpl

View File

@@ -0,0 +1,4 @@
drwxr-xr-x 2 30094 users 4 Oct 6 10:16 .
drwxr-xr-x 3 30094 users 10 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 1255 Aug 31 2021 pagination.tpl
-rw-r--r-- 1 30094 users 1998 Aug 31 2021 post-miniature.tpl

View File

@@ -0,0 +1,40 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<nav class="pagination">
<div class="col-md-4">
{l s='Showing %from%-%to% of %total% item(s)' d='Shop.Theme.Catalog' sprintf=['%from%' => $pagination.from ,'%to%' => $pagination.to, '%total%' => $pagination.total]}
</div>
<div class="col-md-6 offset-md-2 pr-0">
{if isset($pagination.steps) && $pagination.steps}
<ul class="page-list clearfix text-sm-center">
{foreach from=$pagination.steps item='step'}
<li {if $step.active}class="current"{/if}>
{if !$step.active}
<a href="{$step.url}">{/if}{$step.name}{if !$step.active}</a>
{/if}
</li>
{/foreach}
</ul>
{/if}
</div>
</nav>

View File

@@ -0,0 +1,52 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<section class="blog-posts row">
{foreach from=$posts item='post'}
{block name='blog_post_miniature'}
<article class="bp-miniature col-sm-6 col-lg-4 mb-3">
<div class="bp-miniature-container card">
<div class="bp-thumbnail">
<a href="{url entity='module' name='jxblog' controller='post' params = ['id_jxblog_post' => $post.id_jxblog_post, 'rewrite' => $post.link_rewrite]}">
<img class="img-fluid" src="{JXBlogImageManager::getImage('post_thumb', $post.id_jxblog_post, 'post_listing')}" alt="{$post.name}">
</a>
</div>
<div class="card-body p-1">
<h1 class="h4 bp-name">
<a href="{url entity='module' name='jxblog' controller='post' params = ['id_jxblog_post' => $post.id_jxblog_post, 'rewrite' => $post.link_rewrite]}">
{$post.name}
</a>
</h1>
{if $post.short_description}
<div class="bp-short-description">
{$post.short_description nofilter}
</div>
{/if}
<a class="btn btn-primary" href="{url entity='module' name='jxblog' controller='post' params = ['id_jxblog_post' => $post.id_jxblog_post, 'rewrite' => $post.link_rewrite]}">
{l s='Read more' d='Shop.Theme.Actions'}
</a>
</div>
</div>
</article>
{/block}
{/foreach}
</section>

View File

@@ -0,0 +1,37 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<h1>{$author->firstname} {$author->lastname}</h1>
{if $posts}
{include file="module:jxblog/views/templates/front/_partials/post-miniature.tpl"}
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{else}
<p>{l s='There are no posts' mod='jxblog'}</p>
{/if}
</section>
{/block}

View File

@@ -0,0 +1,76 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='content'}
<section id="main">
{block name='blog_categories_header'}
<h1><a href="{url entity='module' name='jxblog' controller='categories'}" title="{l s='All categories' mod='jxblog'}">{l s='Blog categories' mod='jxblog'}</a></h1>
{/block}
{if $categories}
<section class="blog-categories row">
{foreach from=$categories item='category'}
{block name='blog_category_miniature'}
<article class="bc-miniature col-sm-6 col-lg-4">
<div class="bc-miniature-container card">
<div class="bc-thumbnail">
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $category.id_jxblog_category, 'rewrite' => $category.link_rewrite]}">
<img class="img-fluid" src="{JXBlogImageManager::getImage('category_thumb', $category.id_jxblog_category, 'category_listing')}" alt="{$category.name}">
</a>
</div>
<div class="card-body p-1">
<h1 class="h4 bc-name">
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $category.id_jxblog_category, 'rewrite' => $category.link_rewrite]}">
{$category.name}
</a>
</h1>
{if $category.short_description}
<div class="bc-short-description">
{$category.short_description nofilter}
</div>
{/if}
</div>
</div>
</article>
{/block}
{/foreach}
</section>
{if Configuration::get('JXBLOG_DISPLAY_PRODUCTS_ON_BLOG_PAGE') && $posts}
<hr class="my-3">
{block name='blog_posts_header'}
<h1>{l s='Blog posts' mod='jxblog'}</h1>
{/block}
{include file="module:jxblog/views/templates/front/_partials/post-miniature.tpl"}
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{/if}
{else}
{l s='There are no categories in the blog yet' mod='jxblog'}
{/if}
</section>
{/block}

View File

@@ -0,0 +1,70 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='content'}
<section id="main">
{block name='blog_categories_header'}
<h1>{l s='Blog categories' mod='jxblog'}</h1>
{/block}
{if $categories}
<section class="blog-categories row">
{foreach from=$categories item='category'}
{block name='blog_category_miniature'}
<article class="bc-miniature col-sm-6 col-lg-4">
<div class="bc-miniature-container card">
<div class="bc-thumbnail">
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $category.id_jxblog_category, 'rewrite' => $category.link_rewrite]}">
<img class="img-fluid" src="{JXBlogImageManager::getImage('category_thumb', $category.id_jxblog_category, 'category_listing')}" alt="{$category.name}">
</a>
</div>
<div class="card-body p-1">
<h1 class="h4 bc-name">
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $category.id_jxblog_category, 'rewrite' => $category.link_rewrite]}">
{$category.name}
</a>
</h1>
{if $category.short_description}
<div class="bc-short-description">
{$category.short_description nofilter}
</div>
{/if}
</div>
</div>
</article>
{/block}
{/foreach}
</section>
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{else}
{l s='There are no categories in the blog yet' mod='jxblog'}
{/if}
</section>
{/block}

View File

@@ -0,0 +1,87 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='head_seo_description'}{$page.meta.description}{/block}
{block name='head_seo_keywords'}{$page.meta.keywords}{/block}
{block name='content'}
<section id="main">
<div id="blog-category-{$category.id_jxblog_category}" class="blog-category">
<div class="blog-category-image mb-2">
<img class="img-fluid" src="{JXBlogImageManager::getImage('category', $category.id_jxblog_category, 'category_info')}" alt="{$category.name}">
</div>
<div class="blog-category-info">
<h1>{$category.name} <span class="badge badge-primary">{$category.badge}</span></h1>
{if $category.short_description && $category.description}
<button type="button" class="btn btn-secondary btn-sm" data-toggle="button" aria-pressed="false" autocomplete="off">
<span>{l s='Read more' d='Shop.Theme.Actions'}</span>
<span>{l s='Hide' d='Shop.Theme.Actions'}</span>
</button>
<div class="blog-category-description-short text-muted">
{$category.short_description nofilter}
</div>
<div class="blog-category-description text-muted">
{$category.description nofilter}
</div>
{elseif $category.short_description}
<div class="blog-category-description-short text-muted">
{$category.short_description nofilter}
</div>
{elseif $category.description}
<div class="blog-category-description text-muted">
{$category.description nofilter}
</div>
{/if}
</div>
</div>
{if isset($sub_categories) && $sub_categories}
<div class="sub-categories">
<h3>{l s='Sub-categories' mod='jxblog'}</h3>
<div class="row">
{foreach from=$sub_categories item=sub_category name=sub_category}
<div class="bsc-miniature col-sm-2">
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $sub_category.id_jxblog_category, 'rewrite' => $sub_category.link_rewrite]}">
<img class="img-fluid" src="{JXBlogImageManager::getImage('category', $sub_category.id_jxblog_category, 'category_info')}" alt="{$sub_category.name}">
</a>
<h5>
<a href="{url entity='module' name='jxblog' controller='category' params = ['id_jxblog_category' => $sub_category.id_jxblog_category, 'rewrite' => $sub_category.link_rewrite]}">
{$sub_category.name}
</a>
</h5>
</div>
{/foreach}
</div>
</div>
{/if}
{if $posts}
<hr class="my-3">
{include file="module:jxblog/views/templates/front/_partials/post-miniature.tpl"}
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{else}
<p>{l s='There are no posts in the category' mod='jxblog'}</p>
{/if}
</section>
{/block}

View File

@@ -0,0 +1,82 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='head_seo_description'}{$post.meta_description}{/block}
{block name='head_seo_keywords'}{$post.meta_keyword}{/block}
{block name='content'}
<section id="main">
{if $post}
{block name='blog_post_header'}
<h1>{$post.name}</h1>
{/block}
<p class="post-meta{if !$displayAuthor} author-hidden{/if}">
{l s='Posted on %date% at %time% [0]by [1"]%link%["1]%name%[/1][/0]'
sprintf=[
'%date%' => {$post.date_start|date_format},
'%time%' => {$post.date_start|date_format:"%H:%M"},
'%link%' => {url entity='module' name='jxblog' controller='author' params = ['author' => $post.id_author]},
'%name%' => {$post.author},
'[0]' => '<span class="post-author">',
'[/0]' => '</span>',
'[1"]' => '<a href="',
'["1]' => '">',
'[/1]' => '</a>'
]
d='Shop.Theme.Global'
}{if $displayViews && $post.views} - <small class="post-views">{l s='Views' mod='jxblog'} ({$post.views})</small>{/if}
</p>
<div class="post-image mb-2">
<img class="img-fluid" src="{JXBlogImageManager::getImage('post', $post.id_jxblog_post, 'post_default')}" alt="{$post.name}"/>
</div>
{if $post.description}
<div class="post-description">
{$post.description nofilter}
</div>
{/if}
{if $tags}
<hr>
<div class="post-tags">
{l s='Tagged' mod='jxblog'}
{foreach from=$tags item='tag' name="tag"}
<a href="{$link->getModuleLink('jxblog', 'tag', ['id_jxblog_tag' => $tag.id_jxblog_tag])}">{$tag.tag}</a>{if !$smarty.foreach.tag.last},{/if}
{/foreach}
</div>
{/if}
<hr>
{hook h="displayJXBlogPostFooter" post=$post}
{else}
<p>{l s='Post doesn\'t exist or you don\'t have permissions to access it.' mod='jxblog'}</p>
{/if}
</section>
{/block}

View File

@@ -0,0 +1,37 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<h1>{l s='Search by:' mod='jxblog'}{$blog_search_query}{l s=' in:' mod='jxblog'}{if isset($active_blog_category) && $active_blog_category}{$active_blog_category}{else}{l s=' All categories' mod='jxblog'}{/if}</h1>
{if $posts}
{include file="module:jxblog/views/templates/front/_partials/post-miniature.tpl"}
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{else}
<p>{l s='There are no posts' mod='jxblog'}</p>
{/if}
</section>
{/block}

View File

@@ -0,0 +1,37 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<h1>{$tag->tag}</h1>
{if $posts}
{include file="module:jxblog/views/templates/front/_partials/post-miniature.tpl"}
{if $pagination}
{include file="module:jxblog/views/templates/front/_partials/pagination.tpl"}
{/if}
{else}
<p>{l s='There are no posts' mod='jxblog'}</p>
{/if}
</section>
{/block}

View File

@@ -0,0 +1,3 @@
drwxr-xr-x 2 30094 users 3 Oct 6 10:16 .
drwxr-xr-x 5 30094 users 6 Oct 6 10:16 ..
-rw-r--r-- 1 30094 users 699 Aug 31 2021 jxbloglink.tpl

View File

@@ -0,0 +1,26 @@
{*
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<a class="link-{$jxbloglinkhook}" href="{$jxbloglinkurl}" title="{l s='Blog' mod='jxblog'}">
{l s='Blog' mod='jxblog'}
</a>

View File

@@ -0,0 +1,32 @@
<?php
/**
* 2017-2018 Zemez
*
* JX Blog
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2018 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*/
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;