Exemplo n.º 1
0
 public function display($tpl = null)
 {
     JHTML::stylesheet(Juri::base() . 'media/openhrm/assets/css/stylesheet.css');
     JHTML::Script(Juri::base() . 'media/openhrm/assets/js/jwplayer/jwplayer.js');
     $this->lesson = $this->get("Items");
     $this->pagination = $this->get('Pagination');
     // Display the view
     parent::display($tpl);
 }
Exemplo n.º 2
0
 public function display($tpl = null)
 {
     JHTML::stylesheet(Juri::base() . 'media/englishconcept/assets/css/stylesheet.css');
     //JHTML::Script(Juri::base() . 'media/englishconcept/assets/js/jQuery.jPlayer/jquery.jplayer.min.js');
     JHTML::Script(Juri::base() . 'media/englishconcept/assets/js/jwplayer/jwplayer.js');
     $this->lesson = $this->get("Items");
     $this->pagination = $this->get('Pagination');
     // Display the view
     parent::display($tpl);
 }
Exemplo n.º 3
0
 public static function getFullUrl($file, $path)
 {
     $path = str_replace('administrator/', '', $path);
     $url = Juri::base();
     if (file_exists(JPATH_SITE . DS . $path . $file)) {
         $url = str_replace('/administrator', '/', $url);
     }
     if (substr($url, -1) !== '/' && substr($path, 0, 1) !== '/') {
         $url .= '/';
     }
     if (substr($path, -1) !== '/' && substr($file, 0, 1) !== '/') {
         $path .= '/';
     }
     if (!defined('OPCVERSION')) {
         include JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'version.php';
     }
     if (defined('OPCVERSION')) {
         $v = str_replace('.', '_', OPCVERSION);
         if (stripos($file, '?') === false) {
             $file .= '?opcversion=' . $v;
         }
     }
     return $url . $path . $file;
 }
Exemplo n.º 4
0
 public function setupJavascript()
 {
     $needsBootstrap = $this->params->get('displayType') == 'modal' || !$this->user->guest && ($this->params->get('showUserMenu') && $this->params->get('userMenuStyle') == 0);
     if (!$this->isJFBConnectInstalled) {
         if ($this->params->get('loadJQuery')) {
             $this->doc->addScript(JURI::base(true) . '/media/sourcecoast/js/jq-bootstrap-1.8.3.js');
         }
         if ($needsBootstrap || $this->tfaLoaded) {
             $this->doc->addScriptDeclaration('if (typeof jfbcJQuery == "undefined") jfbcJQuery = jQuery;');
         }
     }
     if ($this->tfaLoaded) {
         $this->doc->addScript(Juri::base(true) . '/media/sourcecoast/js/mod_sclogin.js');
         $this->doc->addScriptDeclaration('sclogin.token = "' . JSession::getFormToken() . '";' . "window.onload = function() {\n                    sclogin.init();\n                };\n                sclogin.base = '" . JURI::base() . "';\n");
     }
 }
Exemplo n.º 5
0
		<div class="com_bookingforconnector_resource-image">
			<img src="<?php 
    echo BFCHelper::getImageUrl('onsellunits', $images[0], 'resource_mono_full_rapidview');
    ?>
" />
		</div>
		<?php 
}
?>
		</div>
		<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL;
?>
6" id="divmapstatic">
			<img src="<?php 
echo Juri::base();
?>
images/nomap.jpg" alt="nomap.jpg" style="max-width:100%;" />
		</div>
	</div>
	<!--  -->
	<div class="details" >
		<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_ROW;
?>
" >
			<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL;
?>
6">
				<div style="padding:5px;">
<?php

/**
 * B-Accessibility Module Entry Point
 * 
 * @package    Joomla
 * @subpackage Modules
 * @license    GNU/GPL, see LICENSE.php
 * mod_baccessibility is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */
