Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $this->common_size = array(array(esc_attr__('Full', 'wonderflux') => 'full'), array(esc_attr__('Half', 'wonderflux') => 'half'), array(esc_attr__('1 Third', 'wonderflux') => 'third'), array(esc_attr__('- 2 Thirds', 'wonderflux') => 'two_third'), array(esc_attr__('1 Quarter', 'wonderflux') => 'quarter'), array(esc_attr__('- 2 Quarters', 'wonderflux') => 'two_quarter'), array(esc_attr__('- 3 Quarters', 'wonderflux') => 'three_quarter'), array(esc_attr__('1 Fifth', 'wonderflux') => 'fifth'), array(esc_attr__('- 2 Fifths', 'wonderflux') => 'two_fifth'), array(esc_attr__('- 3 Fifths', 'wonderflux') => 'three_fifth'), array(esc_attr__('- 4 Fifths', 'wonderflux') => 'four_fifth'), array(esc_attr__('1 Sixth', 'wonderflux') => 'sixth'), array(esc_attr__('- 2 Sixths', 'wonderflux') => 'two_sixth'), array(esc_attr__('- 3 Sixths', 'wonderflux') => 'three_sixth'), array(esc_attr__('- 4 Sixths', 'wonderflux') => 'four_sixth'), array(esc_attr__('- 5 Sixths', 'wonderflux') => 'five_sixth'), array(esc_attr__('1 Seventh', 'wonderflux') => 'seventh'), array(esc_attr__('- 2 Sevenths', 'wonderflux') => 'two_seventh'), array(esc_attr__('- 3 Sevenths', 'wonderflux') => 'three_seventh'), array(esc_attr__('- 4 Sevenths', 'wonderflux') => 'four_seventh'), array(esc_attr__('- 5 Sevenths', 'wonderflux') => 'five_seventh'), array(esc_attr__('- 6 Sevenths', 'wonderflux') => 'six_seventh'), array(esc_attr__('1 Eigth', 'wonderflux') => 'eighth'), array(esc_attr__('- 2 Eigths', 'wonderflux') => 'two_eighth'), array(esc_attr__('- 3 Eigths', 'wonderflux') => 'three_eighth'), array(esc_attr__('- 4 Eigths', 'wonderflux') => 'four_eighth'), array(esc_attr__('- 5 Eigths', 'wonderflux') => 'five_eighth'), array(esc_attr__('- 6 Eigths', 'wonderflux') => 'six_eighth'), array(esc_attr__('- 7 Eigths', 'wonderflux') => 'seven_eighth'), array(esc_attr__('1 Ninth', 'wonderflux') => 'ninth'), array(esc_attr__('- 2 Ninths', 'wonderflux') => 'two_ninth'), array(esc_attr__('- 3 Ninths', 'wonderflux') => 'three_ninth'), array(esc_attr__('- 4 Ninths', 'wonderflux') => 'four_ninth'), array(esc_attr__('- 5 Ninths', 'wonderflux') => 'five_ninth'), array(esc_attr__('- 6 Ninths', 'wonderflux') => 'six_ninth'), array(esc_attr__('- 7 Ninths', 'wonderflux') => 'seven_ninth'), array(esc_attr__('- 8 Ninths', 'wonderflux') => 'eight_ninth'), array(esc_attr__('1 Tenth', 'wonderflux') => 'tenth'), array(esc_attr__('- 2 Tenths', 'wonderflux') => 'two_tenth'), array(esc_attr__('- 3 Tenths', 'wonderflux') => 'three_tenth'), array(esc_attr__('- 4 Tenths', 'wonderflux') => 'four_tenth'), array(esc_attr__('- 5 Tenths', 'wonderflux') => 'five_tenth'), array(esc_attr__('- 6 Tenths', 'wonderflux') => 'six_tenth'), array(esc_attr__('- 7 Tenths', 'wonderflux') => 'seven_tenth'), array(esc_attr__('- 8 Tenths', 'wonderflux') => 'eight_tenth'), array(esc_attr__('- 9 Tenths', 'wonderflux') => 'nine_tenth'), array(esc_attr__('1 Eleventh', 'wonderflux') => 'eleventh'), array(esc_attr__('- 2 Elevenths', 'wonderflux') => 'two_eleventh'), array(esc_attr__('- 3 Elevenths', 'wonderflux') => 'three_eleventh'), array(esc_attr__('- 4 Elevenths', 'wonderflux') => 'four_eleventh'), array(esc_attr__('- 5 Elevenths', 'wonderflux') => 'five_eleventh'), array(esc_attr__('- 6 Elevenths', 'wonderflux') => 'six_eleventh'), array(esc_attr__('- 7 Elevenths', 'wonderflux') => 'seven_eleventh'), array(esc_attr__('- 8 Elevenths', 'wonderflux') => 'eight_eleventh'), array(esc_attr__('- 9 Elevenths', 'wonderflux') => 'nine_eleventh'), array(esc_attr__('- 10 Elevenths', 'wonderflux') => 'ten_eleventh'), array(esc_attr__('1 Twelveth', 'wonderflux') => 'twelveth'), array(esc_attr__('- 2 Twelveths', 'wonderflux') => 'two_twelveth'), array(esc_attr__('- 3 Twelveths', 'wonderflux') => 'three_twelveth'), array(esc_attr__('- 4 Twelveths', 'wonderflux') => 'four_twelveth'), array(esc_attr__('- 5 Twelveths', 'wonderflux') => 'five_twelveth'), array(esc_attr__('- 6 Twelveths', 'wonderflux') => 'six_twelveth'), array(esc_attr__('- 7 Twelveths', 'wonderflux') => 'seven_twelveth'), array(esc_attr__('- 8 Twelveths', 'wonderflux') => 'eight_twelveth'), array(esc_attr__('- 9 Twelveths', 'wonderflux') => 'nine_twelveth'), array(esc_attr__('- 10 Twelveths', 'wonderflux') => 'ten_twelveth'), array(esc_attr__('- 11 Twelveths', 'wonderflux') => 'eleven_twelveth'));
     $this->size_accept = array('full', 'half', 'third', 'two_third', 'quarter', 'two_quarter', 'three_quarter', 'fifth', 'two_fifth', 'three_fifth', 'four_fifth', 'sixth', 'two_sixth', 'three_sixth', 'four_sixth', 'five_sixth', 'seventh', 'two_seventh', 'three_seventh', 'four_seventh', 'five_seventh', 'six_seventh', 'eighth', 'two_eighth', 'three_eighth', 'four_eighth', 'five_eighth', 'six_eighth', 'seven_eighth', 'ninth', 'two_ninth', 'three_ninth', 'four_ninth', 'five_ninth', 'six_ninth', 'seven_ninth', 'eight_ninth', 'tenth', 'two_tenth', 'three_tenth', 'four_tenth', 'five_tenth', 'six_tenth', 'seven_tenth', 'eight_tenth', 'nine_tenth', 'eleventh', 'two_eleventh', 'three_eleventh', 'four_eleventh', 'five_eleventh', 'six_eleventh', 'seven_eleventh', 'eight_eleventh', 'nine_eleventh', 'ten_eleventh', 'twelveth', 'two_twelveth', 'three_twelveth', 'four_twelveth', 'five_twelveth', 'six_twelveth', 'seven_twelveth', 'eight_twelveth', 'nine_twelveth', 'ten_twelveth', 'eleven_twelveth');
     // First value of each array is used as default value if no whitelisted value supplied
     // If no value supplied, input is free text value and is deep cleaned instead!
     $this->valid = array('doc_type' => array('transitional', 'strict', 'frameset', '1.1', '1.1basic', 'html5', 'XHTML/RDFa'), 'doc_lang' => array('aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az', 'ba', 'be', 'bg', 'bh', 'bi', 'bm', 'bn', 'bo', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs', 'cu', 'cv', 'da', 'de', 'dv', 'dz', 'ee', 'el', 'en', 'eo', 'es', 'et', 'eu', 'eu', 'fa', 'ff', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hr', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'io', 'is', 'it', 'iu', 'ja', 'jv', 'ka', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'kr', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lb', 'lg', 'li', 'ln', 'lo', 'lt', 'lu', 'lv', 'mg', 'mh', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'na', 'nb', 'nd', 'ne', 'ng', 'nl', 'nn', 'no', 'nr', 'nv', 'ny', 'oc', 'oj', 'om', 'or', 'os', 'pa', 'pi', 'pl', 'ps', 'pt', 'qu', 'rm', 'rn', 'ro', 'ru', 'rw', 'sa', 'sc', 'sd', 'se', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tr', 'ts', 'tt', 'tw', 'ty', 'ug', 'uk', 'ur', 'uz', 've', 'vi', 'vo', 'wa', 'wo', 'xh', 'yi', 'yo', 'za', 'zh', 'zu'), 'doc_charset' => array('UTF-8', 'UTF-16', 'ISO-2022-JP', 'ISO-2022-JP-2', 'ISO-2022-KR', 'ISO-8859-1', 'ISO-8859-10', 'ISO-8859-15', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9'), 'container_p' => array('left', 'middle', 'right'), 'content_s' => $this->size_accept, 'content_s_px' => array(600, range(200, 1200, 2)), 'sidebar_s' => $this->size_accept, 'sidebar_p' => array('left', 'right'), 'grid_type' => array('percent', 'pixels'), 'sidebar_d' => array('Y', 'N'), 'container_u' => array('percent', 'pixels'), 'container_w' => $this->wfx_width_unit == 'pixels' ? array(950, range(400, 2000, 10)) : array(80, range(5, 100, 5)), 'columns_num' => array(24, range(2, 100, 1)), 'columns_w' => array(30, range(10, 200, 1)), 'page_t' => array('', 'no-sidebar'), 'rwd_full' => array('tiny', 'small', 'medium', 'large'), 'fb_admins' => '', 'fb_app' => '');
 }
 function __construct()
 {
     parent::__construct();
     global $post;
     if (isset($post->ID)) {
         switch (wfx_info_location('')) {
             case 'home':
                 $this->share_url = home_url();
                 break;
             case 'single' || 'page':
                 $this->share_url = isset($post->ID) ? get_permalink($post->ID) : home_url();
                 break;
             default:
                 $this->share_url = home_url();
                 break;
         }
     }
     $this->gplus_id = 0;
     $this->fb_like_id = 0;
     $this->twit_like_id = 0;
     $this->share_site_name = wp_strip_all_tags(get_bloginfo('name', 'raw'));
     $this->share_title = isset($post->ID) ? wp_strip_all_tags(get_the_title($post->ID)) : wp_strip_all_tags(get_bloginfo('name', 'raw'));
     $this->share_description = wp_strip_all_tags(get_bloginfo('description', 'raw'));
     $this->og_image = apply_filters('wflux_social_og_meta_image', WF_THEME_URL . '/images/supporting/social_thumbnail.jpg');
 }