You are here

function layouter_layouter_templates_info in Layouter - WYSIWYG layout templates 8

Implements hook_layouter_templates_info().

File

./layouter.module, line 82
Contains hooks implementations, prerender callback and common functions.

Code

function layouter_layouter_templates_info() {
  $templates = [
    'image_only' => [
      'title' => t('One image only'),
      'fields' => [
        'image' => [
          'type' => 'image',
          'title' => t('One image'),
          'description' => t('Image will be align left.'),
        ],
      ],
      'theme' => 'layouter_image_only',
    ],
    'two_columns' => [
      'title' => t('Two columns of continuous text'),
      'fields' => [
        'text' => [
          'type' => 'text',
          'title' => t('Two column text'),
          'description' => t('Text will be divided on two columns.'),
        ],
      ],
      'theme' => 'layouter_two_columns',
    ],
    'two_columns_img_left_text_right' => [
      'title' => t('Two columns with an image (with an optional description) on the left side and a text on the right'),
      'fields' => [
        'text' => [
          'type' => 'text',
          'description' => t('Text will be will be placed on the right column.'),
        ],
        'image' => [
          'type' => 'image',
        ],
        'caption' => [
          'type' => 'text',
          'title' => t('Caption'),
        ],
      ],
      'theme' => 'layouter_two_columns_img_left_text_right',
    ],
    'two_columns_img_right_text_left' => [
      'title' => t('Two columns with an image (with an optional description) on the right side and a text on the left'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
        'caption' => [
          'type' => 'text',
          'title' => t('Caption'),
        ],
      ],
      'theme' => 'layouter_two_columns_img_right_text_left',
    ],
    'two_columns_text_img_left' => [
      'title' => t('Two columns of continuous text with an image on top left'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
      ],
      'theme' => 'layouter_two_columns_text_img_left',
    ],
    'big_img_text_below' => [
      'title' => t('Big image on top with a text below'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
      ],
      'theme' => 'layouter_big_img_text_below',
    ],
    'big_img_text_above' => [
      'title' => t('Big image at bottom with a text above'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
      ],
      'theme' => 'layouter_big_img_text_above',
    ],
    'big_img_two_column_text_below' => [
      'title' => t('Big image on top with a two columns of text below'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
      ],
      'theme' => 'layouter_big_img_two_column_text_below',
    ],
    'big_img_two_column_text_above' => [
      'title' => t('Big image at bottom with a two columns of text above'),
      'fields' => [
        'text' => [
          'type' => 'text',
        ],
        'image' => [
          'type' => 'image',
        ],
      ],
      'theme' => 'layouter_big_img_two_column_text_above',
    ],
  ];
  return $templates;
}