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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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( $ ) { | |
'use strict'; | |
/** | |
* All of the code for your public-facing JavaScript source | |
* should reside in this file. | |
* | |
* Note: It has been assumed you will write jQuery code here, so the | |
* $ function reference has been prepared for usage within the scope | |
* of this 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
(function( $ ) { | |
'use strict'; | |
/** | |
* All of the code for your public-facing JavaScript source | |
* should reside in this file. | |
* | |
* Note: It has been assumed you will write jQuery code here, so the | |
* $ function reference has been prepared for usage within the scope | |
* of this 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
var JTrtEditor = function (tableContainer) { | |
// Initialize a var Iam to equal the main container just in case we need it | |
Iam = this; | |
// Grab the container element from the initializing callback | |
this.container = tableContainer; | |
// Grab the textarea box that stores all our table data | |
this.dataBox = jQuery('textarea#jtrt-table-data'); | |
this.handsOnTab; |
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 | |
function jtrt_shortcode_table( $atts ){ | |
global $wpdb; | |
$jtrt_settings = shortcode_atts( array( | |
'id' => '', | |
'filterrows' => '', | |
'filtercols' => '' | |
), $atts ); | |
$table_post_meta = get_post_meta( $jtrt_settings['id'], 'jtrt_data_settings', false ); // get the table meta options |
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
// Hook for adding html to the product edit page under linked products | |
add_action( 'woocommerce_product_options_related', 'add_linked_custom_product_field' ); | |
function add_linked_custom_product_field() { | |
global $product_object; // UGH globals. | |
?> | |
<div class="options_group show_if_variable"> | |
<p class="form-field"> | |
<label for="customLinkedProdField"><?php esc_html_e( 'Custom Linked Field Products', 'woocommerce' ); ?></label> | |
<select class="wc-product-search" multiple="multiple" style="width: 50%;" id="customLinkedProdField" name="customLinkedProdField[]" data-sortable="true" data-placeholder="<?php esc_attr_e( 'Search for a product…', 'woocommerce' ); ?>" data-action="woocommerce_json_search_products" data-exclude="<?php echo intval( $post->ID ); ?>"> | |
<?php |
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 | |
if (!function_exists('hide_youzer_tabs')) { | |
// Filter | |
add_filter('yz_profile_primary_nav', 'hide_youzer_tabs', 10, 2); | |
function hide_youzer_tabs($tabs) { | |
// Make sure we dont remove the tabs in the admin back end pages | |
if (is_admin()) { | |
return $tabs; |
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 | |
if (!function_exists('hide_custom_widgets')) { | |
add_filter( 'yz_get_widgets_content', 'hide_custom_widgets', 10, 2); | |
function hide_custom_widgets($widgets) { | |
// Check if the current user is viewing their own profile | |
if (get_current_user_id() !== bp_displayed_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
<?php | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} | |
if ( ! function_exists( 'jt_add_recaptcha_on_registeration' ) ) { | |
add_action( 'bp_signup_profile_fields', 'jt_add_recaptcha_on_registeration' ); | |
function jt_add_recaptcha_on_registeration() { |
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
{ | |
"Connected stateless component": { | |
"prefix": "cscomp", | |
"body": [ | |
"import React from 'react';", | |
"import PropTypes from 'prop-types';", | |
"import { connect } from 'react-redux';", | |
"", | |
"const MyComponent = () => {", | |
"\treturn ();", |