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
Modeset toCropandFocal Pointset toTop-Right
- Used this transform in my template
| # 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 |
| <?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; |
| <?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 | |
| /* | |
| 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() { |