public function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); //ophalen gegevens $name = siw_get_general_information('naam'); $address = 'Willemstraat 7'; $postal_code = '3511 RJ'; $city = 'Utrecht'; $email = sanitize_email(siw_get_general_information('email')); $phone = siw_get_general_information('telefoon'); echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } ?> <div class="vcard"> <h5 class="fn org"><b><?php echo esc_html($name); ?> </b></h5> <p class="adr"> <span class="street-address"><?php echo esc_html($address); ?> </span><br/> <span class="postal-code"><?php echo esc_html($postal_code); ?> </span> <span class="locality"><?php echo esc_html($city); ?> </span> </p> <p class="tel fixedtel"><i class="kt-icon-phone3"></i> <?php echo esc_html($phone); ?> </p> <p><a href="mailto:<?php echo antispambot($email); ?> " class="email"><i class="kt-icon-envelop"></i> <?php echo antispambot($email); ?> </a></p> </div> <?php echo $after_widget; }
* as little as possible, but it does happen. When this occurs the version of the template file will. * be bumped and the readme will list any important changes. * * @see http://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.5.0 */ if (!defined('ABSPATH')) { exit; } //gegevens aanmelding $application_number = $order->get_order_number(); //ondertekening $signature = siw_get_mail_signature_name('aanmelding_groepsproject'); $iban = siw_get_general_information('iban'); //bepaal onderwerp if ($order->has_status('processing') && 'bacs' != $order->payment_method) { $subject = 'Bevestiging aanmelding #' . $application_number; } if ($order->has_status('processing') && 'bacs' === $order->payment_method) { $subject = 'Bevestiging betaling aanmelding #' . $application_number; } if ($order->has_status('on-hold')) { $subject = 'Bevestiging aanmelding #' . $application_number; } /** * @hooked WC_Emails::email_header() Output the email header **/ do_action('woocommerce_email_header', $email_heading, $email); ?>
function siw_shortcode_general_information($args) { $attributes = shortcode_atts(array('type' => ''), $args); $type = $attributes['type']; $information = siw_get_general_information($type); if ('email' == $type) { $information = antispambot($information); } return $information; }