/**
     * Print the custom colors, as defined in the admin.
     *
     * @since 0.1.0
     *
     * @return void
     */
    public function custom_styles()
    {
        ?>

		<style type="text/css">

			#av-overlay-wrap {
				background: #<?php 
        echo esc_attr(av_get_background_color());
        ?>
;
			}

			#av-overlay {
				background: #<?php 
        echo esc_attr(av_get_overlay_color());
        ?>
;
			}

		</style>

		<?php 
        /**
         * Trigger action after setting the custom color styles.
         */
        do_action('av_custom_styles');
    }
Beispiel #2
0
/**
 * Prints the overlay color settings field.
 *
 * @since 0.1
 */
function av_settings_callback_overlay_color_field()
{
    ?>
	
	<fieldset>
		
		<legend class="screen-reader-text">
			<span><?php 
    esc_html_e('Overlay Color', 'age_verify');
    ?>
</span>
		</legend>
		
		<?php 
    $default_color = ' data-default-color="#fff"';
    ?>
			
		<input type="text" name="_av_overlay_color" id="_av_overlay_color" value="#<?php 
    echo esc_attr(av_get_overlay_color());
    ?>
"<?php 
    echo $default_color;
    ?>
 />
		
	</fieldset>
	
<?php 
}