mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Add buttons for functions in posterwall.
(cherry picked from commit 1f006e5)
This commit is contained in:
@@ -68,7 +68,7 @@ jQuery(function($){
|
||||
if ($(this).hasClass('icon_cart_clicked')) return false;
|
||||
var guid = $(this).parent().parent().attr('id').substring(4);
|
||||
$.post( SERVERROOT + "cart?add=" + guid, function(resp){
|
||||
$(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart');
|
||||
$(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart');
|
||||
cart_notify();
|
||||
});
|
||||
return false;
|
||||
@@ -201,8 +201,8 @@ jQuery(function($){
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
|
||||
$.post(nzburl, function(resp){
|
||||
$(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
$(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
@@ -215,7 +215,7 @@ jQuery(function($){
|
||||
|
||||
$.post(nzburl, function(resp){
|
||||
$(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
@@ -311,7 +311,7 @@ jQuery(function($){
|
||||
// alert(nzburl);
|
||||
$.post( nzburl, function(resp){
|
||||
$sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
}
|
||||
$(this).attr('checked', false);
|
||||
@@ -325,7 +325,7 @@ jQuery(function($){
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
$.post( nzburl, function(resp){
|
||||
$nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
}
|
||||
$(this).attr('checked', false);
|
||||
@@ -394,7 +394,7 @@ jQuery(function($){
|
||||
var guid = $(row).val();
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
$.post( nzburl, function(resp){
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -66,122 +66,14 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="rating-pod" id="guid{$result.guid}">
|
||||
<div class="icons">
|
||||
<div class="icon_nzb text-muted"><a class="divlink" title="Download Nzb"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
<div class="icon_cart text-muted" title="Add to Cart">
|
||||
<i class="fa fa-shopping-cart"></i>
|
||||
</div>
|
||||
<div class="icons divlink col-lg-4">
|
||||
<span class="btn btn-hover btn-default btn-sm icon_nzb text-muted"><a title="Download Nzb"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}">
|
||||
<i class="glyphicon glyphicon-download"></i></a>
|
||||
</span>
|
||||
<span class="btn btn-hover btn-default btn-sm icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
|
||||
{if isset($sabintegrated)}
|
||||
<div class="icon_sab text-muted" title="Send to my Queue">
|
||||
<i class="fa fa-send-o"></i>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<br>
|
||||
<hr>
|
||||
<div class="icons">
|
||||
{if $type == 'Console'}
|
||||
<div class="icon_ign">
|
||||
<a class="divlink" title="Find on IGN"
|
||||
href="{$site->dereferrer_link}http://ign.com/search?q={$result.searchname|escape:"url"}&page=0&count=10&type=object&objectType=game&filter=games&"
|
||||
target="_blank"><i class="fa fa-gamepad"></i> </a>
|
||||
</div>
|
||||
<div class="icon icon_gamespot">
|
||||
<a class="divlink" title="Find on Gamespot"
|
||||
href="{$site->dereferrer_link}http://www.gamespot.com/search/?q={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_predbme">
|
||||
<a class="divlink" title="Find on Predb.me"
|
||||
href="{$site->dereferrer_link}http://predb.me/?cats=games&search={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Movies'}
|
||||
<div class="icon icon_imdb">
|
||||
<a class="divlink" target="_blank" title="View on IMDB"
|
||||
href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$result.imdbid}/"></a>
|
||||
</div>
|
||||
<div class="icon_trakt">
|
||||
<a class="divlink" target="_blank" title="View on Trakt"
|
||||
href="{$site->dereferrer_link}http://trakt.tv/search/imdb/tt{$result.imdbid}/"></a>
|
||||
</div>
|
||||
{if $cpapi != '' && $cpurl != ''}
|
||||
<div class="icon icon_cp">
|
||||
<a class="divlink sendtocouch" target="_blank"
|
||||
title="Send to CouchPotato" href="javascript:;"
|
||||
rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$result.imdbid}&title={$result.searchname|escape:"url"}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
{elseif $type == 'XXX'}
|
||||
<div class="icon icon_ade">
|
||||
<a class="divlink" target="_blank" title="View on AdultDVDEmpire"
|
||||
href="{$site->dereferrer_link}http://www.adultdvdempire.com/dvd/search?q={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
<div class="icon icon_popporn">
|
||||
<a class="divlink" target="_blank" title="View on PopPorn"
|
||||
href="{$site->dereferrer_link}http://dereferer.org/?http://www.popporn.com/results/index.cfm?v=4&g=0&searchtext={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
<div class="icon icon_iafd">
|
||||
<a class="divlink" target="_blank"
|
||||
title="View on Internet Adult Film Database"
|
||||
href="{$site->dereferrer_link}http://www.iafd.com/results.asp?searchtype=title&searchstring={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
{elseif $type == 'PC'}
|
||||
<div class="icon_ign">
|
||||
<a class="divlink" title="Find on IGN"
|
||||
href="{$site->dereferrer_link}http://ign.com/search?q={$result.searchname|escape:"url"}&page=0&count=10&type=object&objectType=game&filter=games&"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_gamespot">
|
||||
<a class="divlink" title="Find on Gamespot"
|
||||
href="{$site->dereferrer_link}http://www.gamespot.com/search/?q={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_predbme">
|
||||
<a class="divlink" title="Find on Predb.me"
|
||||
href="{$site->dereferrer_link}http://predb.me/?cats=games&search={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Audio'}
|
||||
<div class="icon icon_discogs">
|
||||
<a class="divlink" title="Find on Discogs"
|
||||
href="{$site->dereferrer_link}http://www.discogs.com/search/?q={$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_allmusic">
|
||||
<a class="divlink" title="Find on AllMusic"
|
||||
href="{$site->dereferrer_link}http://www.allmusic.com/search/all/{$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_lastfm">
|
||||
<a class="divlink" title="Find on Last.FM"
|
||||
href="{$site->dereferrer_link}http://www.last.fm/search?q={$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}&from=ac/"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Books'}
|
||||
<div class="icon icon_amazon">
|
||||
<a class="divlink" title="View Amazon Page"
|
||||
href="{$site->dereferrer_link}{$result.url}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_goodreads">
|
||||
<a class="divlink" title="Find on Goodreads"
|
||||
href="{$site->dereferrer_link}http://www.goodreads.com/search?query={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.booktitle|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_shelfari">
|
||||
<a class="divlink" title="Find on Shelfari"
|
||||
href="{$site->dereferrer_link}http://www.shelfari.com/search/books?Keywords={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.booktitle|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'TV'}
|
||||
<div class="icon icon_tvrage">
|
||||
<a class="divlink" title="View in TvRage"
|
||||
href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$result.rageid}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<span class="btn btn-hover btn-default btn-sm icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -68,7 +68,7 @@ jQuery(function($){
|
||||
if ($(this).hasClass('icon_cart_clicked')) return false;
|
||||
var guid = $(this).parent().parent().attr('id').substring(4);
|
||||
$.post( SERVERROOT + "cart?add=" + guid, function(resp){
|
||||
$(e.target).addClass('icon_cart_clicked').attr('title','Added to Cart');
|
||||
$(e.target).addClass('icon_cart_clicked').attr('title',' Release added to Cart');
|
||||
cart_notify();
|
||||
});
|
||||
return false;
|
||||
@@ -201,8 +201,8 @@ jQuery(function($){
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
|
||||
$.post(nzburl, function(resp){
|
||||
$(e.target).addClass('icon_sab_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
$(e.target).addClass('icon_sab_clicked').attr('title','Release added to Queue');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
@@ -215,7 +215,7 @@ jQuery(function($){
|
||||
|
||||
$.post(nzburl, function(resp){
|
||||
$(e.target).addClass('icon_nzbget_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
return false;
|
||||
});
|
||||
@@ -311,7 +311,7 @@ jQuery(function($){
|
||||
// alert(nzburl);
|
||||
$.post( nzburl, function(resp){
|
||||
$sabIcon.addClass('icon_sab_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
}
|
||||
$(this).attr('checked', false);
|
||||
@@ -325,7 +325,7 @@ jQuery(function($){
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
$.post( nzburl, function(resp){
|
||||
$nzbgetIcon.addClass('icon_nzbget_clicked').attr('title','Added to Queue');
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
}
|
||||
$(this).attr('checked', false);
|
||||
@@ -394,7 +394,7 @@ jQuery(function($){
|
||||
var guid = $(row).val();
|
||||
var nzburl = SERVERROOT + "sendtoqueue/" + guid;
|
||||
$.post( nzburl, function(resp){
|
||||
notify('NZB added to queue', 'top');
|
||||
notify('Release added to queue', 'topCenter');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -66,122 +66,14 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="rating-pod" id="guid{$result.guid}">
|
||||
<div class="icons">
|
||||
<div class="icon_nzb text-muted"><a class="divlink" title="Download Nzb"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}"><i class="fa fa-download"></i></a>
|
||||
</div>
|
||||
<div class="icon_cart text-muted" title="Add to Cart">
|
||||
<i class="fa fa-shopping-cart"></i>
|
||||
</div>
|
||||
<div class="icons divlink col-lg-4">
|
||||
<span class="btn btn-hover btn-default btn-sm icon_nzb text-muted"><a title="Download Nzb"
|
||||
href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}/{$result.searchname|escape:"htmlall"}">
|
||||
<i class="glyphicon glyphicon-download"></i></a>
|
||||
</span>
|
||||
<span class="btn btn-hover btn-default btn-sm icon_cart text-muted" title="Add to Cart"><i class="glyphicon glyphicon-shopping-cart"></i></span>
|
||||
{if isset($sabintegrated)}
|
||||
<div class="icon_sab text-muted" title="Send to my Queue">
|
||||
<i class="fa fa-send-o"></i>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<br>
|
||||
<hr>
|
||||
<div class="icons">
|
||||
{if $type == 'Console'}
|
||||
<div class="icon_ign">
|
||||
<a class="divlink" title="Find on IGN"
|
||||
href="{$site->dereferrer_link}http://ign.com/search?q={$result.searchname|escape:"url"}&page=0&count=10&type=object&objectType=game&filter=games&"
|
||||
target="_blank"><i class="fa fa-gamepad"></i> </a>
|
||||
</div>
|
||||
<div class="icon icon_gamespot">
|
||||
<a class="divlink" title="Find on Gamespot"
|
||||
href="{$site->dereferrer_link}http://www.gamespot.com/search/?q={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_predbme">
|
||||
<a class="divlink" title="Find on Predb.me"
|
||||
href="{$site->dereferrer_link}http://predb.me/?cats=games&search={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Movies'}
|
||||
<div class="icon icon_imdb">
|
||||
<a class="divlink" target="_blank" title="View on IMDB"
|
||||
href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$result.imdbid}/"></a>
|
||||
</div>
|
||||
<div class="icon_trakt">
|
||||
<a class="divlink" target="_blank" title="View on Trakt"
|
||||
href="{$site->dereferrer_link}http://trakt.tv/search/imdb/tt{$result.imdbid}/"></a>
|
||||
</div>
|
||||
{if $cpapi != '' && $cpurl != ''}
|
||||
<div class="icon icon_cp">
|
||||
<a class="divlink sendtocouch" target="_blank"
|
||||
title="Send to CouchPotato" href="javascript:;"
|
||||
rel="{$cpurl}/api/{$cpapi}/movie.add/?identifier=tt{$result.imdbid}&title={$result.searchname|escape:"url"}"></a>
|
||||
</div>
|
||||
{/if}
|
||||
{elseif $type == 'XXX'}
|
||||
<div class="icon icon_ade">
|
||||
<a class="divlink" target="_blank" title="View on AdultDVDEmpire"
|
||||
href="{$site->dereferrer_link}http://www.adultdvdempire.com/dvd/search?q={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
<div class="icon icon_popporn">
|
||||
<a class="divlink" target="_blank" title="View on PopPorn"
|
||||
href="{$site->dereferrer_link}http://dereferer.org/?http://www.popporn.com/results/index.cfm?v=4&g=0&searchtext={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
<div class="icon icon_iafd">
|
||||
<a class="divlink" target="_blank"
|
||||
title="View on Internet Adult Film Database"
|
||||
href="{$site->dereferrer_link}http://www.iafd.com/results.asp?searchtype=title&searchstring={$result.title|escape:"url"}/"></a>
|
||||
</div>
|
||||
{elseif $type == 'PC'}
|
||||
<div class="icon_ign">
|
||||
<a class="divlink" title="Find on IGN"
|
||||
href="{$site->dereferrer_link}http://ign.com/search?q={$result.searchname|escape:"url"}&page=0&count=10&type=object&objectType=game&filter=games&"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_gamespot">
|
||||
<a class="divlink" title="Find on Gamespot"
|
||||
href="{$site->dereferrer_link}http://www.gamespot.com/search/?q={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_predbme">
|
||||
<a class="divlink" title="Find on Predb.me"
|
||||
href="{$site->dereferrer_link}http://predb.me/?cats=games&search={$result.searchname|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Audio'}
|
||||
<div class="icon icon_discogs">
|
||||
<a class="divlink" title="Find on Discogs"
|
||||
href="{$site->dereferrer_link}http://www.discogs.com/search/?q={$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_allmusic">
|
||||
<a class="divlink" title="Find on AllMusic"
|
||||
href="{$site->dereferrer_link}http://www.allmusic.com/search/all/{$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_lastfm">
|
||||
<a class="divlink" title="Find on Last.FM"
|
||||
href="{$site->dereferrer_link}http://www.last.fm/search?q={$result.searchname|regex_replace:"/ ?(\(?\d\d\d\d\)?)? ?(MP3|FLAC)/i":""|escape:"url"}&from=ac/"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'Books'}
|
||||
<div class="icon icon_amazon">
|
||||
<a class="divlink" title="View Amazon Page"
|
||||
href="{$site->dereferrer_link}{$result.url}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_goodreads">
|
||||
<a class="divlink" title="Find on Goodreads"
|
||||
href="{$site->dereferrer_link}http://www.goodreads.com/search?query={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.booktitle|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<div class="icon icon_shelfari">
|
||||
<a class="divlink" title="Find on Shelfari"
|
||||
href="{$site->dereferrer_link}http://www.shelfari.com/search/books?Keywords={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.booktitle|escape:"url"}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
{elseif $type == 'TV'}
|
||||
<div class="icon icon_tvrage">
|
||||
<a class="divlink" title="View in TvRage"
|
||||
href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$result.rageid}"
|
||||
target="_blank"></a>
|
||||
</div>
|
||||
<span class="btn btn-hover btn-default btn-sm icon_sab text-muted" title="Send to my Queue"><i class="glyphicon glyphicon-send"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,8 +36,11 @@ div.icons {
|
||||
white-space:nowrap;
|
||||
padding-left:0;
|
||||
padding-right:0;
|
||||
width:65px;
|
||||
margin: 0 auto;
|
||||
width:100%;
|
||||
margin: auto;
|
||||
display:inline-block;
|
||||
vertical-align: middle;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
a.divlink {
|
||||
|
||||
Reference in New Issue
Block a user