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
<div class="tab-row"> | |
<a href="#" data-tab="new-vehicles">New Vehicles</a> | |
<a href="#" data-tab="used-vehicles">Used Vehicles</a> | |
<a href="#" data-tab="new-trailers">New Trailers</a> | |
<a href="#" data-tab="used-trailers">Used Trailers</a> | |
</div> | |
<div class="tab-group"> | |
<a href="#" class="new-vehicles tab-acc" data-tab="new-vehicles">New Vehicles</a> | |
<div class="tab-content new-vehicles">New Vehicle content</div> | |
<a href="#" class="used-vehicles tab-acc" data-tab="used-vehicles">Used Vehicles</a> |
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 | |
$channel_name = 'SubaruGlobalTV';//Be sure to change this to your channel | |
$count = 1;//# of videos you want to show (MAX = 20) | |
$em_width = "100%";//width of embedded player | |
$em_height = 500;//height of embedded player | |
$wrap_class = 'video';//class name for the div wrapper | |
//The output... | |
$sxml = simplexml_load_file("http://gdata.youtube.com/feeds/api/users/$channel_name/uploads?max-results=$count"); | |
foreach ($sxml->entry as $entry) { |
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
/*! | |
* SJB Tabs v 0.1 | |
* 14/05/2015 | |
* @author: Steven Brown | |
*/ | |
(function( $ ) | |
{ | |
$.fn.sjbtabs = function() | |
{ |
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
/*** | |
Convert finance tables into responsive tables | |
Loop thru each table header or in this cast tr:first child | |
Then add the title for the table header to the the td elements as a data attribute | |
Then in css: use :before {content: attr(data-content)} | |
***/ | |
$('table.finance').each(function() | |
{ | |
var nthChild = 1; |
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
/*** | |
Convert finance tables into responsive tables | |
Loop thru each table header or in this cast tr:first child | |
Then add the title for the table header to the the td elements as a data attribute | |
Then in css: use :before {content: attr(data-content)} | |
***/ | |
$('table').each(function() | |
{ |
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
//Get category id | |
$input=$app->input; | |
if ($input->getCmd('option')=='com_content' | |
&& $input->getCmd('view')=='article' ){ | |
$cmodel = JModelLegacy::getInstance('Article', 'ContentModel'); | |
$catid = $cmodel->getItem($app->input->get('id'))->catid; | |
} |
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 | |
/** | |
Works with Woocommerce 2.6.14 | |
You will need to replace the function with: http://woocommerce.wp-a2z.org/oik_api/woocommerce_product_subcategories/ | |
If the below does not work & then apply: | |
usort($product_categories, function($a, $b) | |
{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/** | |
This is used on a site where blog posts are in each english region, to avoid content duplication this method generates | |
the canonical for the main English site language | |
**/ | |
function is_blog_page () { | |
global $post; | |
$posttype = get_post_type($post ); |
OlderNewer