Exemple #1
0
 protected function addAdminScriptDeclaration()
 {
     $script = '';
     $script .= '#preview .placeholder img, #preview .wimg {';
     $script .= 'height:' . (droppicsBase::getParam('thumbnail_height', '0') + 2 * 10) . 'px;';
     $script .= 'width:' . (droppicsBase::getParam('thumbnail_width', '0') + 2 * 10) . 'px;';
     $script .= '}';
     $script .= '#preview .highlight {';
     $script .= 'height:' . (droppicsBase::getParam('thumbnail_height', '0') + 2 * 10 - 2) . 'px;';
     $script .= 'width:' . (droppicsBase::getParam('thumbnail_width', '0') + 2 * 10 - 2) . 'px;';
     $script .= '}';
     return '<style type="text/css">' . $script . '</style>';
 }
Exemple #2
0
JText::script('COM_DROPPICS_JS_CONFIRM');
JText::script('COM_DROPPICS_JS_SAVE');
JText::script('COM_DROPPICS_JS_SAVED');
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('gcaninsert=' . (JRequest::getBool('caninsert', false) ? 'true' : 'false') . ';');
$doc->addScriptDeclaration('e_name="' . JRequest::getString('e_name') . '";');
$collapse = DroppicsBase::getParam('catcollapsed', 0);
$declaration = "   if(typeof(Droppics)=='undefined'){" . "     Droppics={};" . "}" . "Droppics.can = {};" . "Droppics.can.create=" . (int) $this->canDo->get('core.create') . ";" . "Droppics.can.edit=" . (int) ($this->canDo->get('core.edit') || $this->canDo->get('core.edit.own')) . ";" . "Droppics.can.delete=" . (int) $this->canDo->get('core.delete') . ";" . "Droppics.baseurl='" . COM_MEDIA_BASEURL . "';" . "Droppics.collapse=" . ($collapse ? 'true' : 'false') . ";" . "Droppics.version='" . droppicsComponentHelper::getVersion() . "';" . "";
$doc->addScriptDeclaration($declaration);
$ownbootstrap = '';
if (JFactory::getApplication()->isSite() || !droppicsBase::isJoomla30()) {
    $ownbootstrap = 'ownbootstrap';
}
?>
<div id="mybootstrap" class="<?php 
if (droppicsBase::isJoomla30()) {
    echo 'joomla30';
} else {
    echo 'joomla25';
}
?>
 <?php 
echo $ownbootstrap;
?>
">
    <div id="main_wrapper">
        <?php 
echo $this->loadTemplate('cats');
?>

        <div id="rightcol" class="">