mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
issue 2662 widgets
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12261 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5219a360c6
commit
4d8733156b
5 changed files with 1810 additions and 1600 deletions
|
|
@ -1,29 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* @class language_select
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief Language selector
|
||||
* @version 0.1
|
||||
**/
|
||||
/**
|
||||
* @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';
|
||||
|
||||
class language_select extends WidgetHandler {
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
/**
|
||||
* @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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
// Compile a template
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
}
|
||||
/* End of file language_select.class.php */
|
||||
/* Location: ./widgets/language_select/language_select.class.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue