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 | |
// Example basic template for setting up a post type called 'Project' | |
function cpt_project() { | |
$labels = array( | |
'name' => _x( 'Projects', 'post type general name' ), | |
'singular_name' => _x( 'Project', 'post type singular name' ), | |
'add_new' => _x( 'Add New', 'project' ), | |
'add_new_item' => __( 'Add New Project' ), |
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 | |
// Fix post type placeholder title | |
function wpb_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'broker' == $screen->post_type ) { | |
$title = "Enter the broker's full name"; | |
} |
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
<script> | |
// Find all videos | |
var $allVideos = $("iframe[src^='http://player.vimeo.com'], iframe[src^='http://www.youtube.com'], iframe[src^='https://www.youtube.com']"), | |
// The element that is fluid width, aka the parent element of the video | |
$fluidEl = $("#content-platter"); | |
// Figure out and save aspect ratio for each video | |
$allVideos.each(function() { |