15
« il: 12 Apr 2013, 12:45:52 »
Ciao e grazie ho trovato sta nella cartella parameters ed all'interno si trova il
artcontent.php
Copio il suo interno:
<?php
defined('JPATH_BASE') or die;
require_once JPATH_SITE.'/libraries/joomla/html/parameter/element.php';
class JElementArtContent extends JElement
{
var $_name = 'ArtContent';
function fetchElement($name, $value, &$node, $control_name)
{
// Initialize field attributes.
$text = $node->attributes('text') ? $node->attributes('text') : '';
$value = $node->attributes('value') ? $node->attributes('value') : '';
// get theme name
$cid = JRequest::getVar('cid', array(), 'method', 'array');
$cid = array(JFilterInput::clean(@$cid[0], 'cmd'));
$template = $cid[0];
$dataFolder = JURI::root(true).'/templates/'. $template .'/data';
$document =& JFactory::getDocument();
// include js, css files to create modal window
$pathToModalJs = JURI::root(true).'/media/system/js/modal.js';
$document->addScript($pathToModalJs);
$pathToModalCss = JURI::root(true).'/media/system/css/modal.css';
$document->addStyleSheet($pathToModalCss);
$templateFolder = dirname(dirname(__FILE__));
$content = "if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;";
// join jquery.js file
$content .= file_get_contents($templateFolder . '/jquery.js');
$content .= 'jQuery.noConflict();';
// join loader.js file
$content .= file_get_contents($templateFolder . '/data/loader.js');
$content .= 'if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;';
$document->addScriptDeclaration($content);
return '<button class="modal" type="submit" name="'.$control_name.'['.$name.']" id="'.$control_name.$name.'" >'. JText::_($text) .'</button>'
.'<input type="hidden" id="dataFolder" value="'. $dataFolder .'">'
.'<div id="log"><>';
}
}