mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 01:00:20 +02:00
This commit is contained in:
@@ -415,7 +415,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$img = e107::getParser()->toGlyph('icon-download.glyph',false);
|
||||
$img = e107::getParser()->toGlyph('fa-download',false);
|
||||
// $img = '<i class="icon-download"></i>';
|
||||
}
|
||||
|
||||
@@ -704,7 +704,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$img = e107::getParser()->toGlyph('download',$parm); // '<i class="icon-download"></i>';
|
||||
$img = e107::getParser()->toGlyph('fa-download',$parm); // '<i class="icon-download"></i>';
|
||||
}
|
||||
|
||||
if ($pref['agree_flag'] == 1)
|
||||
@@ -955,7 +955,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
$url = e107::url('download', 'item', $dlrowrow);
|
||||
|
||||
$icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('chevron-left') : '<<';
|
||||
$icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('fa-chevron-left') : '<<';
|
||||
|
||||
return "<a class='e-tip' href='".$url ."' title=\"".$dlrowrow['download_name']."\">".$icon." ".LAN_PREVIOUS."</a>\n";
|
||||
|
||||
@@ -982,7 +982,7 @@ class download_shortcodes extends e_shortcode
|
||||
extract($dlrowrow);
|
||||
$url = $url = e107::url('download', 'item', $dlrowrow);
|
||||
|
||||
$icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('chevron-right') : '>>';
|
||||
$icon = (deftrue('BOOTSTRAP')) ? $tp->toGlyph('fa-chevron-right') : '>>';
|
||||
|
||||
return "<a class='e-tip' href='".$url."' title=\"".$dlrowrow['download_name']."\">".LAN_NEXT." ".$icon."</a>\n";
|
||||
|
||||
|
@@ -1003,10 +1003,10 @@ function fadminoptions($thread_info)
|
||||
|
||||
$lan = array('stick'=>LAN_FORUM_8007,'unstick'=>LAN_FORUM_8008,'lock'=>LAN_FORUM_8009, 'unlock'=>LAN_FORUM_8010);
|
||||
$icon = array(
|
||||
'unstick' => $tp->toGlyph('chevron-down'),
|
||||
'stick' => $tp->toGlyph('chevron-up'),
|
||||
'lock' => $tp->toGlyph('lock'),
|
||||
'unlock' => $tp->toGlyph('unlock'),
|
||||
'unstick' => $tp->toGlyph('fa-chevron-down'),
|
||||
'stick' => $tp->toGlyph('fa-chevron-up'),
|
||||
'lock' => $tp->toGlyph('fa-lock'),
|
||||
'unlock' => $tp->toGlyph('fa-unlock'),
|
||||
);
|
||||
|
||||
|
||||
|
@@ -838,14 +838,14 @@
|
||||
<ul class="dropdown-menu pull-right text-right">';
|
||||
|
||||
|
||||
$text .= "<li class='text-right'><a href='" . e_HTTP . "email.php?plugin:forum." . $this->postInfo['post_thread'] . "'>" . LAN_FORUM_2044 . " " . $tp->toGlyph('envelope') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . e_HTTP . "print.php?plugin:forum." . $this->postInfo['post_thread'] . "'>" . LAN_FORUM_2045 . " " . $tp->toGlyph('print') . "</a></li>"; // FIXME
|
||||
$text .= "<li class='text-right'><a href='" . e_HTTP . "email.php?plugin:forum." . $this->postInfo['post_thread'] . "'>" . LAN_FORUM_2044 . " " . $tp->toGlyph('fa-envelope') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . e_HTTP . "print.php?plugin:forum." . $this->postInfo['post_thread'] . "'>" . LAN_FORUM_2045 . " " . $tp->toGlyph('fa-print') . "</a></li>"; // FIXME
|
||||
|
||||
if(USER) // Report
|
||||
{
|
||||
$urlReport = e107::url('forum', 'post') . "?f=report&id=" . $this->postInfo['post_thread'] . "&post=" . $this->postInfo['post_id'];
|
||||
// $urlReport = $this->e107->url->create('forum/thread/report', "id={$this->postInfo['post_thread']}&post={$this->postInfo['post_id']}");
|
||||
$text .= "<li class='text-right'><a href='" . $urlReport . "'>" . LAN_FORUM_2046 . " " . $tp->toGlyph('flag') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . $urlReport . "'>" . LAN_FORUM_2046 . " " . $tp->toGlyph('fa-flag') . "</a></li>";
|
||||
}
|
||||
|
||||
// Edit
|
||||
@@ -855,7 +855,7 @@
|
||||
|
||||
$url = e107::url('forum', 'post') . "?f=edit&id=" . $this->postInfo['post_thread'] . "&post=" . $this->postInfo['post_id'];
|
||||
//$url = e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_thread'], 'post'=>$this->postInfo['post_id']));
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_EDIT . " " . $tp->toGlyph('edit') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_EDIT . " " . $tp->toGlyph('fa-edit') . "</a></li>";
|
||||
|
||||
}
|
||||
|
||||
@@ -866,7 +866,7 @@
|
||||
* AND if this post is the last post in the thread */
|
||||
if($this->thread->threadInfo['thread_active'] && empty($this->postInfo['thread_start']) )
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='" . e_REQUEST_URI . "' data-forum-action='deletepost' data-forum-post='" . $this->postInfo['post_id'] . "'>" . LAN_DELETE . " " . $tp->toGlyph('trash') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . e_REQUEST_URI . "' data-forum-action='deletepost' data-forum-post='" . $this->postInfo['post_id'] . "'>" . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "</a></li>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -874,7 +874,7 @@
|
||||
{
|
||||
$url = e107::url('forum', 'post') . "?f=quote&id=" . $this->postInfo['post_thread'] . "&post=" . $this->postInfo['post_id'];
|
||||
//$url = e107::getUrl()->create('forum/thread/quote', array('id' => $this->postInfo['post_thread'], 'post'=>$this->postInfo['post_id']));
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_FORUM_2041 . " " . $tp->toGlyph('share-alt') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_FORUM_2041 . " " . $tp->toGlyph('fa-share-alt') . "</a></li>";
|
||||
|
||||
// $text .= "<li class='text-right'><a href='".e107::getUrl()->create('forum/thread/quote', array('id' => $this->postInfo['post_id']))."'>".LAN_FORUM_2041." ".$tp->toGlyph('share-alt')."</a></li>";
|
||||
}
|
||||
@@ -893,24 +893,24 @@
|
||||
$url = e107::url('forum', 'post') . "?f=edit&id=" . $this->postInfo['post_thread'] . "&post=" . $this->postInfo['post_id'];
|
||||
// $url = e107::getUrl()->create('forum/thread/edit', array('id' => $this->postInfo['post_thread'], 'post'=>$this->postInfo['post_id']));
|
||||
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_EDIT . " " . $tp->toGlyph('edit') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_EDIT . " " . $tp->toGlyph('fa-edit') . "</a></li>";
|
||||
}
|
||||
|
||||
// only show delete button when post is not the initial post of the topic
|
||||
// if(!$this->forum->threadDetermineInitialPost($this->postInfo['post_id']))
|
||||
if(empty($this->postInfo['thread_start']))
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='" . e_REQUEST_URI . "' data-forum-action='deletepost' data-forum-post='" . $this->postInfo['post_id'] . "'>" . LAN_DELETE . " " . $tp->toGlyph('trash') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . e_REQUEST_URI . "' data-forum-action='deletepost' data-forum-post='" . $this->postInfo['post_id'] . "'>" . LAN_DELETE . " " . $tp->toGlyph('fa-trash') . "</a></li>";
|
||||
}
|
||||
|
||||
if($type == 'thread')
|
||||
{
|
||||
$url = e107::url('forum', 'move', array('thread_id' => $this->postInfo['post_thread']));
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_FORUM_2042 . " " . $tp->toGlyph('move') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . $url . "'>" . LAN_FORUM_2042 . " " . $tp->toGlyph('fa-arrows') . "</a></li>";
|
||||
}
|
||||
elseif(e_DEVELOPER === true) //TODO
|
||||
{
|
||||
$text .= "<li class='text-right'><a href='" . e107::url('forum', 'split', array('thread_id' => $this->postInfo['post_thread'], 'post_id' => $this->postInfo['post_id'])) . "'>" . LAN_FORUM_2043 . " " . $tp->toGlyph('cut') . "</a></li>";
|
||||
$text .= "<li class='text-right'><a href='" . e107::url('forum', 'split', array('thread_id' => $this->postInfo['post_thread'], 'post_id' => $this->postInfo['post_id'])) . "'>" . LAN_FORUM_2043 . " " . $tp->toGlyph('fa-cut') . "</a></li>";
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -74,4 +74,4 @@ $text = "
|
||||
$ns->tablerender(NFPM_L12, $text);
|
||||
|
||||
require_once (e_ADMIN."footer.php");
|
||||
?>
|
||||
?>
|
@@ -407,7 +407,7 @@ class rssCreate
|
||||
|
||||
header('Content-type: application/xml', TRUE);
|
||||
|
||||
$rss_title = $tp->toRss($tp->toHtml($pref['sitename'],'','defs')." : ".$tp->toHtml($rss_title,'','defs'));
|
||||
$rss_title = $tp->toRss($tp->toHTML($pref['sitename'],'','defs')." : ".$tp->toHTML($rss_title,'','defs'));
|
||||
$rss_namespace = ($this->rssNamespace) ? "xmlns:".$this->rssNamespace : '';
|
||||
$rss_custom_channel = ($this->rssCustomChannel) ? $this->rssCustomChannel : '';
|
||||
$time = time();
|
||||
@@ -466,7 +466,7 @@ class rssCreate
|
||||
<link>".$pref['siteurl']."</link>
|
||||
<description>".$tp->toRss($pref['sitedescription'])."</description>\n";
|
||||
|
||||
echo $tp->toHtml($rss_custom_channel,FALSE)."\n"; // must not convert to CDATA.
|
||||
echo $tp->toHTML($rss_custom_channel,FALSE)."\n"; // must not convert to CDATA.
|
||||
|
||||
echo "
|
||||
<language>".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</language>
|
||||
|
@@ -78,7 +78,7 @@ if(deftrue('BOOTSTRAP'))
|
||||
|
||||
$text .= '
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-secondary" type="submit" name="s">'.$tp->toGlyph('search').'</button>
|
||||
<button class="btn btn-default btn-secondary" type="submit" name="s">'.$tp->toGlyph('fa-search').'</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>';
|
||||
|
Reference in New Issue
Block a user