Attempting to create an image transform that crops an image, using the upper right hand portion of the image.
- Set up a image transform with
Mode
set toCrop
andFocal Point
set toTop-Right
- Used this transform in my template
<?php | |
/* | |
Plugin Name: BU Versions - WordPress SEO Support | |
Description: Adds support for post excerpt and WordPress SEO meta fields to alternate versions | |
*/ | |
/** | |
* Required as the WordPress SEO plugin doesn't use post type support, and BU Versions requires it. | |
*/ | |
function wpseo_feature_support() { |
<?php | |
/** | |
* Example programmatic registration of Advanced Custom Fields fields | |
* | |
* @see http://www.advancedcustomfields.com/resources/register-fields-via-php/ | |
*/ | |
function register_custom_acf_fields() { | |
if ( function_exists( 'acf_add_local_field_group' ) ) { |
<?php | |
namespace craft\contentmigrations; | |
use Craft; | |
use craft\base\Field; | |
use craft\elements\Entry; | |
use craft\models\Section; | |
use craft\models\Section_SiteSettings; | |
use craft\db\Migration; |
<?php | |
namespace craft\contentmigrations; | |
use Craft; | |
use craft\base\Field; | |
use craft\elements\Entry; | |
use craft\models\Section; | |
use craft\models\Section_SiteSettings; | |
use craft\db\Migration; |
# Basic expressions | |
1 + 1 | |
# Variables, strings, and tuples | |
knock_knock = "Who's there?" | |
knock_knock | |
knock_knock_joke = ("Interuppting Cow", "Interupting co-", "MOO!!") | |
call, response, punchline = knock_knock_joke | |
knock_knock | |
call |