<?php
/**
 * Register sidebar widget areas for the theme.
 *
 * @see https://codex.wordpress.org/Widgetizing_Themes
 *
 * This file is included by the top-level functions.php
 * Global variables are defined there.
 *
 * @since 1.0.0
 * @package MarComm-AUX
 */
if (!defined("ABSPATH")) {
  exit();
} // Exit if accessed directly

/**
 * Register sidebars and widgetized areas.
 *
 * @see https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
 * @since 1.0.0
 */
function aux_widgets_init() {
  /*
    Register three footer columns. AUX supports up to four but the first is always
    the site logo lockup.

    Not using before/after widget or title. The AUX footer blocks add a
    <div class="footer__column and additional classes specific for each block.

    @see
    /footer.php - output's content from footer widget areas
    /inc/functions-gutenberg.php - control which blocks are available in widget areas
  */
  register_sidebar([
    "name" => esc_html__("Footer Column One", "marcomm-aux"),
    "id" => "footer_content_1",
    "description" => esc_html__("Add your physical address.", "marcomm-aux"),
    "before_widget" => '',
    "after_widget" => '',
    "before_title" => '',
    "after_title" => ''
  ]);

  register_sidebar([
    "name" => esc_html__("Footer Content Column Two", "marcomm-aux"),
    "id" => "footer_content_2",
    "description" => esc_html__("Add a few links, your social media handles or a short block of text.", "marcomm-aux"),
    "before_widget" => '',
    "after_widget" => '',
    "before_title" => '',
    "after_title" => ''
  ]);

  register_sidebar([
    "name" => esc_html__("Footer Content Column Three", "marcomm-aux"),
    "id" => "footer_content_3",
    "description" => esc_html__("Add a few links, your social media handles or a short block of text.", "marcomm-aux"),
    "before_widget" => '',
    "after_widget" => '',
    "before_title" => '',
    "after_title" => ''
  ]);
}
add_action("widgets_init", "aux_widgets_init");
