Ejemplo n.º 1
0
 /**
  * Those templates are used for example by the messaging screens.
  */
 function get_template($name)
 {
     switch ($name) {
         case 'Form':
             // Default Form settings:
             return array('layout' => 'fieldset', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'formstart' => '<table class="bForums" width="100%" cellspacing="1" cellpadding="2" border="0">', 'formend' => '</table>', 'fieldset_begin' => '<tr><th colspan="3" $fieldset_attribs$>$fieldset_title$</th></tr>', 'fieldset_end' => '', 'fieldstart' => '<tr $ID$>', 'fieldend' => '</tr>', 'labelclass' => '', 'labelstart' => '<td class="row1 left">', 'labelend' => '</td>', 'labelempty' => '<td class="row1 left"></td>', 'inputstart' => '<td class="row2 left">', 'inputend' => '</td>', 'infostart' => '<td class="row2 left" colspan="2">', 'infoend' => '</td>', 'buttonsstart' => '<tr><td colspan="2" class="buttons">', 'buttonsend' => '</td></tr>', 'inline_labelstart' => '<td class="left" colspan="2">', 'inline_labelend' => '</td>', 'inline_inputstart' => '', 'inline_inputend' => '', 'customstart' => '<tr><td colspan="2" class="custom_content">', 'customend' => '</td></tr>', 'note_format' => ' <span class="notes">%s</span>');
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }
Ejemplo n.º 2
0
 function get_template($name)
 {
     switch ($name) {
         case 'Results':
             // Results list:
             return array('page_url' => '', 'before' => '<div class="results panel panel-default">', 'content_start' => '<div id="$prefix$ajax_content">', 'header_start' => '', 'header_text' => '<div class="center"><ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div>', 'header_text_single' => '', 'header_end' => '', 'head_title' => '<div class="panel-heading fieldset_title"><span class="pull-right">$global_icons$</span><h3 class="panel-title">$title$</h3></div>' . "\n", 'global_icons_class' => 'btn btn-default btn-sm', 'filters_start' => '<div class="filters panel-body">', 'filters_end' => '</div>', 'filter_button_class' => 'btn-sm btn-info', 'filter_button_before' => '<div class="form-group pull-right">', 'filter_button_after' => '</div>', 'messages_start' => '<div class="messages form-inline">', 'messages_end' => '</div>', 'messages_separator' => '<br />', 'list_start' => '<div class="table_scroll">' . "\n" . '<table class="table table-striped table-bordered table-hover table-condensed" cellspacing="0">' . "\n", 'head_start' => "<thead>\n", 'line_start_head' => '<tr>', 'colhead_start' => '<th $class_attrib$>', 'colhead_start_first' => '<th class="firstcol $class$">', 'colhead_start_last' => '<th class="lastcol $class$">', 'colhead_end' => "</th>\n", 'sort_asc_off' => get_icon('sort_asc_off'), 'sort_asc_on' => get_icon('sort_asc_on'), 'sort_desc_off' => get_icon('sort_desc_off'), 'sort_desc_on' => get_icon('sort_desc_on'), 'basic_sort_off' => '', 'basic_sort_asc' => get_icon('ascending'), 'basic_sort_desc' => get_icon('descending'), 'head_end' => "</thead>\n\n", 'tfoot_start' => "<tfoot>\n", 'tfoot_end' => "</tfoot>\n\n", 'body_start' => "<tbody>\n", 'line_start' => '<tr class="even">' . "\n", 'line_start_odd' => '<tr class="odd">' . "\n", 'line_start_last' => '<tr class="even lastline">' . "\n", 'line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'col_start' => '<td $class_attrib$>', 'col_start_first' => '<td class="firstcol $class$">', 'col_start_last' => '<td class="lastcol $class$">', 'col_end' => "</td>\n", 'line_end' => "</tr>\n\n", 'grp_line_start' => '<tr class="group">' . "\n", 'grp_line_start_odd' => '<tr class="odd">' . "\n", 'grp_line_start_last' => '<tr class="lastline">' . "\n", 'grp_line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'grp_col_start' => '<td $class_attrib$ $colspan_attrib$>', 'grp_col_start_first' => '<td class="firstcol $class$" $colspan_attrib$>', 'grp_col_start_last' => '<td class="lastcol $class$" $colspan_attrib$>', 'grp_col_end' => "</td>\n", 'grp_line_end' => "</tr>\n\n", 'body_end' => "</tbody>\n\n", 'total_line_start' => '<tr class="total">' . "\n", 'total_col_start' => '<td $class_attrib$>', 'total_col_start_first' => '<td class="firstcol $class$">', 'total_col_start_last' => '<td class="lastcol $class$">', 'total_col_end' => "</td>\n", 'total_line_end' => "</tr>\n\n", 'list_end' => "</table></div>\n\n", 'footer_start' => '', 'footer_text' => '<div class="center"><ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div><div class="center">$page_size$</div>', 'footer_text_single' => '<div class="center">$page_size$</div>', 'footer_text_no_limit' => '', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => T_('Previous'), 'next_text' => T_('Next'), 'no_prev_text' => '', 'no_next_text' => '', 'list_prev_text' => T_('...'), 'list_next_text' => T_('...'), 'list_span' => 11, 'scroll_list_range' => 5, 'footer_end' => "\n\n", 'no_results_start' => '<div class="panel-footer">' . "\n", 'no_results_end' => '$no_results$</div>' . "\n\n", 'content_end' => '</div>', 'after' => '</div>', 'sort_type' => 'basic');
             break;
         case 'blockspan_form':
             // Form settings for filter area:
             return array('layout' => 'blockspan', 'formclass' => 'form-inline', 'formstart' => '', 'formend' => '', 'title_fmt' => '$title$' . "\n", 'no_title_fmt' => '', 'fieldset_begin' => '<fieldset $fieldset_attribs$>' . "\n" . '<legend $title_attribs$>$fieldset_title$</legend>' . "\n", 'fieldset_end' => '</fieldset>' . "\n", 'fieldstart' => '<div class="form-group form-group-sm" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label></label>', 'inputstart' => '', 'inputend' => "\n", 'infostart' => '<div class="form-control-static">', 'infoend' => "</div>\n", 'buttonsstart' => '<div class="form-group form-group-sm">', 'buttonsend' => "</div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'fieldstart_checkbox' => '<div class="form-group form-group-sm checkbox" $ID$>' . "\n", 'fieldend_checkbox' => "</div>\n\n", 'inputclass_checkbox' => '', 'inputstart_checkbox' => '', 'inputend_checkbox' => "\n", 'checkbox_newline_start' => '', 'checkbox_newline_end' => "\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '', 'radio_newline_end' => "\n", 'radio_oneline_start' => '', 'radio_oneline_end' => "\n");
         case 'compact_form':
         case 'Form':
             // $disp=single contact form:
             return array('layout' => 'fieldset', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="clear"></div><div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label class="control-label"></label>', 'inputstart' => '<div class="controls">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls col-sm-9"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'fieldstart_radio' => '<div class="form-group radio-group" $ID$>' . "\n", 'fieldend_radio' => "</div>\n\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'linespan_form':
             // Linespan form:
             return array('layout' => 'linespan', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => '', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '', 'inputstart' => '<div class="controls">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'checkbox_basic_start' => '<div class="checkbox"><label>', 'checkbox_basic_end' => "</label></div>\n", 'fieldstart_radio' => '', 'fieldend_radio' => '', 'inputstart_radio' => '<div class="controls">', 'inputend_radio' => "</div>\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'fixed_form':
             // Form with fixed label width:
             return array('layout' => 'fieldset', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group fixedform-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label fixedform-label', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label class="control-label fixedform-label"></label>', 'inputstart' => '<div class="controls fixedform-controls">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls fixedform-controls"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons fixedform-controls">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls fixedform-controls"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'fieldstart_radio' => '<div class="form-group radio-group" $ID$>' . "\n", 'fieldend_radio' => "</div>\n\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'user_navigation':
             // The Prev/Next links of users
             return array('block_start' => '<ul class="pager">', 'prev_start' => '<li class="previous">', 'prev_end' => '</li>', 'prev_no_user' => '', 'back_start' => '<li>', 'back_end' => '</li>', 'next_start' => '<li class="next">', 'next_end' => '</li>', 'next_no_user' => '', 'block_end' => '</ul>');
         case 'button_classes':
             // Button classes
             return array('button' => 'btn btn-default btn-xs', 'button_red' => 'btn-danger', 'button_green' => 'btn-success', 'text' => 'btn btn-default btn-xs', 'group' => 'btn-group');
         case 'tooltip_plugin':
             // Plugin name for tooltips: 'bubbletip' or 'popover'
             return 'popover';
             break;
         case 'plugin_template':
             // Template for plugins
             return array('toolbar_before' => '<div class="btn-toolbar $toolbar_class$" role="toolbar">', 'toolbar_after' => '</div>', 'toolbar_title_before' => '<div class="btn-toolbar-title">', 'toolbar_title_after' => '</div>', 'toolbar_group_before' => '<div class="btn-group btn-group-xs" role="group">', 'toolbar_group_after' => '</div>', 'toolbar_button_class' => 'btn btn-default');
         case 'modal_window_js_func':
             // JavaScript function to initialize Modal windows, @see echo_user_ajaxwindow_js()
             return 'echo_modalwindow_js_bootstrap';
             break;
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }
 /**
  * Those templates are used for example by the messaging screens.
  */
 function get_template($name)
 {
     switch ($name) {
         case 'Results':
             // Results list:
             return array('page_url' => '', 'before' => '<div class="results panel panel-default">', 'content_start' => '<div id="$prefix$ajax_content">', 'header_start' => '', 'header_text' => '<div class="center"><ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div>', 'header_text_single' => '', 'header_end' => '', 'head_title' => '<div class="panel-heading fieldset_title"><span class="pull-right">$global_icons$</span><h3 class="panel-title">$title$</h3></div>' . "\n", 'global_icons_class' => 'btn btn-default btn-sm', 'filters_start' => '<div class="filters panel-body">', 'filters_end' => '</div>', 'filter_button_class' => 'btn-sm btn-info', 'filter_button_before' => '<div class="form-group pull-right">', 'filter_button_after' => '</div>', 'messages_start' => '<div class="messages form-inline">', 'messages_end' => '</div>', 'messages_separator' => '<br />', 'list_start' => '<div class="table_scroll">' . "\n" . '<table class="table table-striped table-bordered table-hover table-condensed" cellspacing="0">' . "\n", 'head_start' => "<thead>\n", 'line_start_head' => '<tr>', 'colhead_start' => '<th $class_attrib$>', 'colhead_start_first' => '<th class="firstcol $class$">', 'colhead_start_last' => '<th class="lastcol $class$">', 'colhead_end' => "</th>\n", 'sort_asc_off' => get_icon('sort_asc_off'), 'sort_asc_on' => get_icon('sort_asc_on'), 'sort_desc_off' => get_icon('sort_desc_off'), 'sort_desc_on' => get_icon('sort_desc_on'), 'basic_sort_off' => '', 'basic_sort_asc' => get_icon('ascending'), 'basic_sort_desc' => get_icon('descending'), 'head_end' => "</thead>\n\n", 'tfoot_start' => "<tfoot>\n", 'tfoot_end' => "</tfoot>\n\n", 'body_start' => "<tbody>\n", 'line_start' => '<tr class="even">' . "\n", 'line_start_odd' => '<tr class="odd">' . "\n", 'line_start_last' => '<tr class="even lastline">' . "\n", 'line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'col_start' => '<td $class_attrib$>', 'col_start_first' => '<td class="firstcol $class$">', 'col_start_last' => '<td class="lastcol $class$">', 'col_end' => "</td>\n", 'line_end' => "</tr>\n\n", 'grp_line_start' => '<tr class="group">' . "\n", 'grp_line_start_odd' => '<tr class="odd">' . "\n", 'grp_line_start_last' => '<tr class="lastline">' . "\n", 'grp_line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'grp_col_start' => '<td $class_attrib$ $colspan_attrib$>', 'grp_col_start_first' => '<td class="firstcol $class$" $colspan_attrib$>', 'grp_col_start_last' => '<td class="lastcol $class$" $colspan_attrib$>', 'grp_col_end' => "</td>\n", 'grp_line_end' => "</tr>\n\n", 'body_end' => "</tbody>\n\n", 'total_line_start' => '<tr class="total">' . "\n", 'total_col_start' => '<td $class_attrib$>', 'total_col_start_first' => '<td class="firstcol $class$">', 'total_col_start_last' => '<td class="lastcol $class$">', 'total_col_end' => "</td>\n", 'total_line_end' => "</tr>\n\n", 'list_end' => "</table></div>\n\n", 'footer_start' => '', 'footer_text' => '<div class="center"><ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div><div class="center">$page_size$</div>', 'footer_text_single' => '<div class="center">$page_size$</div>', 'footer_text_no_limit' => '', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => T_('Previous'), 'next_text' => T_('Next'), 'no_prev_text' => '', 'no_next_text' => '', 'list_prev_text' => T_('...'), 'list_next_text' => T_('...'), 'list_span' => 11, 'scroll_list_range' => 5, 'footer_end' => "\n\n", 'no_results_start' => '<div class="panel-footer">' . "\n", 'no_results_end' => '$no_results$</div>' . "\n\n", 'content_end' => '</div>', 'after' => '</div>', 'sort_type' => 'basic');
             break;
         case 'blockspan_form':
             // Form settings for filter area:
             return array('layout' => 'blockspan', 'formclass' => 'form-inline', 'formstart' => '', 'formend' => '', 'title_fmt' => '$title$' . "\n", 'no_title_fmt' => '', 'fieldset_begin' => '<fieldset $fieldset_attribs$>' . "\n" . '<legend $title_attribs$>$fieldset_title$</legend>' . "\n", 'fieldset_end' => '</fieldset>' . "\n", 'fieldstart' => '<div class="form-group form-group-sm" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label></label>', 'inputstart' => '', 'inputend' => "\n", 'infostart' => '<div class="form-control-static">', 'infoend' => "</div>\n", 'buttonsstart' => '<div class="form-group form-group-sm">', 'buttonsend' => "</div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'fieldstart_checkbox' => '<div class="form-group form-group-sm checkbox" $ID$>' . "\n", 'fieldend_checkbox' => "</div>\n\n", 'inputclass_checkbox' => '', 'inputstart_checkbox' => '', 'inputend_checkbox' => "\n", 'checkbox_newline_start' => '', 'checkbox_newline_end' => "\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '', 'radio_newline_end' => "\n", 'radio_oneline_start' => '', 'radio_oneline_end' => "\n");
         case 'compact_form':
         case 'Form':
             // Default Form settings:
             return array('layout' => 'fieldset', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label col-md-12', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label class="control-label col-md-12"></label>', 'inputstart' => '<div class="controls col-md-12">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls col-sm-9"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls col-sm-9"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'fieldstart_radio' => '<div class="form-group radio-group" $ID$>' . "\n", 'fieldend_radio' => "</div>\n\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'linespan_form':
             // Linespan form:
             return array('layout' => 'linespan', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => '', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '', 'inputstart' => '<div class="controls">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'checkbox_basic_start' => '<div class="checkbox"><label>', 'checkbox_basic_end' => "</label></div>\n", 'fieldstart_radio' => '', 'fieldend_radio' => '', 'inputstart_radio' => '<div class="controls">', 'inputend_radio' => "</div>\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'fixed_form':
             // Form with fixed label width:
             return array('layout' => 'fieldset', 'formclass' => 'form-horizontal', 'formstart' => '', 'formend' => '', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'fieldset_begin' => '<div class="fieldset_wrapper $class$" id="fieldset_wrapper_$id$"><fieldset $fieldset_attribs$><div class="panel panel-default">' . "\n" . '<legend class="panel-heading" $title_attribs$>$fieldset_title$</legend><div class="panel-body $class$">' . "\n", 'fieldset_end' => '</div></div></fieldset></div>' . "\n", 'fieldstart' => '<div class="form-group fixedform-group" $ID$>' . "\n", 'fieldend' => "</div>\n\n", 'labelclass' => 'control-label fixedform-label', 'labelstart' => '', 'labelend' => "\n", 'labelempty' => '<label class="control-label fixedform-label"></label>', 'inputstart' => '<div class="controls fixedform-controls">', 'inputend' => "</div>\n", 'infostart' => '<div class="controls fixedform-controls"><div class="form-control-static">', 'infoend' => "</div></div>\n", 'buttonsstart' => '<div class="form-group"><div class="control-buttons fixedform-controls">', 'buttonsend' => "</div></div>\n\n", 'customstart' => '<div class="custom_content">', 'customend' => "</div>\n", 'note_format' => ' <span class="help-inline">%s</span>', 'inputclass_checkbox' => '', 'inputstart_checkbox' => '<div class="controls fixedform-controls"><div class="checkbox"><label>', 'inputend_checkbox' => "</label></div></div>\n", 'checkbox_newline_start' => '<div class="checkbox">', 'checkbox_newline_end' => "</div>\n", 'fieldstart_radio' => '<div class="form-group radio-group" $ID$>' . "\n", 'fieldend_radio' => "</div>\n\n", 'inputclass_radio' => '', 'radio_label_format' => '$radio_option_label$', 'radio_newline_start' => '<div class="radio"><label>', 'radio_newline_end' => "</label></div>\n", 'radio_oneline_start' => '<label class="radio-inline">', 'radio_oneline_end' => "</label>\n");
         case 'user_navigation':
             // The Prev/Next links of users
             return array('block_start' => '<ul class="pager">', 'prev_start' => '<li class="previous">', 'prev_end' => '</li>', 'prev_no_user' => '', 'back_start' => '<li>', 'back_end' => '</li>', 'next_start' => '<li class="next">', 'next_end' => '</li>', 'next_no_user' => '', 'block_end' => '</ul>');
         case 'button_classes':
             // Button classes
             return array('button' => 'btn btn-default btn-xs', 'button_red' => 'btn-danger', 'button_green' => 'btn-success', 'text' => 'btn btn-default btn-xs', 'group' => 'btn-group');
         case 'tooltip_plugin':
             // Plugin name for tooltips: 'bubbletip' or 'popover'
             return 'popover';
             break;
         case 'disp_params':
             // Params for skin_include( '$disp$', array( ) )
             return array('author_link_text' => 'preferredname', 'profile_tabs' => array('block_start' => '<nav><ul class="nav nav-tabs profile_tabs">', 'item_start' => '<li>', 'item_end' => '</li>', 'item_selected_start' => '<li class="active">', 'item_selected_end' => '</li>', 'block_end' => '</ul></nav>'), 'pagination' => array('block_start' => '<div class="center"><ul class="pagination">', 'block_end' => '</ul></div>', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>'), 'skin_form_before' => '<div class="panel panel-default skin-form">' . '<div class="panel-heading">' . '<h3 class="panel-title">$form_title$</h3>' . '</div>' . '<div class="panel-body">', 'skin_form_after' => '</div></div>', 'display_form_messages' => true, 'form_title_login' => T_('Log in to your account') . '$form_links$', 'form_title_lostpass' => get_request_title() . '$form_links$', 'lostpass_page_class' => 'evo_panel__lostpass', 'login_form_inskin' => false, 'login_page_class' => 'evo_panel__login', 'login_page_before' => '<div class="$form_class$">', 'login_page_after' => '</div>', 'display_reg_link' => true, 'abort_link_position' => 'form_title', 'abort_link_text' => '<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>', 'register_page_before' => '<div class="evo_panel__register">', 'register_page_after' => '</div>', 'register_form_title' => T_('Register'), 'register_links_attrs' => '', 'register_use_placeholders' => true, 'register_field_width' => 252, 'register_disabled_page_before' => '<div class="evo_panel__register register-disabled">', 'register_disabled_page_after' => '</div>', 'activate_form_title' => T_('Account activation'), 'activate_page_before' => '<div class="evo_panel__activation">', 'activate_page_after' => '</div>', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>', 'search_use_editor' => true, 'search_author_format' => 'login', 'search_cell_author_start' => '<p class="small text-muted">', 'search_cell_author_end' => '</p>', 'search_date_format' => 'F jS, Y', 'featured_intro_before' => '<div class="jumbotron">', 'featured_intro_after' => '</div>', 'msgform_form_title' => T_('Sending a message'));
             break;
         case 'plugin_template':
             // Template for plugins
             return array('toolbar_before' => '<div class="btn-toolbar $toolbar_class$" role="toolbar">', 'toolbar_after' => '</div>', 'toolbar_title_before' => '<div class="btn-toolbar-title">', 'toolbar_title_after' => '</div>', 'toolbar_group_before' => '<div class="btn-group btn-group-xs" role="group">', 'toolbar_group_after' => '</div>', 'toolbar_button_class' => 'btn btn-default');
         case 'modal_window_js_func':
             // JavaScript function to initialize Modal windows, @see echo_user_ajaxwindow_js()
             return 'echo_modalwindow_js_bootstrap';
             break;
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }
Ejemplo n.º 4
0
 /**
  * Those templates are used for example by the messaging screens.
  */
 function get_template($name)
 {
     switch ($name) {
         case 'Results':
             // Results list:
             return array('page_url' => '', 'before' => '<div class="results">', 'content_start' => '<div id="$prefix$ajax_content">', 'header_start' => '', 'header_text' => '<div class="center"><strong>' . T_('Pages') . '</strong>: <ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div>', 'header_text_single' => '', 'header_end' => '', 'head_title' => '<div class="title">$title$<span class="floatright">$global_icons$</span></div>' . "\n", 'filters_start' => '<div class="filters">', 'filters_end' => '</div>', 'messages_start' => '<div class="messages">', 'messages_end' => '</div>', 'messages_separator' => '<br />', 'list_start' => '<div class="table_scroll">' . "\n" . '<table class="forums_table highlight" cellspacing="0" cellpadding="0">' . "\n", 'head_start' => "<thead>\n", 'line_start_head' => '<tr>', 'colhead_start' => '<th $class_attrib$>', 'colhead_start_first' => '<th class="$class$">', 'colhead_start_last' => '<th class="$class$">', 'colhead_end' => "</th>\n", 'sort_asc_off' => get_icon('sort_asc_off'), 'sort_asc_on' => get_icon('sort_asc_on'), 'sort_desc_off' => get_icon('sort_desc_off'), 'sort_desc_on' => get_icon('sort_desc_on'), 'basic_sort_off' => '', 'basic_sort_asc' => get_icon('ascending'), 'basic_sort_desc' => get_icon('descending'), 'head_end' => "</thead>\n\n", 'tfoot_start' => "<tfoot>\n", 'tfoot_end' => "</tfoot>\n\n", 'body_start' => "<tbody>\n", 'line_start' => '<tr class="even">' . "\n", 'line_start_odd' => '<tr class="odd">' . "\n", 'line_start_last' => '<tr class="even lastline">' . "\n", 'line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'col_start' => '<td $class_attrib$>', 'col_start_first' => '<td class="firstcol $class$">', 'col_start_last' => '<td class="lastcol $class$">', 'col_end' => "</td>\n", 'line_end' => "</tr>\n\n", 'grp_line_start' => '<tr class="group">' . "\n", 'grp_line_start_odd' => '<tr class="odd">' . "\n", 'grp_line_start_last' => '<tr class="lastline">' . "\n", 'grp_line_start_odd_last' => '<tr class="odd lastline">' . "\n", 'grp_col_start' => '<td $class_attrib$ $colspan_attrib$>', 'grp_col_start_first' => '<td class="firstcol $class$" $colspan_attrib$>', 'grp_col_start_last' => '<td class="lastcol $class$" $colspan_attrib$>', 'grp_col_end' => "</td>\n", 'grp_line_end' => "</tr>\n\n", 'body_end' => "</tbody>\n\n", 'total_line_start' => '<tr class="total">' . "\n", 'total_col_start' => '<td $class_attrib$>', 'total_col_start_first' => '<td class="firstcol $class$">', 'total_col_start_last' => '<td class="lastcol $class$">', 'total_col_end' => "</td>\n", 'total_line_end' => "</tr>\n\n", 'list_end' => "</table></div>\n\n", 'footer_start' => '', 'footer_text' => '<div class="center"><strong>' . T_('Pages') . '</strong>: <ul class="pagination">' . '$prev$$first$$list_prev$$list$$list_next$$last$$next$' . '</ul></div><div class="center">$page_size$</div>', 'footer_text_single' => '<div class="center">$page_size$</div>', 'footer_text_no_limit' => '', 'page_current_template' => '<span><b>$page_num$</b></span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'prev_text' => T_('Previous'), 'next_text' => T_('Next'), 'no_prev_text' => '', 'no_next_text' => '', 'list_prev_text' => T_('...'), 'list_next_text' => T_('...'), 'list_span' => 11, 'scroll_list_range' => 5, 'footer_end' => "\n\n", 'no_results_start' => '<div class="table_scroll"><table class="forums_table highlight" cellspacing="0" cellpadding="0"><tr><td>' . "\n", 'no_results_end' => '$no_results$</td></tr></table></div>' . "\n\n", 'content_end' => '</div>', 'after' => '</div>', 'sort_type' => 'basic');
             break;
         case 'Form':
             // Default Form settings:
             return array('layout' => 'fieldset', 'title_fmt' => '<span style="float:right">$global_icons$</span><h2>$title$</h2>' . "\n", 'no_title_fmt' => '<span style="float:right">$global_icons$</span>' . "\n", 'formstart' => '<table class="bForums" width="100%" cellspacing="1" cellpadding="2" border="0">', 'formend' => '</table>', 'fieldset_begin' => '<tr><th colspan="3" $fieldset_attribs$>$fieldset_title$</th></tr>', 'fieldset_end' => '', 'fieldstart' => '<tr $ID$>', 'fieldend' => '</tr>', 'labelclass' => '', 'labelstart' => '<td class="row1 left">', 'labelend' => '</td>', 'labelempty' => '<td class="row1 left"></td>', 'inputstart' => '<td class="row2 left">', 'inputend' => '</td>', 'infostart' => '<td class="row2 left" colspan="2">', 'infoend' => '</td>', 'buttonsstart' => '<tr><td colspan="2" class="buttons">', 'buttonsend' => '</td></tr>', 'inline_labelstart' => '<td class="left" colspan="2">', 'inline_labelend' => '</td>', 'inline_inputstart' => '', 'inline_inputend' => '', 'customstart' => '<tr><td colspan="2" class="custom_content">', 'customend' => '</td></tr>', 'note_format' => ' <span class="notes">%s</span>');
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }
Ejemplo n.º 5
0
 /**
  * Init results params from skin template params. It's used when Results table is filled from ajax result.
  *
  * @param string the template param which can have values( 'admin', 'front' )
  * @param string the name of the skin
  */
 function init_params_by_skin($skin_type, $skin_name)
 {
     switch ($skin_type) {
         case 'admin':
             // admin skin type
             global $adminskins_path;
             require_once $adminskins_path . $skin_name . '/_adminUI.class.php';
             $this->params = AdminUI::get_template('Results');
             break;
         case 'front':
             // front office skin type
             global $skins_path;
             require_once $skins_path . $skin_name . '/_skin.class.php';
             $this->params = Skin::get_template('Results');
             break;
         default:
             debug_die('Invalid results template param!');
     }
 }
 /**
  * Those templates are used for example by the messaging screens.
  */
 function get_template($name)
 {
     switch ($name) {
         case 'cat_array_mode':
             // What category level use to display the items on disp=posts:
             //   - 'children' - Get items from current category and from all its sub-categories recirsively
             //   - 'parent' - Get items ONLY from current category WITHOUT sub-categories
             return 'parent';
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }
 /**
  * Those templates are used for example by the messaging screens.
  */
 function get_template($name)
 {
     switch ($name) {
         case 'disp_params':
             // Params for skin_include( '$disp$', array( ) )
             return array('author_link_text' => 'auto', 'profile_tabs' => array('block_start' => '<nav><ul class="nav nav-tabs profile_tabs">', 'item_start' => '<li>', 'item_end' => '</li>', 'item_selected_start' => '<li class="active">', 'item_selected_end' => '</li>', 'block_end' => '</ul></nav>'), 'pagination' => array('block_start' => '<div class="center"><ul class="pagination">', 'block_end' => '</ul></div>', 'page_current_template' => '<span>$page_num$</span>', 'page_item_before' => '<li>', 'page_item_after' => '</li>', 'page_item_current_before' => '<li class="active">', 'page_item_current_after' => '</li>', 'prev_text' => '<i class="fa fa-angle-double-left"></i>', 'next_text' => '<i class="fa fa-angle-double-right"></i>'), 'skin_form_before' => '<div class="panel panel-default skin-form">' . '<div class="panel-heading">' . '<h3 class="panel-title">$form_title$</h3>' . '</div>' . '<div class="panel-body">', 'skin_form_after' => '</div></div>', 'display_form_messages' => true, 'form_title_login' => T_('Log in to your account') . '$form_links$', 'form_title_lostpass' => get_request_title() . '$form_links$', 'lostpass_page_class' => 'evo_panel__lostpass', 'login_form_inskin' => false, 'login_page_class' => 'evo_panel__login', 'login_page_before' => '<div class="$form_class$">', 'login_page_after' => '</div>', 'display_reg_link' => true, 'abort_link_position' => 'form_title', 'abort_link_text' => '<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>', 'register_page_before' => '<div class="evo_panel__register">', 'register_page_after' => '</div>', 'register_form_title' => T_('Register'), 'register_links_attrs' => '', 'register_use_placeholders' => true, 'register_field_width' => 252, 'register_disabled_page_before' => '<div class="evo_panel__register register-disabled">', 'register_disabled_page_after' => '</div>', 'activate_form_title' => T_('Account activation'), 'activate_page_before' => '<div class="evo_panel__activation">', 'activate_page_after' => '</div>', 'search_input_before' => '<div class="input-group">', 'search_input_after' => '', 'search_submit_before' => '<span class="input-group-btn">', 'search_submit_after' => '</span></div>', 'search_use_editor' => true, 'search_author_format' => 'login', 'search_cell_author_start' => '<p class="small text-muted">', 'search_cell_author_end' => '</p>', 'search_date_format' => 'F jS, Y', 'featured_intro_before' => '<div class="jumbotron">', 'featured_intro_after' => '</div>', 'msgform_form_title' => T_('Sending a message'));
         default:
             // Delegate to parent class:
             return parent::get_template($name);
     }
 }