當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。