<?php /* * * Gravitate Content Block * * Available Variables: * $block = Name of Block Folder * $block_backgrounds = Array for Background Options * $block_background_image = Array for Background Image Option * * This file must return an array(); * */ $block_fields = array($block_backgrounds, $block_background_image, array('key' => 'field_' . $block . '_1', 'label' => 'Gallery Title', 'name' => 'gallery_title', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'instructions' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_' . $block . '_11', 'label' => 'Place Item Titles Below Image', 'name' => 'move_title', 'type' => 'true_false', 'instructions' => 'By default, individual gallery item titles show above their respective images.', 'message' => '', 'default_value' => 0), array('key' => 'field_' . $block . '_2', 'label' => 'Gallery Items', 'name' => 'gallery_items', 'type' => 'repeater', 'column_width' => '', 'instructions' => '', 'sub_fields' => array(array('key' => 'field_' . $block . '_8', 'label' => 'Item Title', 'name' => 'item_title', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'instructions' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_' . $block . '_9', 'label' => 'Image', 'name' => 'item_image', 'instructions' => '', 'type' => 'image', 'column_width' => '', 'save_format' => 'object', 'library' => 'all', 'preview_size' => 'medium'), GRAV_BLOCKS::get_link_fields('link', '', false), array('key' => 'field_' . $block . '_10', 'label' => 'Content', 'name' => 'item_content', 'type' => 'textarea', 'column_width' => '', 'default_value' => '')), 'min' => '', 'max' => '', 'layout' => 'row', 'button_label' => 'Add Gallery Item')); $sub_fields = array_merge(GRAV_BLOCKS::get_additional_fields(), $block_fields); return array('name' => $block, 'label' => 'Media Gallery', 'display' => 'block', 'sub_fields' => $sub_fields, 'min' => '', 'max' => '', 'grav_blocks_settings' => array('icon' => 'gravicon-gallery', 'description' => '<div class="row"> <div class="columns medium-6"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/media-gallery/gallery.svg"> </div> <div class="columns medium-6"> <p>When you want to display more than one image, this flexible block is the way to go. It allows for multiple gallery items each with an ability for a title, image, link and description. Each image will also display in a gallery modal if no link is clicked.</p> <p><strong>Available Fields:</strong></p> <ul> <li>Background</li> <li>Gallery Title</li> <li>Gallery Item <ul> <li>Item Title</li> <li>Image</li> <li>Link <em>( Page, URL, File, Video )</em></li>
<?php /* * * Gravitate Content Block * * Available Variables: * $block = Name of Block Folder * $block_backgrounds = Array for Background Options * $block_background_image = Array for Background Image Option * * This file must return an array(); * */ $block_fields = array($block_backgrounds, $block_background_image, array('key' => 'field_' . $block . '_4', 'label' => 'Image', 'name' => 'image', 'prefix' => '', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'return_format' => 'array', 'preview_size' => 'medium', 'library' => 'all'), array('key' => 'field_' . $block . '_1', 'label' => 'Image Placement', 'name' => 'image_placement', 'prefix' => '', 'type' => 'radio', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'choices' => array('left' => 'Left', 'right' => 'Right'), 'other_choice' => 0, 'save_other_choice' => 0, 'default_value' => '', 'layout' => 'horizontal'), array('key' => 'field_' . $block . '_2', 'label' => 'Image Size', 'name' => 'image_size', 'prefix' => '', 'type' => 'radio', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'choices' => GRAV_BLOCKS::column_width_options(), 'other_choice' => 0, 'save_other_choice' => 0, 'default_value' => '', 'layout' => 'horizontal'), GRAV_BLOCKS::get_link_fields('link', '', false), array('key' => 'field_' . $block . '_3', 'label' => 'Content', 'name' => 'content', 'prefix' => '', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'column_width' => '', 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 0)); $sub_fields = array_merge(GRAV_BLOCKS::get_additional_fields(), $block_fields); return array('name' => $block, 'label' => 'Media with Content', 'display' => 'row', 'sub_fields' => $sub_fields, 'min' => '', 'max' => '', 'grav_blocks_settings' => array('icon' => 'gravicon-content-media', 'description' => '<div class="row"> <div class="columns medium-6"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/media-content/media-content.svg"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/media-content/media-content-alt.svg"> </div> <div class="columns medium-6"> <p>When you want to have an image and then more of a description to that image, this is the block you want. The image has the ability to link to a page, URL, file or video. While the WYSIWYG allows for heading and paragraph text.</p> <p><strong>Available Fields:</strong></p> <ul> <li>Background</li> <li>Image</li> <li>Image Placement <em>( left or right side )</em></li> <li>Image Size <em>( small, medium, half width or large )</em></li> <li>Link Type <em>( none, page, URL, file, video )</em></li> </ul>
<?php /* * * Gravitate Content Block * * Available Variables: * $block = Name of Block Folder * $block_backgrounds = Array for Background Options * $block_background_image = Array for Background Image Option * * This file must return an array(); * */ $block_fields = array($block_backgrounds, $block_background_image, array('key' => 'field_' . $block . '_1', 'label' => 'Title (optional)', 'name' => 'title', 'type' => 'text', 'column_width' => '', 'default_value' => '', 'instructions' => 'This is the title of the section.', 'placeholder' => '', 'prepend' => '', 'append' => '', 'formatting' => 'none', 'maxlength' => ''), array('key' => 'field_' . $block . '_2', 'label' => 'Description (optional)', 'name' => 'description', 'type' => 'textarea', 'instructions' => 'This is the description of the section.', 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => '', 'formatting' => 'html'), array('key' => 'field_' . $block . '_3', 'label' => 'Buttons', 'name' => 'buttons', 'type' => 'repeater', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array('width' => '', 'class' => '', 'id' => ''), 'collapsed' => '', 'min' => '', 'max' => '', 'layout' => 'block', 'button_label' => 'Add Button', 'sub_fields' => array(GRAV_BLOCKS::get_link_fields('button')))); $sub_fields = array_merge(GRAV_BLOCKS::get_additional_fields(), $block_fields); return array('label' => 'Call to Action', 'name' => $block, 'display' => 'row', 'min' => '', 'max' => '', 'sub_fields' => $sub_fields, 'grav_blocks_settings' => array('icon' => 'gravicon-cta', 'description' => '<div class="row"> <div class="columns medium-6"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/calltoaction/cta.svg"> </div> <div class="columns medium-6"> <p>With this block, you can create buttons for any needed conversion. Whether it’s to direct the user to the contact page or download a white-paper, this block will allow multiple buttons, each with the ability to link to a current page on the site, a specified URL, a file to download, or video to play in a modal.</p> <p><strong>Available Fields:</strong></p> <ul> <li>Title</li> <li>Description</li> <li>Background</li> <li>Buttons <em>( Multiple )</em></li> </ul> </div> </div>'));
<?php /* * * Gravitate Content Block * * Available Variables: * $block = Name of Block Folder * $block_backgrounds = Array for Background Options * $block_background_image = Array for Background Image Option * * This file must return an array(); * */ $block_fields = array($block_backgrounds, $block_background_image, array('key' => 'field_' . $block . '_1', 'label' => 'Full Width Image', 'name' => 'full_width_image', 'type' => 'image', 'column_width' => '', 'save_format' => 'object', 'preview_size' => 'medium', 'library' => 'all'), array('key' => 'field_' . $block . '_2', 'label' => 'Add Padding', 'name' => 'padding', 'type' => 'true_false', 'column_width' => '', 'message' => '', 'default_value' => 0), GRAV_BLOCKS::get_link_fields('link', '', false)); $sub_fields = array_merge(GRAV_BLOCKS::get_additional_fields(), $block_fields); return array('label' => 'Media', 'name' => $block, 'display' => 'row', 'min' => '', 'max' => '', 'sub_fields' => $sub_fields, 'grav_blocks_settings' => array('icon' => 'gravicon-media', 'description' => '<div class="row"> <div class="columns medium-6"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/media/media.svg"> <img src="' . plugins_url() . '/gravitate-blocks/grav-blocks/media/media-alt.svg"> </div> <div class="columns medium-6"> <p>This block that allows for a full width image, or an image that is contained within the content width. This image also has the ability to link to a page, URL, file download or even play a video in a modal.</p> <p><strong>Available Fields:</strong></p> <ul> <li>Background<em> ( for a two layered image effect )</em></li> <li>Image</li> <li>Add Padding <em>( constrains image to width of content instead of full screen )</em></li> <li>Link <em>( Page, URL, File, Video )</em></li> </ul> </div>