Activity_Log::add_log_scripts()


Source Source

File: src/core/admin/class-activity-log.php

	public function add_log_scripts() {
		if ( ! automator_filter_has_var( 'post_type' ) && 'uo-recipe' !== automator_filter_input( 'post_type' ) ) {
			return;
		}
		if ( ! automator_filter_has_var( 'page' ) && 'uncanny-automator-recipe-activity' !== automator_filter_input( 'page' ) ) {
			return;
		}
		//Added lity option for the iframe ligthbox
		wp_enqueue_style( 'uap-lity', Utilities::automator_get_vendor_asset( 'lity/css/lity.min.css' ), array(), '2.4.1' );
		wp_enqueue_script( 'uap-lity', Utilities::automator_get_vendor_asset( 'lity/js/lity.min.js' ), array( 'jquery' ), '2.4.1', true );

		// Recipe details css.
		wp_enqueue_style( 'uap-recipe-details', Utilities::automator_get_css( 'admin/recipe-details.css' ), array(), Utilities::automator_get_version() );

	}