Файловый менеджер - Редактировать - /home/digilove/public_html/plugins/system/ytshortcodes/shortcodes/points/shortcode.php
Назад
<?php /* * @package YouTech Shortcodes * @author YouTech Company http://smartaddons.com/ * @copyright Copyright (C) 2015 YouTech Company * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; function pointsYTShortcode($atts, $content = null){ global $no_number; extract(ytshortcode_atts(array( "src" => '', "width" => '', ), $atts)); $css =''; $id = uniqid('points_').rand().time(); $points = JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/shortcodes/points/css/points.css",'text/css',"screen"); if ($src == '') { $src = 'plugins/system/ytshortcodes/assets/images/URL_IMAGES.png'; } $src = (strpos($src, "http://") === false) ? JURI::base().$src : $src; $css .= "#".$id."{max-width:".$width."%}"; $doc = JFactory::getDocument(); $doc->addStyleDeclaration($css); $points .= "<div class='yt-product-wrapper' id='".$id."'>"; $points .= '<img src="'.$src.'" alt="Preview image"><ul class="blank">'; $points .= parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) ; $points .= '</ul></div>'; return $points; } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0.26 |
proxy
|
phpinfo
|
Настройка