<?php

/**
 * The main hooks of this plugin.
 *
 * @link       https://wpconfiguratorbuilder.com/
 * @since      1.0.0
 *
 * @package    wcb-configurator-builder
 * @subpackage wcb-configurator-builder/public
 */

/**
 * General
 */

add_action( 'wpcb_before_template', 'wpcb_configurator_woocommerce_notices', 10 );
add_action( 'wpcb_before_template', 'wpcb_configurator_popup_button', 20 );

/**
 * Template gallery
 */

add_action( 'wpcb_template_visuals', 'wpcb_template_gallery_wrapper', 10 );
add_action( 'wpcb_template_visuals', 'wpcb_template_gallery_actions', 20 );
add_action( 'wpcb_template_visuals', 'wpcb_template_gallery_main', 30 );
add_action( 'wpcb_template_visuals', 'wpcb_template_gallery_nav', 40 );
add_action( 'wpcb_template_visuals', 'wpcb_template_gallery_wrapper_close', 40 );

/**
 * Template form
 */

add_action( 'wpcb_template_form_header', 'wpcb_template_form_product_summary', 10 );
add_action( 'wpcb_template_form_header', 'wpcb_template_form_step_list', 20 );

add_action( 'wpcb_template_form_options', 'wpcb_template_form_options_list', 10 );

add_action( 'wpcb_template_form_footer', 'wpcb_template_form_step_buttons', 10 );
add_action( 'wpcb_template_form_footer', 'wpcb_template_form_totals', 20 );
add_action( 'wpcb_template_form_footer', 'wpcb_template_form_actions', 30 );

/**
 * Template summary
 */

add_action( 'wpcb_before_form_summary_display', 'wpcb_template_form_summary_title', 10 );

/**
 * Miscellaneous
 */

add_action( 'wpcb_after_input_field', 'wpcb_output_input_popup_button', 10 );
add_action( 'wpcb_after_input_field_content', 'wpcb_output_input_field_canvas', 10 );

add_action( 'wpcb_model_viewer_contents', 'wpcb_output_modelviewer_contents', 10 );
