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 | |
$args = array( | |
'post_type' => 'courses', | |
'perm' => 'readable', | |
'order' => 'DESC', | |
'orderby' => 'title', | |
'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
function add_image_to_content() { | |
global $post; | |
$dg_post_id = $post->ID; | |
if ( function_exists( 'soliloquy_dynamic' ) ) | |
soliloquy_dynamic( | |
array( 'id' => "$dg_post_id" | |
) ); | |
} | |
// The following are just action hooks and could be removed, if you're not hooking into anything specifically. |
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 | |
// ** MySQL settings - You can get this info from your web host ** // | |
/** DB switch statement */ | |
$wufunc_getServName = $_SERVER['SERVER_NAME']; | |
switch ($i) { | |
case 'localdev.siteurl.com': | |
/** JH local */ |
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 add_image_to_content() { | |
global $post; | |
$imageArray = get_field('project_cover_image'); // Array returned by Advanced Custom Fields | |
$imageID = $imageArray['id']; // Grab, from the array, the 'alt' | |
// echo "$imageID"; | |
$dg_post_id = $post->ID; | |
if ( function_exists( 'soliloquy_dynamic' ) ) soliloquy_dynamic( array( 'id' => "$dg_post_id", 'exclude' => "$imageID" ) ); |
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( 'soliloquy_output_slide', 'tgm_soliloquy_custom_html', 10, 4 ); | |
function tgm_soliloquy_custom_html( $html, $id, $image, $data ) { | |
// If the ID doesn't match the one we want to modify, return the default HTML output. Change 324 to your slider ID. | |
$slider_id = $data['id']; | |
ob_start(); ?> | |
<span class="social-m"> | |
<?php $summary = get_field('short_description');?> |
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
// Browser Sync | |
gulp.task('browser-sync', function() { | |
browserSync.init({ | |
files: ["./**/*.php", "./**./*.html"], | |
proxy: "my-project.dev" | |
}); | |
}); |
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'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
imagemin = require('gulp-imagemin'), |
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
if ( current_user_can('moderate_comments') ) { | |
echo 'The current user can moderate comments'; | |
} else { | |
echo 'Well, not everyone has nice hair like Alex!' | |
} |
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
{ | |
"name": "DigiSavvy Project Boilerplate", | |
"description": "Plugins and Theme for Use with DigiSavvy Projects", | |
"repositories":[ | |
{ | |
"type":"composer", | |
"url":"http://wpackagist.org" | |
}, | |
{ | |
"type": "package", |
OlderNewer