first commit
This commit is contained in:
4
components/com_pagebuilderck/assets/font-awesome.min.css
vendored
Normal file
4
components/com_pagebuilderck/assets/font-awesome.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
components/com_pagebuilderck/assets/index.html
Normal file
1
components/com_pagebuilderck/assets/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
1
components/com_pagebuilderck/assets/jquery-uick.min.js
vendored
Normal file
1
components/com_pagebuilderck/assets/jquery-uick.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
837
components/com_pagebuilderck/assets/pagebuilderck.css
Normal file
837
components/com_pagebuilderck/assets/pagebuilderck.css
Normal file
@@ -0,0 +1,837 @@
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
/* Fix for Firefox where the elements go out of the page in edition mode */
|
||||
.edit.item-page fieldset,
|
||||
#item-form fieldset {
|
||||
/*display: table-cell;
|
||||
min-width: auto;*/
|
||||
}
|
||||
|
||||
/* For elements to get the correct size */
|
||||
#workspaceck *, #popup_editionck *, #menuck *, .pagebuilderck * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#workspaceck .inner:before, .pagebuilderck .inner:before {
|
||||
border-radius: inherit;
|
||||
}
|
||||
|
||||
/* For equal heights */
|
||||
.blockck > .inner {
|
||||
/*height: 100%;*/
|
||||
box-sizing: border-box;
|
||||
flex: 1 1 auto;
|
||||
/*overflow: hidden;*/ /* fix for IE, to remove unwanted space */
|
||||
}
|
||||
|
||||
.pagebuilderck {
|
||||
/*overflow-x: hidden;*/ /* do not use, causes scroll bar to appear : fix for animation that are outside the screen */
|
||||
}
|
||||
|
||||
.pagebuilderck img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.workspaceck.ckresponsiveactive:not([ckresponsiverange="5"]) .rowck > .inner,
|
||||
.rowck.ckadvancedlayout > .inner,
|
||||
.rowck > .inner {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ---------------------------------------
|
||||
Responsive design code
|
||||
Needed for V1 B/C
|
||||
-----------------------------------------*/
|
||||
|
||||
@media screen and (max-width: 524px) {
|
||||
|
||||
.pagebuilderck .row-fluid:not([class*="ckstack"]) .ckhidephone {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid:not([class*="ckstack"]) .blockck[class*="span"] {
|
||||
display: block;
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
.rowck.row-fluid:not([class*="ckstack"]) > .inner {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width: 525px) {
|
||||
.pagebuilderck .row-fluid:not([class*="ckstack"]) .ckhidedesktop {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.pagebuilderck {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.pagebuilderck img, .workspaceck img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.blockck {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
float: left;
|
||||
min-height: 1px; /* needed else the empty blocks will not take place */
|
||||
}
|
||||
|
||||
.rowck > .inner {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.rowck > .inner:before,
|
||||
.rowck > .inner:after {
|
||||
display: none;;
|
||||
}
|
||||
|
||||
/*------------- default width for columns (from bootstrap) ------------------*/
|
||||
.pagebuilderck .row-fluid {
|
||||
width: 100%;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid:before,
|
||||
.pagebuilderck .row-fluid:after {
|
||||
display: table;
|
||||
line-height: 0;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid [class*="span"] {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 100%;
|
||||
min-height: 30px;
|
||||
margin-left: 2.127659574468085%;
|
||||
*margin-left: 2.074468085106383%;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid [class*="span"]:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .controls-row [class*="span"] + [class*="span"] {
|
||||
margin-left: 2.127659574468085%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span12 {
|
||||
width: 100%;
|
||||
*width: 99.94680851063829%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span11 {
|
||||
width: 91.48936170212765%;
|
||||
*width: 91.43617021276594%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span10 {
|
||||
width: 82.97872340425532%;
|
||||
*width: 82.92553191489361%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span9 {
|
||||
width: 74.46808510638297%;
|
||||
*width: 74.41489361702126%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span8 {
|
||||
width: 65.95744680851064%;
|
||||
*width: 65.90425531914893%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span7 {
|
||||
width: 57.44680851063829%;
|
||||
*width: 57.39361702127659%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span6 {
|
||||
width: 48.93617021276595%;
|
||||
*width: 48.88297872340425%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span5 {
|
||||
width: 40.42553191489362%;
|
||||
*width: 40.37234042553192%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span4 {
|
||||
width: 31.914893617021278%;
|
||||
*width: 31.861702127659576%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span3 {
|
||||
width: 23.404255319148934%;
|
||||
*width: 23.351063829787233%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span2 {
|
||||
width: 14.893617021276595%;
|
||||
*width: 14.840425531914894%;
|
||||
}
|
||||
|
||||
.pagebuilderck .row-fluid .span1 {
|
||||
width: 6.382978723404255%;
|
||||
*width: 6.329787234042553%;
|
||||
}
|
||||
|
||||
/*------------- default jquery ui styles ------------------*/
|
||||
.cktype .ui-helper-clearfix::before, .cktype .ui-helper-clearfix::after {
|
||||
border-collapse: collapse;
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
.cktype .ui-helper-clearfix::after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/*------------- styles for accordion ------------------*/
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-header {
|
||||
background: #fff;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
margin: 2px 0 0 0;
|
||||
padding: .5em .5em .5em .7em;
|
||||
min-height: 0; /* support: IE7 */
|
||||
font-size: 100%;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 0;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-icons {
|
||||
padding-left: 2.2em;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-icons .ui-accordion-icons {
|
||||
padding-left: 2.2em;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
||||
position: absolute;
|
||||
left: .5em;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-content {
|
||||
padding: 1em 2.2em;
|
||||
border-top: 0;
|
||||
overflow: auto;
|
||||
border: 1px solid #ddd;
|
||||
border-top: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-icon {
|
||||
display: block;
|
||||
text-indent: -99999px;
|
||||
overflow: hidden;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
||||
position: absolute;
|
||||
left: .5em;
|
||||
top: 50%;
|
||||
margin-top: -4px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-icon-triangle-1-e {
|
||||
height: 0;
|
||||
width: 0;
|
||||
border-color: transparent transparent transparent #ddd;
|
||||
border-style: solid;
|
||||
border-width: 4px 0 4px 6px;
|
||||
}
|
||||
.cktype:not([data-type="faq"]) .ui-icon-triangle-1-s {
|
||||
height: 0;
|
||||
width: 0;
|
||||
border-color: #ddd transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 6px 4px 0 4px;
|
||||
}
|
||||
|
||||
.cktype:not([data-type="faq"]) .ui-accordion .ui-accordion-header svg {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/*------------- styles for tabs ------------------*/
|
||||
.cktype .ui-tabs {
|
||||
border: none;
|
||||
background: none;
|
||||
border-radius: 0;
|
||||
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
||||
padding: .2em;
|
||||
}
|
||||
.cktype .ui-tabs::after {
|
||||
display: block;
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-nav {
|
||||
border: none;
|
||||
background: none;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
}
|
||||
.cktype > .ui-tabs.vertical_tabsck > .ui-tabs-nav {
|
||||
float: left;
|
||||
width: 200px;
|
||||
}
|
||||
.cktype > .ui-tabs.vertical_tabsck > .ui-tabs-nav ~ .tabck {
|
||||
margin-left: 200px;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-nav li {
|
||||
background: #fff;
|
||||
list-style: none;
|
||||
float: left;
|
||||
position: relative;
|
||||
top: 0;
|
||||
margin: 1px .2em 0 0;
|
||||
border-color: #ddd;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-bottom-width: 0;
|
||||
padding: 0;
|
||||
/*white-space: nowrap;*/
|
||||
}
|
||||
|
||||
.cktype > .ui-tabs.vertical_tabsck > .ui-tabs-nav > li {
|
||||
float: none;
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
.cktype > .ui-tabs.vertical_tabsck > .ui-tabs-nav > li > a {
|
||||
display: block;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.cktype .ui-tabs .ui-tabs-nav li.ui-state-default {
|
||||
background: #eee;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
||||
background: #fff;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
|
||||
float: left;
|
||||
padding: .5em 1em;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.cktype .ui-tabs:not(.vertical_tabsck) .ui-tabs-nav li.ui-tabs-active {
|
||||
margin-bottom: -1px;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
|
||||
.cktype .ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
|
||||
.cktype .ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
|
||||
cursor: text;
|
||||
}
|
||||
.cktype .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
|
||||
cursor: pointer;
|
||||
}
|
||||
.cktype .ui-tabs .ui-tabs-panel {
|
||||
background: #fff;
|
||||
display: block;
|
||||
border-width: 0;
|
||||
padding: 1em 1.4em;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.cktype .ui-tabs.vertical_tabsck .ui-tabs-nav li svg {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/*------------- styles for button ------------------*/
|
||||
|
||||
.cktype > a.buttonck {
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
/*------------- styles for message ------------------*/
|
||||
.messageck > div {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.alertck {
|
||||
padding: 8px 35px 8px 14px;
|
||||
margin-bottom: 18px;
|
||||
margin-top: 9px;
|
||||
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
|
||||
background-color: #fcf8e3;
|
||||
border: 1px solid #fbeed5;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.alertck,
|
||||
.alertck .messageck_title {
|
||||
color: #c09853;
|
||||
}
|
||||
.alertck .messageck_title {
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
}
|
||||
.alertck p {
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
.alertck .close {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
right: -21px;
|
||||
line-height: 18px;
|
||||
}
|
||||
.alertck-success {
|
||||
background-color: #dff0d8;
|
||||
border-color: #d6e9c6;
|
||||
color: #468847;
|
||||
}
|
||||
.alertck-success .messageck_title {
|
||||
color: #468847;
|
||||
}
|
||||
.alertck-danger,
|
||||
.alertck-error {
|
||||
background-color: #f2dede;
|
||||
border-color: #eed3d7;
|
||||
color: #b94a48;
|
||||
}
|
||||
.alertck-danger .messageck_title,
|
||||
.alertck-error .messageck_title {
|
||||
color: #b94a48;
|
||||
}
|
||||
.alertck-info {
|
||||
background-color: #d9edf7;
|
||||
border-color: #bce8f1;
|
||||
color: #3a87ad;
|
||||
}
|
||||
.alertck-info .messageck_title {
|
||||
color: #3a87ad;
|
||||
}
|
||||
|
||||
/*------------- styles for separator ------------------*/
|
||||
|
||||
.separatorck {
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
color: #000;
|
||||
}
|
||||
.separatorck .separatorck_before,
|
||||
.separatorck .separatorck_after {
|
||||
background-color: #000;
|
||||
display: inline-block;
|
||||
height: 1px;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
width: 50%;
|
||||
}
|
||||
.separatorck .separatorck_before {
|
||||
right: 0.5em;
|
||||
margin-left: -50%;
|
||||
}
|
||||
.separatorck .separatorck_after {
|
||||
left: 0.5em;
|
||||
margin-right: -50%;
|
||||
}
|
||||
|
||||
/*------------- best compatibility for image effect CK ------------------*/
|
||||
|
||||
.imageck figure.imageeffectck {
|
||||
/*display: block;
|
||||
margin: 0;*/
|
||||
}
|
||||
|
||||
/*------------- styles for video and other iframes ------------------*/
|
||||
.videock, .iframeck {
|
||||
position: relative;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding-bottom: 56.25%;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.videock iframe, .videock video,
|
||||
.iframeck iframe, .iframeck video {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
left: 0;
|
||||
top: 0;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.videockbackground {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
z-index: -1;
|
||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.hasvideockbackground {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="icontext"] > .inner,
|
||||
.pagebuilderck [data-layout] > .inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="button"][data-layout] > .inner {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/*.pagebuilderck [data-type="icontext"] .iconck,*/
|
||||
.pagebuilderck [data-layout="left"] .iconck,
|
||||
.pagebuilderck [data-layout="right"] .iconck {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-layout] .titleck {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="icontext"][data-layout="bottom"] > .inner,
|
||||
.pagebuilderck [data-layout="bottom"] > .inner {
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="icontext"][data-layout="left"] > .inner,
|
||||
.pagebuilderck [data-layout="left"] > .inner {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="icontext"][data-layout="right"] > .inner,
|
||||
.pagebuilderck [data-layout="right"] > .inner {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
/* for shape divider */
|
||||
.pbck-divider-container {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pbck-divider-container > svg {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
transform: translate(-50%);
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.pbck-divider-container.pbck-divider-top {
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
.pbck-divider-container.pbck-divider-bottom {
|
||||
bottom: -1px;
|
||||
}
|
||||
|
||||
.pbck-divider-container.pbck-divider-over {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.pbck-divider-container.pbck-divider-under {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.ckflip-horizontal > svg {
|
||||
transform: rotateY(180deg) translate(50%);
|
||||
}
|
||||
|
||||
.ckflip-vertical > svg {
|
||||
transform: rotateX(180deg) translate(-50%);
|
||||
}
|
||||
|
||||
.ckflip-horizontal.ckflip-vertical > svg {
|
||||
transform: rotate(180deg) translate(50%);
|
||||
}
|
||||
|
||||
.valign-top {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.valign-center {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.valign-bottom {
|
||||
align-self: flex-end;
|
||||
}
|
||||
|
||||
.ckcustomcssfield {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rowck > .inner {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/** for content type layout **/
|
||||
.pagebuilderck div[class*="-group"].inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.pagebuilderck div[class*="-group"][data-align="horizontal"].inner,
|
||||
.pagebuilderck [data-align="horizontal"] {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
/** for columns space between **/
|
||||
[data-columns-space-between="1"] > .inner,
|
||||
.rowck > .inner {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
[data-columns-space-between="0"] > .inner {
|
||||
justify-content: normal;
|
||||
}
|
||||
|
||||
.pbck-has-link-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
a.pbck-link-wrap {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
background: transparent;
|
||||
color: transparent;
|
||||
text-indent: -999em;
|
||||
}
|
||||
|
||||
a.pbck-link-wrap[data-custom-text="1"] {
|
||||
color: inherit;
|
||||
text-indent: inherit;
|
||||
}
|
||||
|
||||
a.pbck-link-wrap[data-link-icon="1"]:hover::after,
|
||||
.ckfakehover:hover > a.pbck-link-wrap[data-link-icon="1"]::after {
|
||||
display: block;
|
||||
content: "\f0c1";
|
||||
text-indent: 0;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
width: 100%;
|
||||
color: inherit;
|
||||
text-align: center;
|
||||
transform: translate(0, -50%);
|
||||
font-family: FontAwesome;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pagebuilderck audio {
|
||||
min-height: 54px;
|
||||
}
|
||||
|
||||
.messageck button.close {
|
||||
padding: 3px;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
-webkit-appearance: none;
|
||||
float: right;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
line-height: 18px;
|
||||
color: #000;
|
||||
text-shadow: 0 1px 0 #ffffff;
|
||||
opacity: 0.2;
|
||||
filter: alpha(opacity=20);
|
||||
}
|
||||
|
||||
.messageck button.close:hover {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
opacity: 0.4;
|
||||
filter: alpha(opacity=40);
|
||||
}
|
||||
|
||||
.pagebuilderck .videock {
|
||||
position: relative;
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.pagebuilderck .videock-youtube-thumb {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.pagebuilderck .videock i-frame:before {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
height: 50px;
|
||||
width: 70px;
|
||||
background: rgba(0,0,0, 0.7);
|
||||
border-radius: 50% / 15%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pagebuilderck .videock:hover i-frame:before {
|
||||
background: red;
|
||||
}
|
||||
|
||||
.pagebuilderck .videock i-frame:after {
|
||||
border-style: solid;
|
||||
border-width: 1em 0 1em 1.732em;
|
||||
border-color: transparent transparent transparent rgba(255, 255, 255, 1);
|
||||
content: ' ';
|
||||
font-size: 0.75em;
|
||||
height: 0;
|
||||
margin: -1em 0 0 -0.75em;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cktype[data-type="faq"] [data-accordion="1"] .faqck-heading {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pagebuilderck [data-type="icontext"] .contentck {
|
||||
flex: 1 1;
|
||||
}
|
||||
|
||||
.pbck-divider-container svg {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.separatorck[data-text="0"] .separatorck_after, .separatorck[data-text="0"] .separatorck_text {
|
||||
display: none;
|
||||
}
|
||||
.separatorck[data-text="0"] .separatorck_before {
|
||||
width: 100%;
|
||||
margin-left: initial;
|
||||
position: static;
|
||||
}
|
||||
|
||||
.pagebuilderck:not(.workspaceck) .faqsck[data-display="accordion"] .faqck-heading + div {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.2s ease-out;
|
||||
}
|
||||
|
||||
|
||||
.faqsck[data-display="accordion"] .faqck-heading {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.noanimationck {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.moduleck svg,
|
||||
.pageck svg {
|
||||
max-width: 30px;
|
||||
max-height: 30px;
|
||||
fill: rgba(0,0,0,0.3);
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.workspaceck .moduleck,
|
||||
.workspaceck .pageck {
|
||||
border: 4px solid rgba(0,0,0,0.3);
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
margin: 3px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.moduleck_content {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.modulerow_title,
|
||||
.pagerow_title {
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.cktype[data-type="list"][data-orientation="horizontal"] .pbck_list_item,
|
||||
.cktype[data-type="list"] .pbck_list_has_columns .pbck_list_item {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.cktype[data-type="list"] .pbck_list_has_columns .pbck_list_item {
|
||||
min-width: 60%; /* used to avoid the items to align horizontally in the same row of the column */
|
||||
}
|
||||
|
||||
.pbckicon {
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.pbck_list_item {
|
||||
display: flex;
|
||||
}
|
||||
.pbck_list_item .iconck {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
/* for social icons */
|
||||
a.pbck_social_icon {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.pbck_social_icon:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pbck_social_icons {
|
||||
display: flex;
|
||||
}
|
||||
146
components/com_pagebuilderck/assets/pagebuilderck.js
Normal file
146
components/com_pagebuilderck/assets/pagebuilderck.js
Normal file
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
jQuery(document).ready(function($){
|
||||
var hashtag = window.location.hash;
|
||||
$('.accordionsck,.faqsck[data-accordion="1"]').each(function() {
|
||||
var activetab = typeof($(this).attr('activetab')) != 'undefined' ? parseInt($(this).attr('activetab')) : false;
|
||||
if (window.location.hash) {
|
||||
if (hashtag.substr(0, 5) == '#tab-') {
|
||||
var tabindex = 0;
|
||||
$('h3 > .itemtitleck', $(this)).each(function() {
|
||||
if ('#tab-' + $(this).text().toLowerCase().replace(/ /g, '-') == decodeURI(hashtag)) {
|
||||
activetab = tabindex;
|
||||
}
|
||||
tabindex++;
|
||||
});
|
||||
}
|
||||
}
|
||||
$(this).accordionck({
|
||||
header: "> h3",
|
||||
collapsible: true,
|
||||
active: activetab,
|
||||
heightStyle: "content",
|
||||
scrollToActive: false
|
||||
});
|
||||
$('> h3', $(this)).click(function() {
|
||||
$(window).trigger('resize');
|
||||
});
|
||||
});
|
||||
$('.tabsck').each(function() {
|
||||
var activetab = parseInt($(this).attr('activetab'));
|
||||
if (window.location.hash) {
|
||||
if (hashtag.substr(0, 5) == '#tab-') {
|
||||
var tabindex = 0;
|
||||
$('> ol > li a', $(this)).each(function() {
|
||||
if ('#tab-' + $(this).text().toLowerCase().replace(/ /g, '-') == decodeURI(hashtag)) {
|
||||
activetab = tabindex;
|
||||
}
|
||||
tabindex++;
|
||||
});
|
||||
}
|
||||
}
|
||||
$(this).tabsck({
|
||||
active: activetab
|
||||
});
|
||||
$('.ui-tabs-nav > li', $(this)).click(function() {
|
||||
$(window).trigger('resize');
|
||||
});
|
||||
});
|
||||
$('.blockck, .rowck').each(function() {
|
||||
var $this = $(this);
|
||||
$window = $(window);
|
||||
|
||||
// function to be called whenever the window is scrolled or resized
|
||||
function update($this){
|
||||
var top = $this.offset().top;
|
||||
var pos = $window.scrollTop();
|
||||
var height = $this.height();
|
||||
var windowheight = $(window).height();
|
||||
|
||||
// check if totally above or totally below viewport
|
||||
if (top + height < pos || top > pos + windowheight) {
|
||||
if (! $this.hasClass('noreplayck')) $this.removeClass('animateck');
|
||||
return;
|
||||
}
|
||||
// animate the content if found
|
||||
if (top < pos || top > pos + windowheight-30) {
|
||||
// is out of the screen
|
||||
} else {
|
||||
$this.addClass('animateck');
|
||||
}
|
||||
}
|
||||
if (PAGEBUILDERCK_DISABLE_ANIMATIONS && PAGEBUILDERCK_DISABLE_ANIMATIONS >= $window.width()) {
|
||||
$this.addClass('noanimationck');
|
||||
$this.addClass('animateck');
|
||||
return;
|
||||
} else {
|
||||
update($this);
|
||||
$this.removeClass('noanimationck');
|
||||
$window.scroll(function() { update($this); });
|
||||
}
|
||||
});
|
||||
$('.rowckfullwidth .rowckfullwidth').removeClass('rowckfullwidth'); // remove for imbricated rows
|
||||
$('.rowckfullwidth').each(function() {
|
||||
var $this = $(this);
|
||||
$window = $(window);
|
||||
$this.css('position', 'relative');
|
||||
$this.css('z-index', '1');
|
||||
function update($this){
|
||||
var w = $window.width();
|
||||
if ($this.offset().left != 0) $this.css('margin-left', '-=' + $this.offset().left);
|
||||
$this.css('width', w);
|
||||
}
|
||||
update($this);
|
||||
$window.on('resize load', function() { update($this); });
|
||||
});
|
||||
$('.messageck .close').click(function() {
|
||||
$(this).parent().hide();
|
||||
});
|
||||
|
||||
var faqAccordionEffect = 'single'; // single or multiple, allow which are opened in the same time
|
||||
$('.faqsck[data-display="accordion"]').each(function() {
|
||||
var $faq = $(this);
|
||||
$faq.find('.faqck-heading').on('click', function() {
|
||||
// var $h = $(this);
|
||||
if (faqAccordionEffect == 'single') {
|
||||
$faq.find('.faqck-heading').not(this).removeClass('faqsck-open').find('+ div').each(function() {
|
||||
this.style.maxHeight = null;
|
||||
});
|
||||
}
|
||||
var panel = this.nextElementSibling;
|
||||
if (panel.style.maxHeight) {
|
||||
panel.style.maxHeight = null;
|
||||
this.classList.remove('faqsck-open');
|
||||
} else {
|
||||
panel.style.maxHeight = panel.scrollHeight + "px";
|
||||
this.classList.add('faqsck-open');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Replace the iframe to load the youtube video
|
||||
*
|
||||
* @returns void
|
||||
*/
|
||||
function ckLoadYoutube(thumb) {
|
||||
var videock = $ck(thumb).parent();
|
||||
var framecode = videock.find('i-frame').get(0).outerHTML;
|
||||
framecode = framecode.replace('<i-frame', '<iframe');
|
||||
framecode = framecode.replace('</i-frame>', '</iframe>');
|
||||
videock.find('i-frame').get(0).outerHTML = framecode;
|
||||
var url = videock.find('iframe').attr('src');
|
||||
if (url.indexOf("?") == -1) {
|
||||
url += '?autoplay=1';
|
||||
} else {
|
||||
url += '&autoplay=1';
|
||||
}
|
||||
videock.find('iframe').attr('src', url);
|
||||
}
|
||||
85
components/com_pagebuilderck/assets/pagebuilderck_edition.js
Normal file
85
components/com_pagebuilderck/assets/pagebuilderck_edition.js
Normal file
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
var $ck = jQuery.noConflict();
|
||||
|
||||
$ck(document).ready(function(){
|
||||
ckInitTemplateFrontEdition();
|
||||
// var workspaceparent = $ck('#workspaceparentck');
|
||||
// $ck(workspaceparent.parents('.controls')[0]).css('margin-left', '0');
|
||||
});
|
||||
|
||||
// function ckModuleEditFullScreen() {
|
||||
// $ck('.pagebuilderckfrontend').toggleClass('ckfrontendfullwidth');
|
||||
// }
|
||||
|
||||
function ckInitTemplateFrontEdition() {
|
||||
$ck('.tck-edition').each(function() {
|
||||
var nbpbckmodules = $ck(this).find('.tck-module-container[data-type="mod_pagebuilderck"]').length;
|
||||
if (nbpbckmodules === 0) {
|
||||
$ck(this).addClass('tck-edition-empty');
|
||||
ckAddNewModuleButton($ck(this));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ckAddNewModuleButton(bloc) {
|
||||
bloc.append('<div class="tck-more" onclick="ckAddNewPagebuilderModule(this)" title="' + Joomla.JText._('CK_ADD_NEW_MODULE', 'Add a new Page Builder CK module') + '">+</div>');
|
||||
}
|
||||
|
||||
function ckAddNewPagebuilderModule(btn) {
|
||||
var container = $ck($ck(btn).parents('.tck-edition')[0]);
|
||||
var position = container.attr('data-position');
|
||||
var myurl = 'index.php?option=com_pagebuilderck&task=templateedition.createmodule&' + PAGEBUILDERCK.TOKEN + '=1';
|
||||
$ck.ajax({
|
||||
type: "POST",
|
||||
url: myurl,
|
||||
dataType: 'json',
|
||||
data: {
|
||||
position: position
|
||||
}
|
||||
}).done(function(result) {
|
||||
container.append('<div class="workspaceck pbck-module-edition" data-id="' + result.id + '"></div>');
|
||||
var module = container.find('[data-id="' + result.id + '"]');
|
||||
ckAddRow(false, module);
|
||||
ckInitWorkspace(module);
|
||||
btn.remove();
|
||||
container.removeClass('tck-edition-empty');
|
||||
}).fail(function() {
|
||||
alert('A problem occured when trying to create the module. Please retry.');
|
||||
});
|
||||
}
|
||||
|
||||
function ckTemplateEditionSave() {
|
||||
$ck('.pbck-module-edition').each(function() {
|
||||
var module = $ck(this);
|
||||
var moduleid = module.attr('data-id');
|
||||
var tmp = module.html();
|
||||
// var tmp = module.clone();
|
||||
ckCleanInterfaceBeforeSave(module);
|
||||
var modulehtml = module.html();
|
||||
ckInitWorkspace(module);
|
||||
// module.html(tmp);
|
||||
|
||||
var myurl = 'index.php?option=com_pagebuilderck&task=templateedition.savemodule&' + PAGEBUILDERCK.TOKEN + '=1';
|
||||
$ck.ajax({
|
||||
type: "POST",
|
||||
url: myurl,
|
||||
data: {
|
||||
html: modulehtml,
|
||||
id: moduleid
|
||||
}
|
||||
}).done(function(result) {
|
||||
|
||||
}).fail(function() {
|
||||
alert('A problem occured when trying to save the module ID ' + moduleid + '. Please retry.');
|
||||
// $ck(currentbloc).remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
65
components/com_pagebuilderck/assets/parallaxbackground.js
Normal file
65
components/com_pagebuilderck/assets/parallaxbackground.js
Normal file
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* @name Parallax Background Widget for Page Builder CK
|
||||
* @copyright Copyright (C) 2019. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
var PBCK_ParallaxBackground = function(container, options) {
|
||||
var defaults = {
|
||||
speed: '50' // speed factor
|
||||
};
|
||||
|
||||
if (container == '#body') container = document.body;
|
||||
var opts = $.extend(defaults, options);
|
||||
var els = $(container);
|
||||
var $window = $(window);
|
||||
|
||||
els.each(function() {
|
||||
var el = $(this);
|
||||
var bgimage = el.css('background-image');
|
||||
|
||||
if (bgimage == 'none' && el.find('> .inner').length) {
|
||||
new PBCK_ParallaxBackground(el.find('> .inner'), opts);
|
||||
return;
|
||||
}
|
||||
if (el.attr('data-parallax')) opts.speed = el.attr('data-parallax');
|
||||
|
||||
el.css({
|
||||
'background-position': 'center 0px',
|
||||
'background-size': 'cover',
|
||||
'background-attachment': 'fixed'
|
||||
});
|
||||
|
||||
moveElement(el);
|
||||
$window.bind('scroll load', function() { moveElement(el); });
|
||||
$window.bind('resize', function() { moveElement(el); });
|
||||
});
|
||||
|
||||
function moveElement(el) {
|
||||
var winY = $window.scrollTop();
|
||||
el.top = el.offset().top;
|
||||
el.height = el.outerHeight();
|
||||
|
||||
// check if totally above or totally below viewport
|
||||
if (
|
||||
el.top + el.height < winY // bottom of element is over top of screen
|
||||
|| el.top > winY + $window.height() // top of element is under bottom of screen
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
var bgy = (- Math.round( ((winY - el.top ) ) )) - (winY * opts.speed / 100);
|
||||
|
||||
// move the background image
|
||||
el.css('background-position', "center " + bgy/10 + "px");
|
||||
}
|
||||
};
|
||||
window.PBCK_ParallaxBackground = PBCK_ParallaxBackground;
|
||||
})(jQuery);
|
||||
|
||||
// init the effect on rows that have the parallax attribute
|
||||
jQuery(document).ready(function(){
|
||||
new PBCK_ParallaxBackground('.rowck[data-parallax]');
|
||||
});
|
||||
15
components/com_pagebuilderck/controller.php
Normal file
15
components/com_pagebuilderck/controller.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controller.php');
|
||||
14
components/com_pagebuilderck/controllers/browse.php
Normal file
14
components/com_pagebuilderck/controllers/browse.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/browse.php');
|
||||
14
components/com_pagebuilderck/controllers/contenttype.php
Normal file
14
components/com_pagebuilderck/controllers/contenttype.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/contenttype.php');
|
||||
14
components/com_pagebuilderck/controllers/fonts.php
Normal file
14
components/com_pagebuilderck/controllers/fonts.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/fonts.php');
|
||||
79
components/com_pagebuilderck/controllers/frontedition.php
Normal file
79
components/com_pagebuilderck/controllers/frontedition.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/ckcontroller.php';
|
||||
|
||||
Use Pagebuilderck\CKFof;
|
||||
Use Pagebuilderck\CKController;
|
||||
|
||||
class PagebuilderckControllerFrontedition extends CKController
|
||||
{
|
||||
|
||||
public function createModule() {
|
||||
// security check
|
||||
PagebuilderckHelper::checkAjaxToken();
|
||||
|
||||
$position = $this->input->get('position', 'position-8');
|
||||
$pagedition = $this->input->get('pagedition', '', 'raw');
|
||||
|
||||
// create the module
|
||||
$data = array();
|
||||
$data['id'] = 0;
|
||||
$data['title'] = 'Page Builder CK';
|
||||
$data['ordering'] = 0;
|
||||
$data['checked_out'] = 0;
|
||||
$data['published'] = 1;
|
||||
$data['position'] = $position;
|
||||
$data['module'] = 'mod_pagebuilderck';
|
||||
$data['access'] = 1;
|
||||
$data['showtitle'] = 0;
|
||||
$data['clint_id'] = 0;
|
||||
$data['language'] = '*';
|
||||
$data['params'] = '{"pagedition":"' . addslashes($pagedition) . '"}';
|
||||
|
||||
$id = CKFof::dbStore('#__modules', $data);
|
||||
// if error, return
|
||||
if (! $id) {
|
||||
echo '{"id" : "0"}';
|
||||
exit;
|
||||
}
|
||||
|
||||
// assign to all pages
|
||||
$data = array();
|
||||
$data['id'] = 0; // to force inserting new value
|
||||
$data['moduleid'] = (int)$id;
|
||||
$data['menuid'] = 0;
|
||||
|
||||
$assign = CKFof::dbStore('#__modules_menu', $data);
|
||||
|
||||
echo '{"id" : "' . $id . '"}';
|
||||
exit;
|
||||
}
|
||||
|
||||
public function savemodules() {
|
||||
$modules = $this->input->get('modules', array(), 'array');
|
||||
|
||||
foreach($modules as $module) {
|
||||
$query = "SELECT * FROM #__modules WHERE id = " . (int)$module['id'];
|
||||
$data = CKFof::dbLoadObject($query);
|
||||
$params = json_decode($data->params);
|
||||
$params->pagedition = $module['code'];
|
||||
$data->params = json_encode($params);
|
||||
|
||||
$id = CKFof::dbStore('#__modules', $data);
|
||||
// if error, return
|
||||
if (! $id) {
|
||||
echo '{"id" : "0"}';
|
||||
}
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
1
components/com_pagebuilderck/controllers/index.html
Normal file
1
components/com_pagebuilderck/controllers/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
14
components/com_pagebuilderck/controllers/interface.php
Normal file
14
components/com_pagebuilderck/controllers/interface.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/interface.php');
|
||||
95
components/com_pagebuilderck/controllers/page.php
Normal file
95
components/com_pagebuilderck/controllers/page.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Pagebuilderck\CKController;
|
||||
use Pagebuilderck\CKFof;
|
||||
|
||||
/**
|
||||
* Controller for single page view
|
||||
*
|
||||
* @since 1.5.19
|
||||
*/
|
||||
class PagebuilderckControllerPage extends CKController
|
||||
{
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function apply() {
|
||||
return $this->save(0, 'apply');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save data.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function save($task = null) {
|
||||
// Check for request forgeries.
|
||||
CKFof::checkToken();
|
||||
|
||||
// Initialise variables.
|
||||
$model = $this->getModel();
|
||||
|
||||
// Initialise variables.
|
||||
$appendToUrl = $this->input->get('tmpl') ? '&tmpl=' . $this->input->get('tmpl') : '';
|
||||
$layout = $this->input->get('layout') == 'modal' ? '&layout=modal' : '&layout=edit';
|
||||
|
||||
// Get the user data.
|
||||
$data = $this->input->getArray($_POST);
|
||||
|
||||
// Check for errors.
|
||||
if ($data === false) {
|
||||
CKFof::enqueueMessage('ERROR : NO DATA SAVED', 'warning');
|
||||
// Redirect back to the edit screen.
|
||||
CKFof::redirect(PAGEBUILDERCK_BASE_URL . '&view=page'.$layout.'&id=' . $id . $appendToUrl);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Attempt to save the data.
|
||||
$return = $model->save($data);
|
||||
|
||||
// Check for errors.
|
||||
if ($return === false) {
|
||||
// Redirect back to the edit screen.
|
||||
CKFof::enqueueMessage(JText::_('CK_ITEM_SAVED_FAILED'), 'warning');
|
||||
CKFof::redirect(PAGEBUILDERCK_BASE_URL . '&view=page' . $layout . '&id=' . $id . $appendToUrl);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Redirect to the list screen.
|
||||
CKFof::enqueueMessage(JText::_('CK_ITEM_SAVED_SUCCESS'));
|
||||
|
||||
$model->checkin($return);
|
||||
|
||||
switch ($task)
|
||||
{
|
||||
case 'apply':
|
||||
// Redirect back to the edit screen.
|
||||
CKFof::redirect(PAGEBUILDERCK_BASE_URL . '&view=page' . $layout . '&id=' . $return . $appendToUrl);
|
||||
break;
|
||||
default:
|
||||
// Redirect to the list screen.
|
||||
CKFof::redirect(PAGEBUILDERCK_BASE_URL . '&view=page&id=' . $return, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
$id = $this->input->get('id', 0, 'int');
|
||||
if (! $this->getModel()->checkin($id)) {
|
||||
CKFof::redirect('index.php?option=com_pagebuilderck&view=page&id=' . $id, JLIB_APPLICATION_ERROR_CHECKIN_FAILED, 'warning');
|
||||
}
|
||||
|
||||
//Redirect back to list
|
||||
CKFof::redirect('index.php?option=com_pagebuilderck&view=page&id=' . $id);
|
||||
}
|
||||
}
|
||||
14
components/com_pagebuilderck/controllers/pixabay.php
Normal file
14
components/com_pagebuilderck/controllers/pixabay.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/pixabay.php');
|
||||
14
components/com_pagebuilderck/controllers/styles.php
Normal file
14
components/com_pagebuilderck/controllers/styles.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
// load the main controller
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/controllers/styles.php');
|
||||
BIN
components/com_pagebuilderck/fonts/FontAwesome.otf
Normal file
BIN
components/com_pagebuilderck/fonts/FontAwesome.otf
Normal file
Binary file not shown.
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.eot
Normal file
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
2671
components/com_pagebuilderck/fonts/fontawesome-webfont.svg
Normal file
2671
components/com_pagebuilderck/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 434 KiB |
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.ttf
Normal file
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.woff
Normal file
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.woff2
Normal file
BIN
components/com_pagebuilderck/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
1
components/com_pagebuilderck/index.html
Normal file
1
components/com_pagebuilderck/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
@@ -0,0 +1,811 @@
|
||||
; license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
COM_PAGEBUILDERCK="Page Builder CK"
|
||||
CK_EDIT="Edit"
|
||||
CK_PUBLISHED="Published"
|
||||
CK_NUM="NUM"
|
||||
CK_APPLY="Apply"
|
||||
CK_FONT_NONE="None"
|
||||
CK_THUMB="Thumbnail"
|
||||
CK_INSTALL="Install"
|
||||
|
||||
; textes du menu
|
||||
|
||||
CK_MISE_FORME="Formatting"
|
||||
CK_TEXT="Text"
|
||||
CK_BACKGROUND="Background"
|
||||
CK_ADVANCED="Advanced"
|
||||
CK_MARGINS="Outside margins (margin)"
|
||||
CK_PADDINGS="Inside margins (padding)"
|
||||
CK_BORDERS="Borders"
|
||||
CK_TOP="Top"
|
||||
CK_BOTTOM="Bottom"
|
||||
CK_LEFT="Left"
|
||||
CK_RIGHT="Right"
|
||||
CK_TOPLEFT="Top left"
|
||||
CK_TOPRIGHT="Top right"
|
||||
CK_BOTTOMLEFT="Bottom left"
|
||||
CK_BOTTOMRIGHT="Bottom right"
|
||||
CK_ROUNDED_CORNERS="Rounded corners (border-radius)"
|
||||
CK_DIMENSIONS="Dimensions"
|
||||
CK_HEIGHT="Height"
|
||||
CK_WIDTH="Width"
|
||||
CK_POLICE="Font style"
|
||||
CK_ALIGN="Align"
|
||||
CK_SPACING="Spacing"
|
||||
CK_WORD="word"
|
||||
CK_LETTER="letter"
|
||||
CK_LINEHEIGHT="line-height"
|
||||
CK_NORMALLINK="Normal link"
|
||||
CK_HOVERLINK="Hover link"
|
||||
CK_BACKGROUNDIMAGE="Background image"
|
||||
CK_SELECT="Select"
|
||||
CK_NONE="None"
|
||||
CK_HORIZONTAL="Horizontal"
|
||||
CK_VERTICAL="Vertical"
|
||||
CK_HORIZONTAL_VERTICAL="Horizontal and vertical"
|
||||
CK_REPEAT="Repeat"
|
||||
CK_BACKGROUNDCOLOR="Background color"
|
||||
CK_BACKGROUNDPOSITION="Background position"
|
||||
CK_BACKGROUNDGRADIENT="Gradient"
|
||||
CK_GRADIENTPOSITION="position"
|
||||
CK_GRADIENTCOLOR="color"
|
||||
CK_STARTCOLOR="Start color"
|
||||
CK_STOP1COLOR="Color 2"
|
||||
CK_STOP2COLOR="Color 3"
|
||||
CK_ENDCOLOR="Color 4"
|
||||
CK_TOPTOBOTTOM="Top to bottom"
|
||||
CK_BOTTOMTOTOP="Bottom to top"
|
||||
CK_LEFTTORIGHT="Left to right"
|
||||
CK_RIGHTTOLEFT="Right to left"
|
||||
CK_DIRECTION="Direction"
|
||||
CK_SHADOW="Shadow"
|
||||
CK_BLUR="Blur"
|
||||
CK_SPREAD="Spread"
|
||||
CK_OFFSET="Offset"
|
||||
CK_CUSTOMCSS="Custom CSS"
|
||||
CK_BLOCK_STYLES="Block"
|
||||
CK_MODULES_STYLES="Modules"
|
||||
CK_MODULES_TITLES_STYLES="Module titles"
|
||||
CK_MENUS_STYLES="Menu"
|
||||
CK_TITLES="Titles"
|
||||
CK_FIRST_LEVEL="LEVEL 1"
|
||||
CK_FIRST_SUBLEVEL="SUBLEVEL"
|
||||
CK_SECOND_SUBLEVEL="SUBLEVEL 2"
|
||||
CK_FIRST_LEVEL_CONTAINER="container"
|
||||
CK_FIRST_LEVEL_MENULINK="link normal"
|
||||
CK_FIRST_LEVEL_MENULINK_HOVER="link hover"
|
||||
CK_FIRST_LEVEL_MENULINK_ACTIVE="link active"
|
||||
CK_FIRST_SUBLEVEL_CONTAINER="container"
|
||||
CK_FIRST_SUBLEVEL_MENULINK="link normal"
|
||||
CK_FIRST_SUBLEVEL_MENULINK_HOVER="link hover"
|
||||
CK_FIRST_SBULEVEL_MENULINK_ACTIVE="link active"
|
||||
CK_SECOND_SUBLEVEL_CONTAINER="container"
|
||||
CK_H1="H1"
|
||||
CK_H2="H2"
|
||||
CK_H3="H3"
|
||||
CK_H4="H4"
|
||||
CK_H5="H5"
|
||||
CK_H6="H6"
|
||||
CK_COPYTOCLIPBOARD="Current styles copied in the clipboard !"
|
||||
CK_COPYFROMCLIPBOARD="Apply the clipboard styles ? This will replace all current styles."
|
||||
CK_CLIPBOARDEMPTY="The clipboard is empty"
|
||||
CK_TEXTINDENT ="indentation"
|
||||
CK_SUBMENU_FONTS ="Fonts"
|
||||
CK_NEW ="New"
|
||||
CK_ALL ="All"
|
||||
CK_BORDERRADIUS ="Border radius"
|
||||
CK_OPACITY ="% Opacity"
|
||||
CK_COLOR="Color"
|
||||
CK_SIZE="Size"
|
||||
CK_UNIT="Unit"
|
||||
CK_STYLE="Style"
|
||||
CK_COPY ="Copy"
|
||||
CK_PASTE ="Paste"
|
||||
CK_CANCEL="Cancel"
|
||||
CK_VALIDATE="Validate"
|
||||
CK_COPYALLCSS="COPY all CSS"
|
||||
CK_DEFAULT="Default"
|
||||
CK_NORMAL="Normal"
|
||||
CK_BOLD="Bold"
|
||||
CK_ITALIC="Italic"
|
||||
CK_UPPERCASE="Uppercase"
|
||||
CK_LOWERCASE="Lowercase"
|
||||
CK_UNDERLINE="Underline"
|
||||
CK_BACKGROUNDCOLORS="Colors"
|
||||
CK_MAINCOLOR="Main color"
|
||||
CK_BACKGROUND_SIZE="Size"
|
||||
|
||||
; interface
|
||||
COM_PAGEBUILDERCK_SELECT_CONTENT="Select a type of content"
|
||||
COM_PAGEBUILDERCK_CONTENT_TEXT="Text"
|
||||
COM_PAGEBUILDERCK_CONTENT_TEXT_DESC="Text with a visual editor"
|
||||
COM_PAGEBUILDERCK_CONTENT_IMAGE="Single Image"
|
||||
COM_PAGEBUILDERCK_CONTENT_IMAGE_DESC="Single Image"
|
||||
COM_PAGEBUILDERCK_CONTENT_GALLERY="Images gallery"
|
||||
COM_PAGEBUILDERCK_CONTENT_GALLERY_DESC="A lightweight image gallery"
|
||||
COM_PAGEBUILDERCK_CONTENT_SEPARATOR="Separator"
|
||||
COM_PAGEBUILDERCK_CONTENT_SEPARATOR_DESC="Horizontal separator with text"
|
||||
COM_PAGEBUILDERCK_CONTENT_MESSAGE="Message box"
|
||||
COM_PAGEBUILDERCK_CONTENT_MESSAGE_DESC="A styled box for your message"
|
||||
COM_PAGEBUILDERCK_CONTENT_TABS="Horizontal tabs"
|
||||
COM_PAGEBUILDERCK_CONTENT_TABS_DESC="Tabs with custom content"
|
||||
COM_PAGEBUILDERCK_CONTENT_ACCORDION="Accordion"
|
||||
COM_PAGEBUILDERCK_CONTENT_ACCORDION_DESC="Custom text into an accordion"
|
||||
COM_PAGEBUILDERCK_ASK_FOR_MORE_CONTENTS="Do you need more types of content ? Contact me and submit your idea on https://forum.joomlack.fr/"
|
||||
COM_PAGEBUILDERCK_TITLE="Title"
|
||||
COM_PAGEBUILDERCK_CONTENT="Content area"
|
||||
COM_PAGEBUILDERCK_PARAMS="Params"
|
||||
CK_DECORATION="Borders"
|
||||
CK_CSS_EDIT="Edition area"
|
||||
CK_OUTSIDE="Outside"
|
||||
CK_INSIDE="Inside"
|
||||
CK_CLEAN="Clear"
|
||||
CK_PREVIEWAREA_TITLE="Direct preview"
|
||||
CK_UPDATE_NOTIFICATION="Update"
|
||||
CK_IS_OUTDATED="You don't have the latest version. The latest version is"
|
||||
CK_IS_UPTODATE="You have the latest version."
|
||||
COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_LABEL="Page"
|
||||
COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_DESC="Select the page to display"
|
||||
COM_PAGEBUILDERCK_PAGES_NAME="Pages"
|
||||
CK_BLOC_INFOS="Block"
|
||||
CK_BLOC_DESC="You can define here the styles of the block. A block is an HTML container that will load one or more content type (text, image, tabs , ...)."
|
||||
CK_TEXT_EDITION="Text edition"
|
||||
CK_TEXT_INFOS="Text"
|
||||
CK_TEXT_INFOS_DESC="Write the text you want using the editor. You can use it to fill your page with your own content."
|
||||
CK_IMAGE_EDITION="Single Image"
|
||||
CK_IMAGE_INFOS="Image Selection"
|
||||
CK_IMAGE_INFOS_DESC="Select an image to place in the block. You can select any image that is placed into the folder 'images' of your website."
|
||||
CK_ACCORDION_EDITION="Accordion edition"
|
||||
CK_ACCORDION_INFOS="Accordion content"
|
||||
CK_ACCORDION_INFOS_DESC="Manage your accordion here. Set the text for the headings, and use the editor to write your own custom text to put in each accordion area.You can also drag and drop the element to sort them instantly."
|
||||
CK_TABS_EDITION="Tabs edition"
|
||||
CK_TABS_INFOS="Tabs content"
|
||||
CK_TABS_INFOS_DESC="Manage your tabs here. Set the text for the tabs heading, and use the editor to write your own custom text to put in each tab area.You can also drag and drop the element to sort them instantly."
|
||||
CK_SEPARATOR_EDITION="Separator edition"
|
||||
CK_SEPARATOR_INFOS="Text separator"
|
||||
CK_SEPARATOR_INFOS_DESC="Write the text you want to put into the separator."
|
||||
CK_MESSAGE_EDITION="Message edition"
|
||||
CK_MESSAGE_INFOS="Message"
|
||||
CK_MESSAGE_INFOS_DESC="Write your own message and select the style that you want to apply to it."
|
||||
CK_TABS_HEADING_STYLE="Heading style"
|
||||
CK_TABS_ACTIVE_HEADING_STYLE="Active heading style"
|
||||
CK_TABS_CONTENT_STYLE="Content style"
|
||||
CK_CONFIRM_DELETE="Are you sure that you want to delete ?"
|
||||
CK_ACCORDION_HEADING_STYLE="Heading style"
|
||||
CK_ACCORDION_ACTIVE_HEADING_STYLE="Active heading style"
|
||||
CK_ACCORDION_CONTENT_STYLE="Content style"
|
||||
CK_SEPARATOR_CONTENT="Separator content"
|
||||
CK_SEPARATOR_STYLE="Separator Style"
|
||||
CK_ICON="Icon"
|
||||
CK_ICON_SIZE="Icon size"
|
||||
CK_ICON_POSITION="Icon position"
|
||||
CK_FILTER_BY_GROUP="Filter by group"
|
||||
CK_ICON_SIZE_X1-3="+33%"
|
||||
CK_ICON_SIZE_X2="x 2"
|
||||
CK_ICON_SIZE_X3="x 3"
|
||||
CK_ICON_SIZE_X4="x 4"
|
||||
CK_ICON_SIZE_X5="x 5"
|
||||
CK_MIDDLE="Middle"
|
||||
CK_ICON_MARGIN="Space between icon and text"
|
||||
CK_SELECT_FONT="Select a font"
|
||||
CK_FONTWEIGHT="Font weight"
|
||||
CK_EMPTY_URL="Please write the font url or name in the field"
|
||||
CK_GOOGLEFONT_URL="Google font url or name"
|
||||
CK_SUBMIT="Validate"
|
||||
CK_SEARCH="Search"
|
||||
CK_FONT_APPLIED="Font applied"
|
||||
CK_FONT_NOT_FOUND="Font not found, please check the url or name"
|
||||
CK_FONTNAME_NOT_FOUND="Unable to retrieve the font name"
|
||||
CK_FONTURL_NOT_FOUND="Font url not found, please check the url or name"
|
||||
CK_GOOGLE_FONT="Google Font"
|
||||
CK_STYLES="Styles"
|
||||
CK_REMOVE="Remove"
|
||||
CK_TITLE="Title"
|
||||
CK_TITLE_STYLES="Title styles"
|
||||
CK_TEXT_STYLES="Text styles"
|
||||
CK_VARIATIONS="Variations"
|
||||
CK_IMAGE="Image"
|
||||
CK_ICON_EDITION="Icon edition"
|
||||
CK_ICON_INFOS="Icon"
|
||||
CK_ICON_INFOS_DESC="Select an icon from the available list and apply it any style like color, background, border radius."
|
||||
CK_ICON_STYLES="Icon styles"
|
||||
CK_ICON_STYLE="Icon styles"
|
||||
CK_FONTSIZE="Font size"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICON="Icon"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICON_DESC="Select an icon from a collection"
|
||||
COM_PAGEBUILDERCK_CONFIGURATION="Page Builder CK Configuration"
|
||||
COM_PAGEBUILDERCK_ERROR_PAGE_NOT_FOUND="Page not found"
|
||||
CK_SAVE_CLOSE="Save and Close"
|
||||
CK_ID="ID"
|
||||
CK_TYPE="Type"
|
||||
CK_POSITION="Position"
|
||||
COM_PAGEBUILDERCK_CONTENT_MODULE="Module"
|
||||
COM_PAGEBUILDERCK_CONTENT_MODULE_DESC="Any module on your website"
|
||||
CK_MODULE_NOT_SELECTED="No selected module"
|
||||
CK_EDITION_NOT_FOUND="The edition area was not found for the element"
|
||||
CK_MODULE_SELECTION="Module selection"
|
||||
CK_MODULE_INFOS="Module"
|
||||
CK_MODULE_INFOS_DESC="Choose a module from the list of all the available modules on your website. Then you can use the styles to give it the appearance you want."
|
||||
CK_MODULE_STYLE="Module style"
|
||||
CK_MODULE="Module"
|
||||
CK_INSERT_NEW="Insert a new page"
|
||||
CK_INSERT_NEW_DESC="Click on the button to add a new tag {pagebuilderck XX} into the article at the cursor position"
|
||||
CK_NEW_TAG="New tag"
|
||||
CK_EXISTING_TAGS_FOUND="Existing tags found"
|
||||
CK_EXISTING_TAGS_FOUND_DESC="This is the list of the existing tags found in the editor. You can click on the edit button to open the Pagebuilder CK edition area into the popup for the selected page."
|
||||
PLG_PAGEBUILDERCKBUTTON="Pagebuilder CK"
|
||||
PLG_PAGEBUILDERCKBUTTON_DESC="Use this button to manage the Pagebuilder CK tags into your editor : - Insert a new tag from the list of published pages - Show the existing included pages and edit them directly in the popup"
|
||||
CK_FULLSCREEN="Full screen"
|
||||
CK_CSS_CLASS="CSS Class"
|
||||
CK_TITLE_EDITION="Title edition"
|
||||
CK_TITLE_CONTENT="Title text"
|
||||
CK_TITLE_STYLES="Title styles"
|
||||
CK_TEXT_STYLES="Text styles"
|
||||
CK_ICONTEXT_INFOS="Icon and Text"
|
||||
CK_ICONTEXT_INFOS_DESC="Select an icon from the available list and apply it any style like color, background, border radius. Write the text you want using the editor and style it like you want."
|
||||
COM_PAGEBUILDERCK_CONTENT_ICONTEXT="Icon and Text"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICONTEXT_DESC="Icon and text in one single block"
|
||||
CK_COVER="Cover"
|
||||
CK_ALT_TAG="Alt attribute"
|
||||
CK_LINK="Link"
|
||||
CK_LINK_URL="Link url"
|
||||
CK_REL_TAG="Rel attribute"
|
||||
CK_LIGHTBOX="Lightbox"
|
||||
CK_USE_LIGHTBOX="Enable Lightbox"
|
||||
CK_LIGHTBOX_ALBUM="Group images into an album"
|
||||
CK_MEDIABOXCK_NOT_INSTALLED="The plugin Mediabox CK is not installed, you can not use the following options"
|
||||
CK_DOWNLOAD="Download"
|
||||
CK_ANIMATIONS="Animations"
|
||||
CK_ANIMATIONS_INFOS="Animations"
|
||||
CK_ANIMATIONS_DESC="You can add any animation on the block. You can select multiple animation, or only one and set them the duration your want."
|
||||
CK_DURATION="Duration"
|
||||
CK_FADE="Fade"
|
||||
CK_MOVE="Move"
|
||||
CK_DIRECTION="Direction"
|
||||
CK_LEFT_TO_RIGHT="Left to right"
|
||||
CK_RIGHT_TO_LEFT="Right to left"
|
||||
CK_TOP_TO_BOTTOM="Top to bottom"
|
||||
CK_BOTTOM_TO_TOP="Bottom to top"
|
||||
CK_DISTANCE="Distance"
|
||||
CK_ROTATE="Rotate"
|
||||
CK_SCALE="Scale"
|
||||
CK_REPLAY_ANIMATION="Replay the animation"
|
||||
|
||||
;added 1.0.2
|
||||
CK_PREVIEW_ANIMATION="Preview the animation"
|
||||
CK_PLAY_ANIMATION="Play the animation"
|
||||
CK_TITLE_EMPTY="The title is empty"
|
||||
|
||||
;added 1.1.0
|
||||
COM_PAGEBUILDERCK_INSERT_CONTENT="Drag and drop any item"
|
||||
COM_PAGEBUILDERCK_COLLAPSE_MENU="Collapse the menu"
|
||||
|
||||
;added 1.1.1
|
||||
COM_PAGEBUILDERCK_CONTENT_VIDEO="Video"
|
||||
COM_PAGEBUILDERCK_CONTENT_VIDEO_DESC="Use Youtube or any other video provider"
|
||||
CK_VIDEO_EDITION="Video edition"
|
||||
CK_VIDEO_INFOS="Video"
|
||||
CK_VIDEO_INFOS_DESC="You can use any video provider like Youtube. You must give the url that loads the embed player from the hosted service. Example : https://www.youtube.com/embed/codehere"
|
||||
CK_VIDEO="Vidéo"
|
||||
CK_INSERT_EXISTING_PAGE="Insert an existing page"
|
||||
CK_INSERT_EXISTING_PAGE_DESC="Click here to insert an existing page at the cursor position"
|
||||
CK_INSERT_PAGE_AND_CLOSE="Save, Insert Tag and Close"
|
||||
CK_CREATE_NEW_PAGE="Create a new page"
|
||||
CK_CREATE_NEW_PAGE_DESC="Click here to create a new empty page"
|
||||
COM_PAGEBUILDERCK_N_ITEMS_DELETED="%d Item(s) successfully deleted"
|
||||
CK_COPY_ERROR="Error when trying to copy"
|
||||
CK_COPY_SUCCESS="Item successfully copied !"
|
||||
CK_RESTORE="Restore a previous version"
|
||||
CK_DO_RESTORATION="Restore this version"
|
||||
COM_PAGEBUILDERCK_CONTENT_HTML="Custom code"
|
||||
COM_PAGEBUILDERCK_CONTENT_HTML_DESC="Write any custom HTML/PHP/JS code"
|
||||
CK_NO_RESTORE_FILE_FOUND="No backup found"
|
||||
|
||||
;added 1.1.2
|
||||
CK_ZOOM="Zoom"
|
||||
CK_CONTENT="Content"
|
||||
CK_SHOWON="Show on"
|
||||
CK_MOUSEOVER="Mouseover"
|
||||
CK_CLICK="Click"
|
||||
CK_ADDRESS="Address"
|
||||
CK_LATITUDE="Latitude"
|
||||
CK_LONGITUDE="Longitude"
|
||||
CK_DELETE="Delete"
|
||||
CK_IMPORT="Import"
|
||||
CK_EXPORT="Export"
|
||||
COM_PAGEBUILDERCK_VOTE_JED="If you are using Page Builder CK please post a review on the JED."
|
||||
COM_PAGEBUILDERCK_VOTE_JED_BUTTON="I vote on the JED to support Page Builder CK"
|
||||
|
||||
;added 1.1.3
|
||||
COM_PAGEBUILDERCK_PAGES="Pages"
|
||||
CK_VIDEO_BACKGROUND_STYLES="Background video"
|
||||
CK_VIDEO_BACKGROUND="Background video"
|
||||
CK_VIDEO_BACKGROUND_INFOS="Background video"
|
||||
CK_VIDEO_BACKGROUND_DESC="Define a video that will play in the background of the block."
|
||||
CK_VIDEO_URL_INFOS="Give the relative path to your file. It is recommended to give the three types of file to be compatible with most devices and browsers. Example of path : images/video/bigbunny.mp4"
|
||||
CK_VIDEO_URL_MP4="MP4 format video path"
|
||||
CK_VIDEO_URL_WEBM="WEBM format video path"
|
||||
CK_VIDEO_URL_OGV="OGV format video path"
|
||||
CK_PREVIEW="Preview"
|
||||
CK_ABOUT="About"
|
||||
CK_PAGEBUILDERCK_VERSION="Page Builder CK Version"
|
||||
CK_PAGEBUILDERCK_DESC="Page Builder CK allows you to create your website content in a quick and easy way."
|
||||
|
||||
;added 1.1.4
|
||||
CK_CHOOSE_FILE_PBCK="Choose a .pbck file"
|
||||
CK_PAGEBUILDERCK_PARAMS_NOT_INSTALLED="Page Builder CK Params not installed."
|
||||
CK_NOT_PBCK_FILE="Please select a .pbck file"
|
||||
CK_FILE_NOT_EXISTS="File does not exists, unable to find it"
|
||||
CK_UNABLE_READ_FILE="Unable to read the file"
|
||||
CK_IMPORT_SUCCESS="File imported with success"
|
||||
COM_PAGEBUILDERCK_N_ITEMS_TRASHED="%d Item(s) successfully deleted"
|
||||
CK_SET_DEFAULT_CLOSED="Closed by default"
|
||||
CK_PAGEBUILDERCK_PARAMS_INFO="Page Builder CK Params not installed. Get it to have more items and more features."
|
||||
CK_ADD_NEW_ITEM="Add new item"
|
||||
CK_PLEASE_SELECT_ITEM="Please select an item"
|
||||
CK_START="Start"
|
||||
CK_END="End"
|
||||
CK_APPEARANCE="Appearance"
|
||||
CK_NUMBER="Number"
|
||||
|
||||
;added 1.1.5
|
||||
CK_NO_FILE_RECEIVED="Unable to get the file, please check the settings of your server and the size of your image"
|
||||
CK_FILE_NOT_EXISTS="Unable to find the uploaded file. Please try again"
|
||||
CK_UNABLE_TO_CREATE_FOLDER="Unable to create the folder"
|
||||
CK_UNABLE_WRITE_FILE="Unable to write the file on your server"
|
||||
CK_ONCLICK="On click"
|
||||
CK_STYLES_HOVER="Styles on hover"
|
||||
|
||||
;added 1.1.8
|
||||
CK_PAGEBUILDERCK_PARAMS_CLASS_NOT_FOUND="Page Builder CK Params, Class not found"
|
||||
CK_PAGEBUILDERCK_PARAMS_NEEDED_VERSION="Warning you must update your Page Builder CK Params version. The minimum version needed is"
|
||||
|
||||
;added 1.1.11
|
||||
COM_PAGEBUILDERCK_CONTENT_AUDIO="Audio player"
|
||||
COM_PAGEBUILDERCK_CONTENT_AUDIO_DESC="Play your audio files"
|
||||
CK_AUDIO_EDITION="Audio player Edition"
|
||||
CK_AUDIO_INFOS="Audio player"
|
||||
CK_AUDIO_INFOS_DESC="Add an audio player to your website. Select the file to play, and customize it using the options"
|
||||
CK_AUDIO="Audio"
|
||||
CK_AUDIO_FILE="Audio file"
|
||||
CK_OPTIONS="Options"
|
||||
CK_AUTOPLAY="Autoplay"
|
||||
CK_SELECT_INFOS="Click on the file to select it"
|
||||
CK_PREVIEW_INFOS="Hover the image files on the left to see the preview here"
|
||||
|
||||
;added 1.1.12
|
||||
CK_EDITION="Edition"
|
||||
COM_PAGEBUILDERCK_SHOW_TITLE="Show title"
|
||||
|
||||
;added 1.1.13
|
||||
COM_PAGEBUILDERCK_CONTENT_PREPARE="Activate content plugins"
|
||||
COM_PAGEBUILDERCK_TITLE_TAG="Title tag"
|
||||
CK_LOAD_PAGE="Load a page"
|
||||
CK_HOW_TO_LOAD_PAGE="How to load the page ?"
|
||||
CK_REPLACE="Replace"
|
||||
CK_TOP_PAGE="On top"
|
||||
CK_END_PAGE="On bottom"
|
||||
CK_TARGET="Target"
|
||||
CK_REMOVE_BLOCK="Remove the block"
|
||||
CK_MOVE_BLOCK="Move the block"
|
||||
CK_EDIT_STYLES="Edit the styles"
|
||||
CK_DECREASE_WIDTH="Decrease the block width"
|
||||
CK_INCREASE_WIDTH="Increase the block width"
|
||||
CK_ADD_BLOCK="Add a block"
|
||||
CK_REMOVE_ROW="Remove the row"
|
||||
CK_EDIT_COLUMNS="Edit the columns"
|
||||
CK_MOVE_ROW="Move the row"
|
||||
CK_ADD_NEW_ROW="Add a new row"
|
||||
CK_REMOVE_ITEM="Remove the item"
|
||||
CK_MOVE_ITEM="Move the item"
|
||||
CK_DUPLICATE_ITEM="Duplicate the item"
|
||||
CK_EDIT_ITEM="Edit the item"
|
||||
CK_ADD_COLUMN="Add a column"
|
||||
CK_AUTOPLAY="Autoplay"
|
||||
CK_PAUSE_HOVER="Pause on hover"
|
||||
CK_DURATION="Duration"
|
||||
|
||||
;added 1.2.0
|
||||
CK_LOAD_PAGEBUILDERCK_EDITOR="Switch to Page Builder CK"
|
||||
CK_CONFIRM_PAGEBUILDERCK_EDITOR="Are you sure ? This will replace your existing editor and you will create your page only with Page Builder CK."
|
||||
|
||||
;added 1.2.1
|
||||
CK_FAVORITES="Favorites"
|
||||
CK_DESIGN_SUGGESTIONS="Design Suggestions"
|
||||
CK_MYFAVORITES="My favorites"
|
||||
CK_STICK="Stick"
|
||||
CK_CLOSE="Close"
|
||||
CK_BLOCK="Block"
|
||||
CK_ADD_TO_FAVORITES="Add to favorites"
|
||||
CK_ERROR_USER_NO_AUTH="Error : User has no right to do this action"
|
||||
CK_ERROR_CREATING_FAVORITEFILE="Error during the favorite creation"
|
||||
CK_ERROR_DELETING_FAVORITEFILE="Error trying to delete the favorite"
|
||||
CK_DUPLICATE_ROW="Duplicate the row"
|
||||
|
||||
;added 1.2.3
|
||||
CK_SELECT_MODULE_FIRST="Please select a module first"
|
||||
CK_MORE_MENU_ELEMENTS="More menu elements"
|
||||
CK_FULLWIDTH="Full width"
|
||||
|
||||
;added 1.3.0
|
||||
CK_LOAD_MODEL="Load a model"
|
||||
CK_OVERLAY_STYLES="Overlay styles"
|
||||
CK_OVERLAY_INFOS="Background Overlay"
|
||||
CK_OVERLAY_DESC="Set an overlay between the block background and the content. This will allows you to give a depth effect to your elements."
|
||||
CK_TOGGLE_EDITOR="Toggle editor"
|
||||
|
||||
COM_PAGEBUILDERCK_CONTENT_READMORE="Read more"
|
||||
COM_PAGEBUILDERCK_CONTENT_READMORE_DESC="Add a read more"
|
||||
|
||||
;added 1.3.5
|
||||
CK_DUPLICATE_COLUMN="Duplicate column"
|
||||
|
||||
;added 1.3.9
|
||||
COM_PAGEBUILDERCK_ARTICLES="Articles"
|
||||
COM_PAGEBUILDERCK_MODULES="Modules"
|
||||
CK_PREVIEW_FRONT="Preview in Front"
|
||||
CK_SAVE_AS_PAGE="Save as page"
|
||||
CK_RESPONSIVE_SETTINGS="Responsive settings"
|
||||
CK_BROWSE_INFOS="Click on a folder to see the images and upload your own image in it. Click on an image to select it."
|
||||
|
||||
;added 1.4.4
|
||||
CK_CHECK_HTML="Check HTML"
|
||||
CK_CHECK_HTML_DESC="Check that there is no HTML issue like duplicated IDs"
|
||||
CK_ENTER_CLASSNAMES="Please enter the class names separated by a space"
|
||||
CHECK_IDS_ALERT_PROBLEM="Some blocks have the same ID. This is a problem that must be fixed. Look at the elements in red and rename them"
|
||||
CHECK_IDS_ALERT_OK="Validation finished with success, all is OK !"
|
||||
CK_ENTER_UNIQUE_ID="Please enter a unique ID (must be a text)"
|
||||
CK_INVALID_ID="ID invalid or already exist"
|
||||
CK_ENTER_VALID_ID="Please enter a valid ID"
|
||||
|
||||
;added 1.5.2
|
||||
CK_IMAGE_EFFECT="Image Effect"
|
||||
CK_IMAGEEFFECTCK_NOT_INSTALLED="The plugin Image Effect CK is not installed. You can not use this feature"
|
||||
CK_IMAGEEFFECTCK_BUTTON_NOT_INSTALLED="The plugin Image Effect CK Pro is not installed. You can not use this feature"
|
||||
|
||||
;added 1.5.6
|
||||
CK_UNDO="Undo"
|
||||
CK_REDO="Redo"
|
||||
CK_ELEMENTS="Elements"
|
||||
CK_HTML_CSS="HTML / CSS"
|
||||
|
||||
;added 1.2.0
|
||||
CK_FOLDERS="Folders"
|
||||
CK_ELEMENTS="Elements"
|
||||
CK_GUTTER="Space between columns"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROW="Row"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROW_DESC="Row container with columns"
|
||||
CK_PHONE = "Phone"
|
||||
CK_TABLET = "Tablet"
|
||||
CK_PORTRAIT = "Portrait"
|
||||
CK_LANDSCAPE = "Landscape"
|
||||
CK_RESPONSIVE_VALUE_DESC="Set a resolution value for the device, in px"
|
||||
CK_COLUMNS="Columns"
|
||||
CK_SUGGESTIONS="Suggestions"
|
||||
CK_RESPONSIVE_SETTINGS_ALIGNED="Aligned"
|
||||
CK_RESPONSIVE_SETTINGS_STACKED="Stacked"
|
||||
CK_RESPONSIVE_SETTINGS_HIDDEN="Hidden"
|
||||
CK_RESPONSIVE_SETTINGS_SHOWN="Shown"
|
||||
CK_COMPUTER="Computer"
|
||||
CK_ROW="Row"
|
||||
CK_SET_RESPONSIVE_VALUE_IN_OPTIONS="Set the responsive values in the component options"
|
||||
CK_EDIT_FULLSCREEN="Edit in Fullscreen mode"
|
||||
CK_DELAY="Delay"
|
||||
CK_MENU_ITEMS="Menu items"
|
||||
CK_MENU_ITEMS_DESC="You can navigate through the menus with the +/- icons. Once you have found your menu item, just click on its name to select it and its url will be automatically used."
|
||||
CK_AUTO_WIDTH="Auto width"
|
||||
CK_ADVANCED_LAYOUT="Advanced layout"
|
||||
CK_RATIO="Ratio"
|
||||
|
||||
;added 2.0.5
|
||||
CK_REFRESH="Refresh"
|
||||
|
||||
;added 2.2.0
|
||||
COM_PAGEBUILDERCK_MY_ELEMENTS="My Elements"
|
||||
CK_MY_ELEMENTS="My Elements"
|
||||
COM_PAGEBUILDERCK_DESCRIPTION="Description"
|
||||
COM_PAGEBUILDERCK_TYPE="Type"
|
||||
CK_ORDERING="Ordering"
|
||||
CK_SAVE="Save"
|
||||
|
||||
;added 2.2.7
|
||||
CK_DIVIDER="Shape divider"
|
||||
CK_SHAPE="Shape"
|
||||
CK_FLIP_HORIZONTAL="Flip horizontal"
|
||||
CK_FLIP_VERTICAL="Flip vertical"
|
||||
CK_INVERSE="Inverse"
|
||||
CK_PLACEMENT="Placement"
|
||||
CK_FIRST_COLOR="First color"
|
||||
CK_SECOND_COLOR="Second color"
|
||||
CK_UNDER_CONTENT="Under content"
|
||||
CK_OVER_CONTENT="Over content"
|
||||
CK_CLOUDS="Clouds"
|
||||
CK_MULIPLE_CLOUDS="Multiple clouds"
|
||||
CK_PAPER="Paper"
|
||||
CK_BRIDGE="Bridge"
|
||||
CK_MOUNTAIN="Mountain"
|
||||
CK_WAVE="Wave"
|
||||
CK_MULTIPLE_WAVE="Multiple waves"
|
||||
CK_SLOPE="Slope"
|
||||
CK_MULIPLE_SLOPE="Multiple slopes"
|
||||
CK_DRIP="Drip"
|
||||
CK_ASYM_SLOPE="Asymetric slope"
|
||||
CK_VSLOPE="V slope"
|
||||
CK_MULTIVSLOPE="Multiple V slopes"
|
||||
CK_MULTIV3SLOPE="Multiple V 3 slopes"
|
||||
CK_TRIANGLE="Triangle"
|
||||
CK_TRIANGLE_SMALL="Triangle small"
|
||||
CK_TRIANGLE_3="3 Triangles"
|
||||
CK_ELLIPSE="Ellipse"
|
||||
|
||||
;added 2.2.8
|
||||
CK_ALWAYS="Always"
|
||||
|
||||
;added 2.3.0
|
||||
CK_ADDONS="Addons"
|
||||
CK_PAGES="Pages"
|
||||
CK_MODELS="Models"
|
||||
|
||||
;added 2.3.1
|
||||
CK_WARNING_USERGROUP_FILTERTYPE_BLACKLIST="Your usergroup has a text filtering set on the Default Blacklist. This will cause your article to be totally broken after save. Please contact your administrator to fix this."
|
||||
CK_WARNING_USERGROUP_FILTERTYPE_WHITELIST_NOSTYLE="Your usergroup has a text filtering set on the Whitelist but the 'style' tag is missing from the authorized tags. This will cause your article to be totally broken after save. Please contact your administrator to fix this."
|
||||
|
||||
;added 2.3.4
|
||||
CK_CUSTOMCSS_DESC="You can write your own CSS rules that will be added in the page. Note that the CSS will not be rendered into the edition but only in the frontend page."
|
||||
CK_RESPONSIVE_RANGE_LABEL="Type of range"
|
||||
CK_RESPONSIVE_RANGE_DESC="Between : will use min-width and max-width. Reducing : will only use max-width so that the settings will apply on all lower resolutions"
|
||||
CK_RESPONSIVE_BETWEEN="Between"
|
||||
CK_RESPONSIVE_REDUCING="Reducing"
|
||||
|
||||
;added 2.3.6
|
||||
COM_PAGEBUILDERCK_CONTENT_WRAPPER="Wrapper"
|
||||
COM_PAGEBUILDERCK_CONTENT_WRAPPER_DESC="Container to put rows in it"
|
||||
CK_WRAPPER_IN_WRAPPER_NOT_ALLOWED="You are not allowed to put a wrapper into another wrapper"
|
||||
CK_DUPLICATE_WRAPPER="Duplicate the wrapper"
|
||||
CK_MOVE_WRAPPER="Move the wrapper"
|
||||
CK_REMOVE_WRAPPER="Remove the wrapper"
|
||||
;CK_CHOOSE_METHOD="Choose how to set up the width : full width or fixed width."
|
||||
CK_FIXEDWIDTH="Fixed width"
|
||||
CK_READ_DOCUMENTATION="Read the documentation"
|
||||
CK_FULLWIDTH_STANDARD_INFO="This will let the content take all the place available in your template. If you want something that is as large as your screen, you must just take care that your template is also fullwidth."
|
||||
CK_FULLWIDTH_JAVASCRIPT_ALERT="WARNING : not recommended ! This method is proposed to you to help you in specific cases. This is for beginners and personal websites. Don't use it on a professional website. It may have some laggy effect."
|
||||
CK_FULLWIDTH_STANDARD="Standard"
|
||||
CK_FULLWIDTH_JAVASCRIPT="Javascript"
|
||||
CK_ROW_WRAPPER="Row wrapper"
|
||||
CK_ROWWIDTH_EDIT="Row width edition"
|
||||
CK_FIXEDWIDTH_INFO="This will limit the width of the row content to the value below. It will be responsive but not larger than the value."
|
||||
CK_RESOLUTION="Resolution"
|
||||
CK_FIXEDWIDTH_RESOLUTION="Fixed value"
|
||||
CK_FIXEDWIDTH_TEMPLATECREATOR="Automatic with Template Creator CK"
|
||||
|
||||
;added 2.3.7
|
||||
CK_EXIT="Exit"
|
||||
|
||||
;added 2.4.3
|
||||
CK_LINK_TARGET="Link target"
|
||||
CK_LINK_TARGET_SAME="Same window"
|
||||
CK_LINK_TARGET_NEW="New window"
|
||||
CK_FOLDER_CREATED_ERROR="Error : folder not created"
|
||||
CK_FOLDER_CREATED_SUCCESS="Folder created with success"
|
||||
CK_CREATE_FOLDER="Create folder"
|
||||
CK_ADD_SUB_FOLDER="Add a subfolder"
|
||||
CK_MUTED="Muted"
|
||||
CK_NUMBER_COLS="Number of columns"
|
||||
CK_DISPLAY_TYPE_LIST="List display"
|
||||
CK_DISPLAY_TYPE_GRID="Grid display"
|
||||
CK_GROUP_LAYOUT="Layout"
|
||||
CK_GROUP_TEXT="Text"
|
||||
CK_GROUP_IMAGE="Image"
|
||||
CK_GROUP_MULTIMEDIA="Multimedia"
|
||||
CK_GROUP_OTHER="Other"
|
||||
|
||||
;added 2.4.5
|
||||
COM_PAGEBUILDERCK_NESTEDROWS_LABEL="Enable nested rows"
|
||||
COM_PAGEBUILDERCK_NESTEDROWS_DESC="For advanced users that want to create more complex design"
|
||||
|
||||
;added 2.4.7
|
||||
CK_COLOR_PALETTE="Colors Palette"
|
||||
CK_COLOR_PALETTE_DESC="Define which colors do you want to use multiple times in your project. You will then be able to save and reuse them directly from the colorpicker."
|
||||
CK_COLOR_PALETTE_COLORPALETTE="Color palette"
|
||||
CK_COLOR_PALETTE_COLORPALETTEFROMSETTINGS="Colors fom the settings"
|
||||
CK_COLOR_PALETTE_COLORPALETTEFROMTEMPLATE="Colors from the template"
|
||||
|
||||
;added 2.4.8
|
||||
COM_PAGEBUILDERCK_CONTENT_ROWINROW="Row into row"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROWINROW_DESC="Imbricated rows"
|
||||
|
||||
CK_ADD_NEW_PAGEBUILDER_MODULE="Add a Page Builder CK module"
|
||||
|
||||
;added 2.5.0
|
||||
COM_PAGEBUILDERCK_CONTENTTYPES="Content types"
|
||||
CK_CONTENT_TYPE="Content type"
|
||||
CK_LAYOUT_EDITION="Layout edition"
|
||||
CK_LAYOUT="Layout"
|
||||
CK_LABELS_WIDTH="Labels width"
|
||||
CK_FIELDS_WIDTH="Fields width"
|
||||
CK_SHOW_LABELS="Show the labels"
|
||||
CK_ROWS_STYLE="Rows styles"
|
||||
CK_LABELS_STYLE="Labels styles"
|
||||
CK_FIELDS_STYLE="Fields styles"
|
||||
CK_PAGEBUILDERCK_PRO_INFO="Only available in the Pro version. Click to read more infos"
|
||||
CK_ENABLE="Enable"
|
||||
CK_FRONT_EDITION="Front Edition"
|
||||
CK_PARALLAX="Parallax"
|
||||
CK_SPEED="Speed"
|
||||
CK_ADD="Add"
|
||||
CK_DRAG_DROP_PAGE="Drag and drop the page in the interface to add it where you want"
|
||||
CK_PAGE="Page"
|
||||
CK_PAGEBUILDERCK_GETMORE_PRO_ITEMS="Install the Pro version to get more items"
|
||||
CK_PAGEBUILDERCK_PRO_ONLY="Only available in the Pro verison"
|
||||
|
||||
;added 2.5.5
|
||||
CK_FILES="Files"
|
||||
CK_MENUS="Menus"
|
||||
|
||||
;2.5.9
|
||||
CK_ROWS_STYLES="Rows styles"
|
||||
|
||||
;added 2.6.0
|
||||
CK_ADD_ITEM="Add item"
|
||||
CK_COLUMNS_SPACE_BETWEEN="Automatic space between columns"
|
||||
CK_EDIT_RESPONSIVE_COLUMNS_DESC="Click to edit the columns width in responsive mode"
|
||||
CK_EDIT_RESPONSIVE_COLUMNS="Responsive width edition"
|
||||
CK_ARTICLES="Articles"
|
||||
|
||||
;2.6.1
|
||||
CK_FLIP="Flip"
|
||||
|
||||
;added 2.7.0
|
||||
CK_ACCESS_RIGHTS="Access rights"
|
||||
CK_EDIT_CONTENT="Edit the content"
|
||||
CK_VIEW_CONTENT="View in front"
|
||||
CK_ACL_EDIT="Rights edition"
|
||||
CK_NO_RIGHTS="You don't have the rights."
|
||||
CK_GROUP="Group"
|
||||
CK_COLUMN="Column"
|
||||
CK_ITEM="Item"
|
||||
|
||||
;added 2.7.1
|
||||
CK_CLIPBOARDEMPTY="Clipboard is empty"
|
||||
CK_COPYFROMCLIPBOARD="Apply styles from Clipboard ? This will replace all current existing styles."
|
||||
CK_AUTOLINK_IMAGES="Autolink to images"
|
||||
|
||||
;added 2.7.2
|
||||
CK_FIRST_SHAPE="First shape"
|
||||
CK_SECOND_SHAPE="Second shape"
|
||||
|
||||
;added 2.8
|
||||
CK_LINK_STYLES="Link styles"
|
||||
CK_LINK_STYLES_HOVER="Link hover styles"
|
||||
CK_LINK_TEXT="Link text"
|
||||
CK_LINK_ICON="Link icon"
|
||||
|
||||
;added 2.9.0
|
||||
CK_ITEM_SAVED_FAILED="Save failed ! Item not saved"
|
||||
CK_ITEM_SAVED_SUCCESS="Item saved successfully"
|
||||
CK_LOOP="Loop"
|
||||
CK_CONTROLS="Controls"
|
||||
CK_ITEM_TRASH_SUCCESS="Item trashed successfully"
|
||||
CK_ITEM_TRASH_FAILED="Trash failed ! Item not trashed"
|
||||
|
||||
;added 2.9.7
|
||||
CK_NORMAL_STATE="Normal state"
|
||||
CK_HOVER_STATE="Hover state"
|
||||
CK_EFFECTS="Effects"
|
||||
CK_BRIGHTNESS="Brightness"
|
||||
CK_GRAYSCALE="Grayscale"
|
||||
CK_SHOW_LIGHTBOX_TITLE="Show the title in Lightbox"
|
||||
CK_SHOW_LIGHTBOX_DESC="Show the description in Lightbox"
|
||||
|
||||
;added 2.9.9
|
||||
CK_CLICK_TO_EDIT_CONTENT="Click to edit the content"
|
||||
CK_ITEM_TRASH_ERROR="Error when trying to trash"
|
||||
CK_ITEM_TRASH_SUCCESS="Item successfully trashed !"
|
||||
|
||||
;added 2.9.11
|
||||
CK_DATE="Date"
|
||||
|
||||
;added 2.10
|
||||
CK_SVG_ICON="SVG icon"
|
||||
CK_SVG_ICONS="SVG icons"
|
||||
CK_STROKE="Stroke"
|
||||
CK_FILL="Fill"
|
||||
CK_VERTICAL_ALIGN="Vertical align"
|
||||
CK_FONTAWESOME="FontAwesome"
|
||||
|
||||
;added 2.10.2
|
||||
CK_CLEAR_STYLES="Clear the styles"
|
||||
CK_CONFIRM_CLEAR_STYLES="Are you sure that you want to remove all styles ?"
|
||||
|
||||
;added 2.11.0
|
||||
CK_BOTTOM_SHAPE="Bottom shape"
|
||||
CK_TOP_SHAPE="Top shape"
|
||||
CK_BOOK="Book"
|
||||
CK_BUBBLES="Bubbles"
|
||||
CK_TREES="Trees"
|
||||
CK_CITY="City"
|
||||
CK_FALL_LEAVES="Fall leaves"
|
||||
CK_FIRE="Fire"
|
||||
CK_SPHERE="Sphere"
|
||||
CK_MUSIC="Music"
|
||||
CK_PAINT="Paint"
|
||||
CK_PYRAMID="Pyramid"
|
||||
CK_SNOWFLAKES="Snow flakes"
|
||||
CK_BUTTERFLY="Butterfly"
|
||||
CK_ANIMATED_WAVES="Animated waves"
|
||||
CK_OFFSET_HORIZONTAL="Horizontal"
|
||||
CK_OFFSET_VERTICAL="Vertical"
|
||||
CK_TOGGLE_PANEL="Toggle panel"
|
||||
|
||||
;added 2.12.0
|
||||
CK_LINE="Line"
|
||||
|
||||
;added 2.12.1
|
||||
CK_USE_TEXT="Use text"
|
||||
|
||||
;added 2.13.0
|
||||
CK_RESPONSIVE_RESOLUTION="Mobile resolution"
|
||||
CK_DROP_FILES_TO_UPLOAD="Drop files here to upload"
|
||||
CK_OR_SELECT_FILES="or Select Files"
|
||||
CK_NO_IMAGE_FOUND="No image found"
|
||||
|
||||
;added 2.13.4
|
||||
CK_ARROW_STYLES="Arrow styles"
|
||||
|
||||
;added 2.13.7
|
||||
CK_CENTER="center"
|
||||
CK_SOURCE="Source"
|
||||
CK_FOLDER_PATH="Folder path"
|
||||
CK_FOLDER="Folder"
|
||||
CK_EDITOR="Editor"
|
||||
|
||||
;added 2.13.8
|
||||
CK_VALIGN_DEFAULT="Default vertical alignment"
|
||||
CK_VALIGN_TOP="Top vertical alignment"
|
||||
CK_VALIGN_CENTER="Center vertical alignment"
|
||||
CK_VALIGN_BOTTOM="Bottom vertical alignment"
|
||||
CK_IMPORT_ERROR_IMPORT_FILE_DECODING="Error when importing the file : impossible to decode"
|
||||
|
||||
;added 2.13.9
|
||||
CK_NO_FILE_FOUND="No file found"
|
||||
|
||||
;added 2.14.0
|
||||
COM_PAGEBUILDERCK_SELECT_CATEGORY="Select a category"
|
||||
COM_PAGEBUILDERCK_CATEGORIES="Categories"
|
||||
CK_NEW_CATEGORY="New category"
|
||||
|
||||
;added 2.16.0
|
||||
COM_PAGEBUILDERCK_STYLES="Styles"
|
||||
CK_LOAD_STYLE="Load a style"
|
||||
|
||||
;added 2.17.0
|
||||
CK_EXPORT_WITH_IMAGES="Export with images"
|
||||
CK_EXPORT_AS_LIBRARY="Export as library"
|
||||
CK_EXPORT_PAGE_AS_LIBRARY_DESC="Give a category and name for your library that will appear in the list into Page Builder CK. Don't use special characters"
|
||||
CK_CATEGORY="Category"
|
||||
CK_FIELD_EMPTY="Field empty"
|
||||
|
||||
;added 2.18.0
|
||||
CK_ORIENTATION="Orientation"
|
||||
|
||||
;added 2.18.8
|
||||
CK_AUTHOR="Author"
|
||||
|
||||
;added 3.0.0
|
||||
CK_ATTACHMENT="Attachment"
|
||||
CK_CLEAR="Clear"
|
||||
CK_USE_LOCAL_GFONTS="Use local fonts"
|
||||
CK_USE_LOCAL_GFONTS_DESC = "If you use the local fonts, they will be downloaded from Google and stored in your website to serve the files locally. Else it will use the Google stylesheets to call the fonts from the Google server."
|
||||
CK_USE_THIS_STYLE="Use this style"
|
||||
CK_FONT_MANAGER="Manager"
|
||||
CK_TOTAL_FILE_SIZE="Total file size"
|
||||
CK_BACK="Back"
|
||||
CK_FONT_ICON="Font icon"
|
||||
CK_PLEASE_SELECT_ICON_PACK="Please select an icon pack"
|
||||
CK_CUSTOM_SVG="Custom SVG"
|
||||
CK_OR="Or"
|
||||
CK_TAG="Tag"
|
||||
CK_HOVER_COLOR="Hover color"
|
||||
CK_STRIPPED_COLOR="Stripped color"
|
||||
@@ -0,0 +1,7 @@
|
||||
; license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
COM_PAGEBUILDERCK="Page Builder CK"
|
||||
CK_PAGEBUILDERCK_DESC="Page Builder CK allows you to create your website content in a quick and easy way."
|
||||
COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT="Single Page"
|
||||
COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT_DESC="Display a single page"
|
||||
1
components/com_pagebuilderck/language/en-GB/index.html
Normal file
1
components/com_pagebuilderck/language/en-GB/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,811 @@
|
||||
; license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
COM_PAGEBUILDERCK="Page Builder CK"
|
||||
CK_EDIT="Editer"
|
||||
CK_PUBLISHED="Publié"
|
||||
CK_NUM="NUM"
|
||||
CK_APPLY="Appliquer"
|
||||
CK_FONT_NONE="Aucune"
|
||||
CK_THUMB="Miniature"
|
||||
CK_INSTALL="Installer"
|
||||
|
||||
; textes du menu
|
||||
|
||||
CK_MISE_FORME = "Mise en forme"
|
||||
CK_TEXT = "Texte"
|
||||
CK_BACKGROUND = "Arrière plan"
|
||||
CK_ADVANCED = "Avancé"
|
||||
CK_MARGINS = "Marges externes (margin)"
|
||||
CK_PADDINGS = "Marges internes (padding)"
|
||||
CK_BORDERS = "Bordures"
|
||||
CK_TOP = "Haut"
|
||||
CK_BOTTOM = "Bas"
|
||||
CK_LEFT = "Gauche"
|
||||
CK_RIGHT = "Droite"
|
||||
CK_TOPLEFT = "Haut gauche"
|
||||
CK_TOPRIGHT = "Haut droite"
|
||||
CK_BOTTOMLEFT = "Bas gauche"
|
||||
CK_BOTTOMRIGHT = "Bas droite"
|
||||
CK_ROUNDED_CORNERS = "Coins arrondis (border-radius)"
|
||||
CK_DIMENSIONS = "Dimensions"
|
||||
CK_HEIGHT = "Hauteur"
|
||||
CK_WIDTH = "Largeur"
|
||||
CK_POLICE = "Police"
|
||||
CK_ALIGN = "Alignement"
|
||||
CK_SPACING = "Espacement"
|
||||
CK_WORD = "mot"
|
||||
CK_LETTER = "lettre"
|
||||
CK_LINEHEIGHT = "interligne"
|
||||
CK_NORMALLINK = "Lien normal"
|
||||
CK_HOVERLINK = "Lien survolé"
|
||||
CK_BACKGROUNDIMAGE = "Image de fond"
|
||||
CK_SELECT = "Selectionner"
|
||||
CK_NONE = "Aucun"
|
||||
CK_HORIZONTAL = "Horizontal"
|
||||
CK_VERTICAL = "Vertical"
|
||||
CK_HORIZONTAL_VERTICAL = "Horizontal et vertical"
|
||||
CK_REPEAT = "Répétition"
|
||||
CK_BACKGROUNDCOLOR = "Couleur de fond"
|
||||
CK_BACKGROUNDPOSITION = "Position de l'image"
|
||||
CK_BACKGROUNDGRADIENT = "Dégradé"
|
||||
CK_GRADIENTPOSITION = "position"
|
||||
CK_GRADIENTCOLOR = "couleur"
|
||||
CK_STARTCOLOR = "Couleur de début"
|
||||
CK_STOP1COLOR = "Couleur 2"
|
||||
CK_STOP2COLOR = "Couleur 3"
|
||||
CK_ENDCOLOR = "Couleur 4"
|
||||
CK_TOPTOBOTTOM = "Haut vers bas"
|
||||
CK_BOTTOMTOTOP = "Bas vers haut"
|
||||
CK_LEFTTORIGHT = "Gauche vers droite"
|
||||
CK_RIGHTTOLEFT = "Droite vers gauche"
|
||||
CK_DIRECTION = "Direction"
|
||||
CK_SHADOW = "Ombre"
|
||||
CK_BLUR = "Largeur"
|
||||
CK_SPREAD = "Dispersion"
|
||||
CK_OFFSET = "Décalage"
|
||||
CK_CUSTOMCSS = "CSS personnalisés"
|
||||
CK_BLOCK_STYLES = "Bloc"
|
||||
CK_MODULES_STYLES = "Modules"
|
||||
CK_MODULES_TITLES_STYLES = "Titres de modules"
|
||||
CK_MENUS_STYLES = "Menu"
|
||||
CK_TITLES = "Titres"
|
||||
CK_FIRST_LEVEL = "NIVEAU 1"
|
||||
CK_FIRST_SUBLEVEL = "SOUS MENU"
|
||||
CK_SECOND_SUBLEVEL = "SOUS MENU 2"
|
||||
CK_FIRST_LEVEL_CONTAINER = "conteneur"
|
||||
CK_FIRST_LEVEL_MENULINK = "lien normal"
|
||||
CK_FIRST_LEVEL_MENULINK_HOVER = "lien survolé"
|
||||
CK_FIRST_LEVEL_MENULINK_ACTIVE = "lien actif"
|
||||
CK_FIRST_SUBLEVEL_CONTAINER = "conteneur"
|
||||
CK_FIRST_SUBLEVEL_MENULINK = "lien normal"
|
||||
CK_FIRST_SUBLEVEL_MENULINK_HOVER = "lien survolé"
|
||||
CK_FIRST_SBULEVEL_MENULINK_ACTIVE = "lien actif"
|
||||
CK_SECOND_SUBLEVEL_CONTAINER = "conteneur"
|
||||
CK_H1 = "H1"
|
||||
CK_H2 = "H2"
|
||||
CK_H3 = "H3"
|
||||
CK_H4 = "H4"
|
||||
CK_H5 = "H5"
|
||||
CK_H6 = "H6"
|
||||
CK_COPYTOCLIPBOARD = "Styles courants copiés dans le presse papier !"
|
||||
CK_COPYFROMCLIPBOARD = "Appliquer les styles du presse papier ? This will replace all current styles."
|
||||
CK_CLIPBOARDEMPTY = "Le presse papier est vide"
|
||||
CK_TEXTINDENT ="retrait"
|
||||
CK_SUBMENU_FONTS ="Polices"
|
||||
CK_NEW ="Nouveau"
|
||||
CK_ALL ="Tous"
|
||||
CK_BORDERRADIUS ="Coins arrondis"
|
||||
CK_OPACITY ="% Opacité"
|
||||
CK_COLOR = "Couleur"
|
||||
CK_SIZE = "Taille"
|
||||
CK_UNIT = "Unité"
|
||||
CK_STYLE = "Style"
|
||||
CK_COPY ="Copier"
|
||||
CK_PASTE ="Coller"
|
||||
CK_CANCEL = "Annuler"
|
||||
CK_VALIDATE = "Valider"
|
||||
CK_COPYALLCSS = "COPIER tous CSS"
|
||||
CK_DEFAULT = "Defaut"
|
||||
CK_NORMAL = "Normal"
|
||||
CK_BOLD = "Gras"
|
||||
CK_ITALIC = "Italique"
|
||||
CK_UPPERCASE = "Majuscule"
|
||||
CK_LOWERCASE = "Minuscule"
|
||||
CK_UNDERLINE = "Souligné"
|
||||
CK_BACKGROUNDCOLORS = "Couleur(s) de fond"
|
||||
CK_MAINCOLOR="Couleur 1"
|
||||
CK_BACKGROUND_SIZE="Ajustement"
|
||||
|
||||
; interface
|
||||
COM_PAGEBUILDERCK_SELECT_CONTENT="Selectionner un type de contenu"
|
||||
COM_PAGEBUILDERCK_CONTENT_TEXT="Texte"
|
||||
COM_PAGEBUILDERCK_CONTENT_TEXT_DESC="Edition de texte avec éditeur"
|
||||
COM_PAGEBUILDERCK_CONTENT_IMAGE="Image"
|
||||
COM_PAGEBUILDERCK_CONTENT_IMAGE_DESC="Image simple"
|
||||
COM_PAGEBUILDERCK_CONTENT_GALLERY="Galerie d'images"
|
||||
COM_PAGEBUILDERCK_CONTENT_GALLERY_DESC="Une galerie simple et légère"
|
||||
COM_PAGEBUILDERCK_CONTENT_SEPARATOR="Separateur"
|
||||
COM_PAGEBUILDERCK_CONTENT_SEPARATOR_DESC="Séparateur horizontal avec texte"
|
||||
COM_PAGEBUILDERCK_CONTENT_MESSAGE="Boite à message"
|
||||
COM_PAGEBUILDERCK_CONTENT_MESSAGE_DESC="Un message avec style prédéfini"
|
||||
COM_PAGEBUILDERCK_CONTENT_TABS="Onglets horizontaux"
|
||||
COM_PAGEBUILDERCK_CONTENT_TABS_DESC="Onglets avec contenu personnalisé"
|
||||
COM_PAGEBUILDERCK_CONTENT_ACCORDION="Accordéon"
|
||||
COM_PAGEBUILDERCK_CONTENT_ACCORDION_DESC="Accordéon avec contenu personnalisé"
|
||||
COM_PAGEBUILDERCK_ASK_FOR_MORE_CONTENTS="Besoin de plus de contenus ? Contactez moi pour me soumettre votre idée sur https://forum.joomlack.fr"
|
||||
COM_PAGEBUILDERCK_TITLE="Titre"
|
||||
COM_PAGEBUILDERCK_CONTENT="Zone de contenu"
|
||||
COM_PAGEBUILDERCK_PARAMS="Paramètres"
|
||||
CK_DECORATION="Bordures"
|
||||
CK_CSS_EDIT="Zone d'édition"
|
||||
CK_OUTSIDE="Extérieur"
|
||||
CK_INSIDE="Intérieur"
|
||||
CK_CLEAN="Effacer"
|
||||
CK_PREVIEWAREA_TITLE="Prévisualisation directe"
|
||||
CK_UPDATE_NOTIFICATION="Mise à jour"
|
||||
CK_IS_OUTDATED="Vous n'avez pas la dernière version. La dernière version est"
|
||||
CK_IS_UPTODATE="Vous avez la dernière version."
|
||||
COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_LABEL="Page"
|
||||
COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_DESC="Selectionner une page à afficher"
|
||||
COM_PAGEBUILDERCK_PAGES_NAME="Pages"
|
||||
CK_BLOC_INFOS="Bloc"
|
||||
CK_BLOC_DESC="Vous pouvez définir les styles du bloc. Un bloc est un conteneur dans lequel vous pouvez glisser n'importe quel élément de contenu (texte, image, onglets , ...)."
|
||||
CK_TEXT_EDITION="Edition du texte"
|
||||
CK_TEXT_INFOS="Texte"
|
||||
CK_TEXT_INFOS_DESC="Ecrivez le texte en utilisant l'éditeur. Vous pouvez ainsi remplir votre page avec votre propre contenu."
|
||||
CK_IMAGE_EDITION="Image simple"
|
||||
CK_IMAGE_INFOS="Sélection de l'image"
|
||||
CK_IMAGE_INFOS_DESC="Selectionnez l'image à afficher. Vous pouvez choisir n'importe quelle image qui se trouve dans le dossier 'images' de votre site."
|
||||
CK_ACCORDION_EDITION="Edition de l'accordéon"
|
||||
CK_ACCORDION_INFOS="Contenu de l'accordéon"
|
||||
CK_ACCORDION_INFOS_DESC="Vous pouvez gérer l'accordéon ici. Définissez le texte pour les entêtes, et utilisez l'éditeur pour remplir les contenus. Vous pouvez aussi glisser / déposer les éléments pour les réorganiser."
|
||||
CK_TABS_EDITION="Edition des onglets"
|
||||
CK_TABS_INFOS="Contenu des onglets"
|
||||
CK_TABS_INFOS_DESC="Vous pouvez gérer vos onglets ici. Définissez le texte pour les entêtes, et utilisez l'éditeur pour remplir les contenus. Vous pouvez aussi glisser / déposer les éléments pour les réorganiser."
|
||||
CK_SEPARATOR_EDITION="Edition du séparateur"
|
||||
CK_SEPARATOR_INFOS="Séparateur de texte"
|
||||
CK_SEPARATOR_INFOS_DESC="Ecrivez le texte que vous voulez mettre dans le séparateur."
|
||||
CK_MESSAGE_EDITION="Edition du message"
|
||||
CK_MESSAGE_INFOS="Message"
|
||||
CK_MESSAGE_INFOS_DESC="Ecrivez votre message et appliquez lui les styles que vous voulez."
|
||||
CK_TABS_HEADING_STYLE="Style de l'entête"
|
||||
CK_TABS_ACTIVE_HEADING_STYLE="Style actif de l'entête"
|
||||
CK_TABS_CONTENT_STYLE="Style du contenu"
|
||||
CK_CONFIRM_DELETE="Etes-vous sur de vouloir supprimer ?"
|
||||
CK_ACCORDION_HEADING_STYLE="Style de l'entête"
|
||||
CK_ACCORDION_ACTIVE_HEADING_STYLE="Style actif de l'entête"
|
||||
CK_ACCORDION_CONTENT_STYLE="Style du contenu"
|
||||
CK_SEPARATOR_CONTENT="Contenu du séparateur"
|
||||
CK_SEPARATOR_STYLE="Style du séparateur"
|
||||
CK_ICON="Icône"
|
||||
CK_ICON_SIZE="Taille de l'icône"
|
||||
CK_ICON_POSITION="Position de l'icône"
|
||||
CK_FILTER_BY_GROUP="Filtrer par groupe"
|
||||
CK_ICON_SIZE_X1-3="+33%"
|
||||
CK_ICON_SIZE_X2="x 2"
|
||||
CK_ICON_SIZE_X3="x 3"
|
||||
CK_ICON_SIZE_X4="x 4"
|
||||
CK_ICON_SIZE_X5="x 5"
|
||||
CK_MIDDLE="Milieu"
|
||||
CK_ICON_MARGIN="Espace entre l'icône et le texte"
|
||||
CK_SELECT_FONT="Selectionner une police"
|
||||
CK_FONTWEIGHT="Poids de la police"
|
||||
CK_EMPTY_URL="Veuillez écrire l'url d'une police dans le champ"
|
||||
CK_GOOGLEFONT_URL="Url ou nom de la police Google"
|
||||
CK_SUBMIT="Valider"
|
||||
CK_SEARCH="Rechercher"
|
||||
CK_FONT_APPLIED="Font applied"
|
||||
CK_FONT_NOT_FOUND="Font not found, please check the url or name"
|
||||
CK_FONTNAME_NOT_FOUND="Unable to retrieve the font name"
|
||||
CK_FONTURL_NOT_FOUND="Font url not found, please check the url or name"
|
||||
CK_GOOGLE_FONT="Google Font"
|
||||
CK_STYLES="Styles"
|
||||
CK_REMOVE="Remove"
|
||||
CK_TITLE="Title"
|
||||
CK_TITLE_STYLES="Title styles"
|
||||
CK_TEXT_STYLES="Text styles"
|
||||
CK_VARIATIONS="Variations"
|
||||
CK_IMAGE="Image"
|
||||
CK_ICON_EDITION="Edition de l'icône"
|
||||
CK_ICON_INFOS="Icône"
|
||||
CK_ICON_INFOS_DESC="Sélectionnez une icône dans la liste et appliquez lui les styles que vous voulez tels que la couleur, le fond, les coins arrondis ..."
|
||||
CK_ICON_STYLES="Style des icônes"
|
||||
CK_ICON_STYLE="Style des icônes"
|
||||
CK_FONTSIZE="Taille de police"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICON="Icon"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICON_DESC="Selectionner une icône dans la liste"
|
||||
COM_PAGEBUILDERCK_CONFIGURATION="Configuration de Page Builder CK"
|
||||
COM_PAGEBUILDERCK_ERROR_PAGE_NOT_FOUND="Page non trouvée"
|
||||
CK_SAVE_CLOSE="Enregistrer et Fermer"
|
||||
CK_ID="ID"
|
||||
CK_TYPE="Type"
|
||||
CK_POSITION="Position"
|
||||
COM_PAGEBUILDERCK_CONTENT_MODULE="Module"
|
||||
COM_PAGEBUILDERCK_CONTENT_MODULE_DESC="N'importe quel module de votre site"
|
||||
CK_MODULE_NOT_SELECTED="Aucun module sélectionné"
|
||||
CK_EDITION_NOT_FOUND="La zone d'édition n'a pas été trouvée pour l'élément"
|
||||
CK_MODULE_SELECTION="Module selection"
|
||||
CK_MODULE_INFOS="Module"
|
||||
CK_MODULE_INFOS_DESC="Choisissez un module dans la liste parmi tous les modules disponibles sur votre site. Ensuite vous pouvez utiliser les options de styles pour lui donner l'apparence souhaitée."
|
||||
CK_MODULE_STYLE="Style du module"
|
||||
CK_MODULE="Module"
|
||||
CK_INSERT_NEW="Insérer une nouvelle page"
|
||||
CK_INSERT_NEW_DESC="Cliquez sur le bouton pour ajouter un nouveau tag {pagebuilderck XX} dans l'article à la position du curseur"
|
||||
CK_NEW_TAG="Nouveau tag"
|
||||
CK_EXISTING_TAGS_FOUND="Tags existants trouvés"
|
||||
CK_EXISTING_TAGS_FOUND_DESC="Liste des tags existants trouvés dasn l'éditeur. Vous pouvez cliquer sur le bouton d'édition pour ouvrir la fenêtre d'édition de Pagebuilder CK pour la page sélectionnée."
|
||||
PLG_PAGEBUILDERCKBUTTON="Pagebuilder CK"
|
||||
PLG_PAGEBUILDERCKBUTTON_DESC="Utilisez ce bouton pour gérer les tags de Pagebuilder CK dans votre éditeur : - Insérer un nouveau tag depuis une page existante - Voir la liste des tags déjà présents et éditer la page en direct"
|
||||
CK_FULLSCREEN="Plein écran"
|
||||
CK_CSS_CLASS="CSS Class"
|
||||
CK_TITLE_EDITION="Edition du titre"
|
||||
CK_TITLE_CONTENT="Contenu du titre"
|
||||
CK_TITLE_STYLES="Style du titre"
|
||||
CK_TEXT_STYLES="Style du texte"
|
||||
CK_ICONTEXT_INFOS="Icône et texte"
|
||||
CK_ICONTEXT_INFOS_DESC="Sélectionnez une icône dans la liste et appliquez lui les styles que vous voulez tels que la couleur, le fond, les coins arrondis. Ecrivez le texte dans l'éditeur et appliquez lui également les styles que vous voulez."
|
||||
COM_PAGEBUILDERCK_CONTENT_ICONTEXT="Icône et Texte"
|
||||
COM_PAGEBUILDERCK_CONTENT_ICONTEXT_DESC="Icône et texte dans un seul bloc"
|
||||
CK_COVER="Couvrant"
|
||||
CK_ALT_TAG="Attribut Alt"
|
||||
CK_LINK="Lien"
|
||||
CK_LINK_URL="Url du lien"
|
||||
CK_REL_TAG="Attribut Rel"
|
||||
CK_LIGHTBOX="Lightbox"
|
||||
CK_USE_LIGHTBOX="Activer la lightbox"
|
||||
CK_LIGHTBOX_ALBUM="Grouper les images dans un album"
|
||||
CK_MEDIABOXCK_NOT_INSTALLED="Le plugin Mediabox CK n'est pas installé, vous ne pouvez pas utiliser les options suivantes"
|
||||
CK_DOWNLOAD="Télécharger"
|
||||
CK_ANIMATIONS="Animations"
|
||||
CK_ANIMATIONS_INFOS="Animations"
|
||||
CK_ANIMATIONS_DESC="Sélectionnez l'animation que vous voulez appliquer au bloc. Vous pouver combiner plusieurs animations et définir la durée que vous voulez."
|
||||
CK_DURATION="Durée"
|
||||
CK_FADE="Fondu"
|
||||
CK_MOVE="Mouvement"
|
||||
CK_DIRECTION="Direction"
|
||||
CK_LEFT_TO_RIGHT="Gauche à droite"
|
||||
CK_RIGHT_TO_LEFT="Droite à gauche"
|
||||
CK_TOP_TO_BOTTOM="Haut vers bas"
|
||||
CK_BOTTOM_TO_TOP="Bas vers haut"
|
||||
CK_DISTANCE="Distance"
|
||||
CK_ROTATE="Rotation"
|
||||
CK_SCALE="Redimensionner"
|
||||
CK_REPLAY_ANIMATION="Rejouer l'animation"
|
||||
|
||||
;added 1.0.2
|
||||
CK_PREVIEW_ANIMATION="Prévisualiser l'animation"
|
||||
CK_PLAY_ANIMATION="Jouer l'animation"
|
||||
CK_TITLE_EMPTY="Le titre est vide"
|
||||
|
||||
;added 1.1.0
|
||||
COM_PAGEBUILDERCK_INSERT_CONTENT="Glissez / déposez un élément dans la page"
|
||||
COM_PAGEBUILDERCK_COLLAPSE_MENU="Réduire le menu"
|
||||
|
||||
;added 1.1.1
|
||||
COM_PAGEBUILDERCK_CONTENT_VIDEO="Vidéo"
|
||||
COM_PAGEBUILDERCK_CONTENT_VIDEO_DESC="Utilisez n'importe quel service de vidéo"
|
||||
CK_VIDEO_EDITION="Edition de la vidéo"
|
||||
CK_VIDEO_INFOS="Vidéo"
|
||||
CK_VIDEO_INFOS_DESC="Vous pouvez utiliser n'importe quel service d'hébergement de vidéo comme Youtube. Vous devez fournir l'url qui pointe vers le player embarqué du service. Exemple : https://www.youtube.com/embed/codehere"
|
||||
CK_VIDEO="Vidéo"
|
||||
CK_INSERT_EXISTING_PAGE="Insérer une page existante"
|
||||
CK_INSERT_EXISTING_PAGE_DESC="Cliquer ici pour insérer une page existante à la position du curseur"
|
||||
CK_INSERT_PAGE_AND_CLOSE="Enregistrer, Insérer le tag et Fermer"
|
||||
CK_CREATE_NEW_PAGE="Créer une nouvelle page"
|
||||
CK_CREATE_NEW_PAGE_DESC="Cliquer ici pour créer une nouvelle page vierge"
|
||||
COM_PAGEBUILDERCK_N_ITEMS_DELETED="%d Elément(s) supprimé(s) avec succès"
|
||||
CK_COPY_ERROR="Erreur lors de la copie"
|
||||
CK_COPY_SUCCESS="Elément copié avec succès !"
|
||||
CK_RESTORE="Restaurer une version précédente"
|
||||
CK_DO_RESTORATION="Restaurer cette version"
|
||||
COM_PAGEBUILDERCK_CONTENT_HTML="Code personnalisé"
|
||||
COM_PAGEBUILDERCK_CONTENT_HTML_DESC="Ecrivez n'importe quel code HTML/PHP/JS"
|
||||
CK_NO_RESTORE_FILE_FOUND="Aucune sauvegarde trouvée"
|
||||
|
||||
;added 1.1.2
|
||||
CK_ZOOM="Zoom"
|
||||
CK_CONTENT="Contenu"
|
||||
CK_SHOWON="Montrer au"
|
||||
CK_MOUSEOVER="Survol"
|
||||
CK_CLICK="Clic"
|
||||
CK_ADDRESS="Adresse"
|
||||
CK_LATITUDE="Latitude"
|
||||
CK_LONGITUDE="Longitude"
|
||||
CK_DELETE="Supprimer"
|
||||
CK_IMPORT="Importer"
|
||||
CK_EXPORT="Exporter"
|
||||
COM_PAGEBUILDERCK_VOTE_JED="Si vous utilisez Page Builder CK merci de laisser un commentaire sur la JED."
|
||||
COM_PAGEBUILDERCK_VOTE_JED_BUTTON="C'est parti ! Je vote sur la JED pour supporter Page Builder CK"
|
||||
|
||||
;added 1.1.3
|
||||
COM_PAGEBUILDERCK_PAGES="Pages"
|
||||
CK_VIDEO_BACKGROUND_STYLES="Vidéo d'arrière plan"
|
||||
CK_VIDEO_BACKGROUND="Vidéo d'arrière plan"
|
||||
CK_VIDEO_BACKGROUND_INFOS="Vidéo d'arrière plan"
|
||||
CK_VIDEO_BACKGROUND_DESC="Définissez une vidéo qui sera utilisée en arrière plan du bloc."
|
||||
CK_VIDEO_URL_INFOS="Renseignez le chemin relatif à votre fichier vidéo.Il est recommandé de renseigner les trois types de fichiers pour garantir une compatibilité avec la majeure partie des systèmes. Exemple de chemin : images/video/bigbunny.mp4"
|
||||
CK_VIDEO_URL_MP4="Chemin vers le fichier MP4"
|
||||
CK_VIDEO_URL_WEBM="Chemin vers le fichier WEBM"
|
||||
CK_VIDEO_URL_OGV="Chemin vers le fichier OGV"
|
||||
CK_PREVIEW="Previsualiser"
|
||||
CK_ABOUT="A propos"
|
||||
CK_PAGEBUILDERCK_VERSION="Page Builder CK Version"
|
||||
CK_PAGEBUILDERCK_DESC="Page Builder CK vous permet de créer votre contenu rapidement et facilement."
|
||||
|
||||
;added 1.1.4
|
||||
CK_CHOOSE_FILE_PBCK="Choisir un fichier .pbck"
|
||||
CK_PAGEBUILDERCK_PARAMS_NOT_FOUND="Page Builder CK Params non trouvé !"
|
||||
CK_NOT_PBCK_FILE="Veuillez sélectionner un fichier .pbck"
|
||||
CK_FILE_NOT_EXISTS="Le fichier n'existe pas, impossible de le trouver"
|
||||
CK_UNABLE_READ_FILE="Impossible de lire le fichier"
|
||||
CK_IMPORT_SUCCESS="Fichier importé avec succès"
|
||||
COM_PAGEBUILDERCK_N_ITEMS_TRASHED="%d Elément(s) supprimé(s) avec succès"
|
||||
CK_SET_DEFAULT_CLOSED="Fermé par défaut"
|
||||
CK_PAGEBUILDERCK_PARAMS_INFO="Page Builder CK Params n'est pas installé. Téléchargez le pour obtenir plus d'éléments et plus de fonctionnalités."
|
||||
CK_ADD_NEW_ITEM="Ajouter un élément"
|
||||
CK_PLEASE_SELECT_ITEM="Veuillez sélectionner un élément"
|
||||
CK_START="Départ"
|
||||
CK_END="Fin"
|
||||
CK_APPEARANCE="Apparence"
|
||||
CK_NUMBER="Number"
|
||||
|
||||
;added 1.1.5
|
||||
CK_NO_FILE_RECEIVED="Impossible de récupérer le fichier, veuillez vérifier les paramètres de votre serveur et la taille du fichier"
|
||||
CK_FILE_NOT_EXISTS="Impossible de trouver le fichier uploadé. Merci de réessayer"
|
||||
CK_UNABLE_TO_CREATE_FOLDER="Impossible de créer le dossier"
|
||||
CK_UNABLE_WRITE_FILE="Impossible d'écrire le fichier sur le serveur"
|
||||
CK_ONCLICK="Au clic"
|
||||
CK_STYLES_HOVER="Styles au survol"
|
||||
|
||||
;added 1.1.8
|
||||
CK_PAGEBUILDERCK_PARAMS_CLASS_NOT_FOUND="Page Builder CK Params, Class non trouvée"
|
||||
CK_PAGEBUILDERCK_PARAMS_NEEDED_VERSION="Attention vous devez mettre à jour votre version de Page Builder CK Params. La version minimum requise est"
|
||||
|
||||
;added 1.1.11
|
||||
COM_PAGEBUILDERCK_CONTENT_AUDIO="Lecteur audio"
|
||||
COM_PAGEBUILDERCK_CONTENT_AUDIO_DESC="Jouer vos fichiers audio"
|
||||
CK_AUDIO_EDITION="Edition du lecteur audio"
|
||||
CK_AUDIO_INFOS="Lecteur audio"
|
||||
CK_AUDIO_INFOS_DESC="Ajoutez un lecteur audio à votre site. Choisissez le fichier à lire et personnalisez le bloc avec les options de style."
|
||||
CK_AUDIO="Audio"
|
||||
CK_AUDIO_FILE="Fichier audio"
|
||||
CK_OPTIONS="Options"
|
||||
CK_AUTOPLAY="Lecture auto"
|
||||
CK_SELECT_INFOS="Cliquez sur le fichier pour le sélectionner"
|
||||
CK_PREVIEW_INFOS="Survolez les fichiers dans l'arboresence pour voir l'aperçu ici"
|
||||
|
||||
;added 1.1.12
|
||||
CK_EDITION="Edition"
|
||||
COM_PAGEBUILDERCK_SHOW_TITLE="Afficher le titre"
|
||||
|
||||
;added 1.1.13
|
||||
COM_PAGEBUILDERCK_CONTENT_PREPARE="Activer plugins de contenu"
|
||||
COM_PAGEBUILDERCK_TITLE_TAG="Balise du titre"
|
||||
CK_LOAD_PAGE="Charger une page"
|
||||
CK_HOW_TO_LOAD_PAGE="Comment charger la page ?"
|
||||
CK_REPLACE="Remplacer"
|
||||
CK_TOP_PAGE="Ajouter en haut"
|
||||
CK_END_PAGE="Ajouter en bas"
|
||||
CK_TARGET="Cible"
|
||||
CK_REMOVE_BLOCK="Supprimer le bloc"
|
||||
CK_MOVE_BLOCK="Déplacer le bloc"
|
||||
CK_EDIT_STYLES="Editer les styles"
|
||||
CK_DECREASE_WIDTH="Diminuer la largeur du bloc"
|
||||
CK_INCREASE_WIDTH="Augmenter la largeur du bloc"
|
||||
CK_ADD_BLOCK="Ajouter un bloc"
|
||||
CK_REMOVE_ROW="Supprimer la ligne"
|
||||
CK_EDIT_COLUMNS="Editer les colonnes"
|
||||
CK_MOVE_ROW="Déplacer la ligne"
|
||||
CK_ADD_NEW_ROW="Ajouter une nouvelle ligne"
|
||||
CK_REMOVE_ITEM="Supprimer l'élément"
|
||||
CK_MOVE_ITEM="Déplacer l'élément"
|
||||
CK_DUPLICATE_ITEM="Dupliquer l'élément"
|
||||
CK_EDIT_ITEM="Editer l'élément"
|
||||
CK_ADD_COLUMN="Ajouter une colonne"
|
||||
CK_AUTOPLAY="Lecture auto"
|
||||
CK_PAUSE_HOVER="Pause au survol"
|
||||
CK_DURATION="Durée"
|
||||
|
||||
;added 1.2.0
|
||||
CK_LOAD_PAGEBUILDERCK_EDITOR="Basculer sur Page Builder CK"
|
||||
CK_CONFIRM_PAGEBUILDERCK_EDITOR="Etes-vous sûr ? Ceci remplacera l'éditeur et vous devrez créer votre page avec Page Builder CK."
|
||||
|
||||
;added 1.2.1
|
||||
CK_FAVORITES="Favoris"
|
||||
CK_DESIGN_SUGGESTIONS="Suggestions de design"
|
||||
CK_MYFAVORITES="Mes favoris"
|
||||
CK_STICK="Epingler"
|
||||
CK_CLOSE="Fermer"
|
||||
CK_BLOCK="Bloc"
|
||||
CK_ADD_TO_FAVORITES="Ajouter aux favoris"
|
||||
CK_ERROR_USER_NO_AUTH="Erreur : L'utilisateur n'a pas les droits pour cette action"
|
||||
CK_ERROR_CREATING_FAVORITEFILE="Erreur pendant la création du favori"
|
||||
CK_ERROR_DELETING_FAVORITEFILE="Erreur pendant la suppression du favori"
|
||||
CK_DUPLICATE_ROW="Dupliquer la ligne"
|
||||
|
||||
;added 1.2.3
|
||||
CK_SELECT_MODULE_FIRST="Veuillez d'abord sélectionner un module"
|
||||
CK_MORE_MENU_ELEMENTS="Plus d'éléments de menu"
|
||||
CK_FULLWIDTH="Pleine largeur"
|
||||
|
||||
;added 1.3.0
|
||||
CK_LOAD_MODEL="Charger un modèle"
|
||||
CK_OVERLAY_STYLES="Styles de l'overlay"
|
||||
CK_OVERLAY_INFOS="Ecran overlay"
|
||||
CK_OVERLAY_DESC="Vous pouvez définir un écran qui s'interpose entre le fond du bloc et les éléments de contenu. Par exemple en donnant une couleur de fond et une opacité à l'overlay, vous créez un effet de mise en relief sur l'image de fond du bloc."
|
||||
CK_TOGGLE_EDITOR="Basculer l'éditeur"
|
||||
|
||||
COM_PAGEBUILDERCK_CONTENT_READMORE="Read More"
|
||||
COM_PAGEBUILDERCK_CONTENT_READMORE_DESC="Add a readmore separation"
|
||||
|
||||
;added 1.3.5
|
||||
CK_DUPLICATE_COLUMN="Dupliquer la colonne"
|
||||
|
||||
;added 1.3.9
|
||||
COM_PAGEBUILDERCK_ARTICLES="Articles"
|
||||
COM_PAGEBUILDERCK_MODULES="Modules"
|
||||
CK_PREVIEW_FRONT="Prévisualiser sur le site"
|
||||
CK_SAVE_AS_PAGE="Enregistrer comme page"
|
||||
CK_RESPONSIVE_SETTINGS="Paramètres responsive"
|
||||
CK_BROWSE_INFOS="Cliquez sur un dossier pour voir les images qu'il contient et y uploader les vôtres. Cliquez sur une image pour la sélectionner."
|
||||
|
||||
;added 1.4.4
|
||||
CK_CHECK_HTML="Vérifier HTML"
|
||||
CK_CHECK_HTML_DESC="Vérifie qu'il n'y ait pas d'erreurs HTML comme des identifiants identiques"
|
||||
CK_ENTER_CLASSNAMES="Veuillez entrer les noms des classes css séparés par un espace"
|
||||
CHECK_IDS_ALERT_PROBLEM="Certains blocs ont le même ID. Ceci doit être corrigé. Trouvez les éléments en rouge et renommez les"
|
||||
CHECK_IDS_ALERT_OK="Validation terminée avec succès, tout est OK !"
|
||||
CK_ENTER_UNIQUE_ID="Veuillez entrer un ID unique (ceci doit être un texte)"
|
||||
CK_INVALID_ID="ID invalide ou existe déjà"
|
||||
CK_ENTER_VALID_ID="Veuillez entrer un ID valide"
|
||||
|
||||
;added 1.5.2
|
||||
CK_IMAGE_EFFECT="Image Effect"
|
||||
CK_IMAGEEFFECTCK_NOT_INSTALLED="Le plugin Image Effect CK n'est pas installé. Vous ne pouvez pas utiliser cette fonctionnalité"
|
||||
CK_IMAGEEFFECTCK_BUTTON_NOT_INSTALLED="Le plugin Image Effect CK Pro n'est pas installé. Vous ne pouvez pas utiliser cette fonctionnalité"
|
||||
|
||||
;added 1.5.6
|
||||
CK_UNDO="Annuler"
|
||||
CK_REDO="Refaire"
|
||||
CK_ELEMENTS="Eléments"
|
||||
CK_HTML_CSS="HTML / CSS"
|
||||
|
||||
;added 1.2.0
|
||||
CK_FOLDERS="Dossiers"
|
||||
CK_ELEMENTS="Eléments"
|
||||
CK_GUTTER="Espace entre les colonnes"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROW="Rangée"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROW_DESC="Rangée avec colonnes"
|
||||
CK_PHONE = "Téléphone"
|
||||
CK_TABLET = "Tablette"
|
||||
CK_PORTRAIT = "Portrait"
|
||||
CK_LANDSCAPE = "Paysage"
|
||||
CK_RESPONSIVE_VALUE_DESC="Définir une resolution d'écran, en px"
|
||||
CK_COLUMNS="Colonnes"
|
||||
CK_SUGGESTIONS="Suggestions"
|
||||
CK_RESPONSIVE_SETTINGS_ALIGNED="Alignés"
|
||||
CK_RESPONSIVE_SETTINGS_STACKED="Empilés"
|
||||
CK_RESPONSIVE_SETTINGS_HIDDEN="Caché"
|
||||
CK_RESPONSIVE_SETTINGS_SHOWN="Affiché"
|
||||
CK_COMPUTER="Ordinateur"
|
||||
CK_ROW="Rangée"
|
||||
CK_SET_RESPONSIVE_VALUE_IN_OPTIONS="Définissez les valeurs responsives dans les options du composant"
|
||||
CK_EDIT_FULLSCREEN="Editer en plein écran"
|
||||
CK_DELAY="Délai"
|
||||
CK_MENU_ITEMS="Liens de menu"
|
||||
CK_MENU_ITEMS_DESC="Vous pouvez naviguer dans les menus avec les icônes +/-. Une fois que vous avez trouvé le lien de menu que vous cherchez, cliquez dessus pour le sélectionner."
|
||||
CK_AUTO_WIDTH="Largeur auto"
|
||||
CK_ADVANCED_LAYOUT="Disposition avancée"
|
||||
CK_RATIO="Ratio"
|
||||
|
||||
;added 2.0.5
|
||||
CK_REFRESH="Raffraichir"
|
||||
|
||||
;added 2.2.0
|
||||
COM_PAGEBUILDERCK_MY_ELEMENTS="Mes éléments"
|
||||
CK_MY_ELEMENTS="Mes éléments"
|
||||
COM_PAGEBUILDERCK_DESCRIPTION="Description"
|
||||
COM_PAGEBUILDERCK_TYPE="Type"
|
||||
CK_ORDERING="Ordre"
|
||||
CK_SAVE="Enregistrer"
|
||||
|
||||
;added 2.2.7
|
||||
CK_DIVIDER="Shape divider"
|
||||
CK_SHAPE="Shape"
|
||||
CK_FLIP_HORIZONTAL="Flip horizontal"
|
||||
CK_FLIP_VERTICAL="Flip vertical"
|
||||
CK_INVERSE="Inverse"
|
||||
CK_PLACEMENT="Placement"
|
||||
CK_FIRST_COLOR="First color"
|
||||
CK_SECOND_COLOR="Second color"
|
||||
CK_UNDER_CONTENT="Under content"
|
||||
CK_OVER_CONTENT="Over content"
|
||||
CK_CLOUDS="Clouds"
|
||||
CK_MULIPLE_CLOUDS="Multiple clouds"
|
||||
CK_PAPER="Paper"
|
||||
CK_BRIDGE="Bridge"
|
||||
CK_MOUNTAIN="Mountain"
|
||||
CK_WAVE="Wave"
|
||||
CK_MULTIPLE_WAVE="Multiple waves"
|
||||
CK_SLOPE="Slope"
|
||||
CK_MULIPLE_SLOPE="Multiple slopes"
|
||||
CK_DRIP="Drip"
|
||||
CK_ASYM_SLOPE="Asymetric slope"
|
||||
CK_VSLOPE="V slope"
|
||||
CK_MULTIVSLOPE="Multiple V slopes"
|
||||
CK_MULTIV3SLOPE="Multiple V 3 slopes"
|
||||
CK_TRIANGLE="Triangle"
|
||||
CK_TRIANGLE_SMALL="Triangle small"
|
||||
CK_TRIANGLE_3="3 Triangles"
|
||||
CK_ELLIPSE="Ellipse"
|
||||
|
||||
;added 2.2.8
|
||||
CK_ALWAYS="Always"
|
||||
|
||||
;added 2.3.0
|
||||
CK_ADDONS="Eléments"
|
||||
CK_PAGES="Pages"
|
||||
CK_MODELS="Modèles"
|
||||
|
||||
;added 2.3.1
|
||||
CK_WARNING_USERGROUP_FILTERTYPE_BLACKLIST="Votre groupe d'utilisateur a un filtre de texte défini sur Liste Noire. Cela risque de causer la perte des données lors de l'enregistrement de votre article. Merci de contacter votre administrateur pour corriger cela."
|
||||
CK_WARNING_USERGROUP_FILTERTYPE_WHITELIST_NOSTYLE="Votre groupe d'utilisateur a un filtre de texte défini sur Liste Blanche mais il manque le tag 'style' dans la liste des tags autorisés. Cela risque de causer la perte des données lors de l'enregistrement de votre article. Merci de contacter votre administrateur pour corriger cela."
|
||||
|
||||
;added 2.4.0
|
||||
CK_CUSTOMCSS_DESC="Vous pouvez écrire vos propres règles CSS qui seront ajoutées à la page. Notez que le code ne sera pas chargé dans l'interface, mais uniquement lors du rendu de la page en frontend."
|
||||
CK_RESPONSIVE_RANGE_LABEL="Type de plage"
|
||||
CK_RESPONSIVE_RANGE_DESC="Palier : utilise les attributs min-width et max-width. Réduction : n'utilise que max-width, donc les propriétés se propageront à toutes les résolutions inférieures"
|
||||
CK_RESPONSIVE_BETWEEN="Palier"
|
||||
CK_RESPONSIVE_REDUCING="Réduction"
|
||||
|
||||
;added 2.3.6
|
||||
COM_PAGEBUILDERCK_CONTENT_WRAPPER="Conteneur"
|
||||
COM_PAGEBUILDERCK_CONTENT_WRAPPER_DESC="Conteneur pour y mettre des rangées"
|
||||
CK_WRAPPER_IN_WRAPPER_NOT_ALLOWED="Vous ne pouvez pas mettre un conteneur dans un autre"
|
||||
CK_MOVE_WRAPPER="Déplacer le conteneur"
|
||||
CK_DUPLICATE_WRAPPER="Dupliquer le conteneur"
|
||||
CK_REMOVE_WRAPPER="Supprimer le conteneur"
|
||||
;CK_CHOOSE_METHOD="Choose how to set up the width : full width or fixed width."
|
||||
CK_FIXEDWIDTH="Largeur fixe"
|
||||
CK_READ_DOCUMENTATION="Lire la documentation"
|
||||
CK_FULLWIDTH_STANDARD_INFO="Ceci va laisser le contenu prendre toute la place disponible dans le template. Si vous voulez que ce soit aussi large que l'écran, vous devez vous assurez que la zone dans votre template soit en pleine largeur."
|
||||
CK_FULLWIDTH_JAVASCRIPT_ALERT="ATTENTION : non recommendé ! Cette méthode est proposée pour dépanner les débutants et pour des sites personnels. Ne l'utilisez pas sur un site professionnel. Cette méthode génère des effets désagréables lors du scroll."
|
||||
CK_FULLWIDTH_STANDARD="Standard"
|
||||
CK_FULLWIDTH_JAVASCRIPT="Javascript"
|
||||
CK_ROW_WRAPPER="Conteneur de rangée"
|
||||
CK_ROWWIDTH_EDIT="Edition largeur"
|
||||
CK_FIXEDWIDTH_INFO="Ceci va limiter la largeur du contenu dans la rangée à la largeur fixée ci-après. Cela reste responsive, mais ne sera pas plus large que cette valeur."
|
||||
CK_RESOLUTION="Résolution"
|
||||
CK_FIXEDWIDTH_RESOLUTION="Valeur fixe"
|
||||
CK_FIXEDWIDTH_TEMPLATECREATOR="Automatique avec Template Creator CK"
|
||||
|
||||
;added 2.3.7
|
||||
CK_EXIT="Sortir"
|
||||
|
||||
;added 2.4.3
|
||||
CK_LINK_TARGET="Cible du lien"
|
||||
CK_LINK_TARGET_SAME="Même fenêtre"
|
||||
CK_LINK_TARGET_NEW="Nouvelle fenêtre"
|
||||
CK_FOLDER_CREATED_ERROR="Erreur : le dossier n'a pas été créé"
|
||||
CK_FOLDER_CREATED_SUCCESS="Dossier créé avec succès"
|
||||
CK_CREATE_FOLDER="Créer le dossier"
|
||||
CK_ADD_SUB_FOLDER="Ajouter un sous-dossier"
|
||||
CK_MUTED="Son coupé"
|
||||
CK_NUMBER_COLS="Nombre de colonnes"
|
||||
CK_DISPLAY_TYPE_LIST="Affichage liste"
|
||||
CK_DISPLAY_TYPE_GRID="Affichage grille"
|
||||
CK_GROUP_LAYOUT="Structure"
|
||||
CK_GROUP_TEXT="Texte"
|
||||
CK_GROUP_IMAGE="Image"
|
||||
CK_GROUP_MULTIMEDIA="Multimedia"
|
||||
CK_GROUP_OTHER="Autres"
|
||||
|
||||
;added 2.4.5
|
||||
COM_PAGEBUILDERCK_NESTEDROWS_LABEL="Activer l'imbrication de rangées"
|
||||
COM_PAGEBUILDERCK_NESTEDROWS_DESC="Pour les utilisateurs avancés qui veulent créer des design plus complexes"
|
||||
|
||||
;added 2.4.7
|
||||
CK_COLOR_PALETTE="Palette de couleurs"
|
||||
CK_COLOR_PALETTE_DESC="Définissez quelles couleurs vous voulez enregistrer pour votre projet. Elles seront alors disponible directement depuis le colorpicker en 1 clic."
|
||||
CK_COLOR_PALETTE_COLORPALETTE="Palette de couleurs"
|
||||
CK_COLOR_PALETTE_COLORPALETTEFROMSETTINGS="Couleurs des paramètres"
|
||||
CK_COLOR_PALETTE_COLORPALETTEFROMTEMPLATE="Couleurs du template"
|
||||
|
||||
;added 2.4.8
|
||||
COM_PAGEBUILDERCK_CONTENT_ROWINROW="Rangée imbriquée"
|
||||
COM_PAGEBUILDERCK_CONTENT_ROWINROW_DESC="Rangée dans une rangée"
|
||||
|
||||
CK_ADD_NEW_PAGEBUILDER_MODULE="Ajouter un module Page Builder CK"
|
||||
|
||||
;added 2.5.0
|
||||
COM_PAGEBUILDERCK_CONTENTTYPES="Types de contenu"
|
||||
CK_CONTENT_TYPE="Type de contenu"
|
||||
CK_LAYOUT_EDITION="Mise en forme"
|
||||
CK_LAYOUT="Disposition"
|
||||
CK_LABELS_WIDTH="Largeur des titres"
|
||||
CK_FIELDS_WIDTH="Largeur des champs"
|
||||
CK_SHOW_LABELS="Montrer les titres"
|
||||
CK_ROWS_STYLE="Styles des rangées"
|
||||
CK_LABELS_STYLE="Styles des titres"
|
||||
CK_FIELDS_STYLE="Styles des champs"
|
||||
CK_PAGEBUILDERCK_PRO_INFO="Seulement disponible dans la version Pro. Cliquez pour en savoir plus."
|
||||
CK_ENABLE="Activer"
|
||||
CK_FRONT_EDITION="Edition Front"
|
||||
CK_PARALLAX="Parallax"
|
||||
CK_SPEED="Vitesse"
|
||||
CK_ADD="Ajouter"
|
||||
CK_DRAG_DROP_PAGE="Glissez et déposez la page dans l'interface pour l'insérer où vous voulez"
|
||||
CK_PAGE="Page"
|
||||
CK_PAGEBUILDERCK_GETMORE_PRO_ITEMS="Installez la version Pro pour obtenir plus d'éléments"
|
||||
CK_PAGEBUILDERCK_PRO_ONLY="Uniquement disponible dans la version Pro"
|
||||
|
||||
;2.5.5
|
||||
CK_FILES="Fichiers"
|
||||
CK_MENUS="Menus"
|
||||
|
||||
;2.5.9
|
||||
CK_ROWS_STYLES="Styles des rangées"
|
||||
|
||||
;2.6.0
|
||||
CK_ADD_ITEM="Ajouter un élément"
|
||||
CK_COLUMNS_SPACE_BETWEEN="Espace automatique entre colonnes"
|
||||
CK_EDIT_RESPONSIVE_COLUMNS_DESC="Cliquer pour éditer les colonnes en mode responsive"
|
||||
CK_EDIT_RESPONSIVE_COLUMNS="Edition largeur responsive"
|
||||
CK_ARTICLES="Articles"
|
||||
|
||||
;2.6.1
|
||||
CK_FLIP="Flip"
|
||||
|
||||
;added 2.7.0
|
||||
CK_ACCESS_RIGHTS="Droits d'accès"
|
||||
CK_EDIT_CONTENT="Editer le contenu"
|
||||
CK_VIEW_CONTENT="Voir en front"
|
||||
CK_ACL_EDIT="Droits d'édition"
|
||||
CK_NO_RIGHTS="Vous n'avez pas les droits."
|
||||
CK_GROUP="Groupe"
|
||||
CK_COLUMN="Colonne"
|
||||
CK_ITEM="Elément"
|
||||
|
||||
;added 2.7.1
|
||||
CK_CLIPBOARDEMPTY="Presse-papiers est vide"
|
||||
CK_COPYFROMCLIPBOARD="Appliquer les styles du Presse-papier ? Cela va remplacer tous les styles existants."
|
||||
CK_AUTOLINK_IMAGES="Liens auto vers images"
|
||||
|
||||
;added 2.7.2
|
||||
CK_FIRST_SHAPE="Première shape"
|
||||
CK_SECOND_SHAPE="Deuxième shape"
|
||||
|
||||
;added 2.2.9
|
||||
CK_LINK_STYLES="Styles du lien"
|
||||
CK_LINK_STYLES_HOVER="Styles du lien survolé"
|
||||
CK_LINK_TEXT="Text du lien"
|
||||
CK_LINK_ICON="Icône du lien"
|
||||
|
||||
;added 2.9.0
|
||||
CK_ITEM_SAVED_FAILED="Enregistrement échoué ! L'élément n'a pas été enregistré"
|
||||
CK_ITEM_SAVED_SUCCESS="L'élément a été enregistré avec succès"
|
||||
CK_LOOP="Boucle"
|
||||
CK_CONTROLS="Contrôles"
|
||||
CK_ITEM_TRASH_SUCCESS="Mis à la corbeille avec succès"
|
||||
CK_ITEM_TRASH_FAILED="La mise à la corbeille a échoué ! L'élément n'a pas été mis à la corbeille"
|
||||
|
||||
;added 2.9.7
|
||||
CK_NORMAL_STATE="Etat normal"
|
||||
CK_HOVER_STATE="Etat survolé"
|
||||
CK_EFFECTS="Effets"
|
||||
CK_BRIGHTNESS="Luminosité"
|
||||
CK_GRAYSCALE="Niveau de gris"
|
||||
CK_SHOW_LIGHTBOX_TITLE="Montrer le titre dans la Lightbox"
|
||||
CK_SHOW_LIGHTBOX_DESC="Montrer la description dans la Lightbox"
|
||||
|
||||
;added 2.9.9
|
||||
CK_CLICK_TO_EDIT_CONTENT="Cliquer pour éditer le contenu"
|
||||
CK_ITEM_TRASH_ERROR="Erreur lors de la suppression"
|
||||
CK_ITEM_TRASH_SUCCESS="Elément supprimé avec succès !"
|
||||
|
||||
;added 2.9.11
|
||||
CK_DATE="Date"
|
||||
|
||||
;added 2.10
|
||||
CK_SVG_ICON="Icône SVG"
|
||||
CK_SVG_ICONS="Icônes SVG"
|
||||
CK_STROKE="Trait"
|
||||
CK_FILL="Remplissage"
|
||||
CK_VERTICAL_ALIGN="Alignement vertical"
|
||||
CK_FONTAWESOME="FontAwesome"
|
||||
|
||||
;added 2.10.2
|
||||
CK_CLEAR_STYLES="Effacer les styles"
|
||||
CK_CONFIRM_CLEAR_STYLES="Etes-vous sur de vouloir supprimer tous les styles ?"
|
||||
|
||||
;added 2.11.0
|
||||
CK_BOTTOM_SHAPE="Forme du bas"
|
||||
CK_TOP_SHAPE="Forme du haut"
|
||||
CK_BOOK="Livre"
|
||||
CK_BUBBLES="Bulles"
|
||||
CK_TREES="Arbres"
|
||||
CK_CITY="Ville"
|
||||
CK_FALL_LEAVES="Feuilles d'automne"
|
||||
CK_FIRE="Feu"
|
||||
CK_SPHERE="Sphère"
|
||||
CK_MUSIC="Musique"
|
||||
CK_PAINT="Peinture"
|
||||
CK_PYRAMID="Pyramide"
|
||||
CK_SNOWFLAKES="Flocons de neige"
|
||||
CK_BUTTERFLY="Papillon"
|
||||
CK_ANIMATED_WAVES="Vagues animées"
|
||||
CK_OFFSET_HORIZONTAL="Horizontal"
|
||||
CK_OFFSET_VERTICAL="Vertical"
|
||||
CK_TOGGLE_PANEL="Basculer le panneau"
|
||||
|
||||
;added 2.12.0
|
||||
CK_LINE="Ligne"
|
||||
|
||||
;added 2.12.1
|
||||
CK_USE_TEXT="Afficher un texte"
|
||||
|
||||
;added 2.13.0
|
||||
CK_RESPONSIVE_RESOLUTION="Résolution mobile"
|
||||
CK_DROP_FILES_TO_UPLOAD="Glissez déposez pour téléverser"
|
||||
CK_OR_SELECT_FILES="ou sélectionnez des fichiers"
|
||||
CK_NO_IMAGE_FOUND="Aucune image trouvée"
|
||||
|
||||
;added 2.13.4
|
||||
CK_ARROW_STYLES="Style de la flèche"
|
||||
|
||||
;added 2.13.7
|
||||
CK_CENTER="centre"
|
||||
CK_SOURCE="Source"
|
||||
CK_FOLDER_PATH="Chemin du dossier"
|
||||
CK_FOLDER="Dossier"
|
||||
CK_EDITOR="Editeur"
|
||||
|
||||
;added 2.13.8
|
||||
CK_VALIGN_DEFAULT="Aligné par défaut"
|
||||
CK_VALIGN_TOP="Aligné en haut"
|
||||
CK_VALIGN_CENTER="Aligné au centre"
|
||||
CK_VALIGN_BOTTOM="Aligné en bas"
|
||||
CK_IMPORT_ERROR_IMPORT_FILE_DECODING="Erreur lors de l'import du fichier : impossible à décoder"
|
||||
|
||||
;added 2.13.9
|
||||
CK_NO_FILE_FOUND="Aucun fichier trouvé"
|
||||
|
||||
;added 2.14.0
|
||||
COM_PAGEBUILDERCK_SELECT_CATEGORY="Sélectionner une catégorie"
|
||||
COM_PAGEBUILDERCK_CATEGORIES="Catégories"
|
||||
CK_NEW_CATEGORY="Nouvelle categorie"
|
||||
|
||||
;added 2.16.0
|
||||
COM_PAGEBUILDERCK_STYLES="Styles"
|
||||
CK_LOAD_STYLE="Charger un style"
|
||||
|
||||
;added 2.17.0
|
||||
CK_EXPORT_WITH_IMAGES="Exporter avec images"
|
||||
CK_EXPORT_AS_LIBRARY="Exporter comme librarie"
|
||||
CK_EXPORT_PAGE_AS_LIBRARY_DESC="Donnez une catégorie et un nom pour votre bibliothèque qui apparaîtra dans la liste dans Page Builder CK. N'utilisez pas de caractères spéciaux"
|
||||
CK_CATEGORY="Categorie"
|
||||
CK_FIELD_EMPTY="Champ vide"
|
||||
|
||||
;added 2.18.0
|
||||
CK_ORIENTATION="Orientation"
|
||||
|
||||
;added 2.18.8
|
||||
CK_AUTHOR="Author"
|
||||
|
||||
;added 3.0.0
|
||||
CK_ATTACHMENT="Fixation"
|
||||
CK_CLEAR="Effacer"
|
||||
CK_USE_LOCAL_GFONTS="Utiliser les polices locales"
|
||||
CK_USE_LOCAL_GFONTS_DESC = "Si vous utilisez les polices locales, elles seront téléchargées depuis Google et stockées dans votre site pour fournir les fichiers localement. Sinon, il utilisera les feuilles de style Google pour appeler les polices du serveur Google."
|
||||
CK_USE_THIS_STYLE="Utiliser ce style"
|
||||
CK_FONT_MANAGER="Gestionnaire"
|
||||
CK_TOTAL_FILE_SIZE="Taille totale de fichier"
|
||||
CK_BACK="Retour"
|
||||
CK_FONT_ICON="Icône font"
|
||||
CK_PLEASE_SELECT_ICON_PACK="Veuillez sélectionner un pack d'icônes"
|
||||
CK_CUSTOM_SVG="SVG Perso"
|
||||
CK_OR="Ou"
|
||||
CK_TAG="Tag"
|
||||
CK_HOVER_COLOR="Couleur de survol"
|
||||
CK_STRIPPED_COLOR="Couleur alternée"
|
||||
@@ -0,0 +1,2 @@
|
||||
; license https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
1
components/com_pagebuilderck/language/index.html
Normal file
1
components/com_pagebuilderck/language/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
12
components/com_pagebuilderck/models/contenttype.php
Normal file
12
components/com_pagebuilderck/models/contenttype.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/contenttype.php';
|
||||
12
components/com_pagebuilderck/models/element.php
Normal file
12
components/com_pagebuilderck/models/element.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/element.php';
|
||||
12
components/com_pagebuilderck/models/elements.php
Normal file
12
components/com_pagebuilderck/models/elements.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/elements.php';
|
||||
12
components/com_pagebuilderck/models/fonts.php
Normal file
12
components/com_pagebuilderck/models/fonts.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/fonts.php';
|
||||
1
components/com_pagebuilderck/models/index.html
Normal file
1
components/com_pagebuilderck/models/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
12
components/com_pagebuilderck/models/links.php
Normal file
12
components/com_pagebuilderck/models/links.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/links.php';
|
||||
12
components/com_pagebuilderck/models/menus.php
Normal file
12
components/com_pagebuilderck/models/menus.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/menus.php';
|
||||
12
components/com_pagebuilderck/models/modules.php
Normal file
12
components/com_pagebuilderck/models/modules.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/modules.php';
|
||||
902
components/com_pagebuilderck/models/page.php
Normal file
902
components/com_pagebuilderck/models/page.php
Normal file
@@ -0,0 +1,902 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\Registry\Registry;
|
||||
use Pagebuilderck\CKModel;
|
||||
use Pagebuilderck\CKFof;
|
||||
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/defines.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/ckmodel.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/simple_html_dom.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderckfront.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderck.php';
|
||||
|
||||
class PagebuilderckModelPage extends CKModel {
|
||||
|
||||
protected $table = '#__pagebuilderck_pages';
|
||||
|
||||
var $item = null;
|
||||
|
||||
// protected $_context = 'com_pagebuilderck.page';
|
||||
|
||||
public $styleTags;
|
||||
|
||||
public $responsiveStyleTags4, $responsiveStyleTags3, $responsiveStyleTags2, $responsiveStyleTags1;
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getItem($id = 0) {
|
||||
$user = JFactory::getUser();
|
||||
|
||||
// for new page
|
||||
if ($id === 0) {
|
||||
// check that the user has the rights to edit
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
return false;
|
||||
}
|
||||
$this->item = CKFof::dbLoad($this->table, $id);
|
||||
} else {
|
||||
// item already exists
|
||||
if (empty($this->item)) {
|
||||
// $id = $this->input->get('id', $id, 'int');
|
||||
$query = "SELECT * FROM " . $this->table . " AS a"
|
||||
. " WHERE a.state = 1"
|
||||
. " AND a.id = " . (int) $id;
|
||||
try {
|
||||
$this->item = CKFof::dbLoadObject($query);
|
||||
} catch(Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (empty($this->item)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($id !== 0) {
|
||||
// counter for hits
|
||||
$sql = "UPDATE #__pagebuilderck_pages SET hits = hits + 1 WHERE id= " . $this->item->id;
|
||||
CKFof::dbExecute($sql);
|
||||
}
|
||||
}
|
||||
|
||||
if (! empty($this->item)) {
|
||||
// transform params to JRegistry object
|
||||
if (isset($this->item->params)) $this->item->params = new JRegistry($this->item->params);
|
||||
}
|
||||
|
||||
// get the list of categories
|
||||
if (isset($this->item->categories)) $this->item->categories = explode(',', $this->item->categories);
|
||||
|
||||
if (isset($this->item->htmlcode) && $this->item->htmlcode) {
|
||||
// replace the root path for all elements
|
||||
$this->item->htmlcode = trim(str_replace("|URIROOT|", JUri::root(true), $this->item->htmlcode));
|
||||
|
||||
// load the general style
|
||||
if (! empty($this->item->styles)) {
|
||||
foreach($this->item->styles as $style) {
|
||||
$this->styleTags .= PagebuilderckHelper::getStyleCode($style);
|
||||
}
|
||||
}
|
||||
|
||||
// pass through the html code to convert what is needed
|
||||
if ($this->input->get('layout', '', 'cmd') !== 'edit') {
|
||||
$this->parseHtml($this->item->htmlcode);
|
||||
}
|
||||
|
||||
// active the content plugins interaction
|
||||
if ($this->item->params->get('contentprepare', '0')) {
|
||||
CKFof::importPlugin('content');
|
||||
$this->item->htmlcode = JHtml::_('content.prepare', $this->item->htmlcode, '', 'com_pagebuilderck.page');
|
||||
}
|
||||
}
|
||||
|
||||
return $this->item;
|
||||
}
|
||||
|
||||
public function parseHtml(&$htmlcode) {
|
||||
$customcss = '';
|
||||
// replace the root path for all elements
|
||||
$htmlcode = trim(str_replace("|URIROOT|", JUri::root(true), (string)$htmlcode));
|
||||
// replace the tags for W3C compliance
|
||||
// $htmlcode = trim(str_replace('<div class="ckstyle"><style>', '<div class="ckstyle"><style scoped>', $htmlcode)); // WARNING : scoped limits to the ckstyle parent !
|
||||
$htmlcode = str_replace('https://fonts.googleapis.com', 'https://fonts.googleapis.com', $htmlcode);
|
||||
$htmlcode = trim(str_replace('height=""', '', $htmlcode));
|
||||
$htmlcode = trim(str_replace('width=""', '', $htmlcode));
|
||||
// for RS Firewall fix
|
||||
$htmlcode = trim(str_replace('<s-tyle', '<style', $htmlcode));
|
||||
$htmlcode = trim(str_replace('</s-tyle', '</style', $htmlcode));
|
||||
// other fix
|
||||
$htmlcode = trim(str_replace('<style type="text/css" wfd-invisible="true">', '<style>', $htmlcode));
|
||||
$htmlcode = trim(str_replace('<style wfd-invisible="true"', '<style', $htmlcode));
|
||||
|
||||
// load the modules
|
||||
// <div class="modulerow" data-module="mod_menu" data-title="a propos de joomla!" data-id="23" style="cursor:pointer;">
|
||||
$regex2 = "#<div\s[^>]*class=\"modulerow([^\"]*)\"([^>]*)>(.*)<\/div>#siU"; // masque de recherche pour le tag
|
||||
$htmlcode = preg_replace_callback($regex2, array($this, 'replaceModule'), $htmlcode);
|
||||
|
||||
// load the pages
|
||||
$regex3 = "#<div\s[^>]*class=\"pagerow([^\"]*)\"([^>]*)>(.*)<\/div>#siU"; // masque de recherche pour le tag
|
||||
$htmlcode = preg_replace_callback($regex3, array($this, 'replacePage'), $htmlcode);
|
||||
|
||||
// loop through elements to be replaced in frontend
|
||||
// $regex_type = "#<div\s[^>]*class=\"cktype([^\"]*)\"([^>]*)>(.*?)<\/div>#siU"; // masque de recherche pour le tag
|
||||
// $htmlcode = preg_replace_callback($regex_type, array($this, 'replaceElement'), $htmlcode);
|
||||
|
||||
if ($htmlcode) {
|
||||
$html = \Pagebuilderck\str_get_html($htmlcode);
|
||||
|
||||
// find all acl in the page
|
||||
foreach($html->find('[data-acl-view]') as $e) {
|
||||
$aclview = explode(',', $e->attr['data-acl-view']);
|
||||
$user = JFactory::getUser();
|
||||
$aclviewexists = array_intersect($user->groups, $aclview);
|
||||
if (! empty($aclviewexists)) {
|
||||
$e->outertext = '';
|
||||
}
|
||||
}
|
||||
|
||||
// find all types in the page
|
||||
foreach($html->find('div.cktype') as $e) {
|
||||
if ($e->attr['data-type'] !== 'text') {
|
||||
foreach($e->find('div.cktype') as $f) {
|
||||
$f->innertext = $this->replaceElement($f);
|
||||
}
|
||||
}
|
||||
$e->innertext = $this->replaceElement($e);
|
||||
}
|
||||
|
||||
// find all google fonts, call them as stylesheet in the page header
|
||||
$fonts = PagebuilderckHelper::getFonts();
|
||||
foreach($html->find('div.googlefontscall') as $e) {
|
||||
$regex = "#href=\"\s*[^>]*\?family=([^\"]*)\"[^>]*>#siU"; // replace all divs with class ckprops
|
||||
foreach(explode('<link', $e->innertext) as $call) {
|
||||
preg_match($regex, $call, $matches);
|
||||
$fontcalled = isset($matches[1]) && $matches[1] ? $matches[1] : '';
|
||||
if ($fontcalled) {
|
||||
if (isset($fonts[$fontcalled])) {
|
||||
$font = $fonts[$fontcalled];
|
||||
if ($font->local === 1) {
|
||||
$url = PagebuilderckHelper::getFontPath($font->name);
|
||||
} else {
|
||||
$url = $font->url;
|
||||
}
|
||||
PagebuilderckFrontHelper::addStylesheet($url);
|
||||
} else {
|
||||
PagebuilderckFrontHelper::addStylesheet('https://fonts.googleapis.com/css?family=' . $fontcalled);
|
||||
}
|
||||
}
|
||||
$e->innertext = '';
|
||||
}
|
||||
}
|
||||
|
||||
// find all google fonts, call them as stylesheet in the page header
|
||||
foreach($html->find('div.ckcustomcssfield') as $e) {
|
||||
$customcss = htmlspecialchars_decode($e->innertext);
|
||||
$e->outertext = '';
|
||||
}
|
||||
|
||||
// find the params
|
||||
foreach($html->find('div.pagebuilderckparams') as $e) {
|
||||
$stylestoload = isset($e->attr['data-styles']) ? $e->attr['data-styles'] : false;
|
||||
if ($stylestoload) $this->loadStyles($stylestoload);
|
||||
$e->outertext = '';
|
||||
}
|
||||
|
||||
$htmlcode = $html->save();
|
||||
$html->clear();
|
||||
unset($html);
|
||||
}
|
||||
|
||||
$htmlcode = trim(str_replace("|URIROOT|", JUri::root(true), $htmlcode));
|
||||
|
||||
// remove the id="googlefontscall" to avoid html error in frontend
|
||||
$htmlcode = preg_replace('/ id="googlefontscall"/', '', $htmlcode);
|
||||
$regexGooglefont = "#<div\s[^>]*googlefontscall([^\"]*)\"[^>]*>(.*)<\/div>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace_callback($regexGooglefont, array($this, 'replaceGooglefont'), $htmlcode);
|
||||
|
||||
// remove the params div
|
||||
$regex = "#<div\s[^>]*pagebuilderckparams([^\"]*)\"[^>]*>[^<]*<\/div>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
|
||||
// remove all the settings values (that are not needed in front) (TODO with parser)
|
||||
$regex = "#<div\s[^>]*ckprops([^\"]*)\"[^>]*>[^<]*<\/div>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
$htmlcode = preg_replace('/<div fieldslist="(.*?)"(.*?)><\/div>/', '', $htmlcode);
|
||||
|
||||
// remove all the unwanted html code
|
||||
$regex = "#<div\s[^>]*cktype-button-add([^\"]*)\"[^>]*>[^<]*<\/div>#siU"; // replace all divs with class blockck-button-add
|
||||
$htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
$regex = "#<div\s[^>]*blockck-button-add([^\"]*)\"[^>]*>[^<]*<\/div>#siU"; // replace all divs with class blockck-button-add
|
||||
$htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
$regex = "#<div\s[^>]*rowck-button-add([^\"]*)\"[^>]*>[^<]*<\/div>#siU"; // replace all divs with class blockck-button-add
|
||||
$htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
|
||||
$regexStyle = "#<div\s[^>]*ckstyleresponsive([^\"]*)\"[^>]*>(.*)<\/div>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace_callback($regexStyle, array($this, 'replaceResponsiveStyleTag'), $htmlcode);
|
||||
|
||||
$regexStyle = "#<div\s[^>]*ckstyle([^\"]*)\"[^>]*>(.*)<\/div>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace_callback($regexStyle, array($this, 'replaceStyleTag'), $htmlcode);
|
||||
|
||||
$regexStyle2 = "#<style\s[^>]*ckcolumnwidth([^\"]*)\"[^>]*>(.*)<\/style>#siU"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace_callback($regexStyle2, array($this, 'replaceResponsiveStyleTag'), $htmlcode);
|
||||
|
||||
$regexText = "#CKTEXT\[(.*?)\]#"; // replace all divs with class ckprops
|
||||
// $htmlcode = preg_replace($regex, '', $htmlcode);
|
||||
$htmlcode = preg_replace_callback($regexText, array($this, 'replaceTranslation'), $htmlcode);
|
||||
|
||||
$regexOnshow = "#onshow=\"(.*?)\"#"; // replace all divs with class ckprops
|
||||
$htmlcode = preg_replace($regexOnshow, '', $htmlcode);
|
||||
|
||||
if ($this->item && isset($this->item->modified)) $this->searchAndReplaceDates($htmlcode, $this->item->created, $this->item->modified);
|
||||
|
||||
$regexImg = "#<img(.*?)>#si"; // masque de recherche pour le tag
|
||||
// $htmlcode = preg_replace($find, '', $htmlcode);
|
||||
$htmlcode = preg_replace_callback($regexImg, array($this, 'replaceImage'), $htmlcode);
|
||||
|
||||
$doc = JFactory::getDocument();
|
||||
PagebuilderckFrontHelper::addStyleDeclaration($this->styleTags);
|
||||
$componentParams = JComponentHelper::getParams('com_pagebuilderck');
|
||||
$responsiverange = $componentParams->get('responsiverange', 'reducing');
|
||||
if (! empty(trim((string)$this->responsiveStyleTags4))) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration('@media only screen and (max-width:' . (int)$componentParams->get('responsive4value', '800') . 'px) ' . ($responsiverange == 'between' ? 'and (min-width:' . ((int)$componentParams->get('responsive3value', '640')+1) . 'px)' : '') . '{ ' . $this->responsiveStyleTags4 . ' }');
|
||||
}
|
||||
if (! empty(trim((string)$this->responsiveStyleTags3))) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration('@media only screen and (max-width:' . (int)$componentParams->get('responsive3value', '640') . 'px) ' . ($responsiverange == 'between' ? 'and (min-width:' . ((int)$componentParams->get('responsive2value', '480')+1) . 'px)' : '') . '{ ' . $this->responsiveStyleTags3 . ' }');
|
||||
}
|
||||
if (! empty(trim((string)$this->responsiveStyleTags2))) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration('@media only screen and (max-width:' . (int)$componentParams->get('responsive2value', '480') . 'px) ' . ($responsiverange == 'between' ? 'and (min-width:' . ((int)$componentParams->get('responsive1value', '320')+1) . 'px)' : '') . '{ ' . $this->responsiveStyleTags2 . ' }');
|
||||
}
|
||||
if (! empty(trim((string)$this->responsiveStyleTags1))) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration('@media only screen and (max-width:' . (int)$componentParams->get('responsive1value', '320') . 'px){ ' . $this->responsiveStyleTags1 . ' }');
|
||||
}
|
||||
|
||||
// get the custom css option
|
||||
if ($customcss) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration($customcss);
|
||||
}
|
||||
}
|
||||
|
||||
public function searchAndReplaceDates(&$text, $created, $modified) {
|
||||
$regexText = "#CKDATE_CREATED\[(.*?)\]#"; // replace all divs with class ckprops
|
||||
// $text = $article->text;
|
||||
// $created = $article->created;
|
||||
// $modified = $article->modified;
|
||||
$text = preg_replace_callback($regexText, function($matches) use ($text, $created) {
|
||||
// if (! $this->item) return $matches[0];
|
||||
|
||||
if (!$matches[1]) {
|
||||
$format = 'DATE_FORMAT_LC4';
|
||||
} else {
|
||||
$format = $matches[1];
|
||||
}
|
||||
$date = date(JText::_($format), strtotime($created));
|
||||
|
||||
return $date;
|
||||
}, $text);
|
||||
|
||||
$regexText = "#CKDATE_MODIFIED\[(.*?)\]#"; // replace all divs with class ckprops
|
||||
$text = preg_replace_callback($regexText, function($matches) use ($text, $modified) {
|
||||
// if (! $this->item) return $matches[0];
|
||||
|
||||
if (!$matches[1]) {
|
||||
$format = 'DATE_FORMAT_LC4';
|
||||
} else {
|
||||
$format = $matches[1];
|
||||
}
|
||||
$date = date(JText::_($format), strtotime($modified));
|
||||
|
||||
return $date;
|
||||
}, $text);
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the translated string
|
||||
*/
|
||||
public function replaceDateCreated($matches) {
|
||||
if (! $this->item) return $matches[0];
|
||||
|
||||
if (!$matches[1]) {
|
||||
$format = 'DATE_FORMAT_LC4';
|
||||
} else {
|
||||
$format = $matches[1];
|
||||
}
|
||||
$date = date(JText::_($format), strtotime($this->item->created));
|
||||
|
||||
return $date;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the translated string
|
||||
*/
|
||||
public function replaceDateModified($matches) {
|
||||
if (! $this->item) return $matches[0];
|
||||
|
||||
if (!$matches[1]) {
|
||||
$format = 'DATE_FORMAT_LC4';
|
||||
} else {
|
||||
$format = $matches[1];
|
||||
}
|
||||
$date = date(JText::_($format), strtotime($this->item->modified));
|
||||
|
||||
return $date;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the translated string
|
||||
*/
|
||||
public function replaceTranslation($matches) {
|
||||
|
||||
if (!$matches[1]) return;
|
||||
return JText::_($matches[1]);
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the update image tag
|
||||
*/
|
||||
public function replaceImage($matches) {
|
||||
if (!$matches[1]) return;
|
||||
$imgtag = $matches[0];
|
||||
|
||||
// get global component params
|
||||
$pagebuilderckParams = JComponentHelper::getParams('com_pagebuilderck');
|
||||
// check for the image path, and fix it
|
||||
if (strpos($imgtag, 'data-src=')) {
|
||||
if ((int)$pagebuilderckParams->get('image_path_fix', 0, 'int') === 1) {
|
||||
// remove the src attribute, it will be created later
|
||||
$find = "# src=\"(.*?)\"#si"; // masque de recherche pour le tag
|
||||
$imgtag = preg_replace($find, '', $imgtag);
|
||||
if (strpos($imgtag, 'data-src="/')) {
|
||||
// fix url starting with a slash
|
||||
$find = "#data-src=\"/(.*?)\"#si"; // masque de recherche pour le tag
|
||||
$imgtag = preg_replace($find, ' src="' . JUri::root(true) . '/$1"', $imgtag);
|
||||
} else {
|
||||
// fix url not starting with a slash
|
||||
$find = "#data-src=\"(.*?)\"#si"; // masque de recherche pour le tag
|
||||
$imgtag = preg_replace($find, ' src="' . JUri::root(true) . '/$1"', $imgtag);
|
||||
}
|
||||
} else {
|
||||
$find = "#data-src=\"(.*?)\"#si"; // masque de recherche pour le tag
|
||||
$imgtag = preg_replace($find, '', $imgtag);
|
||||
}
|
||||
}
|
||||
|
||||
// add lazy loading
|
||||
if ((int)$pagebuilderckParams->get('lazy_loading', 0, 'int') === 1) {
|
||||
$imgtag = str_replace ('<img', '<img loading="lazy"', $imgtag);
|
||||
}
|
||||
|
||||
return $imgtag;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return void
|
||||
*/
|
||||
public function replaceGooglefont($matches) {
|
||||
if (!isset($matches[2])) return;
|
||||
$fontfamilies = explode('<', $matches[2]);
|
||||
|
||||
foreach ($fontfamilies as $fontfamily) {
|
||||
$fontfamily = trim($fontfamily);
|
||||
$fontfamily = str_replace('link href="', '', $fontfamily);
|
||||
$fontfamily = str_replace('" rel="stylesheet" type="text/css">', '', $fontfamily);
|
||||
|
||||
if ($fontfamily) PagebuilderckFrontHelper::addStylesheet($fontfamily);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the module cdoe
|
||||
*/
|
||||
public function replaceResponsiveStyleTag($matches) {
|
||||
if (!$matches[2]) return;
|
||||
$styleTag = trim($matches[2]);
|
||||
$styleTag = str_replace('<style>', '', $styleTag);
|
||||
$styleTag = str_replace('<style type="text/css">', '', $styleTag);
|
||||
$styleTag = str_replace('</style>', '', $styleTag);
|
||||
$styleTag = str_replace(' ', ' ', $styleTag);
|
||||
|
||||
if ($styleTag) {
|
||||
if (stristr($matches[1], 'ckresponsiverange4')) {
|
||||
$this->responsiveStyleTags4 .= str_replace('.ckresponsiveactive[ckresponsiverange="4"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags4 .= str_replace('.ckresponsiveactive[ckresponsiverange*="4"] ', '', $styleTag);
|
||||
} else if (stristr($matches[1], 'ckresponsiverange3')) {
|
||||
$this->responsiveStyleTags3 .= str_replace('.ckresponsiveactive[ckresponsiverange="3"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags3 .= str_replace('.ckresponsiveactive[ckresponsiverange*="3"] ', '', $styleTag);
|
||||
} else if (stristr($matches[1], 'ckresponsiverange2')) {
|
||||
$this->responsiveStyleTags2 .= str_replace('.ckresponsiveactive[ckresponsiverange="2"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags2 .= str_replace('.ckresponsiveactive[ckresponsiverange*="2"] ', '', $styleTag);
|
||||
} else if (stristr($matches[1], 'ckresponsiverange1')) {
|
||||
$this->responsiveStyleTags1 .= str_replace('.ckresponsiveactive[ckresponsiverange="1"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags1 .= str_replace('.ckresponsiveactive[ckresponsiverange*="1"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="4"')) {
|
||||
$this->responsiveStyleTags4 .= str_replace('[ckresponsiverange="4"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags4 .= str_replace('[ckresponsiverange*="4"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="3"')) {
|
||||
$this->responsiveStyleTags3 .= str_replace('[ckresponsiverange="3"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags3 .= str_replace('[ckresponsiverange*="3"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="2"')) {
|
||||
$this->responsiveStyleTags2 .= str_replace('[ckresponsiverange="2"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags2 .= str_replace('[ckresponsiverange*="2"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="1"')) {
|
||||
$this->responsiveStyleTags1 .= str_replace('[ckresponsiverange="1"] ', '', $styleTag);
|
||||
$this->responsiveStyleTags1 .= str_replace('[ckresponsiverange*="1"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="4321"')) {
|
||||
$this->responsiveStyleTags1 .= str_replace('[ckresponsiverange="4321"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="432"') || stristr($styleTag, 'ckresponsiverange="432')) {
|
||||
$this->responsiveStyleTags2 .= str_replace('[ckresponsiverange="432"] ', '', $styleTag);
|
||||
} else if (stristr($styleTag, 'ckresponsiverange="43"') || stristr($styleTag, 'ckresponsiverange="43')) {
|
||||
$this->responsiveStyleTags3 .= str_replace('[ckresponsiverange="43"] ', '', $styleTag);
|
||||
} else {
|
||||
if ($styleTag) $this->styleTags .= $styleTag;
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the module cdoe
|
||||
*/
|
||||
public function replaceStyleTag($matches) {
|
||||
|
||||
if (!$matches[2]) return;
|
||||
$styleTag = trim($matches[2]);
|
||||
$styleTag = str_replace('<style>', '', $styleTag);
|
||||
$styleTag = str_replace('<style type="text/css">', '', $styleTag);
|
||||
$styleTag = str_replace('</style>', '', $styleTag);
|
||||
$styleTag = str_replace(' ', ' ', $styleTag);
|
||||
|
||||
$pagebuilderckParams = JComponentHelper::getParams('com_pagebuilderck');
|
||||
// check for the image path, and fix it
|
||||
if (strpos($styleTag, 'url(\'/')) {
|
||||
if ((int)$pagebuilderckParams->get('image_path_fix', 0, 'int') === 1) {
|
||||
$find = "# url\('/(.*?)\'\)#si"; // masque de recherche pour le tag
|
||||
$styleTag = preg_replace($find, ' url(\'' . JUri::root(true) . '/$1\')' , $styleTag);
|
||||
}
|
||||
}
|
||||
|
||||
if ($styleTag) $this->styleTags .= $styleTag;
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the module code
|
||||
*/
|
||||
public function replaceModule($matches) {
|
||||
if (!$matches[2]) return;
|
||||
|
||||
// look for the module ID
|
||||
$find = "#data-id=\"(.*?)\"#si"; // masque de recherche pour le tag
|
||||
preg_match($find, $matches[2], $result_id);
|
||||
if ($result_id && $result_id[1]) {
|
||||
return $this->renderModule($result_id[1]);
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/*
|
||||
* @param array the matching strings
|
||||
*
|
||||
* return the page code
|
||||
*/
|
||||
public function replacePage($matches) {
|
||||
if (!$matches[2]) return;
|
||||
|
||||
// look for the module ID
|
||||
$find = "#data-id=\"(.*?)\"#si"; // masque de recherche pour le tag
|
||||
preg_match($find, $matches[2], $result_id);
|
||||
if ($result_id && $result_id[1]) {
|
||||
return $this->renderPage($result_id[1]);
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/*
|
||||
* @param object the element
|
||||
*
|
||||
* return the module cdoe
|
||||
*/
|
||||
public function replaceElement($e) {
|
||||
$type = $e->attr['data-type'];
|
||||
|
||||
if ($type) {
|
||||
$new_e = $this->renderElement($type, $e);
|
||||
if ($new_e) {
|
||||
return $new_e;
|
||||
} else {
|
||||
return $e->innertext;
|
||||
}
|
||||
} else if ($type == 'audio') {
|
||||
return $this->renderAudioElement($e);
|
||||
} else {
|
||||
return '<p style="text-align:center;color:red;font-size:14px;">ERROR - PAGEBUILDER CK DEBUG : ELEMENT TYPE NOT FOUND</p>';
|
||||
}
|
||||
|
||||
return $e->innertext;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param object the element
|
||||
*
|
||||
* return the element html code for html5 audio
|
||||
*/
|
||||
public function renderCode($e) {
|
||||
// check if there is a plugin for this type, and if it is enabled
|
||||
if ( !JPluginHelper::isEnabled('pagebuilderck', 'code')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
JPluginHelper::importPlugin( 'pagebuilderck' );
|
||||
// $dispatcher = JEventDispatcher::getInstance();
|
||||
$otheritems = Pagebuilderck\CKFof::triggerEvent( 'onPagebuilderckRenderItem' . ucfirst('code') , array($e));
|
||||
// load only the first instance found, because each plugin type must be unique
|
||||
// add override feature here, look in the template
|
||||
$template = JFactory::getApplication()->getTemplate();
|
||||
$overridefile = JPATH_ROOT . '/templates/' . $template . '/html/pagebuilderck/' . strtolower('code') . '.php';
|
||||
// var_dump($otheritems);
|
||||
if (file_exists($overridefile)) {
|
||||
$item = $e;
|
||||
include_once $overridefile;
|
||||
} else {
|
||||
// normal use
|
||||
// $html = $otheritems[0];
|
||||
}
|
||||
// echo $html;
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/*
|
||||
* @param object the element
|
||||
*
|
||||
* return the element html code for html5 audio
|
||||
*/
|
||||
public function renderAudioElement($e) {
|
||||
$attrs = $e->find('.tab_audio');
|
||||
$params = PagebuilderckFrontHelper::createParamsFromElement($attrs);
|
||||
|
||||
$audiosrc = PagebuilderckFrontHelper::getSource($params->get('audiourl'));
|
||||
$html ='<audio style="width:100%;box-sizing:border-box;max-width:100%;" controls src="' . $audiosrc . '" ' . ($params->get('autoplayyes') == 'checked' ? 'autoplay' : '') . '>'
|
||||
. 'Your browser does not support the audio element.'
|
||||
. '</audio>';
|
||||
|
||||
$html2 = preg_replace('#<div class="audiock">(.*?)<\/div>#is', $html, $e->innertext);
|
||||
|
||||
return $html2;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param string the element type
|
||||
* @param object the element
|
||||
*
|
||||
* return the element html code
|
||||
*/
|
||||
public function renderElement($type, $e) {
|
||||
// check if there is a plugin for this type, and if it is enabled
|
||||
if ( !JPluginHelper::isEnabled('pagebuilderck', $type)) {
|
||||
return '';
|
||||
}
|
||||
$doc = JFactory::getDocument();
|
||||
|
||||
JPluginHelper::importPlugin( 'pagebuilderck' );
|
||||
// $dispatcher = JEventDispatcher::getInstance();
|
||||
$otheritems = Pagebuilderck\CKFof::triggerEvent( 'onPagebuilderckRenderItem' . ucfirst($type) , array($e));
|
||||
|
||||
ob_start();
|
||||
if (count($otheritems) == 1) {
|
||||
// load only the first instance found, because each plugin type must be unique
|
||||
// add override feature here, look in the template
|
||||
$template = JFactory::getApplication()->getTemplate();
|
||||
$overridefile = JPATH_ROOT . '/templates/' . $template . '/html/pagebuilderck/' . strtolower($type) . '.php';
|
||||
if (file_exists($overridefile)) {
|
||||
$item = $e;
|
||||
include_once $overridefile;
|
||||
try {
|
||||
$class = 'plgPagebuilderck' . ucfirst($type) . 'Override';
|
||||
$func = 'onPagebuilderckRenderItem' . ucfirst($type);
|
||||
$reflection = new ReflectionClass($class);
|
||||
$instance = $reflection->newInstanceWithoutConstructor();
|
||||
if ($instance) {
|
||||
$html = $instance->$func($e);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
} else {
|
||||
// normal use
|
||||
$html = $otheritems[0];
|
||||
}
|
||||
echo $html;
|
||||
} else {
|
||||
echo '<p style="text-align:center;color:red;font-size:14px;">ERROR - PAGEBUILDER CK DEBUG : ELEMENT TYPE INSTANCE : ' . $type . '. Number of instances found : ' . count($otheritems) . '</p>';
|
||||
}
|
||||
$element_code = ob_get_clean();
|
||||
return $element_code;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param int the module ID
|
||||
*
|
||||
* return the module html code
|
||||
*/
|
||||
public function renderModule($module_id) {
|
||||
$document = JFactory::getDocument();
|
||||
$renderer = $document->loadRenderer('module');
|
||||
$mod = $this->getModule($module_id);
|
||||
if (empty($mod)) $mod = JModuleHelper::getModuleById($module_id);
|
||||
|
||||
if (!$mod) return;
|
||||
|
||||
$params = array('style' => 'xhtml');
|
||||
ob_start();
|
||||
|
||||
echo $renderer->render($mod, $params);
|
||||
|
||||
$module_code = ob_get_clean();
|
||||
|
||||
return $module_code;
|
||||
}
|
||||
|
||||
public function getModule($module_id) {
|
||||
$app = JFactory::getApplication();
|
||||
$groups = implode(',', JFactory::getUser()->getAuthorisedViewLevels());
|
||||
$lang = JFactory::getLanguage()->getTag();
|
||||
$clientId = (int) $app->getClientId();
|
||||
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
$query = $db->getQuery(true)
|
||||
->select('m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid')
|
||||
->from('#__modules AS m')
|
||||
->join('LEFT', '#__modules_menu AS mm ON mm.moduleid = m.id')
|
||||
->where('m.published = 1')
|
||||
->join('LEFT', '#__extensions AS e ON e.element = m.module AND e.client_id = m.client_id')
|
||||
->where('e.enabled = 1');
|
||||
|
||||
$date = JFactory::getDate();
|
||||
$now = $date->toSql();
|
||||
$nullDate = $db->getNullDate();
|
||||
$query->where('(m.publish_up = ' . $db->quote($nullDate) . ' OR m.publish_up <= ' . $db->quote($now) . ')')
|
||||
->where('(m.publish_down = ' . $db->quote($nullDate) . ' OR m.publish_down >= ' . $db->quote($now) . ')')
|
||||
->where('m.access IN (' . $groups . ')')
|
||||
->where('m.client_id = ' . $clientId)
|
||||
->where('m.id = ' . (int) $module_id)
|
||||
// ->where('(mm.menuid = ' . (int) $Itemid . ' OR mm.menuid <= 0)');
|
||||
;
|
||||
|
||||
// Filter by language
|
||||
if (\Pagebuilderck\CKFof::isSite() && $app->getLanguageFilter())
|
||||
{
|
||||
$query->where('m.language IN (' . $db->quote($lang) . ',' . $db->quote('*') . ')');
|
||||
}
|
||||
|
||||
// $query->order('m.position, m.ordering');
|
||||
|
||||
// Set the query
|
||||
$db->setQuery($query);
|
||||
|
||||
try
|
||||
{
|
||||
$module = $db->loadObject();
|
||||
}
|
||||
catch (RuntimeException $e)
|
||||
{
|
||||
JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_MODULE_LOAD', $e->getMessage()), JLog::WARNING, 'jerror');
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
return $module;
|
||||
}
|
||||
|
||||
/**
|
||||
* Module list
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getModuleList()
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
$Itemid = $app->input->getInt('Itemid');
|
||||
$groups = implode(',', JFactory::getUser()->getAuthorisedViewLevels());
|
||||
$lang = JFactory::getLanguage()->getTag();
|
||||
$clientId = (int) $app->getClientId();
|
||||
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
$query = $db->getQuery(true)
|
||||
->select('m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid')
|
||||
->from('#__modules AS m')
|
||||
->join('LEFT', '#__modules_menu AS mm ON mm.moduleid = m.id')
|
||||
->where('m.published = 1')
|
||||
->join('LEFT', '#__extensions AS e ON e.element = m.module AND e.client_id = m.client_id')
|
||||
->where('e.enabled = 1');
|
||||
|
||||
$date = JFactory::getDate();
|
||||
$now = $date->toSql();
|
||||
$nullDate = $db->getNullDate();
|
||||
$query->where('(m.publish_up = ' . $db->quote($nullDate) . ' OR m.publish_up <= ' . $db->quote($now) . ')')
|
||||
->where('(m.publish_down = ' . $db->quote($nullDate) . ' OR m.publish_down >= ' . $db->quote($now) . ')')
|
||||
->where('m.access IN (' . $groups . ')')
|
||||
->where('m.client_id = ' . $clientId)
|
||||
->where('(mm.menuid = ' . (int) $Itemid . ' OR mm.menuid <= 0)');
|
||||
|
||||
// Filter by language
|
||||
if (\Pagebuilderck\CKFof::isSite() && $app->getLanguageFilter())
|
||||
{
|
||||
$query->where('m.language IN (' . $db->quote($lang) . ',' . $db->quote('*') . ')');
|
||||
}
|
||||
|
||||
$query->order('m.position, m.ordering');
|
||||
|
||||
// Set the query
|
||||
$db->setQuery($query);
|
||||
|
||||
try
|
||||
{
|
||||
$modules = $db->loadObjectList();
|
||||
}
|
||||
catch (RuntimeException $e)
|
||||
{
|
||||
JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_MODULE_LOAD', $e->getMessage()), JLog::WARNING, 'jerror');
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
return $modules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get an ojbect.
|
||||
*
|
||||
* @param integer The id of the object to get.
|
||||
*
|
||||
* @return mixed Object on success, false on failure.
|
||||
*/
|
||||
public function &getData($id = null) {
|
||||
if (empty($id)) {
|
||||
$id = $this->input->get('id', $id, 'int');
|
||||
}
|
||||
if ($id === 0) {
|
||||
// check that the user has the rights to edit
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
return false;
|
||||
}
|
||||
$item = CKFof::dbLoad($this->table, $id);
|
||||
} else {
|
||||
$query = "SELECT * FROM " . $this->table . " AS a"
|
||||
. " WHERE a.state = 1"
|
||||
. " AND a.id = " . (int) $id;
|
||||
$item = CKFof::dbLoadObject($query);
|
||||
}
|
||||
|
||||
return $this->item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save the form data.
|
||||
*
|
||||
* @param array The form data.
|
||||
* @return mixed The user id on success, false on failure.
|
||||
* @since 1.6
|
||||
*/
|
||||
public function save($data) {
|
||||
$id = (!empty($data['id'])) ? $data['id'] : (int) $this->getState('page.id');
|
||||
$user = CKFof::getUser();
|
||||
$data['htmlcode'] = $this->input->get('htmlcode', '', 'raw');
|
||||
$data['htmlcode'] = str_replace(JUri::root(true), "|URIROOT|", $data['htmlcode']);
|
||||
|
||||
if (isset($data['options']) && is_array($data['options']))
|
||||
{
|
||||
$registry = new Registry;
|
||||
$registry->loadArray($data['options']);
|
||||
$data['params'] = (string) $registry;
|
||||
}
|
||||
|
||||
// save the date
|
||||
$date = JFactory::getDate();
|
||||
$data['modified'] = $date->toSql();
|
||||
if ($id) {
|
||||
//Check the user can edit this item
|
||||
$authorised = $user->authorise('core.edit', 'page.' . $id);
|
||||
} else {
|
||||
//Check the user can create new items in this section
|
||||
$authorised = $user->authorise('core.create', 'com_pagebuilderck');
|
||||
$data['created'] = $date->toSql();
|
||||
}
|
||||
|
||||
if ($authorised !== true) {
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
return false;
|
||||
}
|
||||
|
||||
// make a backup before save
|
||||
PagebuilderckHelper::makeBackup($this->getData($data['id']));
|
||||
|
||||
$pageid = CKFof::dbStore($this->table, $data);
|
||||
return $pageid;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param int the module ID
|
||||
*
|
||||
* return the module html code
|
||||
*/
|
||||
public function renderPage($id) {
|
||||
include_once JPATH_ROOT . '/components/com_pagebuilderck/models/page.php';
|
||||
$model = JModelLegacy::getInstance('Page', 'PagebuilderckModel');
|
||||
$page = $model->getItem($id);
|
||||
|
||||
ob_start();
|
||||
|
||||
if (isset($page->htmlcode) && $page->htmlcode) {
|
||||
echo $page->htmlcode;
|
||||
}
|
||||
|
||||
$code = ob_get_clean();
|
||||
|
||||
return $code;
|
||||
}
|
||||
|
||||
/*
|
||||
* @param string the styles comma separated
|
||||
*
|
||||
* return the css code
|
||||
*/
|
||||
private function loadStyles($stylestoload) {
|
||||
// Create a new query object.
|
||||
$db = CKFof::getDbo();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the required fields from the table.
|
||||
$query->select('a.*');
|
||||
$query->from('`#__pagebuilderck_styles` AS a');
|
||||
$query->where('a.id in ( ' . $stylestoload .')');
|
||||
// Do not list the trashed items
|
||||
$query->where('a.state > -1');
|
||||
$db->setQuery($query);
|
||||
$styles = $db->loadObjectList();
|
||||
|
||||
foreach($styles as $style) {
|
||||
PagebuilderckFrontHelper::addStyleDeclaration($style->stylecode);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
components/com_pagebuilderck/models/pages.php
Normal file
12
components/com_pagebuilderck/models/pages.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/pages.php';
|
||||
12
components/com_pagebuilderck/models/styles.php
Normal file
12
components/com_pagebuilderck/models/styles.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/models/styles.php';
|
||||
38
components/com_pagebuilderck/pagebuilderck.php
Normal file
38
components/com_pagebuilderck/pagebuilderck.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
//if (! defined('CK_LOADED')) define('CK_LOADED', 1);
|
||||
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/defines.php';
|
||||
|
||||
// Include dependancies
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/cktext.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckpath.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckfile.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckfolder.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckfof.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/pagebuilderck.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckframework.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckcontroller.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckmodel.php';
|
||||
include_once PAGEBUILDERCK_PATH . '/helpers/ckview.php';
|
||||
|
||||
// load admin language file for editing mode
|
||||
if (JFactory::getApplication()->input->get('view') === 'edit') {
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('com_pagebuilderck', JPATH_ROOT . '/components/com_pagebuilderck', $lang->getTag(), false);
|
||||
}
|
||||
|
||||
$input = Pagebuilderck\CKFof::getInput();
|
||||
|
||||
$controller = Pagebuilderck\CKController::getInstance('Pagebuilderck');
|
||||
$controller->execute($input->get('task'));
|
||||
1
components/com_pagebuilderck/views/browse/index.html
Normal file
1
components/com_pagebuilderck/views/browse/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
12
components/com_pagebuilderck/views/browse/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/browse/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/browse/tmpl/default.php';
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
13
components/com_pagebuilderck/views/browse/view.html.php
Normal file
13
components/com_pagebuilderck/views/browse/view.html.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/browse/view.html.php';
|
||||
10
components/com_pagebuilderck/views/content/tmpl/default.php
Normal file
10
components/com_pagebuilderck/views/content/tmpl/default.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
12
components/com_pagebuilderck/views/content/view.html.php
Normal file
12
components/com_pagebuilderck/views/content/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/content/view.html.php';
|
||||
12
components/com_pagebuilderck/views/contents/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/contents/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/contents/tmpl/default.php';
|
||||
12
components/com_pagebuilderck/views/contents/view.html.php
Normal file
12
components/com_pagebuilderck/views/contents/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/contents/view.html.php';
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/contenttype/tmpl/default.php';
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
13
components/com_pagebuilderck/views/contenttype/view.html.php
Normal file
13
components/com_pagebuilderck/views/contenttype/view.html.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/contenttype/view.html.php';
|
||||
12
components/com_pagebuilderck/views/fonts/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/fonts/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/fonts/tmpl/default.php';
|
||||
12
components/com_pagebuilderck/views/fonts/tmpl/default2.php
Normal file
12
components/com_pagebuilderck/views/fonts/tmpl/default2.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/fonts/tmpl/default2.php';
|
||||
12
components/com_pagebuilderck/views/fonts/view.html.php
Normal file
12
components/com_pagebuilderck/views/fonts/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/fonts/view.html.php';
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2019. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2019. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use \Pagebuilderck\CKtext;
|
||||
|
||||
$iframeurl = str_replace('&tckedition=1', '', urldecode($this->input->get('url', '', 'string')));
|
||||
$doc = JFactory::getDocument();
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="<?php echo $doc->language; ?>" lang="<?php echo $doc->language; ?>" dir="<?php echo $doc->direction; ?>">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<base href="<?php echo PAGEBUILDERCK_ADMIN_URL ?>" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Expires" content="Tue, 01 Jan 1995 12:12:12 GMT">
|
||||
<meta http-equiv="Pragma" content="no-cache">
|
||||
<title>Page Builder CK</title>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo PAGEBUILDERCK_MEDIA_URI ?>/assets/ckframework.css" type="text/css" />
|
||||
<link rel="stylesheet" href="<?php echo PAGEBUILDERCK_MEDIA_URI ?>/assets/frontedition.css" type="text/css" />
|
||||
<script src="<?php echo PAGEBUILDERCK_MEDIA_URI ?>/assets/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="<?php echo PAGEBUILDERCK_MEDIA_URI ?>/assets/ckframework.js" type="text/javascript"></script>
|
||||
<script src="<?php echo PAGEBUILDERCK_MEDIA_URI ?>/assets/frontedition.js" type="text/javascript"></script>
|
||||
<style>
|
||||
body {
|
||||
padding-left: 310px !important;
|
||||
padding-top: 66px !important;
|
||||
}
|
||||
|
||||
html {
|
||||
/*padding-top: 66px! important;*/
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.ckpage {
|
||||
position: relative;
|
||||
top: 66px;
|
||||
}
|
||||
|
||||
iframe {
|
||||
height: calc(100vh - 66px);
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#menuck {
|
||||
top: 65px;
|
||||
}
|
||||
|
||||
#ckheader .ckheadermenu .ckheadermenuitem {
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
html {
|
||||
padding-top: 66px! important;
|
||||
}
|
||||
|
||||
body.tck-edition-body #ckheader {
|
||||
z-index: 100000;
|
||||
}
|
||||
|
||||
div.menuck > .inner {
|
||||
height: calc(100vh - 115px);
|
||||
}
|
||||
|
||||
/* disable Joomla front edition buttons */
|
||||
a.jmodedit {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="ckheader">
|
||||
<div class="ckheaderlogo"><a href="https://www.joomlack.fr" target="_blank"><img width="35" height="35" title="JoomlaCK" src="<?php echo JUri::root(true) ?>/media/com_pagebuilderck/images/logo_ck.png" /></a></div>
|
||||
<div class="ckheadermenu">
|
||||
<a href="<?php echo JRoute::_('index.php?option=com_templateck'); ?>" class="ckheadermenuitem ckcancel" >
|
||||
<span class="fa fa-times"></span>
|
||||
<span class="ckheadermenuitemtext"><?php echo JText::_('CK_EXIT') ?></span>
|
||||
</a>
|
||||
<a href="javascript:void(0);" class="ckheadermenuitem cksave" onclick="ckTemplateEditionSave()">
|
||||
<span class="fa fa-check"></span>
|
||||
<span class="ckheadermenuitemtext"><?php echo JText::_('CK_SAVE') ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// loads the language files from the frontend
|
||||
$lang = JFactory::getLanguage();
|
||||
$lang->load('com_pagebuilderck', JPATH_SITE . '/components/com_pagebuilderck', $lang->getTag(), false);
|
||||
$editor = JFactory::getConfig()->get('editor') == 'jce' ? 'jce' : 'tinymce';
|
||||
$editor = JEditor::getInstance($editor);
|
||||
$editor->display('ckeditor', $html = '', $width = '', $height = '200px', $col='', $row='', $buttons = true, $id = 'ckeditor');
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/menustyles.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/ckeditor.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderck.php';
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/include.php');
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/menu.php');
|
||||
?>
|
||||
|
||||
- CHECK double authentif, si user logué en admin, sinon on jette la requête et on redirige sur doc
|
||||
- pb si user pas logué, CKText not found
|
||||
- charger ckstylescontainer
|
||||
- mettre structure du template dans le panneau gauche
|
||||
|
||||
<div id="ckleftpanel" class="ckleftpanel">
|
||||
</div>
|
||||
<div id="ckedition" class="ckleftpanel">
|
||||
|
||||
</div>
|
||||
<div id="ckhtmlcontainer" class="focusbar focus">
|
||||
<div class="cktemplatepreview">
|
||||
<iframe id="cktemplatepreview" src="<?php echo $iframeurl ?>"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
$ck('iframe#cktemplatepreview').load(function() {
|
||||
iframe = $ck('iframe#cktemplatepreview').contents();
|
||||
ckInitFrontendInterface();
|
||||
});
|
||||
|
||||
//document.getElementById('ckmodulesmanager_preview_iframe').contentWindow.location.reload();
|
||||
//document.getElementById('ckmodulesmanager_preview_iframe').contentWindow.location.reload(true);
|
||||
</script>
|
||||
<div id="ckpopup"></div>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
exit;
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
jimport('joomla.application.component.view');
|
||||
|
||||
class PagebuilderckViewFrontedition extends JViewLegacy
|
||||
{
|
||||
protected $item;
|
||||
|
||||
protected $state;
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
|
||||
// check that the user has the rights to edit
|
||||
$user = JFactory::getUser();
|
||||
$app = JFactory::getApplication();
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
if ($user->guest === 1)
|
||||
{
|
||||
$return = base64_encode(JUri::getInstance());
|
||||
$login_url_with_return = JRoute::_('index.php?option=com_users&return=' . $return);
|
||||
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'notice');
|
||||
$app->redirect($login_url_with_return, 403);
|
||||
}
|
||||
else
|
||||
{
|
||||
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
|
||||
$app->setHeader('status', 403, true);
|
||||
return;
|
||||
}
|
||||
// JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
// return false;
|
||||
}
|
||||
|
||||
// check that the template is compatible
|
||||
$app = JFactory::getApplication();
|
||||
$template = $app->getTemplate();
|
||||
$this->input = $app->input;
|
||||
|
||||
// load xml file from the template
|
||||
$xml = simplexml_load_file(JPATH_SITE . '/templates/' . $template . '/templateDetails.xml');
|
||||
|
||||
// check that the template is made with a compatible version of Template Creator CK
|
||||
if ($xml->generator != 'Template Creator CK') {
|
||||
JError::raiseWarning(403, JText::_('The template you are trying to edit has not been created with Template Creator CK, or not the latest version of if. You can download Template Creator CK on <a href="https://www.template-creator.com">https://www.template-creator.com</a>'));
|
||||
return;
|
||||
}
|
||||
|
||||
return parent::display($tpl);
|
||||
}
|
||||
}
|
||||
12
components/com_pagebuilderck/views/icons/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/icons/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/icons/tmpl/default.php';
|
||||
12
components/com_pagebuilderck/views/icons/view.html.php
Normal file
12
components/com_pagebuilderck/views/icons/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/icons/view.html.php';
|
||||
1
components/com_pagebuilderck/views/index.html
Normal file
1
components/com_pagebuilderck/views/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
1
components/com_pagebuilderck/views/library/index.html
Normal file
1
components/com_pagebuilderck/views/library/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
12
components/com_pagebuilderck/views/library/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/library/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
include_once(JPATH_ROOT . '/administrator/components/com_pagebuilderck/views/library/tmpl/default.php');
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
13
components/com_pagebuilderck/views/library/view.html.php
Normal file
13
components/com_pagebuilderck/views/library/view.html.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/library/view.html.php';
|
||||
12
components/com_pagebuilderck/views/links/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/links/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/links/tmpl/default.php';
|
||||
12
components/com_pagebuilderck/views/links/view.html.php
Normal file
12
components/com_pagebuilderck/views/links/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/links/view.html.php';
|
||||
12
components/com_pagebuilderck/views/modules/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/modules/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/modules/tmpl/default.php';
|
||||
12
components/com_pagebuilderck/views/modules/view.html.php
Normal file
12
components/com_pagebuilderck/views/modules/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/modules/view.html.php';
|
||||
1
components/com_pagebuilderck/views/options/index.html
Normal file
1
components/com_pagebuilderck/views/options/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
12
components/com_pagebuilderck/views/options/tmpl/edit.php
Normal file
12
components/com_pagebuilderck/views/options/tmpl/edit.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
include_once(JPATH_ROOT . '/administrator/components/com_pagebuilderck/views/options/tmpl/edit.php');
|
||||
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
13
components/com_pagebuilderck/views/options/view.html.php
Normal file
13
components/com_pagebuilderck/views/options/view.html.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/options/view.html.php';
|
||||
1
components/com_pagebuilderck/views/page/index.html
Normal file
1
components/com_pagebuilderck/views/page/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
28
components/com_pagebuilderck/views/page/tmpl/_default.xml
Normal file
28
components/com_pagebuilderck/views/page/tmpl/_default.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<metadata>
|
||||
<layout title="COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT">
|
||||
<message>
|
||||
<![CDATA[COM_PAGEBUILDERCK_PAGE_VIEW_DEFAULT_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
|
||||
<!-- Add fields to the request variables for the layout. -->
|
||||
<fields name="request">
|
||||
<fieldset name="request" addfieldpath="administrator/components/com_pagebuilderck/models/fields">
|
||||
<field
|
||||
name="id"
|
||||
type="pagebuilderckpage"
|
||||
default="0"
|
||||
label="COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_LABEL"
|
||||
description="COM_PAGEBUILDERCK_FIELD_SELECT_PAGE_DESC"
|
||||
extension="COM_PAGEBUILDERCK"
|
||||
required="true"
|
||||
/>
|
||||
</fieldset>
|
||||
</fields>
|
||||
|
||||
<!-- Add fields to the parameters object for the layout. -->
|
||||
<fields name="params">
|
||||
|
||||
</fields>
|
||||
</metadata>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/ajaxrendercss.php';
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// loads the admin file
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/ajaxstylescss.php');
|
||||
56
components/com_pagebuilderck/views/page/tmpl/default.php
Normal file
56
components/com_pagebuilderck/views/page/tmpl/default.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$user = JFactory::getUser();
|
||||
$canEdit = $user->authorise('core.edit.own', 'com_pagebuilderck');
|
||||
|
||||
// frontend medias
|
||||
PagebuilderckFrontHelper::loadFrontendAssets();
|
||||
|
||||
// load the component configuration
|
||||
$params = JComponentHelper::getParams('com_pagebuilderck');
|
||||
// load the page/link configuration
|
||||
$app = JFactory::getApplication();
|
||||
$pageParams = $app->getParams();
|
||||
$doc = JFactory::getDocument();
|
||||
|
||||
// add the meta in the page
|
||||
if ($pageParams->get('menu-meta_description'))
|
||||
{
|
||||
$doc->setDescription($pageParams->get('menu-meta_description'));
|
||||
}
|
||||
if ($pageParams->get('menu-meta_keywords'))
|
||||
{
|
||||
$doc->setMetadata('keywords', $pageParams->get('menu-meta_keywords'));
|
||||
}
|
||||
if ($pageParams->get('robots'))
|
||||
{
|
||||
$doc->setMetadata('robots', $pageParams->get('robots'));
|
||||
}
|
||||
// $this->item->params = new JRegistry($this->item->params);
|
||||
?>
|
||||
<div class="pagebuilderck <?php echo htmlspecialchars($pageParams->get('pageclass_sfx', '')); ?>">
|
||||
<?php if ($canEdit && $this->input->get('option', '', 'cmd') == 'com_pagebuilderck' ) { ?>
|
||||
<a class="btn btn-primary" href="<?php echo JUri::base(true) ?>/index.php?option=com_pagebuilderck&task=page.edit&id=<?php echo $this->item->id ?>"><i class="icon icon-edit"></i> <?php echo JText::_('CK_EDIT') ?></a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($pageParams->get('show_page_heading', '1') && $pageParams->get('page_heading')) { ?>
|
||||
<div class="page-header">
|
||||
<h1> <?php echo addslashes($pageParams->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->item->params->get('showtitle')) { ?>
|
||||
<<?php echo $this->item->params->get('titletag', 'h1') ?> class="pagebuilderck_title"><?php echo $this->item->title ?></<?php echo $this->item->params->get('titletag', 'h1') ?>>
|
||||
<?php } ?>
|
||||
|
||||
<?php echo $this->item->htmlcode; ?>
|
||||
</div>
|
||||
25
components/com_pagebuilderck/views/page/tmpl/edit.php
Normal file
25
components/com_pagebuilderck/views/page/tmpl/edit.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$user = JFactory::getUser();
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
$assoc = isset($app->item_associations) ? $app->item_associations : 0;
|
||||
// $canEdit = $user->authorise('core.edit', 'com_pagebuilderck');
|
||||
|
||||
echo '<p style="color:red">You are not allowed to edit a page in Front. Please do it in the administration area. To edit in Front, please use the articles instead.</p>';
|
||||
return;
|
||||
|
||||
// loads the css and js files
|
||||
//include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/include.php');
|
||||
|
||||
// loads the css and js files
|
||||
//include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/main.php');
|
||||
1
components/com_pagebuilderck/views/page/tmpl/index.html
Normal file
1
components/com_pagebuilderck/views/page/tmpl/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
37
components/com_pagebuilderck/views/page/tmpl/modal.php
Normal file
37
components/com_pagebuilderck/views/page/tmpl/modal.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
jimport('joomla.filesystem.file');
|
||||
jimport('joomla.filesystem.folder');
|
||||
$input = new JInput();
|
||||
$user = JFactory::getUser();
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
$assoc = isset($app->item_associations) ? $app->item_associations : 0;
|
||||
$canEdit = $user->authorise('core.edit', 'com_pagebuilderck');
|
||||
?>
|
||||
|
||||
<?php
|
||||
// loads the css and js files
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/include.php');
|
||||
?>
|
||||
<style>
|
||||
body {background: #fff !important;}
|
||||
</style>
|
||||
<button id="applyBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.apply');"></button>
|
||||
<button id="saveBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.save');"></button>
|
||||
<button id="closeBtn" type="button" class="hidden" style="display:none;" onclick="Joomla.submitbutton('page.cancel');"></button>
|
||||
<?php
|
||||
// loads the main content
|
||||
include_once(JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/page/tmpl/main.php');
|
||||
|
||||
99
components/com_pagebuilderck/views/page/view.html.php
Normal file
99
components/com_pagebuilderck/views/page/view.html.php
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Pagebuilderck\CKView;
|
||||
use Pagebuilderck\CKFof;
|
||||
|
||||
class PagebuilderckViewPage extends CKView
|
||||
{
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$user = CKFof::getUser();
|
||||
|
||||
$model = $this->getModel();
|
||||
|
||||
if (substr( $this->input->get('layout', '', 'cmd'), 0, 4 ) !== 'ajax') {
|
||||
// check if the page is available for modification
|
||||
$id = $this->input->get('id', 0, 'int');
|
||||
$this->item = $model->getItem($id);
|
||||
|
||||
// check that we got a page
|
||||
if (empty($this->item))
|
||||
{
|
||||
throw new Exception(JText::_('COM_PAGEBUILDERCK_ERROR_PAGE_NOT_FOUND'), 404);
|
||||
}
|
||||
}
|
||||
|
||||
// check if we are viewing the frontend layout
|
||||
if ( ($this->input->get('layout', null, 'cmd') === null || $this->input->get('layout', null, 'cmd') === 'default')
|
||||
&& $tpl === null) {
|
||||
|
||||
// check the rights to access the page
|
||||
$groups = $user->getAuthorisedViewLevels();
|
||||
// if ((!in_array($this->item->access, $groups)) || (!in_array($this->item->category_access, $groups)))
|
||||
if (!in_array($this->item->access, $groups))
|
||||
{
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// check that the user has the rights to edit
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (! $model->checkout($id)) {
|
||||
CKFof::redirect(
|
||||
JRoute::_(
|
||||
'index.php?option=com_pagebuilderck&view=page&id=' . $id, false
|
||||
)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/menustyles.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/ckeditor.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderck.php';
|
||||
|
||||
// get instance of the editor to load the css / js in the page
|
||||
$this->ckeditor = PagebuilderckHelper::loadEditor();
|
||||
}
|
||||
|
||||
// Check if access is not public
|
||||
// $groups = $user->getAuthorisedViewLevels();
|
||||
|
||||
// if ($this->_layout == 'edit' || !$this->item->id) {
|
||||
// $authorised = $user->authorise('core.edit.own', 'com_pagebuilderck');
|
||||
|
||||
// if ($authorised !== true) {
|
||||
// Redirect to the edit screen.
|
||||
// $app->redirect(JURI::root() . 'index.php?option=com_templateck&view=login&template=templatecreatorck&tmpl=login&id=' . $this->item->id);
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// TODO : ajouter permissions et acl
|
||||
// if ((!in_array($item->access, $groups)) || (!in_array($item->category_access, $groups)))
|
||||
// {
|
||||
// JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
// return;
|
||||
// }
|
||||
|
||||
// $model = $this->getModel();
|
||||
// $model->hit();
|
||||
|
||||
return parent::display($tpl);
|
||||
}
|
||||
}
|
||||
12
components/com_pagebuilderck/views/pages/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/pages/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/pages/tmpl/default.php';
|
||||
13
components/com_pagebuilderck/views/pages/tmpl/modal.php
Normal file
13
components/com_pagebuilderck/views/pages/tmpl/modal.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/pages/tmpl/modal.php';
|
||||
12
components/com_pagebuilderck/views/pages/view.html.php
Normal file
12
components/com_pagebuilderck/views/pages/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/pages/view.html.php';
|
||||
12
components/com_pagebuilderck/views/styles/tmpl/default.php
Normal file
12
components/com_pagebuilderck/views/styles/tmpl/default.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/styles/tmpl/default.php';
|
||||
13
components/com_pagebuilderck/views/styles/tmpl/modal.php
Normal file
13
components/com_pagebuilderck/views/styles/tmpl/modal.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/styles/tmpl/modal.php';
|
||||
12
components/com_pagebuilderck/views/styles/view.html.php
Normal file
12
components/com_pagebuilderck/views/styles/view.html.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
require_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/views/styles/view.html.php';
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
158
components/com_pagebuilderck/views/templateedition/view.html.php
Normal file
158
components/com_pagebuilderck/views/templateedition/view.html.php
Normal file
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
/**
|
||||
* @name Page Builder CK
|
||||
* @package com_pagebuilderck
|
||||
* @copyright Copyright (C) 2015. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
jimport('joomla.application.component.view');
|
||||
|
||||
class PagebuilderckViewTemplateedition extends JViewLegacy
|
||||
{
|
||||
protected $item;
|
||||
|
||||
protected $state;
|
||||
|
||||
public function display($tpl = null)
|
||||
{
|
||||
|
||||
// check that the user has the rights to edit
|
||||
$user = JFactory::getUser();
|
||||
$app = JFactory::getApplication();
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
if ($user->guest === 1)
|
||||
{
|
||||
$return = base64_encode(JUri::getInstance());
|
||||
$login_url_with_return = JRoute::_('index.php?option=com_users&return=' . $return);
|
||||
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'notice');
|
||||
$app->redirect($login_url_with_return, 403);
|
||||
}
|
||||
else
|
||||
{
|
||||
$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
|
||||
$app->setHeader('status', 403, true);
|
||||
return;
|
||||
}
|
||||
// JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
// return false;
|
||||
}
|
||||
|
||||
// check that the template is compatible
|
||||
$app = JFactory::getApplication();
|
||||
$template = $app->getTemplate();
|
||||
|
||||
// load xml file from the template
|
||||
$xml = simplexml_load_file(JPATH_SITE . '/templates/' . $template . '/templateDetails.xml');
|
||||
|
||||
// check that the template is made with a compatible version of Template Creator CK
|
||||
if ($xml->generator != 'Template Creator CK') {
|
||||
JError::raiseWarning(403, JText::_('The template you are trying to edit has not been created with Template Creator CK, or not the latest version of if. You can download Template Creator CK on <a href="https://www.template-creator.com">https://www.template-creator.com</a>'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// die ('ok');
|
||||
// $app = JFactory::getApplication();
|
||||
// $user = JFactory::getUser();
|
||||
|
||||
/*if (substr( $app->input->get('layout', null, 'cmd'), 0, 4 ) !== 'ajax') {
|
||||
$this->item = $this->get('Item');
|
||||
$this->state = $this->get('State');
|
||||
// $this->form = $this->get('Form');
|
||||
|
||||
// check that we got a page
|
||||
if (empty($this->item))
|
||||
{
|
||||
return JError::raiseError(404, JText::_('COM_PAGEBUILDERCK_ERROR_PAGE_NOT_FOUND'));
|
||||
}
|
||||
}
|
||||
|
||||
// check if we are viewing the frontend layout
|
||||
if ( ($app->input->get('layout', null, 'cmd') === null || $app->input->get('layout', null, 'cmd') === 'default')
|
||||
&& $tpl === null) {
|
||||
|
||||
// check the rights to access the page
|
||||
$groups = $user->getAuthorisedViewLevels();
|
||||
// if ((!in_array($this->item->access, $groups)) || (!in_array($this->item->category_access, $groups)))
|
||||
if (!in_array($this->item->access, $groups))
|
||||
{
|
||||
JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// check that the user has the rights to edit
|
||||
$authorised = ($user->authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create'))));
|
||||
if ($authorised !== true)
|
||||
{
|
||||
JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
return false;
|
||||
}
|
||||
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/menustyles.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/ckeditor.php';
|
||||
include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/pagebuilderck.php';
|
||||
|
||||
// get instance of the editor to load the css / js in the page
|
||||
$this->ckeditor = PagebuilderckHelper::loadEditor();
|
||||
|
||||
// check if the page is available for modification
|
||||
$model = $this->getModel();
|
||||
$id = $app->input->get('id', 0, 'int');
|
||||
if (! $model->checkout($id)) {
|
||||
$app->redirect(
|
||||
JRoute::_(
|
||||
'index.php?option=com_pagebuilderck&view=page&id=' . $id, false
|
||||
)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
|
||||
// Get the parameters
|
||||
// $params = JComponentHelper::getParams('com_pagebuilderck');
|
||||
// if ($app->input->get('layout', '', 'cmd') !== null || $tpl !== null) {
|
||||
|
||||
// Check for errors.
|
||||
// if (count($errors = $this->get('Errors')))
|
||||
// {
|
||||
// JError::raiseWarning(500, implode("\n", $errors));
|
||||
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// loads the neede library
|
||||
// include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/menustyles.php';
|
||||
// include_once JPATH_ADMINISTRATOR . '/components/com_pagebuilderck/helpers/stylescss.php';
|
||||
// Check if access is not public
|
||||
// $groups = $user->getAuthorisedViewLevels();
|
||||
|
||||
// if ($this->_layout == 'edit' || !$this->item->id) {
|
||||
// $authorised = $user->authorise('core.edit.own', 'com_pagebuilderck');
|
||||
|
||||
// if ($authorised !== true) {
|
||||
// Redirect to the edit screen.
|
||||
// $app->redirect(JURI::root() . 'index.php?option=com_templateck&view=login&template=templatecreatorck&tmpl=login&id=' . $this->item->id);
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// TODO : ajouter permissions et acl
|
||||
// if ((!in_array($item->access, $groups)) || (!in_array($item->category_access, $groups)))
|
||||
// {
|
||||
// JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
|
||||
// return;
|
||||
// }
|
||||
|
||||
// $model = $this->getModel();
|
||||
// $model->hit();
|
||||
|
||||
return parent::display($tpl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user