This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tags = CHtml::listData($data->productTags,'tag.tag','tag.tag'); | |
if (!function_exists('in_arrayi')) { | |
function in_arrayi($needle, $haystack) { | |
return in_array(strtolower($needle), array_map('strtolower', $haystack)); | |
}} | |
?> | |
<?= (in_arrayi('sale',$tags)) ? '<div class="sale-tag btn-primary"><span>SALE</span></div>' : '' ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$strC = Yii::app()->getRequest()->getQuery('cat'); | |
$objCategory = Category::LoadByRequestUrl($strC); | |
?> | |
<?= ($objCategory->Parent) ? '<h2>'.$objCategory->Parent->label.'</h2>' : '' ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$criteria = new CDbCriteria(); | |
$criteria->alias = 'Product'; | |
$criteria->join='LEFT JOIN '.ProductTags::model()->tableName().' as ProductTags ON ProductTags.product_id=Product.id LEFT JOIN '.Tags::model()->tableName().' as Tags ON ProductTags.tag_id=Tags.id'; | |
if (_xls_get_conf('INVENTORY_OUT_ALLOW_ADD') == Product::InventoryMakeDisappear) | |
$criteria->addCondition('(inventory_avail>0 OR inventoried=0)'); | |
if (!_xls_get_conf('CHILD_SEARCH') || empty($strQ)) | |
$criteria->addCondition('Product.parent IS NULL'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Search controller | |
* | |
* Used for both general browsing from categories, as well as specific searches | |
* | |
* | |
*/ | |
class SearchController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Material+Icons);@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,700);@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700);@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700);#morecast:before,#toggle_add_similar_movies:before,#toggleaddtags:before{font-family:'Roboto'}.discuss:before,.panel__heading__toggler:before,.toggle:before{-webkit-transition:color .1s ease-out;-o-transition:color .1s ease-out;transition:color .1s ease-out}#content:after,.clearfix:after,.forum-post__buttons:after,.forum-post__heading:after,.huge-movie-list__movie:after,.qtip-content:after,.thin:after,.user-recommendation:after{content:"";display:block;clear:both}#nav_bonus a,#userinfo_minor,#userinfo_username,.bvalidator_errmsg,.page__title~.linkbox:first-of-type,.qtip,.simplemodal-data,.user-info-bar__drop-down-menu,body#bprate .linkbox,body#requests .page__title~.linkbox:first-of-type:not(:la |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xu | |
# Based on the official tar installer: https://raw.githubusercontent.com/filebot/plugins/master/installer/tar.sh | |
PACKAGE_VERSION=4.8.5 | |
PACKAGE_SHA256=$(curl -fsSL https://raw.githubusercontent.com/filebot/website/master/get.filebot.net/filebot/FileBot_$PACKAGE_VERSION/FileBot_$PACKAGE_VERSION-portable.tar.xz.sha256) | |
PACKAGE_FILE=FileBot_$PACKAGE_VERSION-portable.tar.xz | |
PACKAGE_URL=https://get.filebot.net/filebot/FileBot_$PACKAGE_VERSION/$PACKAGE_FILE | |
# Download latest portable package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Perl script to add rTorrent fast resume data to torrent files. | |
# Original URL: https://github.com/lethanhviet/autoExport/blob/master/rtorrent_fast_resume.pl | |
# | |
# Usage: | |
# rtorrent_fast_resume.pl [base-directory] < plain.torrent > with_fast_resume.torrent | |
use warnings; | |
use strict; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/deluge-1.3.15/bin/python2.7 | |
# Based on: https://github.com/lethanhviet/autoExport | |
####################################################### | |
# Import | |
####################################################### | |
import os | |
import subprocess | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PYTHONPATH=$HOME/.local/lib/python2.7/site-packages:$PYTHONPATH | |
export PERL5LIB=$HOME/perl5/lib/perl5:$PERL5LIB | |
/opt/deluge-1.3.15/bin/python2.7 $HOME/scripts/autoExport.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xu | |
# Based on the official tar installer: https://raw.githubusercontent.com/filebot/plugins/master/installer/tar.sh | |
PACKAGE_VERSION=4.9.0 | |
PACKAGE_SHA256=$(curl -fsSL https://get.filebot.net/filebot/BETA/FileBot_$PACKAGE_VERSION-portable.zip.sha256) | |
PACKAGE_FILE=FileBot_$PACKAGE_VERSION-portable.tar.xz | |
PACKAGE_URL=https://get.filebot.net/filebot/BETA/$PACKAGE_FILE | |
# Download latest portable package |
OlderNewer