/*
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' );
?>
Aviso Legal - Actys
Calle de las Infantas, nº 12 Bajo. Burgos, España. | 947 064 657 | info@actys.es
ACTYS (MIGUEL YELA Y PI S.L) en cumplimiento de los dispuesto por la Ley Orgánica 15/1999 de 13 de diciembre de Protección de Datos de Carácter Personal y de la Ley 34/2002 de 11 de julio de servicios de la sociedad de la información y de comercio electrónico, procede a informarle que la información recogida en el presente formulario relativa a los datos de carácter personal que nos facilite a efectos de consulta o inscripción serán recogidos e incorporados a un fichero de datos, del cual es responsable ACTYS y que sus datos han sido facilitados por el propio interesado.El objeto de dicho tratamiento será el de gestión de las consultas y solicitudes recibidas, así como la posible información periódica que el interesado pudiera recibir de nuestra entidad en un futuro. Que el interesado declara tener conocimiento del destino y usos de los datos personales recogidos mediante la lectura de la presente cláusula. El interesado gozará en todo momento de los derechos ARCO de los datos recogidos mediante comunicición a la dirección: ACTYS, C/ de las Infantas nº12 bajo, 09001 Burgos o en info@actys.es