mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
29 lines
889 B
PHP
29 lines
889 B
PHP
<?php
|
|
/**
|
|
* @class language_select
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief Language selector
|
|
* @version 0.1
|
|
**/
|
|
|
|
class language_select extends WidgetHandler {
|
|
|
|
/**
|
|
* @brief Widget execution
|
|
*
|
|
* Get extra_vars declared in ./widgets/widget/conf/info.xml as arguments
|
|
* After generating the result, do not print but return it.
|
|
**/
|
|
function proc($args) {
|
|
// Set a path of the template skin (values of skin, colorset settings)
|
|
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
|
$tpl_file = 'language_select';
|
|
|
|
Context::set('colorset', $args->colorset);
|
|
|
|
// Compile a template
|
|
$oTemplate = &TemplateHandler::getInstance();
|
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
|
}
|
|
}
|
|
?>
|