Skip to content

Commit 67c7c21

Browse files
Andrei EugenAndrei Eugen
authored andcommitted
small fixes
1 parent 12df9ae commit 67c7c21

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ Made with love by Pixelgrade!
2323

2424
== Changelog ==
2525

26-
= 0.0.1 =
26+
= 1.0.0 =
2727
* Plugin init

includes/Control/class-Pix_Open_Customize_Overview_Control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct( $wp_customize, $setting_id, $args = array() ) {
5050
if ($opening_hours_option) {
5151
echo do_shortcode( '[opening-hours-overview ' . 'overview_option=' . base64_encode($opening_hours_option) . ']' );
5252
} else {
53-
echo __('You have not setup a schedule yet.');
53+
echo __('You have not setup a schedule yet.', 'open_hours');
5454
}
5555

5656
?>

includes/Shortcode/class-Pix_Open_Shortcodes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ function add_open_overview_shortcodes( $atts, $content = null ) {
6767
</table>
6868
<?php
6969
} else {
70-
?>
71-
<p>You haven't setup a schedule yet.</p>
72-
<?php
70+
?><p><?php echo __('You haven\'t setup a schedule yet.', 'open_hours')?></p><?php
7371
}
7472

7573
return ob_get_clean();

includes/Widget/open-overview-widget.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ protected function widget_content( $args, $instance ) {
180180
</table>
181181
<?php
182182
} else {
183-
?>
184-
<p>You haven't setup a schedule yet.</p>
185-
<?php
183+
?><p><?php echo __('You haven\'t setup a schedule yet.', 'open_hours')?></p><?php
186184
}
187185
echo $args['after_widget'];
188186
}

includes/class-open.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public function define_hooks() {
6565
* Enqueue control scripts
6666
*/
6767
public function enqueue_customizer_control_scripts() {
68-
if ($this->is_customizer_control()) {
68+
if ( $this->is_customizer_control() ) {
6969
wp_enqueue_script( 'open-customizer-control', plugin_dir_url( __FILE__ ) . 'js/open-customizer-control.js', array(
70-
'jquery',
71-
'wp-util'
72-
), $this->plugin_version, true );
70+
'jquery',
71+
'wp-util'
72+
), $this->plugin_version, true );
7373
wp_enqueue_script( 'hour-parser', plugin_dir_url( __FILE__ ) . 'js/HoursParser.js' );
7474
}
7575

0 commit comments

Comments
 (0)