<?php
/*
  $Id$

  CE Phoenix, E-Commerce made Easy
  https://phoenixcart.org

  Copyright (c) 2021 Phoenix Cart

  Released under the GNU General Public License
*/

  class cm_info_title extends abstract_executable_module {

    const CONFIG_KEY_BASE = 'MODULE_CONTENT_INFO_TITLE_';

    public function __construct() {
      parent::__construct(__FILE__);
    }

    function execute() {
      global $page;

      $content_width = MODULE_CONTENT_INFO_TITLE_CONTENT_WIDTH;

      $tpl_data = [ 'group' => $this->group, 'file' => __FILE__ ];
      include 'includes/modules/content/cm_template.php';
    }

    protected function get_parameters() {
      return [
        'MODULE_CONTENT_INFO_TITLE_STATUS' => [
          'title' => 'Enable Title Module',
          'value' => 'True',
          'desc' => 'Should this module be shown?',
          'set_func' => "tep_cfg_select_option(['True', 'False'], ",
        ],
        'MODULE_CONTENT_INFO_TITLE_CONTENT_WIDTH' => [
          'title' => 'Content Width',
          'value' => 'col-12',
          'desc' => 'What width container should the content be shown in?',
        ],
        'MODULE_CONTENT_INFO_TITLE_SORT_ORDER' => [
          'title' => 'Sort Order',
          'value' => '10',
          'desc' => 'Sort order of display. Lowest is displayed first.',
        ],
      ];
    }

  }
