当前位置: 首页>>代码示例>>PHP>>正文


PHP Juri::base方法代码示例

本文整理汇总了PHP中Juri::base方法的典型用法代码示例。如果您正苦于以下问题:PHP Juri::base方法的具体用法?PHP Juri::base怎么用?PHP Juri::base使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Juri的用法示例。


在下文中一共展示了Juri::base方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 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);
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:9,代码来源:view.html.php

示例2: getFullUrl

 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;
 }
开发者ID:aldegtyarev,项目名称:stelsvelo,代码行数:24,代码来源:jhtmlopc.php

示例3: setupJavascript

 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");
     }
 }
开发者ID:bobozhangshao,项目名称:HeartCare,代码行数:16,代码来源:helper.php

示例4:

		<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;">
开发者ID:Bookingfor,项目名称:joomla-extension,代码行数:31,代码来源:rapidview.php

示例5: defined

<?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');
开发者ID:eitamar,项目名称:mod_baccessibility,代码行数:27,代码来源:mod_baccessibility.php

示例6: foreach

// 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>';
开发者ID:WineWorld,项目名称:joomlatrialcmbg,代码行数:31,代码来源:default.php

示例7: jQuery

        </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>
开发者ID:jdalby81,项目名称:apaExpo,代码行数:31,代码来源:index.php

示例8:

" 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>
开发者ID:naka211,项目名称:myloyal,代码行数:31,代码来源:default.php

示例9: defined

/**
 * @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'));
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:mod_skillset.php

示例10:

 -->
<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');
开发者ID:kenyonjohnston,项目名称:hott_theater,代码行数:31,代码来源:default.php

示例11: getItemId

<?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 : '';
    }
}
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:31,代码来源:inline.php

示例12: restore

 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}");
     }
 }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:16,代码来源:payment.php

示例13: share

 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;
 }
开发者ID:esorone,项目名称:efcpw,代码行数:49,代码来源:icmodel.php

示例14: fixLinksInMail

 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;
 }
开发者ID:shamusdougan,项目名称:GDMCWebsite,代码行数:32,代码来源:visforms.php

示例15: clearHistoryUntil

 /**
  * 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);
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:32,代码来源:browser.php


注:本文中的Juri::base方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。