File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/pagebuilderck/button/button.php
Back
<?php /** * @copyright Copyright (C) 2015 Cédric KEIFLIN alias ced1870 * http://www.template-creator.com * http://www.joomlack.fr * @license GNU/GPL * */ defined('_JEXEC') or die('Restricted access'); jimport('joomla.event.plugin'); class plgPagebuilderckButton extends JPlugin { private $context = 'PLG_PAGEBUILDERCK_BUTTON'; private $type = 'button'; 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->title = JText::_($this->context . '_MENUITEM_TITLE'); $menuitem->description = JText::_($this->context . '_MENUITEM_DESC'); $menuitem->image = JUri::root(true) . '/plugins/pagebuilderck/button/assets/images/button.png'; return $menuitem; } /* * Display the html code for the item to be used into the interface * * Return String the html code */ public function onPagebuilderckLoadItemContentButton() { $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="<?php echo $this->type ?>"> <div class="tab_blocstyles ckprops" linktext="Click me" blocbackgroundcolorstart="#ffffff" blocbackgroundcolorend="#d8d8d8" bloccolor="#555555" blocfontsize="13" blocpaddingtop="6" blocpaddingright="20" blocpaddingbottom="6" blocpaddingleft="20" blocborderradius="3" blocborderscolor="#bbbbbb" blocborderssize="1" blocbordersstyle="solid" blocshadowcolor="#4d4d4d" blocshadowblur="2" blocshadowspread="-1" blocshadowoffsetv="2" fieldslist="blocbackgroundcolorstart,blocbackgroundcolorend,bloccolor,blocfontsize,blocpaddingtop,blocpaddingright,blocpaddingbottom,blocpaddingleft,blocborderradius,blocborderscolor,blocborderssize,blocbordersstyle,blocshadowcolor,blocshadowblur,blocshadowspread,blocshadowoffsetv"></div> <div class="tab_button ckprops" linktext="Click me" fieldslist="linktext"></div> <div class="ckstyle"> <style> #<?php echo $id; ?> > .inner { background: #ffffff; background-image: url("blocID1450811259789-gradient.svg"); background-image: -o-linear-gradient(center top,#ffffff, #d8d8d8 100%); background-image: -webkit-gradient(linear, left top, left bottom,from(#ffffff), color-stop(100%, #d8d8d8)); background-image: -moz-linear-gradient(center top,#ffffff, #d8d8d8 100%); background-image: linear-gradient(center top,#ffffff, #d8d8d8 100%); -pie-background: linear-gradient(center top,#ffffff, #d8d8d8 100%); border: #bbbbbb 1px solid; -moz-border-radius: 3px; -o-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-border-radius: 3px 3px 3px 3px; -o-border-radius: 3px 3px 3px 3px; -webkit-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; color: #555555; padding-top: 6px; padding-right: 20px; padding-bottom: 6px; padding-left: 20px; box-shadow: #4d4d4d 0px 2px 2px -1px; -moz-box-shadow: #4d4d4d 0px 2px 2px -1px; -webkit-box-shadow: #4d4d4d 0px 2px 2px -1px; font-size: 13px; } </style> </div> <a style="display:inline-block;cursor:pointer;" class="buttonck iconck inner" href="javascript:void(0)"><span class="buttontextck">Click me</span></a> </div> <?php } /* <div class="tab_blocstyles ckprops" blocbackgroundcolorstart="#ffffff" blocbackgroundpositionend="100" blocbackgroundcolorend="#d8d8d8" blocbackgrounddirection="topbottom" blocbackgroundimageattachment="scroll" blocbackgroundimagerepeat="no-repeat" blocbackgroundimagesize="auto" bloccolor="#555555" blocfontsize="13" blocpaddingtop="6" blocpaddingright="20" blocpaddingbottom="6" blocpaddingleft="20" blocborderradius="3" blocbordertopstyle="solid" blocborderrightstyle="solid" blocborderbottomstyle="solid" blocborderleftstyle="solid" blocborderscolor="#bbbbbb" blocborderssize="1" blocbordersstyle="solid" blocshadowcolor="#4d4d4d" blocshadowblur="2" blocshadowspread="-1" blocshadowoffsetv="2" blocshadowinset="0" fieldslist="blocbackgroundcolorstart,blocbackgroundpositionend,blocbackgroundcolorend,blocbackgrounddirection,blocbackgroundimageattachment,blocbackgroundimagerepeat,blocbackgroundimagesize,bloccolor,blocfontsize,blocalignementleft,blocalignementcenter,blocalignementright,blocalignementjustify,blocpaddingtop,blocpaddingright,blocpaddingbottom,blocpaddingleft,blocborderradius,blocbordertopstyle,blocborderrightstyle,blocborderbottomstyle,blocborderleftstyle,blocborderscolor,blocborderssize,blocbordersstyle,blocshadowcolor,blocshadowblur,blocshadowspread,blocshadowoffsetv,blocshadowinset"></div> <div class="tab_button ckprops" blocfontsize="40" bloccolor="#20B2AA" fieldslist="buttonalignementleft,buttonalignementcenter,buttonalignementright,uselightbox,lightboxalbum" uselightbox="0" lightboxalbum="0"></div>*/ /* * Display the html code for the item to be used into the interface * * Return String the html code */ public function onPagebuilderckLoadItemOptionsButton() { // load the language files of the plugin $this->loadLanguage(); // load the interface for the options $tpl = JPATH_SITE . '/plugins/pagebuilderck/button/layouts/edit_button.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 onPagebuilderckRenderItemButton($item) { $html = $item->innertext; return $html; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings