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 do_action( 'it_exchange_content_registration_before_company_element' ); ?> | |
<div class="it-exchange-registration-company"> | |
<?php it_exchange( 'dichiara_registration', 'company' ); ?> | |
</div> | |
<?php do_action( 'it_exchange_content_registration_after_company_element' ); ?> |
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 miniloops_shortcoder( $input ) { | |
$input = wp_filter_post_kses( $input ); | |
//give our shortcodes the correct prefix | |
$input = str_replace( '[', '[ml_', $input ); | |
$input = str_replace( '[/', '[/ml_', $input ); | |
//make sure we haven't doubled-up |
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 | |
/** | |
* Run the wp query to fetch the posts for listing on the edit posts page | |
* | |
* @since 2.5.0 | |
* | |
* @param array|bool $q Array of query variables to use to build the query or false to use $_GET superglobal. | |
* @return array | |
*/ |
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 | |
/** | |
* My Virtual Merchant Submission Button | |
* Description: This button will allow users to send customers and clients to the My Virtual Merchant payment form | |
* Version: 1.0.0 | |
* Author: Brian DiChiara | |
* Author URI: http://www.briandichiara.com | |
*/ | |
$post_url = 'https://www.myvirtualmerchant.com/VirtualMerchant/process.do'; |
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 get_header(); ?> | |
<div id="content" class="clearfix row"> | |
<div id="main" class="col-sm-8 clearfix" role="main"> | |
<div class="page-header"> | |
<?php if (is_category()) { ?> | |
<h1 class="archive_title h2"> | |
<span><?php _e("Posts Categorized:", "wpbootstrap"); ?></span> <?php single_cat_title(); ?> |
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
/** | |
* Fade Labels | |
* | |
* @version 1.0.0 | |
* @author Brian DiChiara | |
* @website http://briandichiara.com | |
*/ | |
(function ( $ ) { | |
$.fn.fadeLabel = function( 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
<?php | |
// ... | |
// @ line 137 | |
# see https://github.com/tybruffy/ACF-Reusable-Field-Group/blob/master/acf-reusable_field_group-v5.php#L137 | |
function render_field( $field ) { | |
global $post; | |
$current_id = $post->ID; ### $post is not defined/availabe on a Settings page |
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
// Load plugins | |
var gulp = require('gulp'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cache = require('gulp-cache'), | |
compass = require('gulp-compass'), | |
concat = require('gulp-concat'), | |
imagemin = require('gulp-imagemin'), | |
jshint = require('gulp-jshint'), | |
imagemin = require('gulp-imagemin'), | |
livereload = require('gulp-livereload'), |
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_filter( 'the_posts', 'mytheme_inject_sticky_posts', 10, 2 ); | |
function mytheme_inject_sticky_posts( $posts, $q ){ | |
// Don't do this in the admin or on page 1, WP already does it for page 1 | |
if( is_admin() || $q->get( 'paged' ) <= 1 ) | |
return $posts; | |
// get the sticky posts array |