first commit
This commit is contained in:
1
plugins/pagebuilderck/tabs/assets/images/index.html
Normal file
1
plugins/pagebuilderck/tabs/assets/images/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
1
plugins/pagebuilderck/tabs/assets/images/tabs.svg
Normal file
1
plugins/pagebuilderck/tabs/assets/images/tabs.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="512px" height="512px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;"><g transform="matrix(2.08267,0,0,2.08267,-425.202,2.84748)"><g transform="matrix(5.58723,0,0,5.58723,204.162,-1.36723)"><rect x="0" y="0" width="44" height="44" style="fill:none;"/></g><g transform="matrix(0.578216,0,0,0.635496,168.656,-31.4474)"><path d="M460,86.912C460,77.578 451.671,70 441.413,70L108.587,70C98.329,70 90,77.578 90,86.912L90,393.088C90,402.422 98.329,410 108.587,410L441.413,410C451.671,410 460,402.422 460,393.088L460,86.912Z" style="fill:none;stroke:black;stroke-width:15.81px;"/></g><g transform="matrix(1.39244,0,0,0.452716,183.996,-97.9465)"><path d="M80,330L180,330" style="fill:none;stroke:black;stroke-width:9.28px;"/></g><g transform="matrix(2.2214e-17,0.362782,-0.452716,2.77208e-17,516.81,-13.8512)"><path d="M80,330L180,330" style="fill:none;stroke:black;stroke-width:23.41px;"/></g><g transform="matrix(2.2214e-17,0.362782,-0.452716,2.77208e-17,444.787,-13.8512)"><path d="M80,330L180,330" style="fill:none;stroke:black;stroke-width:23.41px;"/></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
plugins/pagebuilderck/tabs/assets/index.html
Normal file
1
plugins/pagebuilderck/tabs/assets/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
|
||||
; https://www.joomlack.fr
|
||||
; @license GNU/GPL
|
||||
; Double quotes in the values have to be formatted as "_QQ_"
|
||||
|
||||
|
||||
PLG_PAGEBUILDERCK_TABS_XML_NAME="Page Builder CK - Horizontal tabs"
|
||||
PLG_PAGEBUILDERCK_TABS_MENUITEM_TITLE="Horizontal tabs"
|
||||
PLG_PAGEBUILDERCK_TABS_MENUITEM_DESC="Tabs with custom content"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
|
||||
; https://www.joomlack.fr
|
||||
; @license GNU/GPL
|
||||
; Double quotes in the values have to be formatted as "_QQ_"
|
||||
|
||||
|
||||
PLG_PAGEBUILDERCK_TABS_XML_NAME="Page Builder CK - Horizontal tabs"
|
||||
1
plugins/pagebuilderck/tabs/language/en-GB/index.html
Normal file
1
plugins/pagebuilderck/tabs/language/en-GB/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
@@ -0,0 +1,9 @@
|
||||
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
|
||||
; https://www.joomlack.fr
|
||||
; @license GNU/GPL
|
||||
; Double quotes in the values have to be formatted as "_QQ_"
|
||||
|
||||
|
||||
PLG_PAGEBUILDERCK_TABS_XML_NAME="Page Builder CK - Onglets horizontaux"
|
||||
PLG_PAGEBUILDERCK_TABS_MENUITEM_TITLE="Onglets horizontaux"
|
||||
PLG_PAGEBUILDERCK_TABS_MENUITEM_DESC="Onglets avec contenu personnalisé"
|
||||
@@ -0,0 +1,7 @@
|
||||
; @copyright Copyright (C) 2010 Cédric KEIFLIN alias ced1870
|
||||
; https://www.joomlack.fr
|
||||
; @license GNU/GPL
|
||||
; Double quotes in the values have to be formatted as "_QQ_"
|
||||
|
||||
|
||||
PLG_PAGEBUILDERCK_TABS_XML_NAME="Page Builder CK - Onglets horizontaux"
|
||||
1
plugins/pagebuilderck/tabs/language/fr-FR/index.html
Normal file
1
plugins/pagebuilderck/tabs/language/fr-FR/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
1
plugins/pagebuilderck/tabs/language/index.html
Normal file
1
plugins/pagebuilderck/tabs/language/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
||||
215
plugins/pagebuilderck/tabs/layouts/edit_tabs.php
Normal file
215
plugins/pagebuilderck/tabs/layouts/edit_tabs.php
Normal file
@@ -0,0 +1,215 @@
|
||||
<?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;
|
||||
?>
|
||||
<div class="menustylescustom" data-prefix="tabsicon" data-rule=".itemtitleck .pbckicon"></div>
|
||||
<div id="elementscontainer">
|
||||
<div class="menulink" tab="tab_edition"><?php echo JText::_('CK_EDITION'); ?></div>
|
||||
<div class="tab menustyles ckproperty tab_fullscreen" id="tab_edition">
|
||||
<div id="items_edition_list">
|
||||
</div>
|
||||
<div onclick="ckAddNewListItem()" class="item_add ckbutton ckbutton-primary"><?php echo JText::_('CK_ADD_NEW_ITEM'); ?></div>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_iconstyles"><?php echo JText::_('CK_ICON'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_iconstyles">
|
||||
<?php echo $this->menustyles->createIconLight('tabsicon') ?>
|
||||
<?php echo $this->menustyles->createIconSvgLight('icon') ?>
|
||||
<?php echo $this->menustyles->createBackground('icon') ?>
|
||||
<?php echo $this->menustyles->createDimensions('icon', true, true) ?>
|
||||
<?php echo $this->menustyles->createDecoration('icon') ?>
|
||||
<?php echo $this->menustyles->createShadow('icon') ?>
|
||||
<?php echo $this->menustyles->createCustom('icon') ?>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_headingtabsstyles"><?php echo JText::_('CK_TABS_HEADING_STYLE'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_headingtabsstyles">
|
||||
<?php echo $this->menustyles->createBlocStyles('headingtabs', 'tabsck', false, false) ?>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_activeheadingtabsstyles"><?php echo JText::_('CK_TABS_ACTIVE_HEADING_STYLE'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_activeheadingtabsstyles">
|
||||
<?php echo $this->menustyles->createBlocStyles('activeheadingtabs', 'tabsck', false, false) ?>
|
||||
</div>
|
||||
<div class="menulink" tab="tab_contenttabsstyles"><?php echo JText::_('CK_TABS_CONTENT_STYLE'); ?></div>
|
||||
<div class="tab menustyles ckproperty" id="tab_contenttabsstyles">
|
||||
<?php echo $this->menustyles->createBlocStyles('contenttabs', 'tabsck', false, false) ?>
|
||||
</div>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
var focus = $ck('.editfocus');
|
||||
|
||||
// variables for the items order
|
||||
var wrapper = $ck('.editfocus > .tabsck');
|
||||
var items_tab = wrapper.find('> ol.ui-tabs-nav > li');
|
||||
var items_content = wrapper.find('> div.tabck');
|
||||
|
||||
function ckLoadEditionPopup() {
|
||||
$ck('#<?php echo $id; ?>_preview_tabs').tabsck();
|
||||
$ck('.editfocus > .tabsck > ol.ui-tabs-nav > li .itemtitleck').each(function(i, el) {
|
||||
var contentArea = $ck('.editfocus > .tabsck > .tabck > .itemcontentck').eq(i).length ? $ck('.editfocus > .tabsck > .tabck > .itemcontentck').eq(i) : $ck('.editfocus .tabsck .itemcontentck').eq(i);
|
||||
var itemedition = ckCreateEditItem(i, $ck('#items_edition_list'), $ck(el).text(), ckContentToEditor(contentArea.html()), true, $ck('.tabsck > ol.ui-tabs-nav > li > .itemtitleck .iconck', focus).eq(i).html());
|
||||
ckMakeEditItemAccordion(itemedition);
|
||||
// tinymce.execCommand('mceAddEditor', false, 'item_content_' + i);
|
||||
ckLoadEditorOnTheFly('item_content_' + i);
|
||||
ckGetItemIcon(i, '.itemtitleck');
|
||||
});
|
||||
$ck('.item_setdefault').eq(focus.find('.tabsck').attr('activetab')).addClass('btn-warning').addClass('active');
|
||||
ckMakeEditItemsSortable();
|
||||
ckFillEditionPopup(focus.attr('id'));
|
||||
}
|
||||
|
||||
/* override the JS function for custom use */
|
||||
function ckSelectIcon(icon) {
|
||||
return ckSelectIconFromEdition(icon);
|
||||
}
|
||||
|
||||
function ckMakeEditItemAccordion(el) {
|
||||
$ck(el).accordion({
|
||||
header: ".item_toggler",
|
||||
collapsible: true,
|
||||
active: false,
|
||||
heightStyle: "content"
|
||||
});
|
||||
}
|
||||
|
||||
function ckAddNewListItem() {
|
||||
// add the element in the tabs
|
||||
var index = $ck('.editfocus .tabsck > ol > li').length;
|
||||
$ck('.editfocus .tabsck > ol').append(ckGetNewTabItemTitle('Lorem Ipsum ...', index+1));
|
||||
$ck('.editfocus .tabsck').append(ckGetNewTabItemContent('<p>Lorem Ipsum ...</p>', index+1));
|
||||
$ck('.editfocus .tabsck').tabsck( "refresh" );
|
||||
// add the element for edition
|
||||
var itemedition = ckCreateEditItem(index, $ck('#items_edition_list'), 'Lorem Ipsum ...', '<p>Lorem Ipsum ...</p>', true);
|
||||
ckMakeEditItemAccordion(itemedition);
|
||||
// tinymce.execCommand('mceAddEditor', false, 'item_content_' + index);
|
||||
ckLoadEditorOnTheFly('item_content_' + index);
|
||||
}
|
||||
|
||||
function ckGetNewTabItemTitle(title, index) {
|
||||
var html = '<li><a href="#<?php echo $id; ?>_tabs-'+index+'" class="itemtitleck">'+title+'</a></li>'
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
function ckGetNewTabItemContent(content, index) {
|
||||
var html = '<div id="<?php echo $id; ?>_tabs-'+index+'" class="tabck itemcontentck">'
|
||||
+content
|
||||
+'</div>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
function ckBeforeSaveEditionPopup() {
|
||||
// save the order of the items
|
||||
ckReorderListItems();
|
||||
|
||||
$ck('.item_content_edition').each(function() {
|
||||
var textID = $ck(this).attr('id');
|
||||
ckSaveEditorOnTheFly(textID);
|
||||
// ckRemoveEditorOnTheFly(textID);
|
||||
});
|
||||
ckUpdatePreviewArea();
|
||||
|
||||
var activetab = 0;
|
||||
$ck('#popup_editionck .item_edition').each(function(i, el) {
|
||||
if ($ck(el).find('.item_setdefault.active').length) {
|
||||
activetab = i;
|
||||
}
|
||||
$ck('.editfocus > .tabsck > ol.ui-tabs-nav > li .itemtitleck').eq(i).text($ck(el).find('.item_title_edition').val());
|
||||
// since 2.18.3 add nested addons
|
||||
if (! $ck('.editfocus > .tabsck > div').eq(i).find('> .itemcontentck').length) {
|
||||
var contentArea = $ck('.editfocus > .tabsck > div').eq(i);
|
||||
contentArea.html('<div class="innercontent"></div><div class="itemcontentck">' + contentArea.html() + '</div><div class="innercontent"></div>');
|
||||
ckAddEditionForNestedAddons('#<?php echo $id; ?>');
|
||||
}
|
||||
var contentArea = $ck('.editfocus > .tabsck > .tabck > .itemcontentck').eq(i).length ? $ck('.editfocus > .tabsck > .tabck > .itemcontentck').eq(i) : $ck('.editfocus .tabsck .itemcontentck').eq(i);
|
||||
contentArea.html(ckEditorToContent($ck('#items_edition_list .item_content_edition').eq(i).val()));
|
||||
var icon = ckGetIconFromEdition(i, $ck(el), focus, '.itemtitleck');
|
||||
if (icon) $ck('.itemtitleck', focus).eq(i).prepend('<span class="iconck">' + icon + '</span>');
|
||||
});
|
||||
var vPos = $ck('#iconicon-position button.active').attr('data-position');
|
||||
$ck('.editfocus .itemtitleck .pbckicon').css('vertical-align', vPos);
|
||||
focus.find('.tabsck').attr('activetab', activetab);
|
||||
$ck('.tabsck', focus).tabsck("destroy");
|
||||
$ck('.tabsck', focus).tabsck({active: activetab});
|
||||
}
|
||||
|
||||
function ckSaveInlineEditionPopup() {
|
||||
ckBeforeSaveEditionPopup();
|
||||
}
|
||||
|
||||
function ckSetDefaultEditItem(item) {
|
||||
$ck('.item_setdefault').removeClass('btn-warning').removeClass('active');
|
||||
item.find('.item_setdefault').addClass('btn-warning').addClass('active');
|
||||
}
|
||||
|
||||
function ckBeforeCloseEditionPopup() {
|
||||
$ck('.item_content_edition').each(function() {
|
||||
ckRemoveEditorOnTheFly($ck(this).attr('id'));
|
||||
});
|
||||
}
|
||||
|
||||
function ckBeforeDeleteEditItem(item) {
|
||||
var index_item = item.index('.item_edition');
|
||||
ckRemoveEditorOnTheFly(item.find('.item_content_edition').attr('id'));
|
||||
|
||||
$ck('.editfocus .tabsck > ol > li').eq(index_item).remove();
|
||||
$ck('.editfocus .tabsck .tabck').eq(index_item).remove();
|
||||
$ck( "#<?php echo $id; ?>_preview_tabs" ).tabsck("refresh");
|
||||
}
|
||||
|
||||
function ckUpdatePreviewArea() {
|
||||
|
||||
}
|
||||
|
||||
function ckMakeEditItemsSortable() {
|
||||
$ck( "#items_edition_list" ).sortable({
|
||||
items: ".item_edition",
|
||||
helper: "clone",
|
||||
// axis: "y",
|
||||
handle: "> .item_move",
|
||||
forcePlaceholderSize: true,
|
||||
tolerance: "pointer",
|
||||
placeholder: "placeholderck",
|
||||
// zIndex: 9999,
|
||||
start: function(e, ui){
|
||||
$ck(this).find('.item_content_edition').each(function(){
|
||||
if (tinymce.get($ck(this).attr('id'))) {
|
||||
ckRemoveEditorOnTheFly($ck(this).attr('id'));
|
||||
}
|
||||
});
|
||||
},
|
||||
stop: function( event, ui ) {
|
||||
$ck(this).find('.item_content_edition:not(.ui-sortable-helper)').each(function(){
|
||||
ckLoadEditorOnTheFly($ck(this).attr('id'));
|
||||
});
|
||||
ckUpdatePreviewArea();
|
||||
$ck( "#<?php echo $id; ?>_preview_tabs" ).tabsck("refresh");
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
ckInitIconPosition('.editfocus .itemtitleck .pbckicon', '#iconicon-position button');
|
||||
|
||||
function ckReorderListItems() {
|
||||
|
||||
var order = new Array();
|
||||
$ck('#popup_editionck .item_edition').each(function(i, el) {
|
||||
order.push($ck(this).attr('data-i'));
|
||||
});
|
||||
|
||||
var contentItems = $ck.map(order, function(value) {
|
||||
wrapper.append($ck(items_content).get(value));
|
||||
wrapper.find('> ol.ui-tabs-nav').append($ck(items_tab).get(value));
|
||||
// tab.id = '<?php echo $id; ?>_tabs-'+i;
|
||||
// i++;
|
||||
// return tab;
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
1
plugins/pagebuilderck/tabs/layouts/index.html
Normal file
1
plugins/pagebuilderck/tabs/layouts/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
104
plugins/pagebuilderck/tabs/tabs.php
Normal file
104
plugins/pagebuilderck/tabs/tabs.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2015 Cédric KEIFLIN alias ced1870
|
||||
* https://www.template-creator.com
|
||||
* https://www.joomlack.fr
|
||||
* @license GNU/GPL
|
||||
* */
|
||||
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
jimport('joomla.event.plugin');
|
||||
|
||||
class plgPagebuilderckTabs extends JPlugin {
|
||||
|
||||
private $context = 'PLG_PAGEBUILDERCK_TABS';
|
||||
|
||||
private $type = 'tabs';
|
||||
|
||||
function __construct(&$subject, $params) {
|
||||
|
||||
parent::__construct($subject, $params);
|
||||
}
|
||||
|
||||
/*
|
||||
* Construct the Menu Item to drag into the interface
|
||||
*
|
||||
* Return Object with item data
|
||||
*/
|
||||
public function onPagebuilderckAddItemToMenu() {
|
||||
// load the language files of the plugin
|
||||
$this->loadLanguage();
|
||||
// create the menu item
|
||||
$menuitem = new stdClass();
|
||||
$menuitem->type = $this->type;
|
||||
$menuitem->group = 'text';
|
||||
$menuitem->title = JText::_($this->context . '_MENUITEM_TITLE');
|
||||
$menuitem->description = JText::_($this->context . '_MENUITEM_DESC');
|
||||
$menuitem->image = JUri::root(true) . '/plugins/pagebuilderck/tabs/assets/images/tabs.svg';
|
||||
|
||||
return $menuitem;
|
||||
}
|
||||
|
||||
/*
|
||||
* Display the html code for the item to be used into the interface
|
||||
*
|
||||
* Return String the html code
|
||||
*/
|
||||
public function onPagebuilderckLoadItemContentTabs() {
|
||||
$input = JFactory::getApplication()->input;
|
||||
$id = $input->get('ckid', '', 'string');
|
||||
// ckstyle and inner classes are needed to get the styles from the interface
|
||||
?>
|
||||
<div id="<?php echo $id; ?>" class="cktype" data-type="tabs" onshow="jQuery(this).find('.tabsck').tabsck();ckAddEditionForNestedAddons('#<?php echo $id; ?>');">
|
||||
<div class="ckstyle">
|
||||
</div>
|
||||
<div id="<?php echo $id; ?>_tabs" class="tabsck">
|
||||
<ol>
|
||||
<li><a href="#<?php echo $id; ?>_tabs-1" class="itemtitleck">Nunc tincidunt</a></li>
|
||||
<li><a href="#<?php echo $id; ?>_tabs-2" class="itemtitleck">Proin dolor</a></li>
|
||||
<li><a href="#<?php echo $id; ?>_tabs-3" class="itemtitleck">Aenean lacinia</a></li>
|
||||
</ol>
|
||||
<div id="<?php echo $id; ?>_tabs-1" class="tabck">
|
||||
<div class="innercontent"></div>
|
||||
<div class="itemcontentck"><p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p></div>
|
||||
<div class="innercontent"></div>
|
||||
</div>
|
||||
<div id="<?php echo $id; ?>_tabs-2" class="tabck">
|
||||
<div class="innercontent"></div>
|
||||
<div class="itemcontentck"><p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p></div>
|
||||
<div class="innercontent"></div>
|
||||
</div>
|
||||
<div id="<?php echo $id; ?>_tabs-3" class="tabck">
|
||||
<div class="innercontent"></div>
|
||||
<div class="itemcontentck"><p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
|
||||
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p></div>
|
||||
<div class="innercontent"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
/*
|
||||
* Load the interface for the item edition
|
||||
*
|
||||
* Return String the html code
|
||||
*/
|
||||
public function onPagebuilderckLoadItemOptionsTabs() {
|
||||
// load the language files of the plugin
|
||||
$this->loadLanguage();
|
||||
// load the interface for the options
|
||||
$tpl = JPATH_SITE . '/plugins/pagebuilderck/tabs/layouts/edit_tabs.php';
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
/*
|
||||
* Display the html code for the item to be used into the frontend page
|
||||
* @param string the item object from simple_html_dom
|
||||
*
|
||||
* Return String the html code
|
||||
*/
|
||||
public function onPagebuilderckRenderItemTabs($item) {
|
||||
return $item->innertext;
|
||||
}
|
||||
}
|
||||
24
plugins/pagebuilderck/tabs/tabs.xml
Normal file
24
plugins/pagebuilderck/tabs/tabs.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension version="3" type="plugin" group="pagebuilderck" method="upgrade">
|
||||
<name>plg_pagebuilderck_tabs_xml_name</name>
|
||||
<creationDate>December 2015</creationDate>
|
||||
<copyright>Copyright (C) 2015. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later</license>
|
||||
<author>Cedric Keiflin</author>
|
||||
<authorEmail>ced1870@gmail.com</authorEmail>
|
||||
<authorUrl>https://www.joomlack.fr</authorUrl>
|
||||
<version>3.0.0</version>
|
||||
<description>Tabs item for Page Builder CK</description>
|
||||
<files>
|
||||
<filename plugin="tabs">tabs.php</filename>
|
||||
<folder>language</folder>
|
||||
<folder>layouts</folder>
|
||||
<folder>assets</folder>
|
||||
</files>
|
||||
<languages folder="language">
|
||||
<language tag="en-GB">en-GB/en-GB.plg_pagebuilderck_tabs.sys.ini</language>
|
||||
<language tag="en-GB">en-GB/en-GB.plg_pagebuilderck_tabs.ini</language>
|
||||
<language tag="fr-FR">fr-FR/fr-FR.plg_pagebuilderck_tabs.sys.ini</language>
|
||||
<language tag="fr-FR">fr-FR/fr-FR.plg_pagebuilderck_tabs.ini</language>
|
||||
</languages>
|
||||
</extension>
|
||||
Reference in New Issue
Block a user