mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 01:25:01 +02:00
Issue #2970 btn-default > btn-default btn-secondary
This commit is contained in:
@@ -101,7 +101,7 @@ class admin_shortcodes
|
||||
if (!ADMIN) { return ''; }
|
||||
return "
|
||||
<div style='text-align: center'>
|
||||
<input class='btn btn-default button' type='button' onclick=\"javascript: window.open('".e_ADMIN_ABS."credits.php', 'myWindow', 'status = 1, height = 400, width = 300, resizable = 0')\" value='".LAN_CREDITS."' />
|
||||
<input class='btn btn-default btn-secondary button' type='button' onclick=\"javascript: window.open('".e_ADMIN_ABS."credits.php', 'myWindow', 'status = 1, height = 400, width = 300, resizable = 0')\" value='".LAN_CREDITS."' />
|
||||
</div>";
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ class admin_shortcodes
|
||||
{
|
||||
$text .= $sql->mySQLlanguage;
|
||||
$text .= " (".$slng->convert($sql->mySQLlanguage).")
|
||||
: <span class='btn btn-default button' style='cursor: pointer;' onclick='expandit(\"lan_tables\");'><a style='text-decoration:none' title='' href=\"javascript:void(0);\" > ".count($aff)." ".UTHEME_MENU_L3." </a></span><br />
|
||||
: <span class='btn btn-default btn-secondary button' style='cursor: pointer;' onclick='expandit(\"lan_tables\");'><a style='text-decoration:none' title='' href=\"javascript:void(0);\" > ".count($aff)." ".UTHEME_MENU_L3." </a></span><br />
|
||||
<span style='display:none' id='lan_tables'>
|
||||
";
|
||||
$text .= implode('<br />', $aff);
|
||||
|
@@ -46,7 +46,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
if(BOOTSTRAP)
|
||||
{
|
||||
$text = '<div class="btn-group">';
|
||||
$text .= '<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" title="">';
|
||||
$text .= '<a class="btn btn-default btn-secondary dropdown-toggle" data-toggle="dropdown" href="#" title="">';
|
||||
$text .= "Format";
|
||||
$text .= ' <span class="caret"></span></a>';
|
||||
$text .= "<ul class='dropdown-menu'>\n";
|
||||
@@ -64,7 +64,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
// Legacy Version.
|
||||
$text = "<select class='btn btn-default e-bb bbcode_buttons e-pointer' id='{$id}' title='Format text' onchange=\"addtext(this.value);this.value=''\">
|
||||
$text = "<select class='btn btn-default btn-secondary e-bb bbcode_buttons e-pointer' id='{$id}' title='Format text' onchange=\"addtext(this.value);this.value=''\">
|
||||
<option value=''>Format</option>
|
||||
<option value='[p][/p]'>Paragraph</option>
|
||||
<option value='[h2][/h2]'>Heading</option>
|
||||
@@ -165,7 +165,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
{
|
||||
$data = "[link=*]*[/link]";
|
||||
$event = $this->getEvent('addinput',$data,LANHELP_35);
|
||||
$text = "<a {$event} class='btn btn-default e-bb ' id='{$id}' data-function='input' href='#{$this->var['tagid']}' title='".$this->br2nl(LANHELP_23)."' data-bbcode='{$data}'>\n";
|
||||
$text = "<a {$event} class='btn btn-default btn-secondary e-bb ' id='{$id}' data-function='input' href='#{$this->var['tagid']}' title='".$this->br2nl(LANHELP_23)."' data-bbcode='{$data}'>\n";
|
||||
// $text .="<img class='btn btn-small bbcode_buttons e-pointer' src='".e_IMAGE_ABS."bbcode/link.png' alt='' title='".nl2br(LANHELP_23)."' />";
|
||||
|
||||
$text .= $this->button(e_IMAGE_ABS.'bbcode/link.png', 'link');
|
||||
@@ -247,7 +247,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
$sizes = array(7,8,9,10,11,12,14,15,18,20,22,24,26,28,30,36);
|
||||
|
||||
$text = '<div class="btn-group">';
|
||||
$text .= '<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" title="'.LANHELP_22.'">';
|
||||
$text .= '<a class="btn btn-default btn-secondary dropdown-toggle" data-toggle="dropdown" href="#" title="'.LANHELP_22.'">';
|
||||
// $text .= "<img src='".e_IMAGE_ABS."bbcode/fontsize.png' alt='' />\n";
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/fontsize.png", 'text-height');
|
||||
|
||||
@@ -302,7 +302,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$text = '<div class="btn-group" >';
|
||||
$text .= '<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" title="'.LANHELP_44.'">';
|
||||
$text .= '<a class="btn btn-default btn-secondary dropdown-toggle" data-toggle="dropdown" href="#" title="'.LANHELP_44.'">';
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/emotes.png","smile-o");
|
||||
// $text .= ' <span class="caret"></span>';
|
||||
|
||||
@@ -371,7 +371,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
$event = $this->getEvent('expandit',$formid, LANHELP_22);
|
||||
|
||||
|
||||
$text = "<a {$event} class='btn btn-default e-bb' id='{id}' data-function='show' href='#{$this->var['tagid']}' title='".LANHELP_22."' data-bbcode='{$data}'>
|
||||
$text = "<a {$event} class='btn btn-default btn-secondary e-bb' id='{id}' data-function='show' href='#{$this->var['tagid']}' title='".LANHELP_22."' data-bbcode='{$data}'>
|
||||
<img class='bbcode_buttons e-pointer' src='".e_IMAGE_ABS."bbcode/fontcol.png' alt='' title='".LANHELP_21."' /></a>";
|
||||
|
||||
// return $text;
|
||||
@@ -591,12 +591,12 @@ class bbcode_shortcodes extends e_shortcode
|
||||
|
||||
if($_onclick_func == 'e-dialog')
|
||||
{ // $tagid = "news-body";
|
||||
$pre = "\n<a href='".e_ADMIN."image.php?mode=main&action=dialog&for=news&tagid=".$tagid."&iframe=1&bbcode=1' class='btn btn-default e-dialog' >";
|
||||
$pre = "\n<a href='".e_ADMIN."image.php?mode=main&action=dialog&for=news&tagid=".$tagid."&iframe=1&bbcode=1' class='btn btn-default btn-secondary e-dialog' >";
|
||||
$post = "</a>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$pre = "<a class='btn btn-default ".vartrue($bbcode[$parm][7], 'e-pointer')."' title=\"".str_replace('<br />','\\n',($_helptxt))."\" onclick=\"{$_onclick_func}('".$_onclick_var."')\" ".($bbcode_helpactive ? "onmouseout=\"{$bbcode_help}(''{$bbcode_tag})\" onmouseover=\"{$bbcode_help}('".$_helptxt."'{$bbcode_tag})\"" : "" )." >";
|
||||
$pre = "<a class='btn btn-default btn-secondary ".vartrue($bbcode[$parm][7], 'e-pointer')."' title=\"".str_replace('<br />','\\n',($_helptxt))."\" onclick=\"{$_onclick_func}('".$_onclick_var."')\" ".($bbcode_helpactive ? "onmouseout=\"{$bbcode_help}(''{$bbcode_tag})\" onmouseover=\"{$bbcode_help}('".$_helptxt."'{$bbcode_tag})\"" : "" )." >";
|
||||
$post = "</a>\n"; // btn-small bbcode bbcode_buttons
|
||||
}
|
||||
|
||||
|
@@ -105,7 +105,7 @@ class comment_shortcodes extends e_shortcode
|
||||
{
|
||||
if ($thisaction == "comment" && $pref['nested_comments'])
|
||||
{
|
||||
$REPLY = "<a id='e-comment-reply-".$this->var['comment_id']."' class='e-comment-reply btn btn-default btn-mini btn-xs' data-type='".$this->var['comment_type']."' data-target='".e_HTTP."comment.php' href='".e_HTTP."comment.php?reply.".$thistable.".".$this->var['comment_id'].".".$thisid."'>".COMLAN_326."</a>";
|
||||
$REPLY = "<a id='e-comment-reply-".$this->var['comment_id']."' class='e-comment-reply btn btn-default btn-secondary btn-mini btn-xs' data-type='".$this->var['comment_type']."' data-target='".e_HTTP."comment.php' href='".e_HTTP."comment.php?reply.".$thistable.".".$this->var['comment_id'].".".$thisid."'>".COMLAN_326."</a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -198,11 +198,11 @@ class comment_shortcodes extends e_shortcode
|
||||
|
||||
// e107::getDebug()->log($this->var);
|
||||
|
||||
$text = "<a href='#' data-target='".e_HTTP."comment.php' id='e-comment-delete-".$this->var['comment_id']."' data-type='".$this->var['comment_type']."' data-itemid='".$this->var['comment_item_id']."' class='e-comment-delete btn btn-default btn-mini btn-xs'>".LAN_DELETE."</a> ";
|
||||
$text = "<a href='#' data-target='".e_HTTP."comment.php' id='e-comment-delete-".$this->var['comment_id']."' data-type='".$this->var['comment_type']."' data-itemid='".$this->var['comment_item_id']."' class='e-comment-delete btn btn-default btn-secondary btn-mini btn-xs'>".LAN_DELETE."</a> ";
|
||||
|
||||
if($this->var['comment_blocked'] == 2) // pending approval.
|
||||
{
|
||||
$text .= "<a href='#' data-target='" . e_HTTP . "comment.php' id='e-comment-approve-" . $this->var['comment_id'] . "' class='e-comment-approve btn btn-default btn-mini btn-xs'>" . COMLAN_404 . "</a> ";
|
||||
$text .= "<a href='#' data-target='" . e_HTTP . "comment.php' id='e-comment-approve-" . $this->var['comment_id'] . "' class='e-comment-approve btn btn-default btn-secondary btn-mini btn-xs'>" . COMLAN_404 . "</a> ";
|
||||
}
|
||||
return $text;
|
||||
/*
|
||||
@@ -368,12 +368,12 @@ class comment_shortcodes extends e_shortcode
|
||||
//Searching for '.' is BAD!!! It breaks mod rewritten requests. Why is this needed at all?
|
||||
if (strstr(e_QUERY, "&"))
|
||||
{
|
||||
return "<a data-target='".e_HTTP."comment.php' id='e-comment-edit-".$this->var['comment_id']."' class='btn btn-default btn-mini btn-xs e-comment-edit' href='".e_SELF."?".e_QUERY."&comment=edit&comment_id=".$this->var['comment_id']."'>{$adop_icon}</a>";
|
||||
return "<a data-target='".e_HTTP."comment.php' id='e-comment-edit-".$this->var['comment_id']."' class='btn btn-default btn-secondary btn-mini btn-xs e-comment-edit' href='".e_SELF."?".e_QUERY."&comment=edit&comment_id=".$this->var['comment_id']."'>{$adop_icon}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
// return "<a href='".e_SELF."?".$comment_edit_query.".edit.".$this->var['comment_id']."'><img src='".e_IMAGE."generic/newsedit.png' alt='".COMLAN_318."' title='".COMLAN_318."' style='border: 0;' /></a>";
|
||||
return "<a data-target='".e_HTTP."comment.php' id='e-comment-edit-".$this->var['comment_id']."' class='btn btn-default btn-mini btn-xs e-comment-edit' href='".SITEURL."comment.php?".$comment_edit_query.".edit.".$this->var['comment_id']."#e-comment-form'>".$adop_icon."</a>";
|
||||
return "<a data-target='".e_HTTP."comment.php' id='e-comment-edit-".$this->var['comment_id']."' class='btn btn-default btn-secondary btn-mini btn-xs e-comment-edit' href='".SITEURL."comment.php?".$comment_edit_query.".edit.".$this->var['comment_id']."#e-comment-form'>".$adop_icon."</a>";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@@ -662,7 +662,7 @@ class cpage_shortcodes extends e_shortcode
|
||||
$icon = deftrue('FONTAWESOME') ? $tp->toGlyph('fa-edit') : "<img src='".e_IMAGE_ABS."/admin_images/edit_16.png' alt='edit' style='border: 0px none; height: 16px; width: 16px;' />";
|
||||
|
||||
|
||||
return "<a rel='external' title=\"".LAN_EDIT."\" data-modal-caption=\"".LAN_EDIT."\" class='btn btn-default ".$modal."' href='".e_ADMIN_ABS."cpage.php?action=edit&id=".$this->var['page_id'].$iframe."' >".$icon."</a>";
|
||||
return "<a rel='external' title=\"".LAN_EDIT."\" data-modal-caption=\"".LAN_EDIT."\" class='btn btn-default btn-secondary ".$modal."' href='".e_ADMIN_ABS."cpage.php?action=edit&id=".$this->var['page_id'].$iframe."' >".$icon."</a>";
|
||||
}
|
||||
|
||||
|
||||
|
@@ -653,7 +653,7 @@ class user_shortcodes extends e_shortcode
|
||||
{
|
||||
return "
|
||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||
<input class='btn btn-default button' type='submit' name='delp' value='".LAN_USER_43."' />
|
||||
<input class='btn btn-default btn-secondary button' type='submit' name='delp' value='".LAN_USER_43."' />
|
||||
</form>
|
||||
";
|
||||
}
|
||||
@@ -856,7 +856,7 @@ class user_shortcodes extends e_shortcode
|
||||
|
||||
function sc_user_form_submit($parm)
|
||||
{
|
||||
return "<input class='btn btn-default button' type='submit' name='submit' value='".LAN_GO."' />";
|
||||
return "<input class='btn btn-default btn-secondary button' type='submit' name='submit' value='".LAN_GO."' />";
|
||||
}
|
||||
|
||||
|
||||
|
@@ -27,7 +27,7 @@ function custom_shortcode($parm)
|
||||
{
|
||||
$ret .= "<form method='post' action='".e_SELF.(e_QUERY ? '?'.e_QUERY : '')."'>\n<div class='loginc_div'>\n".LAN_LOGINMENU_1."<input class='tbox loginc user' type='text' name='username' size='15' value='$username' maxlength='20' /> \n".LAN_LOGINMENU_2."<input class='tbox loginc pass' type='password' name='userpass' size='15' value='' maxlength='20' /> \n";
|
||||
$ret .= ($pref['user_tracking'] == "cookie") ? "<input type='checkbox' name='autologin' value='1' />".LAN_LOGINMENU_6." \n" : "";
|
||||
$ret .= "<input class='btn btn-default button loginc' type='submit' name='userlogin' value='".LAN_LOGIN."' />";
|
||||
$ret .= "<input class='btn btn-default btn-secondary button loginc' type='submit' name='userlogin' value='".LAN_LOGIN."' />";
|
||||
if (intval($pref['user_reg'])===1)
|
||||
{
|
||||
$ret .= " <a class='loginc signup' href='".e_SIGNUP."'>".LAN_LOGINMENU_3."</a>";
|
||||
|
Reference in New Issue
Block a user