What Are Intense Templates?

Intense templates allow you to override the layout of a shortcode. If you don't like the way the shortcode looks, you can change the html markup to suite your needs. Not all shortcodes are templated but most of the shortcodes with a lot of html are. If you are happy with the default look, there is no need to change the templates.

Where Are They?

Intense templates can exist in three different locations:

  • The plugin - in the templates folder within the plugin's main folder. THESE SHOULD NEVER BE CHANGED
  • The theme - in the intense/templates folder within the theme's main folder.
  • The child theme - in the intense/templates folder within the child theme's main folder.

The plugin will look for templates in the following order: the child theme, the theme, the plugin.

The download for this plugin includes a folder intense/templates which is a copy of the default templates found in the plugin folder.

How Do I Change Them?

To change the templates, copy the folder from the download to your child theme's or theme's main folder. At that point, you can edit the files and the plugin will use your edited version instead of the default version.

Can I Add My Own?

You can add your own template file within the template folders. The file should include a header in the following format:

<?php
/*
Intense Template Name: [YOUR TEMPLATE NAME HERE]
*/

What If I Need to Upgrade My Theme?

When you upgrade your theme, backup the template folder to a safe location. After upgrading, if the template folder was removed, replace the templates from your backup.

Which Templates Are Available By Default?

[intense_custom_post] (including [intense_blog] & [intense_portfolio])

The templates for this shortcode are found under the custom-post directory. Standard post templates are under the post directory within the custom-post directory. Portfolio templates are found under the intense_portfolio directory. If you want to add your own templates for custom post types, create a directory under the custom-post directory with a name that matches the custom post type name. If there aren't templates for a given custom post type, the default post templates will be used.

NOTE: Timeline templates must have timeline in their file name.

templates
|-custom-post
|--intense_portfolio
|-----four_text.php
|-----one.php
|-----one_text_left.php
|-----one_text_right.php
|-----three_text.php
|-----timeline.php
|-----timeline_text_left.php
|-----timeline_text_only.php
|-----timeline_text_right.php
|-----two_text.php
|--post
|-----four.php
|-----four_text.php
|-----one.php
|-----one_text_left.php
|-----one_text_right.php
|-----three.php
|-----three_text.php
|-----timeline.php
|-----timeline_text_left.php
|-----timeline_text_only.php
|-----timeline_text_right.php
|-----two.php
|-----two_text.php
|--some_other_custom_post_type
|-----your_own_template.php

The following data is available to the custom post templates:

$intense_custom_post = Intense_Custom_Post::get_metadata();
--------- 
$intense_custom_post
(
    [plugin_layout_style] => the padding and margin styles defined in the plugin options 
    [cancel_plugin_layout_style] => 0 margin and padding used to cancel out plugin layout style
    [template] => template name
    [categories] => comma separated list of categories
    [post_type] => the post type to show
    [taxonomy] => the taxonomy of the posts
    [posts_per_page] => number of posts to show on a single page
    [image_shadow] => shadow to show on the post featured image
    [hover_effect] => hover effect of the featured image
    [show_all] => show all posts
    [show_filter] => show filter at top of post list
    [show_images] => show featured images 
    [show_missing_image] => show missing image if no featured image has been set
    [timeline_mode] => timeline mode: center, left, right, dual
    [timeline_order] => order to the timeline events: asc, desc
    [timeline_showyear] => show the year separator
    [timeline_readmore] => text for read more link
    [timeline_color] => color of the timeline event
    [filter_easing] => easing when items filtered
    [filter_effects] => easing effect for filtered items
    [hover_effect_color] => color for image hover
    [hover_effect_opacity] => opacity for image hover
    [sticky_mode] => how to show sticky posts: top, inline, ignore
    [post_image_shadow] => defined in meta box
    [hovereffect] => defined in meta box
    [hovereffectcolor] => defined in meta box
    [hovereffectopacity] => defined in meta box 
    [index] => index number of post in loop
    [edit_link] =>  html markup for post edit link
    [post_classes] => extra classes used for filtering and item setup
    [rtl] => rtl mode setting
)

[intense_person]

The templates for this shortcode are found under the person directory.

templates
|-person
|--bottom.php
|--left.php
|--right.php
|--top.php

The following data is available to the person templates:

$intense_person = Intense_Person::get_metadata();
--------- 
$intense_person
(
    [template] => template name
    [imageid] => imageid of the person
    [imageurl] => imageurl of the person
    [imageshadow] => imageshadow for the person image
    [size] => image size
    [name] => name of the person
    [social_target] => the href target for the social icons
    [title] => the title of the person
    [facebook] => facebook link
    [twitter] => twitter link
    [linkedin] => linkedin link
    [dribbble] => dribbble link
    [googleplus] => google+ link
    [content] => content inside the shortcode
    [rtl] => rtl mode setting
)