prefix.'all4u_cf_'; define('ALL4U_CF_TABLE_PREFIX', $pro_table_prefix); /*----------------------------------------installation--------------------------------------------------------------*/ function all4u_cf_install() { include("includes/install.php"); } register_activation_hook(__FILE__,'all4u_cf_install'); function all4u_cf_uninstall() { include("includes/uninstall.php"); } register_deactivation_hook(__FILE__ , 'all4u_cf_uninstall' ); /*---------------------------------------- front end or backend ----------------------------------------------------*/ if( is_admin() ) { include("admin/functions.php"); } else { include("functions.php"); } ?>pasreclame.nl voor de opties. Author: Iain maccoll Version: 1.2.41 Author URI: http://www.pasreclame.nl */ /*----------------------------------------globals-------------------------------------------------------------------*/ $siteurl = get_option('siteurl'); $version = '1.2.41'; $version = mt_rand(); define('ALL4U_RENTAL_VERSION', $version); define('ALL4U_RENTAL_FOLDER', dirname(plugin_basename(__FILE__))); define('ALL4U_RENTAL_URL', $siteurl.'/wp-content/plugins/' . ALL4U_RENTAL_FOLDER); define('ALL4U_RENTAL_ROOT', ABSPATH . 'wp-content/plugins/' . ALL4U_RENTAL_FOLDER); // this is the table prefix global $wpdb; $db_table_prefix = $wpdb->prefix.'all4u_rental_'; define('ALL4U_RENTAL_DB_TABLE_PREFIX', $db_table_prefix); /*----------------------------------------installation--------------------------------------------------------------*/ function all4u_rental_install() { include("installation/install.php"); } register_activation_hook(__FILE__, 'all4u_rental_install'); function all4u_rental_uninstall() { include("installation/uninstall.php"); } register_deactivation_hook(__FILE__ , 'all4u_rental_uninstall' ); /*---------------------------------------- front end or backend ----------------------------------------------------*/ require_once('classes/all4u-rental-catalogus.class.php'); $oCatalogus = new all4u_rental_catalogus; $oCatalogus->init(); if( is_admin() ) { include("admin/functions.php"); $oCatalogus->init_admin(); } else { include("functions.php"); //$oCatalogus->init(); } ?>prefix.'all4u_fp_'; //define('ALL4U_FP_TABLE_PREFIX', $pro_table_prefix); /*----------------------------------------installation-------------------------------------------------------------------*/ //function all4u_seo_install() // { // add_option("vp-flush", 1); // } //register_activation_hook(__FILE__,'all4u_seo_install'); // function all4u_seo_uninstall() { delete_option("all4u-seo-settings"); delete_option("all4u-seo-sitemap-boxes"); delete_option("all4u-seo-sitemap-status"); delete_option("all4u-seo-sitemap-settings"); delete_option("all4u-seo-sitemap-collection"); delete_option("all4u-seo-robot-txt-settings"); } register_deactivation_hook(__FILE__ , 'all4u_seo_uninstall' ); function all4u_init_sitemap() { include_once(ALL4U_SEO_ROOT. '/classes/all4u-seo-sitemap.class.php'); $oSitemap = new all4u_seo_sitemap; /* include_once(ALL4U_SEO_ROOT . "/classes/all4u-virtual-page.class.php"); $args = array(); $args['gets'] = 'index.php?sitemap=1'; $args['rewr'] = '^sitemap\.xml'; $args['qvar'] = 'sitemap'; $args['templ'] = ALL4U_SEO_ROOT . '/templates/template-sitemap-xml.php'; new all4u_virtual_page($args); */ } add_action( 'wp_loaded', 'all4u_init_sitemap' ); /* $args = array(); $args['gets'] = 'index.php?new-id=1'; $args['rewr'] = '^new-page'; $args['qvar'] = 'new-id'; $args['templ'] = ALL4U_SEO_ROOT . '/templates/template-vptutorial.php'; new all4u_virtual_page($args); */ function all4u_seo_cancel_redirect($redirect_url) { $virtual_sitemap = get_query_var('sitemap'); if (!empty($virtual_sitemap)) { return false; } } add_filter('redirect_canonical', 'all4u_seo_cancel_redirect'); /*---------------------------------------- activate functions -----------------------------------------------------------*/ if( is_admin() ) { include("admin/functions.php"); } else { include("functions.php"); } if(function_exists("all4u_get_current_url") == false ) { function all4u_get_current_url() { $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $host = $_SERVER['HTTP_HOST']; $uri = $_SERVER['REQUEST_URI']; $currentUrl = $protocol . '://' . $host . $uri;// . $params; return $currentUrl; } } ?> 'all4u-social-media-widget', 'description' => 'Add Social media linking to your widget areas.' ); // Widget control settings. $control_ops = array( 'height' => 350, 'id_base' => $baseID ); parent::__construct( $baseID, $name, $widget_ops, $control_ops ); } public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = strip_tags( $new_instance['title'] ); $instance['facebook-link'] = strip_tags( $new_instance['facebook-link'] ); $instance['linkedin-link'] = strip_tags( $new_instance['linkedin-link'] ); $instance['twitter-link'] = strip_tags( $new_instance['twitter-link'] ); $instance['youtube-link'] = strip_tags( $new_instance['youtube-link'] ); $instance['pinterest-link'] = strip_tags( $new_instance['pinterest-link'] ); $instance['instagram-link'] = strip_tags( $new_instance['instagram-link'] ); return $instance; } public function form( $instance ) { if ( isset( $instance[ 'title' ] ) ) { $title = $instance[ 'title' ]; } else { $title = __( 'Follow us', 'text_domain' ); } if ( isset ($instance[ 'facebook-link' ])) { $facebook_url = $instance[ 'facebook-link' ]; } else { $facebook_url = 'http://www.facebook.com'; } if ( isset ($instance[ 'linkedin-link' ])) { $linkedin_url = $instance[ 'linkedin-link' ]; } else { $linkedin_url = 'http://www.linkedin.com'; } if ( isset ($instance[ 'twitter-link' ])) { $twitter_url = $instance[ 'twitter-link' ]; } else { $twitter_url = 'http://www.twitter.com'; } if ( isset ($instance[ 'youtube-link' ])) { $youtube_url = $instance[ 'youtube-link' ]; } else { $youtube_url = 'http://www.youtube.com'; } if ( isset ($instance[ 'pinterest-link' ])) { $pinterest_url = $instance[ 'pinterest-link' ]; } else { $pinterest_url = 'http://pinterest.com'; } if ( isset ($instance[ 'instagram-link' ])) { $instagram_url = $instance[ 'instagram-link' ]; } else { $instagram_url = 'http://instagram.com'; } ?>

