Example #1
0
function modChrome_parallax($module, &$params, &$attribs)
{
    $lang = jFactory::getLanguage();
    $key = strtoupper(str_replace(' ', '_', stripslashes($module->title)));
    $subtitlekey = 'TPL_SUBTITLE_' . $key;
    $subtitle = JText::_($subtitlekey);
    $menuid = 'page-' . $module->id;
    ?>
  <div class="section parallax module<?php 
    echo $params->get('moduleclass_sfx');
    ?>
" id="<?php 
    echo $menuid;
    ?>
">

    <div class="container">

      <?php 
    if ($module->showtitle != 0) {
        ?>
        <div class="section-title">
          <h1><span><?php 
        echo $module->title;
        ?>
</span></h1>
        </div>
      <?php 
    }
    ?>
      

      <div class="row">
        <?php 
    echo $module->content;
    ?>
      </div>

    </div>

  </div>
  <?php 
}
Example #2
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Content Slider Module for J25 & J33
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$lang = jFactory::getLanguage();
$basepath = JURI::root(true) . '/modules/' . $module->module . '/assets/';
//load override css
$templatepath = 'templates/' . $app->getTemplate() . '/css/' . $module->module . '.css';
if (file_exists(JPATH_SITE . '/' . $templatepath)) {
    $doc->addStyleSheet(JURI::root(true) . '/' . $templatepath);
} else {
    $doc->addStyleSheet($basepath . 'css/style.css');
}
//script
$doc->addScript($basepath . 'js/ja_contentslider.js');
if ($lang->isRTL() == 1) {
    $doc->addScript($basepath . 'js/ja_contentslider.rtl.js');
} else {
    $doc->addScript($basepath . 'js/ja_contentslider.js');
}
Example #3
0
 /**
  */
 function getPagination($params, $module)
 {
     $lang = jFactory::getLanguage();
     $languages = JLanguageHelper::getLanguages();
     $url_lang_code = '';
     foreach ($languages as $l) {
         if ($l->lang_code == $lang->getTag()) {
             $url_lang_code = $l->sef;
         }
     }
     $group = $params->get('group_categories', 0);
     /*Get layout*/
     $layout = $params->get('layout', 'default');
     $callback = 'get' . str_replace(":", "", $layout);
     $source = $params->get('source', 'JANewsHelper');
     $jacphelper = new $source();
     if ($group == 1) {
         $total = $jacphelper->getCategories($params, $this, true);
     } else {
         $total = $jacphelper->getList($params, $this, true);
     }
     $limited = ceil($total / $params->get('limited', 10));
     $pagedata = array('option' => $source == 'JANewsHelper' ? 'com_content' : 'com_k2', 'position' => $module->position, 'modulesid' => $module->id, 'Itemid' => JRequest::getInt('Itemid'));
     if ($url_lang_code) {
         $pagedata = array_merge($pagedata, array('lang' => $url_lang_code));
     }
     $html = '';
     if ($total > $params->get('limited', 10)) {
         for ($i = 0; $i < $limited; $i++) {
             $class = '';
             if ($i == 0) {
                 $class = ' class="active"';
             }
             $j = $i + 1;
             $pagedata['jalimitstart'] = $i * $params->get('limited', 10);
             $html .= '<li' . $class . '><span data-ref="' . htmlentities(json_encode($pagedata), ENT_QUOTES) . '">' . $j . '</span></li>';
         }
     }
     return $html ? '<ul class="ja-cp-pagelist">' . $html . '</ul>' : $html;
 }
Example #4
0
 function getExpressProduct()
 {
     $lang = jFactory::getLanguage();
     $lang_iso = str_replace('-', '_', $lang->gettag());
     $paypal_buttonurls = array('en_US' => 'https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif', 'en_GB' => 'https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif', 'de_DE' => 'https://www.paypal.com/de_DE/DE/i/logo/lockbox_150x47.gif', 'es_ES' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/en_US/FR/i/bnr/bnr_horizontal_solution_PP_327wx80h.gif', 'pl_PL' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/en_US/FR/i/bnr/bnr_horizontal_solution_PP_327wx80h.gif', 'nl_NL' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/en_US/FR/i/bnr/bnr_horizontal_solution_PP_327wx80h.gif', 'fr_FR' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/en_US/FR/i/bnr/bnr_horizontal_solution_PP_327wx80h.gif', 'it_IT' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/it_IT/IT/i/bnr/bnr_horizontal_solution_PP_178wx80h.gif', 'zn_CN' => 'https://www.paypalobjects.com/WEBSCR-600-20100105-1/en_US/FR/i/bnr/bnr_horizontal_solution_PP_327wx80h.gif');
     $paypal_infolink = array('en_US' => 'https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'en_GB' => 'https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'de_DE' => 'https://www.paypal.com/de/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'es_ES' => 'https://www.paypal.com/es/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'pl_PL' => 'https://www.paypal.com/pl/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'nl_NL' => 'https://www.paypal.com/nl/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'fr_FR' => 'https://www.paypal.com/fr/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'it_IT' => 'https://www.paypal.com/it/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside', 'zn_CN' => 'https://www.paypal.com/cn/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside');
     if (!isset($paypal_buttonurls[$lang_iso])) {
         $lang_iso = 'en_US';
     }
     $paypalProduct['link'] = $paypal_infolink[$lang_iso];
     $paypalProduct['img'] = $paypal_buttonurls[$lang_iso];
     return $paypalProduct;
 }