// No direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
$doc = JFactory::getDocument();
$modBaseUrl = Juri::base() . 'modules/mod_baccessibility';
$doc->addStyleSheet($modBaseUrl . '/asset/css/style.css');
if ($params->get('use_awesome')) {
    $doc->addStyleSheet($params['awesome_path']);
}
//$doc->addScript( $modBaseUrl . '/asset/js/toolbar.js' );
$doc->addScript($modBaseUrl . '/asset/js/baccessibility.jquery.js');
$doc->addScript($modBaseUrl . '/asset/js/grayscale.js');
require JModuleHelper::getLayoutPath('mod_baccessibility');
Exemplo n.º 7
0
// Main container. To add Module class suffix in this container, add the PHP var $moduleclass_sfx
echo '<div class="lastworks-container lastworks-one-column">';
if (count($articles)) {
    foreach ($articles as $article) {
        //<-- ARTICLE LOOP.
        $images = json_decode($article->images);
        $category = modLastWorksHelper::getCategoryLW($article->catid);
        echo '<div class="lastworks-row row-fluid">
				<div class="lastworks-item span12">';
        // Title of the article
        echo '<h3>' . $article->title . '</h3>';
        // Category of the article
        /*echo '<ul class="breadcrumb">
        			<li>' . JText::_('JCATEGORY') . ': ' . JHtml::_('link', ContentHelperRoute::getCategoryRoute($article->catid), $category) . '</li>
        		</ul>';*/
        // Intro image of the article. display image only when exist in the Article >> Images & Links >> Intro Image
        if ($images->image_intro) {
            echo JHtml::_('image', Juri::base() . $images->image_intro, 'alt="' . $article->title . '"');
        }
        // Intro Text of the article
        echo $article->introtext;
        // Read more link
        echo '<p>' . JHtml::_('link', ContentHelperRoute::getArticleRoute($article->id), JText::_('MOD_LASTWORKS_READMORE', $article->catid), 'class="btn"') . '</p>';
        echo '</div>
			</div>';
    }
    //.ARTICLE LOOP -->
} else {
    echo '<div class="alert alert-block">' . JText::_('MOD_LASTWORKS_NO_ARTICLES_FOUND') . '</div>';
}
echo '</div>';
Exemplo n.º 8
0
        </div>
    </div>
    <!---->
    <!-- Swiper JS -->
    <!--<script src="js/idangerous/swiper.min.js"></script>-->
   <!-- Initialize Swiper -->
    <script>
    //responsive menu
    jQuery(document).ready(function(){
        jQuery('#responsive-menu-button').sidr({
            name: 'sidr',
            source: '#navigation',
            side: 'left',
           forceclick:true
        });
       //flowtype handles responsive text
    //$('body').flowtype();    
    //$('body').flowtype({
      //  minimum   : 800,
       // maximum   : 1200,
       // minFont   : 12,
        //maxFont   : 40,
        //fontRatio : 30
    //});
});
    </script>
    <?php 
JHtml::script(Juri::base() . 'templates/apaExpo/js/main.js', $mootools);
?>
</body>
</html>
Exemplo n.º 9
0
" class="btn btnGetstart">Start</a></li>
            <li>
                    <p><span class="f55">250</span> <span class="f35 cf7901e">kr</span> <span class="f35">/</span> <small>6 m&aring;ned</small></p>
                    <div class="box-highline">
                            <p>Ideal for retail chains or larger establishments</p>
                            <p>Points-based</p>
                            <p>4 push promotions per month</p>
                            <p>EPOS integrated</p>
                            <p>Advanced analytics</p>
                    </div>
                    <p>Gratis en m&aring;ned</p>
                    <a href="<?php 
echo Juri::base() . 'index.php?option=com_business&view=paymentaccount&layout=payment&userid=' . $user->id . '&package=2';
?>
" class="btn btnGetstart">Start</a></li>
            <li>
                    <p><span class="f55">500</span> <span class="f35 cf7901e">kr</span> <span class="f35">/</span> <small>12 m&aring;ned</small></p>
                    <div class="box-highline">
                            <p>Ideal for retail chains or larger establishments</p>
                            <p>Points-based</p>
                            <p>4 push promotions per month</p>
                            <p>EPOS integrated</p>
                            <p>Advanced analytics</p>
                    </div>
                    <p>Gratis 2 m&aring;neders</p>
                    <a href="<?php 
echo Juri::base() . 'index.php?option=com_business&view=paymentaccount&layout=payment&userid=' . $user->id . '&package=3';
?>
" class="btn btnGetstart">Start</a></li>
    </ul>
</div>
Exemplo n.º 10
0
/**
 * @package		Skillset
 * @subpackage	Skillset
 * @author		Joomla Bamboo - design@joomlabamboo.com
 * @copyright 	Copyright (c) 2014 Joomla Bamboo. All rights reserved.
 * @license		GNU General Public License version 2 or later
 * @version		1.0.0
 */
