本文整理匯總了PHP中serendipity_plugin_api::load_language方法的典型用法代碼示例。如果您正苦於以下問題:PHP serendipity_plugin_api::load_language方法的具體用法?PHP serendipity_plugin_api::load_language怎麽用?PHP serendipity_plugin_api::load_language使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類serendipity_plugin_api
的用法示例。
在下文中一共展示了serendipity_plugin_api::load_language方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
<?php
if (IN_serendipity !== true) {
die("Don't hack!");
}
@serendipity_plugin_api::load_language(dirname(__FILE__));
class serendipity_plugin_freetag extends serendipity_plugin
{
var $title = PLUGIN_FREETAG_NAME;
function introspect(&$propbag)
{
global $serendipity;
$this->title = $this->get_config('title', $this->title);
$propbag->add('name', PLUGIN_FREETAG_NAME);
$propbag->add('description', PLUGIN_FREETAG_BLAHBLAH);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking, Jonathan Arkell, Grischa Brockhaus, Lars Strojny, Ian');
$propbag->add('requirements', array('serendipity' => '1.6', 'smarty' => '2.6.7', 'php' => '5.3.0'));
$propbag->add('version', '3.11');
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED'));
$propbag->add('configuration', array('config_pagegrouper', 'title', 'taglink', 'show_xml', 'xml_image', 'lowercase_tags', 'scale_tag', 'min_percent', 'max_percent', 'show_newline', 'treshold_tag_count', 'max_tags', 'order_by', 'sort_desc', 'template', 'separator2', 'config_cloudgrouper', 'use_wordcloud', 'use_rotacloud', 'rotacloud_tag_color', 'rotacloud_tag_border_color', 'rotacloud_width', 'use_flash', 'flash_tag_color', 'flash_bg_trans', 'flash_bg_color', 'flash_width', 'flash_speed'));
$this->dependencies = array('serendipity_event_freetag' => 'keep');
}
function introspect_config_item($name, &$propbag)
{
global $serendipity;
switch ($name) {
case 'separator1':
case 'separator2':
$propbag->add('type', 'separator');
break;