Renamed Plugin and changed slug to stklcode-liveticker

Due to naming conflicts with the original wp-liveticker plugin this one
is now renamed to a unique identifier.
This commit is contained in:
2018-11-02 09:01:29 +01:00
parent 9d64f9f415
commit 65eafd2524
16 changed files with 433 additions and 434 deletions

View File

@ -1,26 +1,28 @@
<?php
/**
* WP Liveticker 2: Settings page.
* Liveticker: Settings page.
*
* This file contains the view model for the Plugin settings oage.
*
* @package WPLiveticker2
* @package Liveticker
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wrap">
<div id="icon-options-general" class="icon32"><br></div>
<h2>Liveticker <?php esc_html_e( 'Settings', 'wplt2' ); ?></h2>
<h2>Liveticker <?php esc_html_e( 'Settings', 'stklcode-liveticker' ); ?></h2>
<?php
if ( isset( $_GET['settings-updated'] ) ) { // phpcs:ignore
echo '<div class="updated"><p>' . esc_html__( 'Settings updated successfully.', 'wplt2' ) . '</p></div>';
echo '<div class="updated"><p>' . esc_html__( 'Settings updated successfully.', 'stklcode-liveticker' ) . '</p></div>';
}
?>
<form action="options.php" method="post">
<?php
settings_fields( 'wplt2_settings' );
do_settings_sections( 'wplt2-settings-page' );
settings_fields( 'scliveticker_settings' );
do_settings_sections( 'scliveticker-settings-page' );
submit_button();
?>
</form>

View File

@ -1,13 +1,15 @@
<?php
/**
* WP Liveticker 2: Widget form.
* Liveticker: Widget form.
*
* This file contains the view model for the Widget settings form.
*
* @package WPLiveticker2
* @package Liveticker
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<table>
<tr>
@ -20,7 +22,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_html( $this->get_field_id( 'category' ) ); ?>"><?php esc_html_e( 'Ticker:', 'wplt2' ); ?></label>
<label for="<?php echo esc_html( $this->get_field_id( 'category' ) ); ?>"><?php esc_html_e( 'Ticker:', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<select id="<?php echo esc_attr( $this->get_field_id( 'category' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'category' ) ); ?>">
@ -38,7 +40,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_attr( $this->get_field_id( 'count' ) ); ?>"><?php esc_html_e( 'Number of Ticks:', 'wplt2' ); ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'count' ) ); ?>"><?php esc_html_e( 'Number of Ticks:', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<select id="<?php echo esc_attr( $this->get_field_id( 'count' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'count' ) ); ?>">
@ -49,7 +51,7 @@ defined( 'ABSPATH' ) || exit;
}
?>
>
<?php esc_html_e( 'all', 'wplt2' ); ?>
<?php esc_html_e( 'all', 'stklcode-liveticker' ); ?>
</option>
<?php
for ( $i = 1; $i <= 10; $i ++ ) {
@ -66,7 +68,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>"><?php esc_html_e( 'Link (optional):', 'wplt2' ); ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>"><?php esc_html_e( 'Link (optional):', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'link' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'link' ) ); ?>" type="text" value="<?php echo esc_attr( $link ); ?>" />
@ -74,7 +76,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_attr( $this->get_field_id( 'highlight' ) ); ?>"><?php esc_html_e( 'Highlight new:', 'wplt2' ); ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'highlight' ) ); ?>"><?php esc_html_e( 'Highlight new:', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<?php
@ -88,7 +90,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_attr( $this->get_field_id( 'highlight_time' ) ); ?>"><?php esc_html_e( 'Highlight time [s]:', 'wplt2' ); ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'highlight_time' ) ); ?>"><?php esc_html_e( 'Highlight time [s]:', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<input type="number" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'highlight_time' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'highlight_time' ) ); ?>" type="text" value="<?php echo esc_html( $highlight_time ); ?>" />
@ -96,7 +98,7 @@ defined( 'ABSPATH' ) || exit;
</tr>
<tr>
<td>
<label for="<?php echo esc_attr( $this->get_field_id( 'ajax' ) ); ?>"><?php esc_html_e( 'Auto refresh:', 'wplt2' ); ?></label>
<label for="<?php echo esc_attr( $this->get_field_id( 'ajax' ) ); ?>"><?php esc_html_e( 'Auto refresh:', 'stklcode-liveticker' ); ?></label>
</td>
<td>
<?php
@ -108,7 +110,7 @@ defined( 'ABSPATH' ) || exit;
' . ( ( '1' === $ajax ) ? ' checked' : '' ) . '/>';
?>
<small><?php esc_html_e( '(enables ajax)', 'wplt2' ); ?></small>
<small><?php esc_html_e( '(enables ajax)', 'stklcode-liveticker' ); ?></small>
</td>
</tr>
</table>