This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . $this->html_class_prefix . 'question { | |
border-left-color: ' . $this->options[ $this->name_prefix . 'color' ] . '; | |
} | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . $this->html_class_prefix . 'question { | |
' . ( $this->options[ $this->name_prefix . 'logo' ] != '' ? 'padding-bottom: 50px;' : '' ) . ' | |
} | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' input.' . $this->html_class_prefix . 'question-input { | |
font-size: ' . $this->options[ $this->name_prefix . 'answer_font_size' ] . 'px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . $this->html_class_prefix . 'section.' . | |
$this->html_class_prefix . 'section-start-page .' . $this->html_class_prefix . 'section-header *, | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . $this->html_class_prefix . 'section.' . | |
$this->html_class_prefix . 'section-start-page .' . $this->html_class_prefix . 'section-header .' . $this->html_class_prefix . | |
'section-title-row { | |
color: ' . $this->options[ $this->name_prefix . 'start_page_text_color' ] . '; | |
} | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' input.' . $this->html_class_prefix . 'question-input ~ | |
.' . $this->html_class_prefix . 'input-underline, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$content[] = '#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' { | |
width: ' . $width . '; | |
} | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . | |
$this->html_class_prefix . 'section-header { | |
border-top-color: ' . $this->options[ $this->name_prefix . 'color' ] . '; | |
} | |
#' . $this->html_class_prefix . 'container-' . $this->unique_id_in_class . ' .' . $this->html_class_prefix . 'question { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready(function($) { | |
//image option | |
$('body').on( 'click', '.muna-upl', function(e){ | |
e.preventDefault(); | |
var button = $(this), | |
custom_uploader = wp.media({ | |
title: 'Insert image', | |
library : { | |
// uploadedTo : wp.media.view.settings.post.id, // attach to the current post? | |
type : 'image' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function gym_castomization($wp_customize) { | |
//add panel | |
$wp_customize->add_panel('gym_panel', array( | |
'priority' => 30, | |
'capability' => 'edit_theme_options', | |
'title' => esc_html__('Gym settings', 'gym'), | |
'description' => esc_html__('Page settings', 'gym'), | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_ajax_ajax_form_action', 'ajax_action_callback' ); | |
add_action( 'wp_ajax_nopriv_ajax_form_action', 'ajax_action_callback' ); | |
function ajax_action_callback() { | |
// errors array | |
$errors = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_script( 'gym-subscribe', get_template_directory_uri() . '/assets/js/subscribe-form.js', array('jquery'), THEME_VERSION, true ); | |
wp_localize_script( 'gym-subscribe', 'subscribe_form_object', array( | |
'url' => admin_url( 'admin-ajax.php' ), | |
'nonce' => wp_create_nonce( 'subscribe-form-nonce' ), | |
) ); |