/* Plugin Name: Opening Hours Description: This Plugin enables you to manage your opening hours in WordPress. It lets you set them up in a settings page and display them in two widgets. Version: 1.2 Author: Jannik Portz (@janizde) Author URI: http://jannikportz.de */ /* Copyright 2013 Jannik Portz (email : webmaster@jannikportz.de) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * Globals */ function op_textdomain() { return apply_filters( 'op_textdomain', 'opening_hours'); } function op_basepath() { return plugin_dir_path ( __FILE__ ); } function op_baseurl() { return plugins_url ( false, __FILE__ ); } /** * Register Textdomain */ load_plugin_textdomain( op_textdomain() , false, apply_filters( 'op_language_path', basename( op_basepath() ) . '/lang/' )); function op__ ( $msg ) { return __( $msg, op_textdomain() ); } function op_e ( $msg ) { echo op__( $msg ); } /** * Require Files */ include op_basepath() . '/lib/classes/OpeningHours.class.php'; include op_basepath() . '/lib/classes/OpeningPeriod.class.php'; include op_basepath() . '/lib/classes/HolidayPeriod.class.php'; include op_basepath() . '/lib/classes/SpecialOpening.class.php'; include op_basepath() . '/lib/functions.php'; include op_basepath() . '/lib/init.php'; include op_basepath() . '/lib/widgets.php'; include op_basepath() . '/lib/template-tags.php'; include op_basepath() . '/lib/shortcodes.php'; /** * Activation */ function op_activate () { /* default Settings */ $default_settings = array( 'time-format' => 'H:i', 'date-format' => 'd.m.Y' ); /* unset default if setting already set */ foreach ( $default_settings as $key => $value ) if ( op_get_setting( $key ) ) unset( $default_settings[ $key ] ); /* apply remaining settings */ $wp_opening_hours = new OpeningHours; $wp_opening_hours->applySettings( $default_settings ); } register_activation_hook( __FILE__, 'op_activate' ); ?>
The information contained in this website is for general information purposes only. The information is provided by Pet Vets 4U and while we endeavour to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose. Any reliance you place on such information is therefore strictly at your own risk.
In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.
Through this website you are able to link to other websites which are not under the control of Pet Vets 4U. We have no control over the nature, content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.
Every effort is made to keep the website up and running smoothly. However, Pet Vets 4U takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control.