mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Move themes to resources/views/themes folder
This commit is contained in:
@@ -22,9 +22,9 @@ class AdminPage extends BasePage
|
||||
// Tell Smarty which directories to use for templates
|
||||
$this->smarty->setTemplateDir(
|
||||
[
|
||||
'admin' => NN_THEMES.'admin',
|
||||
'shared' => NN_THEMES.'shared',
|
||||
'default' => NN_THEMES.'Gentele',
|
||||
'admin' => config('ytake-laravel-smarty.template_path').'/admin',
|
||||
'shared' => config('ytake-laravel-smarty.template_path').'/shared',
|
||||
'default' => config('ytake-laravel-smarty.template_path').'/admin',
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ class Page extends BasePage
|
||||
// Tell Smarty which directories to use for templates
|
||||
$this->smarty->setTemplateDir(
|
||||
[
|
||||
'user' => NN_THEMES.$this->theme,
|
||||
'shared' => NN_THEMES.'shared',
|
||||
'default' => NN_THEMES.'Gentele',
|
||||
'user' => config('ytake-laravel-smarty.template_path'). DIRECTORY_SEPARATOR . $this->theme,
|
||||
'shared' => config('ytake-laravel-smarty.template_path').'/shared',
|
||||
'default' => config('ytake-laravel-smarty.template_path').'/Gentele',
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2018-03-06 DariusIII
|
||||
* Chg: Move themes to resources/views/themes folder
|
||||
* Chg: Update Captcha class
|
||||
* Chg: Update admin area pages
|
||||
* Chg: Move BasePage, AdminPage and Page to Blacklight\http
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Ytake\LaravelSmarty\Smarty;
|
||||
|
||||
class UpdateNNTmux extends Command
|
||||
{
|
||||
@@ -66,15 +67,15 @@ class UpdateNNTmux extends Command
|
||||
}
|
||||
}
|
||||
|
||||
$smarty = new \Smarty();
|
||||
$smarty->setCompileDir(NN_SMARTY_TEMPLATES);
|
||||
$smarty = new Smarty();
|
||||
$smarty->setCompileDir(config('ytake-laravel-smarty.compile_path'));
|
||||
$cleared = $smarty->clearCompiledTemplate();
|
||||
if ($cleared) {
|
||||
$this->output->writeln('<comment>The Smarty compiled template cache has been cleaned for you</comment>');
|
||||
} else {
|
||||
$this->output->writeln(
|
||||
'<comment>You should clear your Smarty compiled template cache at: '.
|
||||
NN_RES.'smarty'.DS.'templates_c</comment>'
|
||||
config('ytake-laravel-smarty.compile_path'). '</comment>'
|
||||
);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
||||
@@ -42,7 +42,7 @@ return [
|
||||
'right_delimiter' => '}',
|
||||
|
||||
// path info
|
||||
'template_path' => base_path().'/public/themes',
|
||||
'template_path' => base_path().'/resources/views/themes',
|
||||
|
||||
// smarty cache directory
|
||||
'cache_path' => storage_path().'/framework/smarty/cache',
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{if $articlecontentlist|@count > 0}
|
||||
<li class="article_menu">
|
||||
<h2>Articles</h2>
|
||||
<ul>
|
||||
{foreach from=$articlecontentlist item=content}
|
||||
<li class="mmenu">
|
||||
<a title="{$content->title}"
|
||||
href="{$smarty.const.WWW_TOP}/content/{$content->id}{$content->url}">{$content->title}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
@@ -1,76 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{if isset($error) && $error != ''}
|
||||
<div class="alert alert-danger">{$error}</div>
|
||||
{/if}
|
||||
{if isset($notice) && $notice != ''}
|
||||
<div class="alert alert-info">{$notice}</div>
|
||||
{/if}
|
||||
{if isset($sent) && $sent != ''}
|
||||
<div class="alert alert-info">A link to reset your password has been sent to your e-mail account.</div>
|
||||
{/if}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{$site->title} | Password reset</title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Bootstrap 3.3.6 -->
|
||||
<link href="{$smarty.const.WWW_THEMES}/shared/assets/bootstrap-3.x/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<link href="{$smarty.const.WWW_THEMES}/shared/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{$smarty.const.WWW_THEMES}/{$theme}/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- iCheck -->
|
||||
<link href="{$smarty.const.WWW_THEMES}/{$theme}/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
{if $confirmed == '' && $sent == ''}
|
||||
<body class="login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="{$serverroot}"><b{$site->title}</b></a>
|
||||
</div><!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Please enter the email address you used to register and we will send an email to reset your password. If you
|
||||
cannot remember your email, or no longer have access to it, please <a href="{$smarty.const.WWW_TOP}/contact-us">contact
|
||||
us</a>.</p>
|
||||
<form action="forgottenpassword?action=submit" method="post">
|
||||
<div class="form-group has-feedback">
|
||||
<input autocomplete="off" id="email" name="email" value="{$email}" type="email" class="form-control" placeholder="Email"/>
|
||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input autocomplete="off" id="apikey" name="apikey" value="{$apikey}" type="text" class="form-control" placeholder="Apikey"/>
|
||||
<span class="glyphicon glyphicon-user form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
{$page->smarty->fetch('captcha.tpl')}
|
||||
</div><!-- /.col -->
|
||||
<hr>
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-flat">Request Password Reset</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
<!-- jQuery 2.2.x -->
|
||||
<script src="{$smarty.const.WWW_THEMES}/shared/assets/jquery-2.2.x/dist/jquery.min.js"></script>
|
||||
<!-- Bootstrap 3.3.6 JS -->
|
||||
<script src="{$smarty.const.WWW_THEMES}/shared/assets/bootstrap-3.x/dist/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
<!-- icheck -->
|
||||
<script src="{$smarty.const.WWW_THEMES}/shared/assets/icheck/icheck.min.js" type="text/javascript"></script>
|
||||
</body>
|
||||
{elseif $sent != ''}
|
||||
<p>
|
||||
A password reset request has been sent to your email.
|
||||
</p>
|
||||
{else}
|
||||
<p>
|
||||
Your password has been reset and sent to you in an email.
|
||||
</p>
|
||||
{/if}
|
||||
</html>
|
||||
@@ -1,11 +0,0 @@
|
||||
<div class="container nzb_multi_operations">
|
||||
{$pager}
|
||||
<div class="pull-right">
|
||||
With Selected:
|
||||
<button type="button" class="btn btn-info btn-sm nzb_multi_operations_download">Download NZBs</button>
|
||||
<button type="button" class="btn btn-info btn-sm nzb_multi_operations_cart">Send to my Download Basket</button>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<button type="button" class="btn btn-success btn-sm nzb_multi_operations_sab">Send to my Queue</button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,22 +0,0 @@
|
||||
<div class="well well-sm">
|
||||
<div class="page-header">
|
||||
<h1>Add to category</h1>
|
||||
</div>
|
||||
<h3>{$type|ucwords} {$movie.title|escape:"htmlall"} in</h3>
|
||||
<form class="form-horizontal" id="mymovies" action="{$smarty.const.WWW_TOP}/mymovies/do{$type}" method="post">
|
||||
<input type="hidden" name="subpage" value="{$imdbid}"/>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="category">Choose</label>
|
||||
<div class="controls">
|
||||
{if $from}<input type="hidden" name="from" value="{$from}" />{/if}
|
||||
{html_checkboxes id="category" name='category' values=$cat_ids output=$cat_names selected=$cat_selected separator=''}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label"></label>
|
||||
<div class="controls">
|
||||
<input class="btn btn-success" type="submit" name="{$type}" value="{$type|ucwords}"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,59 +0,0 @@
|
||||
{if $overview['nzbs']|@count gt 0}
|
||||
{foreach from=$overview['nzbs'] item=nzb}
|
||||
<div style="border-top: 2px solid #eee; margin: 0 0 5px 0; position: relative">
|
||||
<div id="vortex-overlay-{$nzb['id']}"
|
||||
style="position: absolute; background-color: #000; opacity: 0.2; width: 100%; height: 100%; display: none"></div>
|
||||
<div class="vortex-nzb" style="padding: 5px 0 5px 0">
|
||||
<i>{$nzb['uiTitle']}</i>
|
||||
<br/>
|
||||
<div style="width: 20px; float: left; margin: 7px 0 0 0">
|
||||
{if $nzb['isPaused'] == 1}
|
||||
<img src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/blah.png"
|
||||
style="float: left; margin: 0 5px 0 0"/>
|
||||
{else}
|
||||
<img src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/bigsmile.png"
|
||||
style="float: left; margin: 0 5px 0 0"/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="vortex-progressbar"
|
||||
style="margin: 5px 0 0 0; background-color: #eee; height: 15px; padding: 3px; border-radius: 2px; float: left; width: 720px">
|
||||
<div style="float: left; background-color: {if $nzb['isPaused'] == 1}#FB8084{else}#91BA98{/if}; height: 15px; width: {$nzb['progress']}%"></div>
|
||||
</div>
|
||||
<br style="clear: both"/>
|
||||
<strong>{$nzb['state']}{if $nzb['statusText'] neq ''} ({$nzb['statusText']|lower}){/if}</strong>: {$nzb['progress']|round}
|
||||
% of {math|string_format:"%.2f" equation="size / 1024 / 1024" size=$nzb['totalDownloadSize']}
|
||||
MB {if $nzb['transferedSpeed'] neq 0}@ {math|string_format:"%.2f" equation="size / 1024 / 1024" size=$nzb['transferedSpeed']} MB/s{/if}
|
||||
<div class="vortex-controls" style="margin: 5px 0 0 0">
|
||||
<div style="border-right: 2px solid #eee; width: 41px; float: left; margin: 0 5px 0 0">
|
||||
{if $nzb['isPaused'] == 1}
|
||||
<a class="vortex-resume" title="Resume" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/play.png"/></a>
|
||||
{else}
|
||||
<a class="vortex-pause" title="Pause" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/pause.png"/></a>
|
||||
{/if}
|
||||
<a class="vortex-filelist" title="View filelist" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/tv.png"/></a>
|
||||
</div>
|
||||
<div class="vortex-controls" style="float: left">
|
||||
<a class="vortex-moveup" title="Move up in queue" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/arrow2_n.png"/></a>
|
||||
<a class="vortex-movedown" title="Move down in queue" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/arrow2_s.png"/></a>
|
||||
<a class="vortex-movebottom" title="Move to bottom of queue" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/arrow3_s.png"/></a>
|
||||
<a class="vortex-movetop" title="Move to top of queue" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/arrow3_n.png"/></a>
|
||||
<a class="vortex-trash" title="Cancel and delete NZB" href="{$nzb['id']}"><img
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/icons/vortex/trash.png"/></a>
|
||||
</div>
|
||||
<br style="clear: both"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div id="vortex-info" style="background-color: #2A8FBD; text-align: center; padding: 5px; color: #eee">
|
||||
Nothing in queue, go ahead and add something!
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1,13 +0,0 @@
|
||||
{if $recentforumpostslist|@count > 0}
|
||||
<li class="menu_recentposts">
|
||||
<h2>Recent Posts</h2>
|
||||
<ul>
|
||||
{foreach $recentforumpostslist as $content}
|
||||
<li class="mmenu">
|
||||
<a title="by {$content.username|escape:htmlall}"
|
||||
href="{$smarty.const.WWW_TOP}/forumpost/{$content.id}">{$content.subject|escape:htmlall}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
{/if}
|
||||
@@ -1,18 +0,0 @@
|
||||
<li class="menu_useful">
|
||||
<h2>Useful Links</h2>
|
||||
<ul>
|
||||
<li class="mmenu"><a title="Contact Us" href="{$smarty.const.WWW_TOP}/contact-us">Contact Us</a></li>
|
||||
<li class="mmenu"><a title="Site Map" href="{$smarty.const.WWW_TOP}/sitemap">Site Map</a></li>
|
||||
{if $loggedin == "true"}
|
||||
<li class="mmenu"><a title="Search Raw Headers" href="{$smarty.const.WWW_TOP}/searchraw">Raw Search</a></li>
|
||||
<li class="mmenu"><a title="{$site->title} Rss Feeds" href="{$smarty.const.WWW_TOP}/rss">Rss Feeds</a></li>
|
||||
<li class="mmenu"><a title="{$site->title} Api" href="{$smarty.const.WWW_TOP}/apihelp">Api</a></li>
|
||||
{/if}
|
||||
{foreach $usefulcontentlist as $content}
|
||||
<li class="mmenu{if $menu.newwindow == "1"}_new{/if}"><a {if $menu.newwindow == "1"}class="external"
|
||||
target="null"{/if} title="{$content->title}"
|
||||
href="{$smarty.const.WWW_TOP}/content/{$content->id}{$content->url}">{$content->title}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -1,62 +0,0 @@
|
||||
<div class="header">
|
||||
<h2>Anime > <strong>List</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
|
||||
/ Anime List
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{$site->adbrowse}
|
||||
<p><b>Jump to</b>:
|
||||
[ {if $animeletter == '0-9'}<b><u>{/if}<a
|
||||
href="{$smarty.const.WWW_TOP}/anime/0-9">0-9</a>{if $animeletter == '0-9'}</u></b>{/if}
|
||||
{foreach $animerange as $range}
|
||||
{if $range == $animeletter}<b><u>{/if}<a
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$range}">{$range}</a>{if $range == $animeletter}</u></b>{/if}
|
||||
{/foreach}]
|
||||
</p>
|
||||
{$site->adbrowse}
|
||||
{if $animelist|@count > 0}
|
||||
<table style="width:100%;" class="data table table-condensed table-striped table-responsive table-hover" id="browsetable">
|
||||
{foreach $animelist as $aletter => $anime}
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<h2>{$aletter}...</h2>
|
||||
<form name="anidbsearch" class="form pull-right" action="" method="get" style="margin-top:-35px;">
|
||||
<label for="title">Search:</label>
|
||||
<input class="form-control" style="width: 150px;" id="title appendedInputButton" type="text"
|
||||
name="title" value="{$animetitle}" placeholder="Search here"/>
|
||||
<button type="submit" class="btn btn-default">GO</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="35%">Name</th>
|
||||
<th>Type</th>
|
||||
<th width="35%">Categories</th>
|
||||
<th>Rating</th>
|
||||
<th>View</th>
|
||||
</tr>
|
||||
{foreach $anime as $a}
|
||||
<tr>
|
||||
<td><a class="title" title="View anime"
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$a.anidbid}">{$a.title|escape:"htmlall"}</a>{if {$a.startdate} != ''}
|
||||
<br/><span class="label label-info">({$a.startdate|date_format}
|
||||
- {/if}{if $a.enddate != ''}{$a.enddate|date_format}{/if})</span></td>
|
||||
<td>{if {$a.type} != ''}{$a.type|escape:"htmlall"}{/if}</td>
|
||||
<td>{if {$a.categories} != ''}{$a.categories|escape:"htmlall"|replace:'|':', '}{/if}</td>
|
||||
<td>{if {$a.rating} != ''}{$a.rating}{/if}</td>
|
||||
<td><a title="View at AniDB" target="_blank" class="label label-primary"
|
||||
href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$a.anidbid}">AniDB</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<div class="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>Hmm!</strong> No results for this query.
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1,12 +0,0 @@
|
||||
<div id="musicinfo">
|
||||
<img src="{$smarty.const.WWW_TOP}/covers/console/{if $console.cover == 1}{$console.id}{else}no-cover{/if}.jpg"
|
||||
class="cover" alt="{$console.title|ss}"/>
|
||||
<h1>{$console.title} {if $console.year != ""}({$console.year}){/if}</h1>
|
||||
{if $console.genres != ""}<h3>Genre: {$console.genres}</h3>{/if}
|
||||
{if $console.publisher != ""}<h3>Publisher: {$console.publisher}</h3>{/if}
|
||||
{if $console.releasedate != ""}<h3>Released: {$console.releasedate|date_format}</h3>{/if}
|
||||
{if $console.review != ""}
|
||||
<h3>Review: </h3>
|
||||
<p>{$console.review}</p>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -1,35 +0,0 @@
|
||||
<h1>{$page->title}</h1>
|
||||
<h2>For
|
||||
<a href="{$smarty.const.WWW_TOP}/details/{$rel.guid}">{$rel.searchname|escape:'htmlall'}</a>
|
||||
</h2>
|
||||
<table class="data table table-striped table-responsive sortable table-condensed table-hover">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>filename</th>
|
||||
<th></th>
|
||||
<th style="text-align:center;">completion</th>
|
||||
<th style="text-align:center;">size</th>
|
||||
</tr>
|
||||
{foreach $files as $i=>$file name="iteration"}
|
||||
<tr class="{cycle values=",alt"}">
|
||||
<td width="20">{$smarty.foreach.iteration.index+1}</td>
|
||||
<td>{$file.title|escape:'htmlall'}</td>
|
||||
{assign var="icon" value='themes/shared/images/fileicons/'|cat:$file.ext|cat:".png"}
|
||||
{if $file.ext == "" || !is_file("$icon")}
|
||||
{assign var="icon" value='file'}
|
||||
{else}
|
||||
{assign var="icon" value=$file.ext}
|
||||
{/if}
|
||||
{if $file.partstotal != 0}
|
||||
{assign var="completion" value=($file.partsactual/$file.partstotal*100)|number_format:1}
|
||||
{else}
|
||||
{assign var="completion" value=0|number_format:1}
|
||||
{/if}
|
||||
<td><img title=".{$file.ext}" alt="{$file.ext}"
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/fileicons/{$icon}.png"/></td>
|
||||
<td class="less right">{if $completion < 100}<span class="warning">{$completion}
|
||||
%</span>{else}{$completion}%{/if}</td>
|
||||
<td class="less right">{if $file.size < 100000}{$file.size|fsize_format:"KB"}{else}{$file.size|fsize_format:"MB"}{/if}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
@@ -1,206 +0,0 @@
|
||||
<div class="header">
|
||||
<h2>View > <strong>Movie</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
|
||||
/ View Movie
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{if $results|@count > 0}
|
||||
<div class="box-body">
|
||||
{foreach $results as $result}
|
||||
<div id="moviefull" style="min-height:340px;">
|
||||
{if $result.cover == 1}
|
||||
<img class="pull-right" style="margin-right:50px; max-height:278px;"
|
||||
alt="{$result.title|escape:"htmlall"} Logo"
|
||||
src="{$smarty.const.WWW_TOP}/covers/movies/{$result.imdbid}-cover.jpg"/>
|
||||
{else}
|
||||
<img class="pull-right" style="margin-right:50px; max-height:278px;"
|
||||
alt="{$result.title|escape:"htmlall"} Logo"
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/nomoviecover.jpg"/>
|
||||
{/if}
|
||||
<span class="h1" style="display:inline;">{$result.title|escape:"htmlall"} ({$result.year})</span>
|
||||
<a class="btn btn-transparent btn-primary" target="_blank"
|
||||
href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$result.imdbid}/"
|
||||
name="imdb{$result.imdbid}" title="View IMDB page">IMDB</a>
|
||||
<a class="btn btn-transparent btn-primary" target="_blank"
|
||||
href="{$site->dereferrer_link}http://trakt.tv/search/imdb/tt{$result.imdbid}/"
|
||||
name="trakt{$result.imdbid}" title="View Trakt page" rel="trakt">TRAKT</a>
|
||||
<h4>{if $result.genre != ''}{$result.genre|replace:"|":" / "}{/if}</h4>
|
||||
{if $result.tagline != ''}
|
||||
<p class="lead" style="margin-right:300px;">"{$result.tagline|escape:"htmlall"}"</p>
|
||||
{/if}
|
||||
<dl style="margin-right:300px;">
|
||||
{if $result.plot != ''}
|
||||
<dt>Plot</dt>
|
||||
<dd>{$result.plot|escape:"htmlall"}</dd>
|
||||
{/if}
|
||||
{if $result.rating != ''}
|
||||
<dt>Rating</dt>
|
||||
<dd>{$result.rating}
|
||||
/10 {if isset($result.ratingcount) && $result.ratingcount != ''}({$result.ratingcount|number_format} votes)</dd>{/if}
|
||||
{/if}
|
||||
{if $result.director != ''}
|
||||
<dt>Director</dt>
|
||||
<dd>{$result.director|replace:"|":", "}</dd>
|
||||
{/if}
|
||||
{if $result.actors != ''}
|
||||
<dt>Actors</dt>
|
||||
<dd>{$result.actors|replace:"|":", "}</dd>
|
||||
{/if}
|
||||
</dl>
|
||||
</div>
|
||||
<form id="nzb_multi_operations_form" action="get">
|
||||
<div class="well well-small">
|
||||
<div class="nzb_multi_operations">
|
||||
{if isset($section) && $section != ''}View:
|
||||
<a href="{$smarty.const.WWW_TOP}/{$section}?t={$category}">Covers</a>
|
||||
|
|
||||
<b>List</b>
|
||||
<br/>
|
||||
{/if}
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button" class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button" class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Send to my Download Basket"/>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<input type="button" class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($isadmin)}
|
||||
<div class="pull-right">
|
||||
Admin:
|
||||
<div class="btn-group">
|
||||
<input type="button" class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button" class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body pagination2">
|
||||
<table style="width:100%;"
|
||||
class="data table table-condensed table-striped table-responsive table-hover">
|
||||
<tr>
|
||||
<th>
|
||||
<input id="chkSelectAll" type="checkbox" class="square-all"/>
|
||||
<label for="chkSelectAll" style="display:none;">Select All</label>
|
||||
</th>
|
||||
<th>Name</th>
|
||||
<th>Category</th>
|
||||
<th>Posted<</th>
|
||||
<th>Size</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
{assign var="msplits" value=","|explode:$result.grp_release_id}
|
||||
{assign var="mguid" value=","|explode:$result.grp_release_guid}
|
||||
{assign var="mnfo" value=","|explode:$result.grp_release_nfoid}
|
||||
{assign var="mgrp" value=","|explode:$result.grp_release_grpname}
|
||||
{assign var="mname" value="#"|explode:$result.grp_release_name}
|
||||
{assign var="mpostdate" value=","|explode:$result.grp_release_postdate}
|
||||
{assign var="msize" value=","|explode:$result.grp_release_size}
|
||||
{assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts}
|
||||
{assign var="mcomments" value=","|explode:$result.grp_release_comments}
|
||||
{assign var="mgrabs" value=","|explode:$result.grp_release_grabs}
|
||||
{assign var="mpass" value=","|explode:$result.grp_release_password}
|
||||
{assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount}
|
||||
{assign var="mhaspreview" value=","|explode:$result.grp_haspreview}
|
||||
{assign var="mcatname" value=","|explode:$result.grp_release_catname}
|
||||
{foreach $msplits as $m}
|
||||
<tr class="{cycle values=",alt"}" id="guid{$mguid[$m@index]}">
|
||||
<td class="check"><input id="chk{$mguid[$m@index]|substr:0:7}"
|
||||
type="checkbox"
|
||||
class="square"
|
||||
value="{$mguid[$m@index]}"/></td>
|
||||
<td class="item">
|
||||
<a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}">{$mname[$m@index]|escape:"htmlall"|replace:".":" "}</a>
|
||||
<br/>
|
||||
<span class="label label-default">{$mgrabs[$m@index]}
|
||||
grab{if $mgrabs[$m@index] != 1}s{/if}</span>
|
||||
{if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}<span class="label label-default"><a
|
||||
href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}"
|
||||
class="text-muted">NFO</a>
|
||||
</span>{/if}
|
||||
{if $mpass[$m@index] == 2}
|
||||
<i class="fa fa-icon-lock"></i>
|
||||
{elseif $mpass[$m@index] == 1}
|
||||
<i class="fa fa-icon-lock"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="less"><span
|
||||
class="label label-default">{$mcatname[$m@index]}</span>
|
||||
</td>
|
||||
<td class="less mid"
|
||||
title="{$mpostdate[$m@index]}">{$mpostdate[$m@index]|timeago}</td>
|
||||
<td class="less right">{$msize[$m@index]|fsize_format:"MB"}</td>
|
||||
<td class="icons">
|
||||
<a title="Download NZB"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}"><i
|
||||
class="icon icon_nzb fa fa-cloud-download text-muted"></i></a>
|
||||
<a href="#" id="guid{$mguid[$m@index]}" class="icon_cart text-muted"><i class="fa fa-shopping-basket"
|
||||
title="Send to my Download Basket"></i></a>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<a href="#" id="guid{$mguid[$m@index]}" class="icon icon_sab text-muted"
|
||||
title="Send to my Queue"><i
|
||||
class="fa fa-share"></i></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<hr>
|
||||
{if $results|@count > 10}
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
{if isset($section) && $section != ''}View:
|
||||
<a href="{$smarty.const.WWW_TOP}/{$section}?t={$category}">Covers</a>
|
||||
|
|
||||
<b>List</b>
|
||||
<br/>
|
||||
{/if}
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Send to my Download Basket"/>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1,9 +0,0 @@
|
||||
<div id="movieinfo">
|
||||
<object style="width:800px; height:450px;"
|
||||
data="http{if $page->secure_connection}s{/if}://www.youtube.com/v/{$movie.trailer}?modestbranding=0&rel=0&showinfo=0&autohide=1&vq=hd720"
|
||||
type="application/x-shockwave-flash">
|
||||
<param name="src"
|
||||
value="http{if $page->secure_connection}s{/if}://www.youtube.com/v/{$movie.trailer}?modestbranding=0&rel=0&showinfo=0&autohide=1&vq=hd720"/>
|
||||
<param name="allowFullScreen" value="true"/>
|
||||
</object>
|
||||
</div>
|
||||
@@ -1,99 +0,0 @@
|
||||
|
||||
<div class="header">
|
||||
<h2> Series > <strong>List</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li> / TV Series List
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
<b>Jump to</b>:
|
||||
[ {if $seriesletter == '0-9'}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/series/0-9">0-9</a>{if $seriesletter == '0-9'}</u></b>{/if}
|
||||
{foreach $seriesrange as $range}
|
||||
{if $range == $seriesletter}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/series/{$range}">{$range}</a>{if $range == $seriesletter}</u></b>{/if}
|
||||
{/foreach}]
|
||||
</p>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-default" href="{$smarty.const.WWW_TOP}/myshows" title="List my watched shows">My shows</a>
|
||||
<a class="btn btn-default" href="{$smarty.const.WWW_TOP}/myshows/browse" title="browse your shows">Find all my shows</a>
|
||||
</div>
|
||||
{$site->adbrowse}
|
||||
{if $serieslist|@count > 0}
|
||||
<table class="data table table-condensed table-striped table-responsive table-hover icons" id="browsetable">
|
||||
<div class="col-md-12 pull-right">
|
||||
<form class="form pull-right" style="margin-top:-35px;">
|
||||
<form name="showsearch" class="navbar-form" action="" method="get">
|
||||
<div class="input-group">
|
||||
<input class="form-control" style="width: 150px;"
|
||||
id="title appendedInputButton"
|
||||
type="text" name="title" {if isset($serieslist.title)} value="{$serieslist.title}" {else}{/if}"
|
||||
placeholder="Search here"/>
|
||||
<button type="submit" class="btn btn-success">GO</button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
{foreach $serieslist as $sletter => $series}
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h2>{$sletter}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div class="text-left">Name</div></th>
|
||||
<th style="width:80px"><div class="text-center">Network</div></th>
|
||||
<th style="width:80px"><div class="text-center">Country</div></th>
|
||||
<th style="width:120px"><div class="text-center">Option</div></th>
|
||||
<th style="width:180px"><div class="text-center">View</div></th>
|
||||
</tr>
|
||||
{foreach $series as $s}
|
||||
<tr>
|
||||
<td><a class="title" title="View series" href="{$smarty.const.WWW_TOP}/series/{$s.id}">{if !empty($s.title)}{$s.title|escape:"htmlall"}{/if}</a>{if $s.prevdate != ''}<br /><span class="label label-info">Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}</span>{/if}</td>
|
||||
<td>{$s.publisher|escape:"htmlall"}</td>
|
||||
<td>{$s.countries_id|escape:"htmlall"}</td>
|
||||
<td class="mid">
|
||||
{if $s.userseriesid != null}
|
||||
<a href="{$smarty.const.WWW_TOP}/myshows/edit/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows btn btn-sm btn-warning" rel="edit" name="series{$s.id}" title="Edit">Edit</a>
|
||||
<br />
|
||||
<a href="{$smarty.const.WWW_TOP}/myshows/delete/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows btn btn-sm btn-danger" rel="remove" name="series{$s.id}" title="Remove from My Shows">Remove</a>
|
||||
{else}
|
||||
<a href="{$smarty.const.WWW_TOP}/myshows/add/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows btn btn-sm btn-primary" rel="add" name="series{$s.id}" title="Add to My Shows">Add</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="mid">
|
||||
<a title="View series" href="{$smarty.const.WWW_TOP}/series/{$s.id}">Series</a><br />
|
||||
{if $s.id > 0}
|
||||
{if $s.tvdb > 0}
|
||||
<a title="View at TVDB" target="_blank" href="{$site->dereferrer_link}http://thetvdb.com/?tab=series&id={$s.tvdb}">TVDB</a>
|
||||
{/if}
|
||||
{if $s.tvmaze > 0}
|
||||
<a title="View at TVMaze" target="_blank" href="{$site->dereferrer_link}http://tvmaze.com/shows/{$s.tvmaze}">TVMaze</a>
|
||||
{/if}
|
||||
{if $s.trakt > 0}
|
||||
<a title="View at Trakt" target="_blank" href="{$site->dereferrer_link}http://www.trakt.tv/shows/{$s.trakt}">Trakt</a>
|
||||
{/if}
|
||||
{if $s.tvrage > 0}
|
||||
<a title="View at TVRage" target="_blank" href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$s.tvrage}">TVRage</a>
|
||||
{/if}
|
||||
{if $s.tmdb > 0}
|
||||
<a title="View at TheMovieDB" target="_blank" href="{$site->dereferrer_link}https://www.themoviedb.org/tv/{$s.tmdb}">TMDB</a>
|
||||
{/if}
|
||||
<a title="RSS Feed for {$s.title|escape:"htmlall"}" href="{$smarty.const.WWW_TOP}/rss?show={$s.id}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}"><i class="fa fa-rss"></i></a>
|
||||
{/if}
|
||||
<a title="RSS Feed for {$s.title|escape:"htmlall"}" href="{$smarty.const.WWW_TOP}/rss?show={$s.id}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}"><i class="fa fa-rss"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</table>
|
||||
{else}
|
||||
<div class="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>Hmm!</strong> No result on that search term.
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1,200 +0,0 @@
|
||||
<div class="header">
|
||||
<h2>View > <strong>XXX Movie</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
|
||||
/ View XXX
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{if $results|@count > 0}
|
||||
<div class="box-body">
|
||||
{foreach $results as $result}
|
||||
<div id="moviefull" style="min-height:340px;">
|
||||
{if $result.cover == 1}
|
||||
<img class="pull-right" style="margin-right:50px; max-height:278px;"
|
||||
alt="{$result.title|escape:"htmlall"} Logo"
|
||||
src="{$smarty.const.WWW_TOP}/covers/xxx/{$result.id}-cover.jpg"/>
|
||||
{else}
|
||||
<img class="pull-right" style="margin-right:50px; max-height:278px;"
|
||||
alt="{$result.title|escape:"htmlall"} Logo"
|
||||
src="{$smarty.const.WWW_THEMES}/shared/images/nomoviecover.jpg"/>
|
||||
{/if}
|
||||
<span class="h1" style="display:inline;">{$result.title|escape:"htmlall"}</span>
|
||||
<h4>{if $result.genre != ''}{$result.genre|replace:"|":" / "}{/if}</h4>
|
||||
{if $result.tagline != ''}
|
||||
<p class="lead" style="margin-right:300px;">"{$result.tagline|escape:"htmlall"}"</p>
|
||||
{/if}
|
||||
<dl style="margin-right:300px;">
|
||||
{if isset($result.plot) && $result.plot != ''}
|
||||
<dt>Plot</dt>
|
||||
<dd>{$result.plot|escape:"htmlall"}</dd>
|
||||
{/if}
|
||||
{if isset($result.rating) && $result.rating != ''}
|
||||
<dt>Rating</dt>
|
||||
<dd>{$result.rating}
|
||||
/10 {if isset($result.ratingcount) && $result.ratingcount != ''}({$result.ratingcount|number_format} votes)</dd>{/if}
|
||||
{/if}
|
||||
{if isset($result.director) && $result.director != ''}
|
||||
<dt>Director</dt>
|
||||
<dd>{$result.director|replace:"|":", "}</dd>
|
||||
{/if}
|
||||
{if isset($result.actors) && $result.actors != ''}
|
||||
<dt>Actors</dt>
|
||||
<dd>{$result.actors|replace:"|":", "}</dd>
|
||||
{/if}
|
||||
</dl>
|
||||
</div>
|
||||
<form id="nzb_multi_operations_form" action="get">
|
||||
<div class="well well-small">
|
||||
<div class="nzb_multi_operations">
|
||||
{if isset($section) && $section != ''}View:
|
||||
<a href="{$smarty.const.WWW_TOP}/{$section}?t={$category}">Covers</a>
|
||||
|
|
||||
<b>List</b>
|
||||
<br/>
|
||||
{/if}
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button" class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button" class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Send to my Download Basket"/>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<input type="button" class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($isadmin)}
|
||||
<div class="pull-right">
|
||||
Admin:
|
||||
<div class="btn-group">
|
||||
<input type="button" class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button" class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12 col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body pagination2">
|
||||
<table style="width:100%;"
|
||||
class="data table table-condensed table-striped table-responsive table-hover">
|
||||
<tr>
|
||||
<th>
|
||||
<input id="chkSelectAll" type="checkbox" class="square-all"/>
|
||||
<label for="chkSelectAll" style="display:none;">Select All</label>
|
||||
</th>
|
||||
<th>Name</th>
|
||||
<th>Category</th>
|
||||
<th>Posted</th>
|
||||
<th>Size</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
{assign var="msplits" value=","|explode:$result.grp_release_id}
|
||||
{assign var="mguid" value=","|explode:$result.grp_release_guid}
|
||||
{assign var="mnfo" value=","|explode:$result.grp_release_nfoid}
|
||||
{assign var="mgrp" value=","|explode:$result.grp_release_grpname}
|
||||
{assign var="mname" value="#"|explode:$result.grp_release_name}
|
||||
{assign var="mpostdate" value=","|explode:$result.grp_release_postdate}
|
||||
{assign var="msize" value=","|explode:$result.grp_release_size}
|
||||
{assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts}
|
||||
{assign var="mcomments" value=","|explode:$result.grp_release_comments}
|
||||
{assign var="mgrabs" value=","|explode:$result.grp_release_grabs}
|
||||
{assign var="mpass" value=","|explode:$result.grp_release_password}
|
||||
{assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount}
|
||||
{assign var="mhaspreview" value=","|explode:$result.grp_haspreview}
|
||||
{assign var="mcatname" value=","|explode:$result.grp_release_catname}
|
||||
{foreach $msplits as $m}
|
||||
<tr class="{cycle values=",alt"}" id="guid{$mguid[$m@index]}">
|
||||
<td class="check"><input id="chk{$mguid[$m@index]|substr:0:7}"
|
||||
type="checkbox"
|
||||
class="square"
|
||||
value="{$mguid[$m@index]}"/></td>
|
||||
<td class="item">
|
||||
<a title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}">{$mname[$m@index]|escape:"htmlall"|replace:".":" "}</a>
|
||||
<br/>
|
||||
<span class="label label-default">{$mgrabs[$m@index]}
|
||||
grab{if $mgrabs[$m@index] != 1}s{/if}</span>
|
||||
{if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}<span class="label label-default"><a
|
||||
href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}"
|
||||
class="text-muted">NFO</a>
|
||||
</span>{/if}
|
||||
{if $mpass[$m@index] == 2}
|
||||
<i class="fa fa-lock"></i>
|
||||
{elseif $mpass[$m@index] == 1}
|
||||
<i class="fa fa-lock"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="less"><span
|
||||
class="label label-default">{$mcatname[$m@index]}</span>
|
||||
</td>
|
||||
<td class="less mid"
|
||||
title="{$mpostdate[$m@index]}">{$mpostdate[$m@index]|timeago}</td>
|
||||
<td class="less right">{$msize[$m@index]|fsize_format:"MB"}</td>
|
||||
<td class="icons">
|
||||
<a title="Download NZB"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}"><i
|
||||
class="icon icon_nzb fa fa-cloud-download text-muted"></i></a>
|
||||
<a href="#" id="guid{$mguid[$m@index]}" class="icon_cart text-muted"><i class="fa fa-shopping-basket"
|
||||
title="Send to my Download Basket"></i></a>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<a href="#" id="guid{$mguid[$m@index]}" class="icon icon_sab text-muted"
|
||||
title="Send to my Queue"><i
|
||||
class="fa fa-share"></i></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<hr>
|
||||
{if $results|@count > 10}
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
{if isset($section) && $section != ''}View:
|
||||
<a href="{$smarty.const.WWW_TOP}/{$section}?t={$category}">Covers</a>
|
||||
|
|
||||
<b>List</b>
|
||||
<br/>
|
||||
{/if}
|
||||
With Selected:
|
||||
<div class="btn-group">
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_download btn btn-sm btn-success"
|
||||
value="Download NZBs"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_cart btn btn-sm btn-info"
|
||||
value="Send to my Download Basket"/>
|
||||
{if isset($sabintegrated) && $sabintegrated !=""}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_sab btn btn-sm btn-primary"
|
||||
value="Send to Queue"/>
|
||||
{/if}
|
||||
{if isset($isadmin)}
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_edit btn btn-sm btn-warning"
|
||||
value="Edit"/>
|
||||
<input type="button"
|
||||
class="nzb_multi_operations_delete btn btn-sm btn-danger"
|
||||
value="Delete"/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
+6
-4
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Ytake\LaravelSmarty\Smarty;
|
||||
|
||||
function load_plugin_dependency($filename)
|
||||
{
|
||||
global $smarty;
|
||||
@@ -9,13 +11,13 @@ function load_plugin_dependency($filename)
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
case is_string($smarty->plugins_dir) && is_dir($smarty->plugins_dir):
|
||||
$plugins_dir = $smarty->plugins_dir;
|
||||
case is_string($smarty->getPluginsDir()) && is_dir($smarty->getPluginsDir()):
|
||||
$plugins_dir = $smarty->getPluginsDir();
|
||||
require_once $plugins_dir.DIRECTORY_SEPARATOR.$filename;
|
||||
break;
|
||||
case is_array($smarty->plugins_dir):
|
||||
case is_array($smarty->getPluginsDir()):
|
||||
$plugins_dir = '';
|
||||
foreach ($smarty->plugins_dir as $dir) {
|
||||
foreach ($smarty->getPluginsDir() as $dir) {
|
||||
if (is_string($dir) && is_dir($dir)) {
|
||||
$file = $dir.DIRECTORY_SEPARATOR.$filename;
|
||||
if (file_exists($file) && is_readable($file)) {
|
||||
+7
-4
@@ -6,6 +6,9 @@
|
||||
* Does exactly what the normal date_format plugin does - only it uses date() rather than strftime()
|
||||
* It also supports the various php date constants for doing things like rfc822 dates.
|
||||
*/
|
||||
|
||||
use Ytake\LaravelSmarty\Smarty;
|
||||
|
||||
/**
|
||||
* Include the {@link shared.make_timestamp.php} plugin.
|
||||
*/
|
||||
@@ -14,12 +17,12 @@ if (! isset($smarty)) {
|
||||
$smarty = new Smarty();
|
||||
}
|
||||
switch (true) {
|
||||
case is_string($smarty->plugins_dir) && is_dir($smarty->plugins_dir):
|
||||
$plugins_dir = $smarty->plugins_dir;
|
||||
case is_string($smarty->getPluginsDir()) && is_dir($smarty->getPluginsDir()):
|
||||
$plugins_dir = $smarty->getPluginsDir();
|
||||
break;
|
||||
case is_array($smarty->plugins_dir):
|
||||
case is_array($smarty->getPluginsDir()):
|
||||
$plugins_dir = '';
|
||||
foreach ($smarty->plugins_dir as $dir) {
|
||||
foreach ($smarty->getPluginsDir() as $dir) {
|
||||
if (is_string($dir) && is_dir($dir)) {
|
||||
$plugins_dir = $dir;
|
||||
break;
|
||||
Vendored
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user