This file contains 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
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) { |
This file contains 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 | |
add_action( 'soliloquy_api_after_transition', 'count_slide_transition' ); | |
function count_slide_transition( $data ) { | |
ob_start(); | |
?> | |
count++; | |
if (count == 10) { | |
// Do redirect | |
} |
This file contains 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 | |
add_filter('soliloquy_fc_image', 'replace_caption_with_custom_field', 1, 3); | |
function replace_caption_with_custom_field($prep, $fc, $data) { | |
// Get field by Post ID - ACF (or use get_post_meta) | |
$caption = get_field('custom_field_name', $data->ID); | |
$prep['caption'] = $caption; | |
return $prep; | |
} | |
?> |
This file contains 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 | |
/** | |
* 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 |
This file contains 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
(function() { | |
tinymce.PluginManager.add('custom_tinymce_plugin', function(editor,url) { | |
editor.addButton('custom_tinymce_plugin', { | |
title: 'Custom TinyMCE Plugin', | |
icon: 'bold', | |
onclick: function() { | |
editor.insertContent('Button clicked!'); | |
} | |
}) | |
}); |
This file contains 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 | |
/** | |
* 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 |
This file contains 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 | |
/** | |
* Plugin Name: Soliloquy - Featured Content Addon - Change Link | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Tim Carr | |
* Author URI: http://www.n7studios.co.uk | |
* Description: Change the "Continue Reading" link for Featured Content slides | |
*/ |
This file contains 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
.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 { |
This file contains 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 | |
/** | |
* 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) | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: Soliloquy - Exclude from Search | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Tim Carr | |
* Author URI: http://www.n7studios.co.uk | |
* Description: Exclude Soliloquy Sliders from Search Results | |
*/ |
OlderNewer