Example #1
0
<?php

/**
* @package Joomla! 2.5
* @version 4.x
* @author 2008-2012 (c)  Denys Nosov
* @author web-site: www.joomla-ua.org
* @copyright This module is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
**/
defined('_JEXEC') or die;
require_once dirname(__FILE__) . DS . 'helper.php';
$list = modJUNewsUltraHelper::getList($params);
if ($params->get('empty_mod', 0) == 1) {
    if (!count($list)) {
        return;
    }
}
$template = str_replace('_:', '', $params->def('template'));
$layoutpath = JModuleHelper::getLayoutPath('mod_junewsultra', $template);
$all_in = $params->def('all_in');
$custom_heading = $params->def('custom_heading');
$link_all_in = trim($params->get('link_all_in'));
$text_all_in = trim($params->get('text_all_in'));
$text_all_in2 = trim($params->get('text_all_in2'));
$item_heading = trim($params->get('item_heading'));
$link_menuitem = trim($params->get('link_menuitem'));
$class_all_in = trim($params->get('class_all_in'));
$copy = $params->def('copy', 1);
if ($params->get('cssstyle') == 1) {
    $document =& JFactory::getDocument();
    $document->addCustomTag('<link rel="stylesheet" href="' . JURI::base() . 'modules/mod_junewsultra/tmpl/' . $template . '/css/style.css" type="text/css" />');
Example #2
0
 public static function MakeDirectory($dir, $mode)
 {
     if (is_dir($dir) || @mkdir($dir, $mode)) {
         return TRUE;
     }
     if (!modJUNewsUltraHelper::MakeDirectory(dirname($dir), $mode)) {
         return FALSE;
     }
     return @mkdir($dir, $mode);
 }