// no direct access
defined('_JEXEC') or die;
// include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
$class_sfx = htmlspecialchars($params->get('class_sfx'));
$display = $params->get('display');
if ($params->get('css-load')) {
    JHtml::stylesheet(Juri::base() . 'modules/mod_skillset/css/skillset.css');
}
if ($params->get('jquery-load')) {
    JLoader::import('joomla.version');
    $version = new JVersion();
    if (version_compare($version->RELEASE, '2.5', '<=')) {
        if (JFactory::getApplication()->get('jquery') !== true) {
            // load jQuery here
            JFactory::getApplication()->set('jquery', true);
        }
    } else {
        JHtml::_('jquery.framework');
    }
}
if ($display == "count") {
    require JModuleHelper::getLayoutPath('mod_skillset', $params->get('layout', 'count'));
Exemplo n.º 11
0
 -->
<html lang="<?php 
echo $template->language;
?>
" dir="<?php 
echo $template->direction;
?>
" >
	<head>
		<?php 
echo $this->addHead();
JHtml::stylesheet(Juri::base() . 'templates/st_deep/css/font-awesome.min.css');
JHtml::stylesheet(Juri::base() . 'templates/st_deep/css/hott-custom.css');
JHtml::stylesheet(Juri::base() . 'templates/st_deep/css/owl.carousel.css');
JHtml::stylesheet(Juri::base() . 'templates/st_deep/css/owl.theme.css');
JHtml::stylesheet(Juri::base() . 'templates/st_deep/css/owl.transitions.css');
$posTopMiddleWidth = '100';
if ($posTopLeft || $posTopMiddle || $posTopRight) {
    $posTopMiddleWidth = 100 - $template->params->get('top_left') - $template->params->get('top_right');
}
$posFooterMiddleWidth = '100';
if ($posFooterLeft || $posFooterMiddle || $posFooterRight) {
    $posFooterMiddleWidth = 100 - $template->params->get('footer_left') - $template->params->get('footer_right');
}
$posPromoTopMiddleWidth = '100';
if ($posPromoTopLeft || $posPromoTopMiddle || $posPromoTopRight) {
    $posPromoTopMiddleWidth = 100 - $template->params->get('promo_top_left') - $template->params->get('promo_top_right');
}
$posPromoBottomMiddleWidth = '100';
if ($posPromoBottomLeft || $posPromoBottomMiddle || $posPromoBottomRight) {
    $posPromoBottomMiddleWidth = 100 - $template->params->get('promo_bottom_left') - $template->params->get('promo_bottom_right');
Exemplo n.º 12
0
<?php

JHtml::_('behavior.framework');
JHtml::script(Juri::base() . 'media/editors/arkeditor/js/mootools-more-light.js');
JHtml::_('script', 'system/modal.js', true, true);
JHtml::_('stylesheet', 'system/modal.css', array(), true);
class ARKMenuHelper
{
    public static function getItemId($component, $needles = array(), $identifier = "layout")
    {
        $match = null;
        $component = JComponentHelper::getComponent($component);
        $app = JFactory::getApplication();
        $menu = $app->getMenu();
        $items = $menu->getItems('component_id', $component->id);
        if ($items) {
            foreach ($needles as $needle => $id) {
                foreach ($items as $item) {
                    if (@$item->query['view'] == $needle && @$item->query[$identifier] == $id) {
                        $match = $item->id;
                        break;
                    }
                }
                if (isset($match)) {
                    break;
                }
            }
        }
        return $match ? '&amp;Itemid=' . $match : '';
    }
}
Exemplo n.º 13
0
 function restore()
 {
     global $Itemid, $mainframe;
     $paypal_session_id = JRequest::getVar('return');
     DT_Session::restoreFromPayment($paypal_session_id);
     $paymethod = DT_Session::get('register.payment.method');
     $paymentClass = DT_Session::get('register.payment.method');
     require_once JPATH_SITE . '/components/com_dtregister/lib/payment/' . $paymentClass . '.php';
     $payment = new $paymentClass();
     $baseurl = str_replace('components/com_dtregister/', '', Juri::base());
     if ($payment->success()) {
         $mainframe->redirect($baseurl . "index.php?option=com_dtregister&controller=payment&task=success&Itemid={$Itemid}");
     } else {
         $mainframe->redirect($baseurl . "index.php?option=com_dtregister&controller=payment&task=cancel&Itemid={$Itemid}");
     }
 }
Exemplo n.º 14
0
 protected function share($i)
 {
     $url = parse_url(Juri::base());
     $addthis_scheme = $url['scheme'] == 'https' ? 'https://' : 'http://';
     $addthis = $this->options['addthis'];
     $float = $this->options['atfloat'];
     $icon = $this->options['aticon'];
     if ($float == 1) {
         $floataddthis = 'floating';
         $float_position = 'position: fixed;';
         $float_side = 'left';
     } elseif ($float == 2) {
         $floataddthis = 'floating';
         $float_position = 'position: fixed;';
         $float_side = 'right';
     } else {
         $floataddthis = 'default';
         $float_position = '';
         $float_side = 'right';
     }
     if ($icon == 2) {
         $iconaddthis = '32x32';
     } else {
         $iconaddthis = '16x16';
     }
     $at_div = '<div class="share ic-share" style="' . $float_position . '">';
     $at_div .= '<!-- AddThis Button BEGIN -->';
     $at_div .= '<div class="addthis_toolbox';
     $at_div .= ' addthis_' . $floataddthis . '_style';
     $at_div .= ' addthis_' . $iconaddthis . '_style"';
     $at_div .= ' style="' . $float_side . ': 2%; top: 40%;">';
     $at_div .= '<a class="addthis_button_preferred_1"></a>';
     $at_div .= '<a class="addthis_button_preferred_2"></a>';
     $at_div .= '<a class="addthis_button_preferred_3"></a>';
     $at_div .= '<a class="addthis_button_preferred_4"></a>';
     $at_div .= '<a class="addthis_button_compact"></a>';
     $at_div .= '<a class="addthis_counter addthis_bubble_style"></a>';
     $at_div .= '</div>';
     if ($addthis) {
         $at_div .= '<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>';
         $at_div .= '<script type="text/javascript" src="' . $addthis_scheme . 's7.addthis.com/js/300/addthis_widget.js#pubid=' . $this->options['addthis'] . '" async="async"></script>';
     } else {
         $at_div .= '<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>';
         $at_div .= '<script type="text/javascript" src="' . $addthis_scheme . 's7.addthis.com/js/300/addthis_widget.js#pubid=ra-5024db5322322e8b" async="async"></script>';
     }
     $at_div .= '<!-- AddThis Button END -->';
     $at_div .= '</div>';
     return $at_div;
 }
Exemplo n.º 15
0
 public static function fixLinksInMail(&$text)
 {
     $urlPattern = '/^(http|https|ftp)\\:\\/\\/[a-z0-9\\-\\.]+\\.[a-z]{2,3}(:[a-z0-9]*)?\\/?([a-z0-9\\-\\._\\?\\,\'\\/\\\\+&amp;%\\$#\\=~])*$/i';
     $aPattern = '/<[ ]*a[^>]+href=[("\')]([^("\')]*)/';
     $imgPattern = '/<[ ]*img[^>]+src=[("\')]([^("\')]*)/';
     if (preg_match_all($aPattern, $text, $hrefs)) {
         foreach ($hrefs[1] as $href) {
             if (!(preg_match($urlPattern, $href) == 1)) {
                 //we deal with an intern Url without Root path
                 $link = JURI::base() . $href;
                 $newText = preg_replace('\'' . preg_quote($href) . '\'', $link, $text);
                 $text = $newText;
             }
         }
     }
     if (preg_match_all($imgPattern, $text, $srcs)) {
         jimport('joomla.filesystem.file');
         jimport('joomla.filesystem.folder');
         foreach ($srcs[1] as $src) {
             if (JFile::exists($src)) {
                 //we deal with a local img
                 if (!(preg_match('\'' . preg_quote(Juri::base()) . '\'', $src) == 1)) {
                     //we deal with an intern Url without base Uri
                     $link = Juri::base() . $src;
                     $newText = preg_replace('\'' . preg_quote($src) . '\'', $link, $text);
                     $text = $newText;
                 }
             }
         }
     }
     return $text;
 }
Exemplo n.º 16
0
 /**
  * Clear the history until the uri.
  * Two uris are equal if their view and id vars are the same.
  *
  * @param   mixed  $uri  The uri until
  *
  * @return  void
  */
 public function clearHistoryUntil($uri = null)
 {
     $history = $this->history->getQueue();
     if (empty($history)) {
         return;
     }
     if (null === $uri) {
         $uri = str_replace(Juri::base(), '', Juri::getInstance()->toString());
     }
     $uri = new JURI($uri);
     $view = $uri->getVar('view');
     $id = $uri->getVar('id');
     $newHistory = array();
     foreach ($history as $oldLink) {
         $oldUri = new Juri($oldLink);
         $oldView = $oldUri->getVar('view');
         $oldId = $oldUri->getVar('id');
         if ($oldView === $view && $oldId === $id) {
             break;
         }
         $newHistory[] = $oldLink;
     }
     $this->history->setQueue($newHistory);
 }
Exemplo n.º 17
0
<?php

$document = JFactory::getDocument();
$document->addScript(Juri::base(true) . '/plugins/content/plg_clm_sbnrw_ext/under.js');
Exemplo n.º 18
0
<?php

$document = JFactory::getDocument();
$document->addScript(Juri::base(true) . '/plugins/content/plg_clm_sbnrw_ext/modal.js');
$document->addStylesheet(Juri::base(true) . '/plugins/content/plg_clm_sbnrw_ext/modal.css');
Exemplo n.º 19
0
 function plgVmOnSelfCallFE($type, $name, &$render)
 {
     //Klarna Ajax
     require JPATH_VMKLARNAPLUGIN . '/klarna/helpers/klarna_ajax.php';
     if (!class_exists('VmModel')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'vmmodel.php';
     }
     $model = VmModel::getModel('paymentmethod');
     $payment = $model->getPayment();
     if (!class_exists('vmParameters')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'parameterparser.php';
     }
     $parameters = new vmParameters($payment, $payment->payment_element, 'plugin', 'vmpayment');
     $method = $parameters->getParamByName('data');
     $country = JRequest::getWord('country');
     $country = KlarnaHandler::convertToThreeLetterCode($country);
     if (!class_exists('klarna_virtuemart')) {
         require JPATH_VMKLARNAPLUGIN . '/klarna/helpers/klarna_virtuemart.php';
     }
     $settings = KlarnaHandler::getCountryData($method, $country);
     $klarna = new Klarna_virtuemart();
     $klarna->config($settings['eid'], $settings['secret'], $settings['country'], $settings['language'], $settings['currency'], KlarnaHandler::getKlarnaMode($method), VMKLARNA_PC_TYPE, KlarnaHandler::getKlarna_pc_type(), true);
     $SelfCall = new KlarnaAjax($klarna, (int) $settings['eid'], JPATH_VMKLARNAPLUGIN, Juri::base());
     $action = JRequest::getWord('action');
     $jlang = JFactory::getLanguage();
     $currentLang = substr($jlang->getDefault(), 0, 2);
     $newIso = JRequest::getWord('newIso');
     if ($currentLang != $newIso) {
         $iso = array("sv" => "sv-SE", "da" => "da-DK", "en" => "en-GB", "de" => "de-DE", "nl" => "nl-NL", "nb" => "nb-NO", "fi" => "fi-FI");
         if (array_key_exists($newIso, $iso)) {
             $jlang->load('plg_vmpayment_klarna', JPATH_ADMINISTRATOR, $iso[$newIso], true);
         }
     }
     echo $SelfCall->{$action}();
     jexit();
 }
Exemplo n.º 20
0
<script>
    var WD_SHOP_TEXT_ALREADY_ADDED_TO_CART = "<?php 
echo WDFText::get('MSG_PRODUCT_ALREADY_ADDED_TO_CART');
?>
";
    var WD_SHOP_TEXT_PLEASE_WAIT = "<?php 
echo WDFText::get('MSG_PLEASE_WAIT');
?>
";

    var wdShop_redirectToCart = <?php 
echo $options->checkout_redirect_to_cart_after_adding_an_item == 1 ? 'true' : 'false';
?>
;
	var wdShop_minicart = "<?php 
echo Juri::base() . 'index.php?option=com_' . WDFHelper::get_com_name() . '&controller=shoppingcart&task=displayminicart&tmpl=component';
?>
";
	var wdShop_minicart_js_path = "<?php 
echo WDFUrl::get_site_url() . 'modules/mod_ecommercewd_minicart/js/main.js';
?>
";
    var wdShop_urlAddToShoppingCart = "<?php 
echo WDFUrl::get_site_url() . 'index.php?option=com_' . WDFHelper::get_com_name() . '&controller=shoppingcart&task=add';
?>
";
    var wdShop_urlDisplayShoppingCart = "<?php 
echo JRoute::_('index.php?option=com_' . WDFHelper::get_com_name() . '&controller=shoppingcart&task=displayshoppingcart');
?>
";
	var wdShop_amount_in_stock = <?php