XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct () | |
add_head ($head) | |
add_head_script ($script) | |
add_help ($caption, $link) | |
add_jquery ($ui=true, $local=true) | |
add_local_script ($file, $element='rmcommon', $subfolder='', $type='text/javascript', $more='', $footer=false) | |
add_menu ($title, $link, $icon='', $class='', $location='', $options=array()) | |
add_menu_option ($caption, $link, $icon='', $class='', $target='') | |
add_message ($message, $level=0) | |
add_meta ($name, $content) | |
add_script ($url, $type='text/javascript', $footer=false) | |
add_scripts_array ($scripts) | |
add_separator () | |
add_style ($sheet, $element='rmcommon', $subfolder='', $media='all', $more='', $front=false, $footer=false) | |
add_styles_array ($styles) | |
add_theme_script ($script, $theme='', $subfolder='', $type='text/javascript', $more='', $footer=false) | |
add_theme_style ($sheet, $theme='', $subfolder='', $media='all', $more='', $footer=false) | |
add_tool ($title, $link, $icon='', $location='') | |
add_xoops_style ($sheet, $element='rmcommon', $subfolder='', $media='all', $more='', $footer=false) | |
append ($varname, $value) | |
assign ($varname, $value) | |
clear_scripts () | |
clear_styles () | |
footer () | |
get () | |
get_head () | |
get_menus () | |
get_messages () | |
get_metas () | |
get_scripts () | |
get_styles () | |
get_template ($file, $type='module', $module='rmcommon', $plugin='') | |
get_toolbar () | |
get_var ($varname) | |
head_scripts () | |
header () | |
help ($single=0) | |
location_id ($id) | |
menu_options () | |
set_help ($link) | |
style_url ($sheet, $element='rmcommon', $subfolder='') | |
tpl_path ($file, $module, $subdir= 'templates') | |
vars () | |
Public Attributes | |
$tpl_head = array() | |
$tpl_hscripts = array() | |
$tpl_scripts = array() | |
$tpl_styles = array() | |
Private Attributes | |
$help_link = array() | |
$menus = array() | |
$messages = array() | |
$metas = array() | |
$toolbar = array() | |
$tpl_menus = array() | |
$tpl_vars = array() | |
$type = 'front' | |
$version = '' | |
This file can handle templates for all modules and themes
Definition at line 16 of file template.php.
RMTemplate::__construct | ( | ) |
At this moment this method do nothing Maybe later i will add some functionality... i must to think ;)
Definition at line 68 of file template.php.
References $rmc_config, add_jquery(), and RMCVERSION.
RMTemplate::add_head | ( | $head | ) |
Add elements to "HEAD" section of the page
string|array | Elementos de HEAD |
Definition at line 260 of file template.php.
References endif.
RMTemplate::add_head_script | ( | $script | ) |
Add a script to head of page This method must be used when a script between <script> tags need to be added to head
Definition at line 304 of file template.php.
RMTemplate::add_help | ( | $caption, | |
$link | |||
) |
Definition at line 232 of file template.php.
Referenced by set_help().
RMTemplate::add_jquery | ( | $ui = true , |
|
$local = true |
|||
) |
Add jQuery script to site header
Definition at line 420 of file template.php.
References $rmc_config, add_local_script(), and add_script().
Referenced by __construct().
RMTemplate::add_local_script | ( | $file, | |
$element = 'rmcommon' , |
|||
$subfolder = '' , |
|||
$type = 'text/javascript' , |
|||
$more = '' , |
|||
$footer = false |
|||
) |
This function add a scritp directly from an element
Definition at line 330 of file template.php.
References $file, $id, $rmc_config, $type, $url, $xoopsConfig, RMCPATH, and RMCURL.
Referenced by add_jquery().
RMTemplate::add_menu | ( | $title, | |
$link, | |||
$icon = '' , |
|||
$class = '' , |
|||
$location = '' , |
|||
$options = array() |
|||
) |
RMTemplate::add_menu_option | ( | $caption, | |
$link, | |||
$icon = '' , |
|||
$class = '' , |
|||
$target = '' |
|||
) |
Add option to menu. This method is only functional in admin section or with the themes that support this feature
string | Menu parent name |
string | Caption |
string | Option link url |
string | Option icon url |
string | Target window (_clank, _self, etc.) |
Definition at line 670 of file template.php.
RMTemplate::add_message | ( | $message, | |
$level = 0 |
|||
) |
Add a message to show in theme
string | Message to show |
int | Level of message (1 will show error) |
Definition at line 244 of file template.php.
RMTemplate::add_meta | ( | $name, | |
$content | |||
) |
RMTemplate::add_script | ( | $url, | |
$type = 'text/javascript' , |
|||
$footer = false |
|||
) |
Add scripts to theme. Scripts can be added trough method add_head passing all "script" tag as parameter but this method offers a shortest way.
string | Script URL |
string | Script Type (text/javascript) |
Definition at line 284 of file template.php.
References $id, $type, and $url.
Referenced by add_jquery(), and add_scripts_array().
RMTemplate::add_scripts_array | ( | $scripts | ) |
Assign an array of scripts with values pairs url, type
Definition at line 451 of file template.php.
References $scripts, and add_script().
RMTemplate::add_separator | ( | ) |
Definition at line 680 of file template.php.
RMTemplate::add_style | ( | $sheet, | |
$element = 'rmcommon' , |
|||
$subfolder = '' , |
|||
$media = 'all' , |
|||
$more = '' , |
|||
$front = false , |
|||
$footer = false |
|||
) |
Add CSS style sheet to HEAD section of the HTMl page Note: must be used when stylesheet is an absolute url (or remote url)
Definition at line 465 of file template.php.
References $id, $rmc_config, $url, $xoopsConfig, RMCPATH, and RMCURL.
Referenced by add_styles_array(), and add_xoops_style().
RMTemplate::add_styles_array | ( | $styles | ) |
Assign an array of scripts with values pairs url, type
Definition at line 616 of file template.php.
References $styles, and add_style().
RMTemplate::add_theme_script | ( | $script, | |
$theme = '' , |
|||
$subfolder = '' , |
|||
$type = 'text/javascript' , |
|||
$more = '' , |
|||
$footer = false |
|||
) |
Definition at line 380 of file template.php.
References $file, $id, $rmc_config, $type, $url, $xoopsConfig, RMCPATH, and RMCURL.
RMTemplate::add_theme_style | ( | $sheet, | |
$theme = '' , |
|||
$subfolder = '' , |
|||
$media = 'all' , |
|||
$more = '' , |
|||
$footer = false |
|||
) |
Add a style provided by theme
string | File name |
string | Theme name where css sheet resides |
string | Subfolder inside theme css folder |
string | media type |
string | Another <style> tag attribs |
Definition at line 525 of file template.php.
References $file, $id, $rmc_config, $url, $xoopsConfig, RMCPATH, and RMCURL.
RMTemplate::add_tool | ( | $title, | |
$link, | |||
$icon = '' , |
|||
$location = '' |
|||
) |
Definition at line 711 of file template.php.
RMTemplate::add_xoops_style | ( | $sheet, | |
$element = 'rmcommon' , |
|||
$subfolder = '' , |
|||
$media = 'all' , |
|||
$more = '' , |
|||
$footer = false |
|||
) |
Add a style for the front section
Definition at line 511 of file template.php.
References add_style().
RMTemplate::append | ( | $varname, | |
$value | |||
) |
Store vars inside template as array
string | Var name |
mixed | Var valu |
Definition at line 638 of file template.php.
RMTemplate::assign | ( | $varname, | |
$value | |||
) |
Assign template vars
string | Var name |
any | Var value |
Definition at line 630 of file template.php.
RMTemplate::clear_scripts | ( | ) |
Clear all scripts stores
Definition at line 445 of file template.php.
RMTemplate::clear_styles | ( | ) |
Clear all styles stores
Definition at line 610 of file template.php.
RMTemplate::footer | ( | ) |
Definition at line 100 of file template.php.
References $content, $rmc_config, $xoopsConfig, $xoopsModule, $xoopsModuleConfig, RMFunctions\configs(), RMEvents\get(), RMCPATH, and RMCURL.
RMTemplate::get | ( | ) |
Use this method to instantiate EXMTemplate <type> $instance
Definition at line 82 of file template.php.
Referenced by RMFormDate\__construct(), RMPageNav\__construct(), RMForm\__construct(), RMFunctions\add_keywords_description(), RMFunctions\comments_form(), configure_block(), RMFunctions\create_toolbar(), cu_render_output(), DesigniaFunctions\currentModuleMenu(), edit_image(), formatSQL(), get_modules_ajax(), RMUtilities\image_manager(), images_form(), module_install(), module_install_now(), module_uninstall_now(), module_update_now(), new_category(), RMFormDate\render(), RMFormUser\render(), RMBreadCrumb\render(), RMPageNav\render(), RMFormModules\render(), RMFlashUploader\render(), RMFormEditor\renderExmCode(), RMFormEditor\renderHTML(), RMFormEditor\renderTArea(), RMFormEditor\renderTiny(), rmc_bkcomments_show(), rmc_blocks_addpos(), rmc_blocks_new(), show_categories(), show_comments(), show_dashboard(), show_images(), show_mailer(), show_modules_list(), show_rm_blocks(), show_rm_plugins(), show_rss_content(), show_rss_options(), show_users(), update_thumbnails(), and xoops_cp_location().
RMTemplate::get_head | ( | ) |
Get all items in head
Definition at line 272 of file template.php.
References $tpl_head.
RMTemplate::get_menus | ( | ) |
Definition at line 707 of file template.php.
References $menus.
RMTemplate::get_messages | ( | ) |
RMTemplate::get_metas | ( | ) |
Definition at line 732 of file template.php.
References $metas.
RMTemplate::get_scripts | ( | ) |
Get all scripts stored in class
Definition at line 436 of file template.php.
References $ev, $tpl_scripts, and RMEvents\get().
RMTemplate::get_styles | ( | ) |
Get all styles stored in class
Definition at line 602 of file template.php.
References $ev, $tpl_styles, and RMEvents\get().
RMTemplate::get_template | ( | $file, | |
$type = 'module' , |
|||
$module = 'rmcommon' , |
|||
$plugin = '' |
|||
) |
Get a template from Current RMCommon Theme
string | Template file name |
string | Elemernt type: module or plugin |
string | Module name |
string | Plugin name, only when type = plugin |
Definition at line 139 of file template.php.
References $file, $rmc_config, $type, $xoopsConfig, and RMCPATH.
Referenced by RMForm\display(), and RMForm\render().
RMTemplate::get_toolbar | ( | ) |
Definition at line 720 of file template.php.
References $toolbar.
RMTemplate::get_var | ( | $varname | ) |
Get a single template var
string | Var name |
Definition at line 653 of file template.php.
RMTemplate::head_scripts | ( | ) |
RMTemplate::header | ( | ) |
Definition at line 96 of file template.php.
RMTemplate::help | ( | $single = 0 | ) |
Definition at line 225 of file template.php.
References $help_link.
RMTemplate::location_id | ( | $id | ) |
Set the location identifier for current page This identifier will help to RMCommon to find widgets, forms, etc
Definition at line 211 of file template.php.
RMTemplate::menu_options | ( | ) |
Get all menu options
Definition at line 686 of file template.php.
References $tpl_menus, and RMEvents\get().
RMTemplate::set_help | ( | $link | ) |
Add a help lint to manage diferents sections
string | Link to help resource |
Definition at line 219 of file template.php.
References __(), and add_help().
RMTemplate::style_url | ( | $sheet, | |
$element = 'rmcommon' , |
|||
$subfolder = '' |
|||
) |
Get a style url formatted
Definition at line 567 of file template.php.
References $file, $rmc_config, $url, $xoopsConfig, RMCPATH, and RMCURL.
RMTemplate::tpl_path | ( | $file, | |
$module, | |||
$subdir = 'templates' |
|||
) |
Get template path for front section
string | File path inside module folder |
string | Module directory name |
Definition at line 190 of file template.php.
References $file, and $xoopsConfig.
RMTemplate::vars | ( | ) |
Get all template vars as an array
Definition at line 644 of file template.php.
References $tpl_vars.
|
private |
|
private |
|
private |
|
private |
|
private |
RMTemplate::$tpl_head = array() |
Stores the information for 'HEAD' section of template
Definition at line 22 of file template.php.
Referenced by get_head().
RMTemplate::$tpl_hscripts = array() |
Definition at line 27 of file template.php.
|
private |
Menu options for current element
Definition at line 35 of file template.php.
Referenced by menu_options().
RMTemplate::$tpl_scripts = array() |
Stores the scripts information to include in theme
Definition at line 26 of file template.php.
Referenced by get_scripts().
RMTemplate::$tpl_styles = array() |
Stores all styles for HEAD section
Definition at line 31 of file template.php.
Referenced by get_styles().
|
private |
|
private |
Definition at line 18 of file template.php.
Referenced by add_local_script(), add_script(), add_theme_script(), and get_template().
|
private |
Version to add as parameter to scripts and styles
Definition at line 63 of file template.php.