$pattern_class = "p" . $pattern; } $color = esc_attr(get_theme_mod('call_to_action_color')); if ($color) { $style = 'style="background-color: ' . $color . '"'; } else { $style = ''; } echo '<section class="hp-intro full-width-bg" ' . $style . '>'; if ($pattern_class != '') { echo '<div class="custom-bg ' . $pattern_class . '"></div>'; } ?> <div class="content-container"> <p class="slogan"><?php echo converio_sanitize_text($call_to_action_text); ?> </p> <?php $color_scheme = get_theme_mod('color_scheme') ? get_theme_mod('color_scheme') : 'green'; ?> <p class="cta"><a href="<?php echo esc_url($call_to_action_button_link); ?> " class="btn large <?php echo esc_attr($color_scheme); ?> "><?php echo esc_attr($call_to_action_button_text); ?> </a></p>
function converio_save_project_video_metabox($project_id) { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return; } if (!isset($_POST['project_video_metabox_nonce']) || !wp_verify_nonce($_POST['project_video_metabox_nonce'], 'converio_project_video_metabox_nonce')) { return; } if (!current_user_can('edit_post', $project_id)) { return; } if (isset($_POST['project_video'])) { update_post_meta($project_id, 'project_meta_video', converio_sanitize_text($_POST['project_video'])); } }
function converio_save_display_post_metabox($page_id) { if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return; } if (!isset($_POST['display_metabox_nonce']) || !wp_verify_nonce($_POST['display_metabox_nonce'], 'converio_display_metabox_nonce')) { return; } if (!current_user_can('edit_pages', $page_id)) { return; } if (isset($_POST['single_video_iframe'])) { update_post_meta($page_id, 'single_meta_video_iframe', converio_sanitize_text($_POST['single_video_iframe'])); } if (isset($_POST['single_audio_iframe'])) { update_post_meta($page_id, 'single_meta_audio_iframe', converio_sanitize_text($_POST['single_audio_iframe'])); } if (isset($_POST['single_quote_content'])) { update_post_meta($page_id, 'single_meta_quote_content', strip_tags($_POST['single_quote_content'])); } if (isset($_POST['single_quote_author'])) { update_post_meta($page_id, 'single_meta_quote_author', strip_tags($_POST['single_quote_author'])); } }