diff --git a/includes/class-wpliveticker2-admin.php b/includes/class-wpliveticker2-admin.php index 6527220..fb8fc4b 100644 --- a/includes/class-wpliveticker2-admin.php +++ b/includes/class-wpliveticker2-admin.php @@ -21,7 +21,7 @@ class WPLiveticker2_Admin extends WPLiveticker2 { * * @return void */ - function dashboard_right_now() { + public static function dashboard_right_now() { $total_files = wp_count_posts( 'wplt2_tick' ); echo ''; @@ -136,24 +136,7 @@ class WPLiveticker2_Admin extends WPLiveticker2 { * @return void */ public static function settings_page() { - ?> -
-

-

Liveticker

-

' . esc_html__( 'Settings updated successfully.', 'wplt2' ) . '

'; -} ?> -
- -

- -

-
- - have_posts() ) : $wp_query->the_post(); + while ( $wp_query->have_posts() ) : + $wp_query->the_post(); ?>
  • ' . esc_html__( 'show all', 'wplt2' ) . '...

    '; } - + // @codingStandardsIgnoreLine echo $after_widget; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - -
    - - - -
    - - - -
    - - - -
    - - - />
    - - - -
    - - - disabled="disabled" /> - -
    - - - +
    +

    +

    Liveticker

    +

    ' . esc_html__( 'Settings updated successfully.', 'wplt2' ) . '

    '; + } + ?> +
    + +

    + +

    +
    + diff --git a/views/widget-form.php b/views/widget-form.php new file mode 100644 index 0000000..f3e140a --- /dev/null +++ b/views/widget-form.php @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + />
    + + + +
    + + + disabled="disabled" /> + +