Moodle: https://moodle.org/ Lando: https://docs.devwithlando.io/ Docker: https://docs.docker.com/
- Run docker on your machine. I use the "Docker for Mac" desktop app.
Moodle: https://moodle.org/ Lando: https://docs.devwithlando.io/ Docker: https://docs.docker.com/
<?php | |
/* | |
Plugin Name: Post Edit Reminder | |
Description: Allows admin to add a customizable post-it-like reminder to Post Edit screen. Requires Advanced Custom Fields | |
Author: Joe Bacal | |
Version: 0.1 | |
*/ | |
function postreminder_text_after_title( $post_type ) { | |
$message = get_field('post_reminder_text', 'option'); |
<?php | |
function smith_add_link_to_post_thumbnail_html($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
$myurl = get_the_post_thumbnail_url($post_id, 'full'); | |
$openlink = '<a href="' . $myurl . '">'; | |
return $openlink . $html . '</a>'; | |
} | |
add_filter('post_thumbnail_html', 'smith_add_link_to_post_thumbnail_html', 99, 5); |
/* | |
if using this plugin: https://github.com/billerickson/display-posts-shortcode | |
and you write this shortcode: | |
[display-posts include_excerpt="true" excerpt_length="32" wrapper="div" wrapper_class="smith-layout" image_size="thumbnail" excerpt_more_link="true" excerpt_more="... Continue Reading"] | |
the below would work. | |
*/ |
<?php | |
function add_cat_desc( $query ){ | |
if (is_category()){ | |
the_archive_description( '<div class="taxonomy-description">', '</div>' ); | |
} | |
} | |
add_action( 'loop_start', 'add_cat_desc' ); |
<?php | |
<?php | |
/* | |
Plugin Name: List Category Links with Pictures | |
Description: Shortcode to load an unstyled list of Taxonomy Term Links, Depends WP Term Images plugin: https://wordpress.org/plugins/wp-term-images/ | |
Author: Joe Bacal, Smith College ETS | |
*/ | |
//shortcode function |
<template> | |
<div class="label-rendering-app" :class="{ 'zoomed': zoomed, 'half': !zoomed }"> | |
<div v-if="!ishome"> | |
<div class="img-wrap wrap" id="theimgwrap"> | |
<img id="theimage" ref="iz" | |
:src="imgsArray[this.currentImgIndex].url" | |
:alt="imgsArray[this.currentImgIndex].alt" | |
@click="zoomToggle" | |
:class="{ zoomed : zoomed, landscape : imgsArray[this.currentImgIndex].landscape }" |
var ncapi = 'https://www.name-coach.com/api/private/v4/'; | |
/* | |
generate and fill in an API token from your NameCoach admin | |
*/ | |
var token = ''; | |
/* | |
You will need to fill in an email address of a person in your NameCoach database. | |
Then, given the participant's email, get their data. |
<div class="cards-container"> | |
<?php while ( have_posts() ): the_post(); ?> | |
<div class="card"> | |
<?php the_post_thumbnail(); ?> | |
<div class="card-content"> | |
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> | |
<?php | |
$tags = get_the_tags(); | |
if ($tags){ | |
foreach ($tags as $tag) { |
<table cellpadding="0" cellspacing="0" width="100%"> | |
<tbody width="100%"> | |
<?php while ( have_posts() ): the_post(); ?> | |
<tr> | |
<td style="width:25%"> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
</td> | |
<td style="width:25%"> | |
<?php |