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


PHP rex_i18n::msgappendFile方法代码示例

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


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

示例1: rex_register_extension

<?php

$REX['ADDON']['yform']['templatepaths'][] = $REX['INCLUDE_PATH'] . '/addons/yform/templates/';
rex_register_extension('ADDONS_INCLUDED', function () {
    $REX['ADDON']['yform']['templatepaths'][] = rex_path::addonData('yform', 'templates/');
}, array(), REX_EXTENSION_EARLY);
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_radio.inc.php';
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_yform_list.inc.php';
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_yform.inc.php';
if ($REX['REDAXO'] && $REX['USER']) {
    rex_i18n::msgappendFile($REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/lang/');
    $REX['ADDON'][$mypage]['SUBPAGES'] = array();
    $REX['ADDON'][$mypage]['SUBPAGES'][] = array('', rex_i18n::msg('yform_overview'));
    if (rex::getUser()->isAdmin()) {
        $REX['ADDON'][$mypage]['SUBPAGES'][] = array('description', rex_i18n::msg('yform_description'));
    }
    function rex_yform_css($params)
    {
        $params['subject'] .= "\n  " . '<link rel="stylesheet" type="text/css" href="../files/addons/yform/yform.css" media="screen, projection, print" />';
        $params['subject'] .= "\n  " . '<script src="../files/addons/yform/manager.js" type="text/javascript"></script>';
        if ($REX['REDAXO']) {
            $params['subject'] .= "\n  " . '<link rel="stylesheet" type="text/css" href="../files/addons/yform/manager.css" media="screen, projection, print" />';
        }
        return $params['subject'];
    }
    rex_register_extension('PAGE_HEADER', 'rex_yform_css');
}
开发者ID:xong,项目名称:redaxo_yform,代码行数:27,代码来源:_config.inc.php

示例2: array

<?php

/**
 * yform
 * @author jan.kristinus[at]redaxo[dot]org Jan Kristinus
 * @author <a href="http://www.yakamara.de">www.yakamara.de</a>
 */
$mypage = 'email';
$REX['ADDON']['yform']['classpaths']['action'][] = $REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/classes/action/';
include $REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/classes/basic/class.rex_yform_emailtemplate.inc.php';
if ($REX['REDAXO'] && !$REX['SETUP']) {
    rex_i18n::msgappendFile($REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/lang/');
    $REX['ADDON']['version'][$mypage] = '4.12';
    $REX['ADDON']['author'][$mypage] = 'Jan Kristinus';
    $REX['ADDON']['supportpage'][$mypage] = 'www.yakamara.de/tag/redaxo/';
    $REX['PERM'][] = 'yform[email]';
    if ($REX['USER'] && (rex::getUser()->isAdmin() || $REX['USER']->hasPerm('yform[email]'))) {
        $REX['ADDON']['yform']['SUBPAGES'][] = array('email', rex_i18n::msg('yform_email_templates'));
    }
}
开发者ID:xong,项目名称:redaxo_yform,代码行数:20,代码来源:_config.inc.php


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