Skip to content

Instantly share code, notes, and snippets.

Tim Carr n7studios

Block or report user

Report or block n7studios

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@n7studios
n7studios / display_average_rating.php
Created Aug 28, 2015
Comment Rating Field Pro - display_average_rating() example
View display_average_rating.php
<?php
if ( function_exists( 'display_average_rating' ) ) {
$instance = array(
'enabled' => 1,
'displaystyle' => 'grey',
'displayaverage' => 1,
'filtercomments' => 1,
'averageratingtext' => 'Average Rating:',
'displaytotalratings'=> 1,
'displaybreakdown' => 0,
@n7studios
n7studios / frontend.js
Last active Aug 29, 2015
WordPress: Fade in last sidebar widget
View frontend.js
jQuery(document).ready(function($) {
/**
* Configuration
* The container for your sidebar e.g. aside, #sidebar etc.
*/
var sidebarElement = $('div#secondary');
// End config
// Check if the sidebar exists
if ($(sidebarElement).length > 0) {
@n7studios
n7studios / soliloquy-count-slide-transition.php
Last active Aug 29, 2015
Soliloquy: Redirect after nth slide
View soliloquy-count-slide-transition.php
<?php
add_action( 'soliloquy_api_after_transition', 'count_slide_transition' );
function count_slide_transition( $data ) {
ob_start();
?>
count++;
if (count == 10) {
// Do redirect
}
@n7studios
n7studios / envira-append-lightbox.php
Created Sep 22, 2014
Envira - Append to Lightbox
View envira-append-lightbox.php
<?php
/**
* Plugin Name: Envira Hooks
* Plugin URI: http://enviragallery.com
* Description: Testing ground for hooks and filters
* Author: Tim Carr
* Author URI: http://thomasgriffinmedia.com
* Version: 1.0.0
* Text Domain: envira-hooks
* Domain Path: languages
@n7studios
n7studios / soliloquy-featured-content-custom-field.php
Last active Aug 29, 2015
Soliloquy Featured Content: Add ACF Custom Field to Caption
View soliloquy-featured-content-custom-field.php
@n7studios
n7studios / soliloquy-featured-content-continue-reading-link.php
Last active Aug 29, 2015
Soliloquy - Featured Content Addon - Change "Continue Reading" Link
View soliloquy-featured-content-continue-reading-link.php
@n7studios
n7studios / custom.css
Created Nov 4, 2014
Soliloquy - soliloquywp.com homepage style button
View custom.css
.soliloquy-container .soliloquy-caption {
top: 0;
width: 100%;
}
.soliloquy-container .soliloquy-caption .soliloquy-caption-inside {
vertical-align: middle;
text-align: center;
background: none;
}
.soliloquy-container .soliloquy-caption .soliloquy-caption-inside h1 {
@n7studios
n7studios / soliloquy-dynamic-start-slide.php
Created Nov 5, 2014
Soliloquy - Dynamic Start Slide Position
View soliloquy-dynamic-start-slide.php
<?php
/**
* Plugin Name: Soliloquy - Dynamic Start Slide
* Plugin URI: http://soliloquywp.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: If ?sol_slide=X exists in a Permalink that contains a Soliloquy slider, the slider will start on the given index number (X)
*/
@n7studios
n7studios / envira-random-image-order.php
Created Nov 13, 2014
Envira - Random Image Order
View envira-random-image-order.php
<?php
/**
* Plugin Name: Envira Gallery - Random Image Order
* Plugin URI: http://enviragallery.com
* Version: 1.0
* Author: Tim Carr
* Author URI: http://www.n7studios.co.uk
* Description: Display image thumbnails in a random order
*/
@n7studios
n7studios / pager.htm
Created Nov 13, 2014
Soliloquy - External Pager Control
View pager.htm
<!-- data-slider-id must equal your Soliloquy slider's ID -->
<a href="#" data-slider-id="88" data-slider-index="0" class="thumbnail">Display Slide 1</a>
<a href="#" data-slider-id="88" data-slider-index="1" class="thumbnail">Display Slide 2</a>
<a href="#" data-slider-id="88" data-slider-index="2" class="thumbnail">Display Slide 3</a>
You can’t perform that action at this time.