<?php
if (!isset($shdfpIncluded)) {
    die('Restricted Access');
}

// refer to instructions.txt for detailed instructions and examples

/**
 * mod jas Jul 3, 2024
 *     add meta description to heading
 *
 * mod jas Apr 16, 2023
 *     feat custom_pages add missing fields
 * mod jas Nov 19, 2018
 *     custom_pages show font_icon for link
 * mod jas June 4, 2018
 *     custom_pages - change is_heading_only to content_type
 */

$fields = array(

    // enter your rule sets here //

    'home_page' => array(
        'use_jumbotron' => array(
            '_none_'       => array(),
            '_any_value_'  => array(),
            '0'            => array(),
            '1'            => array('jumbotron', 'url', 'jumbotron_image'),
        ),
    ),

    'custom_pages' => array(
        // 0|Page
        // 1|Heading
        // 2|Link
        // 3|Module
        // 4|Divider
        // 5|Text Only
        // __separator003__     Flags
        // __separator004__     Page Content
        // __separator002__     images
        // __separator006__     Permalinks
        // __separator001__     SEO
        // __separator005__     shadowLink instructions
        // __separator008__     Banner Image
        // __separator009__     Custom Fields
        'content_type' => array(
            '_none_'   => array(),
            '_any_value_'  => array(),
            '0' => array('__separator001__', '__separator002__', '__separator004__', '__separator008__', 'featured', 'page_title', 'subtitle', 'content', 'side_note', 'images', 'banner_image', 'documents', 'ads', 'embed_video', 'ratio', 'meta_description', 'documents_header', 'font_icon', 'forms', 'javascript'),
            '1' => array('__separator004__', 'page_title', 'subtitle', 'content', 'module_num', 'meta_description', 'shadow_permalink', '__separator005__'),
            '2' => array('shadow_permalink', 'font_icon', '__separator005__'),
            '3' => array('content', 'module_num', 'shadow_permalink', 'font_icon', '__separator005__'),
            '4' => array(),
            '5' => array('font_icon', 'shadow_permalink', '__separator005__'),
        ),
    ),

    'link_categories' => array(
        'category_type' => array(
            '_none_'       => array(),
            '_any_value_'  => array('__separator001__', '__separator002__'),
            '0'            => array('__separator001__'),
            '1'            => array('__separator002__'),
        ),
        '__separator001__' => array(
            '_none_'       => array(),
            '_any_value_'  => array('__relatedRecords001__')
        ),
        '__separator002__' => array(
            '_none_'       => array(),
            '_any_value_'  => array('__relatedRecords002__')
        ),
    ),

    'photo_album' => array(
        'is_heading_only' => array(
            '_none_'       => array('content', 'side_note', 'images', 'documents', 'embed_video', 'meta_description'),
            '_any_value_'  => array(),
            '0'            => array('content', 'side_note', 'images', 'documents', 'embed_video', 'meta_description'),
            '1'            => array(),
        ),
    ),

);

$devmode = false;
