Ejemplo n.º 1
0
        break;
}
$document->addStyleSheet(JURI::base() . 'modules/mod_avatar_slide_skitter/assets/css/skitter.styles.css');
$document->addScript(JURI::base() . 'modules/mod_avatar_slide_skitter/assets/js/jquery.easing.1.3.js');
$document->addScript(JURI::base() . 'modules/mod_avatar_slide_skitter/assets/js/jquery.skitter.js');
$document->addScript('http://www.bitstorm.org/jquery/color-animation/jquery.animate-colors-min.js');
//HTML
echo "<div id='" . $id . "' style='margin:auto;'>" . "<div id='avatar_skitter_" . $id . "' class='box_skitter box_skitter_large' style='margin:auto;width:" . $width . ";height:" . $height . "'>" . "<ul>";
switch ($source) {
    case 'folder':
        require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'avatar.image.php';
        $path = AMSlide::getFolders($params);
        $tmp = new imageData();
        $tmp->setPath($path, sizeof($path));
        $tmpListImage = $tmp->getArrayImageLinks();
        $tmpListDesc = $tmp->getArrayImageInfo($descriptions);
        $tmplistLink = $tmp->getArrayImageInfo($links);
        require JModuleHelper::getLayoutPath('mod_avatar_slide_skitter', 'folder');
        break;
}
echo "</ul></div></div>";
?>
<div class="avatar-copyright" style="width:100%;margin: 5px;text-align: center;display : <?php 
if (strtolower($cr) == false) {
    echo 'none';
} else {
    echo 'block';
}
?>
 ;">
&copy; JoomAvatar.com
Ejemplo n.º 2
0
        $document->addScriptDeclaration('jQuery.noConflict();');
        break;
}
$document->addStyleSheet(JURI::base() . 'modules/mod_avatar_slide_galleria/assets/css/galleria.' . $theme . '.css');
if (!file_exists(JPATH_ROOT . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'content' . DIRECTORY_SEPARATOR . 'avatar_slide_galleria' . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'galleria-1.2.9.min.js')) {
    $document->addScript(JURI::base() . 'modules/mod_avatar_slide_galleria/assets/js/galleria-1.2.9.min.js');
} else {
    $document->addScript(JURI::base() . 'plugins/content/avatar_slide_galleria/assets/js/galleria-1.2.9.min.js');
}
switch ($source) {
    case 'folder':
        $path = AMSlide::getFolders($params);
        $tmp = new imageData();
        $tmp->setPath($path);
        $tmpListImage = $tmp->getArrayImageLinks();
        $tmpListDesc = $tmp->getArrayImageInfo($descriptions);
        $tmpListTitle = $tmp->getArrayImageInfo($titles);
        $tmpListLink = $tmp->getArrayImageInfo($imagesLink);
        require JModuleHelper::getLayoutPath('mod_avatar_slide_galleria', 'folder');
        break;
    case 'picasa':
        $searchBy = "search";
        $stringSearch = mod_avatar_slide_galleriaHelper::getstringPicasa($params);
        require JModuleHelper::getLayoutPath('mod_avatar_slide_galleria', 'picasa');
        break;
    case 'flickr':
        $searchBy = "search";
        $flickrSort = mod_avatar_slide_galleriaHelper::getflickrSort($params);
        $stringSearch = mod_avatar_slide_galleriaHelper::getstringFlickr($params);
        require JModuleHelper::getLayoutPath('mod_avatar_slide_galleria', 'flickr');
        break;