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


PHP acymailing::initModule方法代码示例

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


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

示例1: trim

    $mootoolsButton = $params->get('mootoolsbutton', '');
    if (empty($mootoolsButton)) {
        $lang =& JFactory::getLanguage();
        $lang->load(ACYMAILING_COMPONENT, JPATH_SITE);
        $mootoolsButton = JText::_('SUBSCRIBE');
    }
    $mootoolsIntro = $params->get('mootoolsintro', '');
    $moduleCSS = $config->get('css_module', 'default');
    if (!empty($moduleCSS)) {
        $doc->addStyleSheet(ACYMAILING_CSS . 'module_' . $moduleCSS . '.css');
    }
    JHTML::_('behavior.modal', 'a.modal');
    require JModuleHelper::getLayoutPath('mod_acymailing', 'popup');
    return;
}
acymailing::initModule($params->get('includejs', 'header'), $params);
$userClass = acymailing::get('class.subscriber');
$identifiedUser = null;
if ($params->get('loggedin', 1)) {
    $connectedUser =& JFactory::getUser();
    if (!empty($connectedUser->email)) {
        $identifiedUser = $userClass->get($connectedUser->email);
    }
}
$visibleLists = trim($params->get('lists', 'None'));
$hiddenLists = trim($params->get('hiddenlists', 'All'));
$visibleListsArray = array();
$hiddenListsArray = array();
$listsClass = acymailing::get('class.list');
if (empty($identifiedUser->subid)) {
    $allLists = $listsClass->getLists('listid');
开发者ID:bizanto,项目名称:Hooked,代码行数:31,代码来源:mod_acymailing.php

示例2: defined

<?php

/**
 * @copyright	Copyright (C) 2009-2010 ACYBA SARL - All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
?>

<?php 
if (!(include_once rtrim(JPATH_ADMINISTRATOR, DS) . DS . 'components' . DS . 'com_acymailing' . DS . 'helpers' . DS . 'helper.php')) {
    echo 'This module can not work without the AcyMailing Component';
    return;
}
$formName = acymailing::initModule();
switch ($params->get('redirectmode', '0')) {
    case 1:
        $redirectUrl = acymailing::completeLink('lists', false, true);
        $redirectUrlUnsub = $redirectUrl;
        break;
    case 2:
        $redirectUrl = $params->get('redirectlink');
        $redirectUrlUnsub = $params->get('redirectlinkunsub');
        break;
    default:
        if (isset($_SERVER["REQUEST_URI"])) {
            $requestUri = $_SERVER["REQUEST_URI"];
        } else {
            $requestUri = $_SERVER['PHP_SELF'];
            if (!empty($_SERVER['QUERY_STRING'])) {
                $requestUri = rtrim($requestUri, '/') . '?' . $_SERVER['QUERY_STRING'];
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:31,代码来源:mod_acymailing.php


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