本文整理汇总了PHP中Foundry::modules方法的典型用法代码示例。如果您正苦于以下问题:PHP Foundry::modules方法的具体用法?PHP Foundry::modules怎么用?PHP Foundry::modules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Foundry
的用法示例。
在下文中一共展示了Foundry::modules方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jimport
$jinput = JFactory::getApplication()->input;
$input_lat = $jinput->get('lat', '');
$input_lng = $jinput->get('lng', '');
$doc = JFactory::getDocument();
$db = JFactory::getDBO();
$user = JFactory::getUser();
$lang = JFactory::getLanguage();
$lang->load('com_geommunity3es', JPATH_SITE, '', false);
$file = JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php';
jimport('joomla.filesystem.file');
if (!JFile::exists($file)) {
return;
}
require_once $file;
// Include main Easysocial engine
$modules = Foundry::modules('mod_easysocial_toolbar');
$modules->loadComponentScripts();
if (!Foundry::exists()) {
echo JText::_('COM_EASYSOCIAL_FOUNDRY_DEPENDENCY_MISSING');
return;
}
$config = Foundry::config();
$naming = $config->get('users.displayName');
// username or realname
if ($naming == 'realname') {
$naming = 'name';
}
if (JFactory::getApplication()->input->get('option') != 'com_easysocial') {
$doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/base.min.css');
$doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/style.min.css');
$doc->addStyleSheet($juri . 'components/com_easysocial/themes/wireframe/styles/more.min.css');