From daad44dc926092a51b9005ca0c2aedc8b5c80654 Mon Sep 17 00:00:00 2001 From: ulaulaman Date: Wed, 27 Oct 2021 11:13:41 +0200 Subject: [PATCH] Spostati i widget delle sidebar personalizzate che verranno presto eliminati dal plugin EduINAF Tools --- eduinafoldcode/php/sidebar_widgets.php | 218 +++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 eduinafoldcode/php/sidebar_widgets.php diff --git a/eduinafoldcode/php/sidebar_widgets.php b/eduinafoldcode/php/sidebar_widgets.php new file mode 100644 index 0000000..b86c0c9 --- /dev/null +++ b/eduinafoldcode/php/sidebar_widgets.php @@ -0,0 +1,218 @@ + __( 'Widget per l\'inserimento della sidebar dei contenuti didattici', 'text_domain' ), ) // Args + ); + } + + /** Front-end del widget */ + public function widget( $args, $instance ) { + extract( $args ); + $shortcode = do_shortcode('[sbdidattica]'); + echo $shortcode; + echo $after_widget; + } + + /** Back-end del widget */ + public function form( $instance ) { + if ( isset( $instance[ 'title' ] ) ) { + $title = $instance[ 'title' ]; + } + else { + $title = __( 'Titolo', 'text_domain' ); + } + ?> +

+ + +

+ __( 'Widget per l\'inserimento della sidebar delle costellazioni', 'text_domain' ), ) // Args + ); + } + + /** Front-end del widget */ + public function widget( $args, $instance ) { + extract( $args ); + $shortcode = do_shortcode('[sbcostellazioni]'); + $menu = do_shortcode('[menucostellazioni]'); + echo $shortcode; + echo $menu; + echo $after_widget; + } + + /** Back-end del widget */ + public function form( $instance ) { + if ( isset( $instance[ 'title' ] ) ) { + $title = $instance[ 'title' ]; + } + else { + $title = __( 'Titolo', 'text_domain' ); + } + ?> +

+ + +

+ __( 'Widget per l\'inserimento della sidebar del corso base di astronomia', 'text_domain' ), ) // Args + ); + } + + /** Front-end del widget */ + public function widget( $args, $instance ) { + extract( $args ); + $shortcode = do_shortcode('[sbcorsobase]'); + echo $shortcode; + echo $after_widget; + } + + /** Back-end del widget */ + public function form( $instance ) { + if ( isset( $instance[ 'title' ] ) ) { + $title = $instance[ 'title' ]; + } + else { + $title = __( 'Titolo', 'text_domain' ); + } + ?> +

+ + +

+ __( 'Widget per l\'inserimento della sidebar delle fotografie astronomiche', 'text_domain' ), ) // Args + ); + } + + /** Front-end del widget */ + public function widget( $args, $instance ) { + extract( $args ); + $shortcode = do_shortcode('[sbastrofoto]'); + echo $shortcode; + echo $after_widget; + } + + /** Back-end del widget */ + public function form( $instance ) { + if ( isset( $instance[ 'title' ] ) ) { + $title = $instance[ 'title' ]; + } + else { + $title = __( 'Titolo', 'text_domain' ); + } + ?> +

+ + +

+