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 | |
/** | |
* ACF compatible genesis page template | |
* | |
* @author StudioPress | |
* @package Altitude | |
* @subpackage Customizations | |
*/ | |
/* |
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 code goes in your theme's functions.php | |
function form_caracteristica( $object_id ) { | |
WCVendors_Pro_Form_helper::select2( array( | |
'post_id' => $object_id, | |
'id' => 'wcv_custom_product_caracteristicas[]', | |
'class' => 'select2', | |
'label' => __('Caracteristicas', 'wcvendors-pro'), | |
'show_option_none' => __('Select a caracteristicas', 'wcvendors-pro'), |
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
/* | |
Enews Plugin | |
-----------------------------------------------------------------*/ | |
.home-cta .enews p { | |
width: 50%; | |
float: left; | |
clear: none; | |
font-size: 28px; | |
margin-right: 4%; |
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: Ejemplos WPValencia meetup | |
* Plugin URI: http://wordpress.org/plugins | |
* Description: Ejemplos para presentacion Introducción a los hooks. | |
* Version: 0.0.1 | |
* Author: Lucy Tomas | |
* Author URI: http://lucytomas.com | |
* License: GPLv2+ | |
*/ |
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
OPTION 1 - Add a warning that you need a stronger password. | |
/* WC Vendors - Add a "Need a strong password" notice to the My Account Page */ | |
add_action( 'woocommerce_register_form', 'wcvendors_notify_password_myaccount' ); | |
function wcvendors_notify_password_myaccount() { | |
echo '<strong>Important</strong> -- This site respects your security. We require all new members to use a strong password. If you can not click the Register button, <strong>you need a stronger password</strong>.<br><br>'; | |
} | |
/* WC Vendors - Add a "Need a strong password" notice to the Checkout Page */ | |
add_action( 'woocommerce_after_checkout_registration_form', 'wcvendors_notify_password_checkout' ); | |
function wcvendors_notify_password_checkout() { |
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
/** | |
* DeepThoughts App v 0.1 | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, |
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
/** | |
* DeepThoughts Template | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, |
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 | |
// Remove the line above when adding to functions.php | |
// Add theme support for new menu | |
// Add New Footer Menu; Keep Primary and Secondary Menus | |
add_theme_support ( 'genesis-menus' , array ( | |
'primary' => __( 'Primary Navigation Menu', 'genesis' ), | |
'secondary' => __( 'Secondary Navigation Menu', 'genesis' ), | |
'footer' => __( 'Footer Navigation Menu', 'genesis' ) | |
) ); |
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 all events from 1 week before the present date to 1 week in the future | |
$events = tribe_get_events( array( | |
'start_date' => date( 'Y-m-d H:i:s', strtotime( '-1 week' ) ), | |
'end_date' => date( 'Y-m-d H:i:s', strtotime( '+1 week' ) ), | |
'eventDisplay' => 'custom', | |
'posts_per_page' => -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
<?php | |
add_action( 'genesis_before_loop', 'trs_testimonial_repeater_page' ); | |
function trs_testimonial_repeater_page () { | |
//My ACF Fields for reference | |
//testimonials - field group | |
//testimonial - sub-field | |
//testimonial_header - sub-field |