diff --git a/e107_core/shortcodes/batch/user_shortcodes.php b/e107_core/shortcodes/batch/user_shortcodes.php index 106a4a439..412db1a06 100644 --- a/e107_core/shortcodes/batch/user_shortcodes.php +++ b/e107_core/shortcodes/batch/user_shortcodes.php @@ -580,7 +580,7 @@ class user_shortcodes extends e_shortcode e107::setRegistry('userjump', $userjump); } - $class = empty($parms[2]['class']) ? 'e-tip' : $parms[2]['class']; + $class = empty($parms[2]['class']) ? 'e-tip page-link' : $parms[2]['class']; if($parms[1] == 'prev') { @@ -739,19 +739,25 @@ class user_shortcodes extends e_shortcode $sql = e107::getDb(); $tp = e107::getParser(); $frm = e107::getForm(); - - $template = e107::getCoreTemplate('user','extended'); - - - $EXTENDED_CATEGORY_START = $template['start']; - $EXTENDED_CATEGORY_END = $template['end']; - $EXTENDED_CATEGORY_TABLE = $template['item'];; - + + if(THEME_LEGACY === true) // v1.x + { + global $EXTENDED_CATEGORY_START, $EXTENDED_CATEGORY_END, $EXTENDED_CATEGORY_TABLE; + } + else // v2.x + { + $template = e107::getCoreTemplate('user','extended'); + $EXTENDED_CATEGORY_START = $template['start']; + $EXTENDED_CATEGORY_END = $template['end']; + $EXTENDED_CATEGORY_TABLE = $template['item'];; + } + + /* $qry = "SELECT f.*, c.user_extended_struct_name AS category_name, c.user_extended_struct_id AS category_id FROM #user_extended_struct as f LEFT JOIN #user_extended_struct as c ON f.user_extended_struct_parent = c.user_extended_struct_id ORDER BY c.user_extended_struct_order ASC, f.user_extended_struct_order ASC "; - + */ require_once(e_HANDLER."user_extended_class.php"); diff --git a/e107_core/templates/bootstrap4/user_template.php b/e107_core/templates/bootstrap4/user_template.php new file mode 100644 index 000000000..0b7a5cd08 --- /dev/null +++ b/e107_core/templates/bootstrap4/user_template.php @@ -0,0 +1,163 @@ + +
+ | ".LAN_USER_58." | +".LAN_USER_60." | +".LAN_USER_59." | +
---|---|---|---|
{USER_PICTURE} | +{USER_ID}: {USER_NAME_LINK} | +{USER_EMAIL} | +{USER_JOIN} | +
+ | ".LAN_USER_58." | +".LAN_USER_60." | +".LAN_USER_59." | +
---|
".LAN_USER_58." {USER_ID} : {USER_NAME}{USER_LOGINNAME} | +|||
{USER_PICTURE} | +
+ {USER_ICON=realname} ".LAN_USER_63."
+ {USER_REALNAME}
+ |
+||
+ {USER_ICON=email} ".LAN_USER_60."
+ {USER_EMAIL}
+ |
+|||
+ {USER_ICON=level} ".LAN_USER_54.":
+ {USER_LEVEL}
+ |
+|||
+ {USER_ICON=lastvisit} ".LAN_USER_65.":
+ {USER_LASTVISIT}
+ {USER_LASTVISIT_LAPSE} |
+|||
".LAN_USER_64." | +|||
".LAN_USER_59." | +{USER_JOIN} {USER_DAYSREGGED} |
+||
".LAN_USER_66." | +{USER_VISITS} | +||
+
|
+