__printWidgetBody($instance); echo $after_widget; } private function __printWidgetBody($instance) { //$image_dir = ALL4U_SMW_URL . '/images'; ?> 'Primary Navigation' ) ); } add_action( 'after_setup_theme', 'main_nav_setup' ); /*-----------------------------------------------------------------------------------*/ // FRONTEND WP DASHICONS /*-----------------------------------------------------------------------------------*/ function load_dashicons_front_end() { wp_enqueue_style( 'dashicons' ); } add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); /*-----------------------------------------------------------------------------------*/ // STYLESHEET /*-----------------------------------------------------------------------------------*/ function isSmallMobileScreen() { $aMobileUA = array( '/iphone/i' => 'iPhone', '/ipod/i' => 'iPod', //'/ipad/i' => 'iPad', '/android/i' => 'Android', '/blackberry/i' => 'BlackBerry', '/webos/i' => 'Mobile' ); //Return true if Mobile User Agent is detected foreach($aMobileUA as $sMobileKey => $sMobileOS) { $iPos = strpos("xxx" . $_SERVER['HTTP_USER_AGENT'], $sMobileOS); if($iPos > 1) { return true; } } return false; } //-------------------------------------------------------------- function add_css_after_plugins() { $version = ALL4U_THEME_VERSION; $source = get_stylesheet_directory_uri().'/style.css'; wp_enqueue_style('theme-style', $source, array('dashicons'), $version); if(isSmallMobileScreen() === true) { $source = get_stylesheet_directory_uri().'/style-mob.css'; wp_enqueue_style('theme-mobile', $source, array('dashicons'), $version); } } add_action('wp_head','add_css_after_plugins', 2); // integer for sheet location /*-----------------------------------------------------------------------------------*/ // JAVASCRIPT /*-----------------------------------------------------------------------------------*/ function add_theme_js_scripts() { wp_enqueue_script('jquery'); //wp_register_script( 'all4u-theme-js', get_template_directory_uri() . '/functions.js' ); //wp_enqueue_script( 'all4u-theme-js' ); } add_action( 'wp_enqueue_scripts', 'add_theme_js_scripts' ); /*-----------------------------------------------------------------------------------*/ // SET THEME WIDGETS /*-----------------------------------------------------------------------------------*/ function theme_widgets_init() { // Top Area, located at the top of the sidebar. $register['name'] = 'Top Widget Area'; $register['id'] = 'top-widget-area'; $register['description'] = 'Widget area header'; $register['before_widget'] = '
'; $register['after_widget'] = '
'; $register['before_title'] = '

'; $register['after_title'] = '

'; register_sidebar( $register ); // Area 1, located at the top of the sidebar. $register['name'] = 'Sidebar Widget Area'; $register['id'] = 'primary-widget-area'; $register['description'] = 'The Sidebar widget area'; $register['before_widget'] = '
'; $register['after_widget'] = '
'; $register['before_title'] = '

'; $register['after_title'] = '

'; register_sidebar( $register ); // Area 3, located in the footer. Empty by default. register_sidebar( array( 'name' => 'First Footer Widget Area', 'id' => 'footer-widget-1', 'description' => 'The First Footer widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => 'Second Footer Widget Area', 'id' => 'footer-widget-2', 'description' => 'The second footer widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => 'Third Footer Widget Area', 'id' => 'footer-widget-3', 'description' => 'The third footer widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => 'Fourth Footer Widget Area', 'id' => 'footer-widget-4', 'description' => 'The fourth footer widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => 'Fifth Footer Widget Area', 'id' => 'footer-widget-5', 'description' => 'The fifth footer widget area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // Area 7, located in the header. Empty by default. // register_sidebar( array( // 'name' => 'Extra Search Widget Area', // 'id' => 'extra-search-widget-area', // 'description' => 'Extra Search widget area (for low resolution devices)', // 'before_widget' => '
  • ', // 'after_widget' => '
  • ', // 'before_title' => '

    ', // 'after_title' => '

    ', // ) ); } add_action( 'widgets_init', 'theme_widgets_init' ); /*--------------------------------- WP customizer edit ----------------------------------------------------------------------*/ if(function_exists("all4u_theme_customizer_preview_init") === false) { function all4u_theme_customizer_preview_init() { wp_enqueue_script('jquery'); wp_enqueue_script('customize-preview'); wp_enqueue_script('all4u-customizer-preview', ALL4U_THEME_URL . '/admin/js/customizer-preview.js', array( 'jquery','customize-preview' ), ALL4U_THEME_VERSION , true ); wp_localize_script('all4u-customizer-preview', 'initvars', array( 'home' => get_bloginfo('url'), 'theme' => ALL4U_THEME_URL ) ); } add_action( 'customize_preview_init', 'all4u_theme_customizer_preview_init' ); } if(function_exists("all4u_theme_customizer_controls") === false) { function all4u_theme_customizer_controls() { wp_enqueue_script('jquery'); wp_enqueue_script( 'all4u-customizer-controls', ALL4U_THEME_URL . '/admin/js/customizer-controls.js', array('jquery'), ALL4U_THEME_VERSION, true); wp_localize_script('all4u-customizer-controls', 'initvars', array( 'home' => get_bloginfo('url'), 'theme' => ALL4U_THEME_URL ) ); } add_action('customize_controls_enqueue_scripts', 'all4u_theme_customizer_controls'); } include('admin/customizer.php'); ?>

    Snel zoeken naar producten:

    0) { ?>