本文整理汇总了PHP中DiscussHelper::loadStylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP DiscussHelper::loadStylesheet方法的具体用法?PHP DiscussHelper::loadStylesheet怎么用?PHP DiscussHelper::loadStylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DiscussHelper
的用法示例。
在下文中一共展示了DiscussHelper::loadStylesheet方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_notifications");
DiscussHelper::loadHeaders();
require JModuleHelper::getLayoutPath('mod_easydiscuss_notifications');
示例2: jimport
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($path)) {
return;
}
require_once $path;
require_once dirname(__FILE__) . '/helper.php';
$my = JFactory::getUser();
$isLoggedIn = modEasyDiscussWelcomeHelper::getLoginStatus();
$return = modEasyDiscussWelcomeHelper::getReturnURL($params, $isLoggedIn);
$menu = $params->get('menuid', '');
$menuURL = '';
$config = DiscussHelper::getConfig();
$document = JFactory::getDocument();
// $document->addStyleSheet( rtrim( JURI::root() , '/' ) . '/modules/mod_easydiscuss_welcome/assets/css/styles.css' );
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_welcome");
// Load current logged in user.
$profile = DiscussHelper::getTable('Profile');
$profile->load($my->id);
$badges = $profile->getBadges();
// Retrieve user's ranking
$ranking = '';
if ($profile->id) {
$ranking = DiscussHelper::getHelper('Ranks')->getRank($profile->id);
}
if (!empty($menu)) {
$menuURL = '&Itemid=' . $menu;
}
$userComponent = new stdClass();
$userComponent->option = 'com_user';
$userComponent->login = 'login';
示例3: defined
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($path)) {
return;
}
require_once $path;
// require_once (dirname(__FILE__) . '/helper.php');
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_your_discussions");
$my = JFactory::getUser();
$config = DiscussHelper::getConfig();
$profile = DiscussHelper::getTable('Profile');
$profile->load($my->id);
$postsModel = DiscussHelper::getModel('Posts');
$count = $params->get('count', 5);
$posts = array();
$posts = $postsModel->getPostsBy('user', $profile->id, 'latest', '0', '', '', $count);
$posts = DiscussHelper::formatPost($posts);
if (!empty($posts)) {
$posts = Discusshelper::getPostStatusAndTypes($posts);
// foreach( $posts as $post )
// {
// // Translate post status from integer to string
// switch( $post->post_status )
示例4: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
require_once DISCUSS_HELPERS . '/string.php';
require_once dirname(__FILE__) . '/helper.php';
$lang = JFactory::getLanguage();
$lang->load('mod_easydiscuss_categories', JPATH_ROOT);
$categories = modEasydiscussCategoriesHelper::getData($params);
$selected = '';
$document = JFactory::getDocument();
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_categories");
require JModuleHelper::getLayoutPath('mod_easydiscuss_categories');
示例5: defined
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($path)) {
return;
}
require_once $path;
// Load theme css here.
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_navigation");
DiscussHelper::loadHeaders();
// Load component's language file.
JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT);
JFactory::getLanguage()->load('mod_easydiscuss_navigation', JPATH_ROOT);
$my = JFactory::getUser();
// We need to detect if the user is browsing a particular category
$active = '';
$view = JRequest::getVar('view');
$layout = JRequest::getVar('layout');
$option = JRequest::getVar('option');
$id = JRequest::getInt('category_id');
if ($option == 'com_easydiscuss' && $view == 'post') {
$postId = JRequest::getInt('id', 0);
// update user's post read flag
if (!empty($my->id) && !empty($postId)) {
示例6: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/parser.php';
require_once dirname(__FILE__) . '/helper.php';
DiscussHelper::getHelper('string');
JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT);
$itemid = DiscussRouter::getItemId('post');
$posts = modRecentDiscussionsHelper::getData($params);
$document = JFactory::getDocument();
DiscussHelper::loadStylesheet("module", "mod_recentdiscussions");
require JModuleHelper::getLayoutPath('mod_recentdiscussions');
示例7: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
require_once DISCUSS_HELPERS . '/string.php';
require_once dirname(__FILE__) . '/helper.php';
$lang = JFactory::getLanguage();
$lang->load('mod_easydiscuss_most_voted', JPATH_ROOT);
$posts = modMostVotedHelper::getData($params);
$itemid = DiscussRouter::getItemId('post');
$document = JFactory::getDocument();
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_most_voted");
require JModuleHelper::getLayoutPath('mod_easydiscuss_most_voted');
示例8: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$file = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($file)) {
return;
}
require_once $file;
JFactory::getLanguage()->load('com_easydiscuss', JPATH_ROOT);
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_search");
$itemid = DiscussRouter::getItemId('post');
$profile = DiscussHelper::getTable('Profile');
$profile->load(JFactory::getUser()->id);
require JModuleHelper::getLayoutPath('mod_easydiscuss_search');
示例9: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_quickquestion");
// Load current logged in user.
$my = JFactory::getUser();
$profile = DiscussHelper::getTable('Profile');
$profile->load($my->id);
require JModuleHelper::getLayoutPath('mod_easydiscuss_quickquestion');
示例10: defined
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($path)) {
return;
}
require_once $path;
// require_once (dirname(__FILE__) . '/helper.php');
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_board_statistic");
$postModel = DiscussHelper::getModel('Posts');
$totalPosts = $postModel->getTotal();
$resolvedPosts = $postModel->getTotalResolved();
$unresolvedPosts = $postModel->getUnresolvedCount();
$userModel = DiscussHelper::getModel('Users');
$totalUsers = $userModel->getTotalUsers();
$latestMember = DiscussHelper::getTable('Profile');
$latestMember->load($userModel->getLatestUser());
// Total guests
$totalGuests = $userModel->getTotalGuests();
// Online users
$onlineUsers = $userModel->getOnlineUsers();
$config = DiscussHelper::getConfig();
$gids = $config->get('main_exclude_frontend_statistics');
$canViewStatistic = true;
示例11: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$path = JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($path)) {
return;
}
require_once $path;
// require_once (dirname(__FILE__) . '/helper.php');
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_whos_online");
$userModel = DiscussHelper::getModel('Users');
// Total guests
$totalGuests = $userModel->getTotalGuests();
// Online users
$onlineUsers = $userModel->getOnlineUsers();
$config = DiscussHelper::getConfig();
$gids = $config->get('main_exclude_frontend_statistics');
require JModuleHelper::getLayoutPath('mod_easydiscuss_whos_online');
示例12: defined
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_ROOT . '/components/com_easydiscuss/helpers/helper.php';
DiscussHelper::loadStylesheet("module", "mod_easydiscuss_post_topic");
require JModuleHelper::getLayoutPath('mod_easydiscuss_post_topic');