* Build defaults and instance for this block. $slider_choices = array('none' => 'None') įor( $i = 0 $i alias] = $sliders->title $sliders = $wpdb->get_results( "SELECT id, title, alias FROM $table_name" ) * Get all revsliders and load into an array. Parent::_construct('aq_background_video_block', $block_options) 'block_description' => 'Use to add TextHTML or shortcodes.' This is the PHP for the background-video functionality (as you can see, it uses the "fullheight" class): 'Background Video', $instance = wp_parse_args($instance, $defaults) Įcho do_shortcode(htmlspecialchars_decode($text)) Įcho wpautop(do_shortcode(htmlspecialchars_decode($text)))
Parent::_construct('aq_ebor_text_block', $block_options) 'block_description' => 'Use to add Text,HTML or shortcodes.' This is the PHP for the text functionality : Appreciate any input.I tried to make it work but I don't know much PHP :(.I'm not using the background video functionality so I'm trying to modify that plugin to make output a textbox that resizes to screen size (instead of the video).
It seems to be doing by appending it the "fullheight" CSS class.