This file contains hidden or 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 | |
| /** | |
| * Customize control class to handle color palettes. | |
| * | |
| * @package Hybrid | |
| * @subpackage Classes | |
| * @author Justin Tadlock <justin@justintadlock.com> | |
| * @copyright Copyright (c) 2008 - 2015, Justin Tadlock | |
| * @link http://themehybrid.com/hybrid-core | |
| * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
This file contains hidden or 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( 'customize_register', 'my_customize_register' ); | |
| function my_customize_register( $wp_customize ) { | |
| $wp_customize->add_setting( | |
| 'color_xyz', | |
| array( | |
| 'default' => '', |
This file contains hidden or 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 | |
| class Hybrid_Customize_Control_Select extends WP_Customize_Control { | |
| public $type = 'select-custom'; | |
| public function to_json() { | |
| parent::to_json(); | |
| $this->json['choices'] = $this->choices; |
This file contains hidden or 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 | |
| /** | |
| * The template for displaying home page. | |
| * | |
| * This is the template that displays all pages by default. | |
| * Please note that this is the WordPress construct of pages | |
| * and that other 'pages' on your WordPress site will use a | |
| * different template. | |
| * | |
| * @package SKT Bakery |
This file contains hidden or 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: Theme Hybrid - API | |
| * Plugin URI: http://themehybrid.com | |
| * Description: API for ThemeHybrid.com | |
| * Version: 0.1.0 | |
| * Author: Justin Tadlock | |
| * Author URI: http://justintadlock.com | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * @package ThemeName | |
| * @version 0.1.0 | |
| * @author Your Name <you@youremailprovider.com> | |
| * @copyright Copyright (c) 2013, Your Name | |
| * @link http://yoursite.com/themes/theme-slug | |
| * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * Helper Functions | |
| * | |
| * @package EDDMembers\Functions | |
| * @since 1.0.0 | |
| */ | |
| // Exit if accessed directly | |
| if( !defined( 'ABSPATH' ) ) { |
This file contains hidden or 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 | |
| /** | |
| * Functions for handling font enqueueing, registration, etc. This works with the | |
| * Google Fonts API. | |
| * | |
| * Extending an idea from Jose Castaneda. This is a small script for loading Google fonts | |
| * with an easy method for adding/removing/editing the fonts loaded via child theme. | |
| * | |
| * @link http://blog.josemcastaneda.com/2016/02/29/adding-removing-fonts-from-a-theme/ | |
| */ |
This file contains hidden or 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 | |
| /** | |
| * The radio image customize control extends the WP_Customize_Control class. This class allows | |
| * developers to create a list of image radio inputs. | |
| * | |
| * Note, the `$choices` array is slightly different than normal and should be in the form of | |
| * `array( | |
| * $value => array( 'url' => $image_url, 'label' => $text_label ), | |
| * $value => array( 'url' => $image_url, 'label' => $text_label ), | |
| * )` |
This file contains hidden or 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( 'wp_enqueue_scripts', 'jt_enqueue_scripts' ); | |
| function jt_enqueue_scripts() { | |
| wp_enqueue_script( 'wp-api' ); | |
| wp_enqueue_script( 'wp-util' ); | |
| } | |
| add_action( 'wp_footer', 'jt_print_post_template', 25 ); |
OlderNewer