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($) { | |
// 1. Youtube Shortcode | |
tinymce.create('tinymce.plugins.youtube_plugin', { | |
init : function(ed, url) { | |
// Register command for when button is clicked | |
ed.addCommand('youtube_insert_shortcode', function() { | |
selected = tinyMCE.activeEditor.selection.getContent(); | |
if( selected ){ |
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
<!-- place this snipet in HTMLhead.html, replace yourdomain with the url of your login page --> | |
<script> | |
$(document).ready(function(){ | |
if( | |
($('#LoginOrLogoutText > div > a:contains("Sign in")').length > 0) && (window.location.href.indexOf("login") === -1) | |
){ | |
window.location.assign("//www.yourdomain.com/login.php"); | |
} | |
}); | |
</script> |
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 | |
// check if the flexible content field has rows of data | |
if( have_rows('flexible_content') ): | |
// loop through the rows of data | |
while ( have_rows('flexible_content') ) : the_row(); | |
//check current row layout | |
if( get_row_layout() == 'pricing' ): |
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
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
.block.sidebar { | |
display: table; | |
} | |
.block .sidebar { | |
background-color: #e3e6eb; | |
display: table-cell; | |
vertical-align: middle; | |
} |
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="ghostDropBlock"> | |
<span>Drop here to target this display option with this audience segment.</span> | |
</div> |
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( 'woocommerce_thankyou', 'google_trusted_stores_confirmation' ); | |
function google_trusted_stores_confirmation( $order_id ) { | |
// Lets grab the order | |
$order = wc_get_order( $order_id ); | |
$customer = get_current_user_id(); |
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
<HierarchicalDataTemplate x:Key=" | |
CheckBoxTreeViewItemTemplate" | |
ItemsSource="{Binding Items, Mode=OneWay}" > | |
<StackPanel Orientation="Horizontal"> | |
<Image Margin="2,0" Source="{Binding ImageSource, Mode=TwoWay}" /> | |
<CheckBox Focusable="False" IsChecked="{Binding IsChecked}" VerticalAlignment="Center"/> | |
<ContentPresenter Content="{Binding Text, Mode=TwoWay}" Margin="2,0" /> | |
</StackPanel> | |
</HierarchicalDataTemplate> |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Controls; | |
public class CheckedTreeViewItem : ItemsControl, INotifyPropertyChanged | |
{ | |
bool? _isChecked = false; |
OlderNewer