Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Eugen authored and Andrei Eugen committed Feb 13, 2017
1 parent 12df9ae commit 67c7c21
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Made with love by Pixelgrade!

== Changelog ==

= 0.0.1 =
= 1.0.0 =
* Plugin init
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct( $wp_customize, $setting_id, $args = array() ) {
if ($opening_hours_option) {
echo do_shortcode( '[opening-hours-overview ' . 'overview_option=' . base64_encode($opening_hours_option) . ']' );
} else {
echo __('You have not setup a schedule yet.');
echo __('You have not setup a schedule yet.', 'open_hours');
}

?>
Expand Down
4 changes: 1 addition & 3 deletions includes/Shortcode/class-Pix_Open_Shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ function add_open_overview_shortcodes( $atts, $content = null ) {
</table>
<?php
} else {
?>
<p>You haven't setup a schedule yet.</p>
<?php
?><p><?php echo __('You haven\'t setup a schedule yet.', 'open_hours')?></p><?php
}

return ob_get_clean();
Expand Down
4 changes: 1 addition & 3 deletions includes/Widget/open-overview-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ protected function widget_content( $args, $instance ) {
</table>
<?php
} else {
?>
<p>You haven't setup a schedule yet.</p>
<?php
?><p><?php echo __('You haven\'t setup a schedule yet.', 'open_hours')?></p><?php
}
echo $args['after_widget'];
}
Expand Down
8 changes: 4 additions & 4 deletions includes/class-open.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public function define_hooks() {
* Enqueue control scripts
*/
public function enqueue_customizer_control_scripts() {
if ($this->is_customizer_control()) {
if ( $this->is_customizer_control() ) {
wp_enqueue_script( 'open-customizer-control', plugin_dir_url( __FILE__ ) . 'js/open-customizer-control.js', array(
'jquery',
'wp-util'
), $this->plugin_version, true );
'jquery',
'wp-util'
), $this->plugin_version, true );
wp_enqueue_script( 'hour-parser', plugin_dir_url( __FILE__ ) . 'js/HoursParser.js' );
}

Expand Down

0 comments on commit 67c7c21

Please sign in to comment.