@@ -301,8 +301,8 @@ |
||
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
304 | - * Admin javascript "header script" part definition |
|
305 | - */ |
|
304 | + * Admin javascript "header script" part definition |
|
305 | + */ |
|
306 | 306 | function admin_css_head() { |
307 | 307 | ob_start(); |
308 | 308 | include(WPSHOP_CSS_DIR . 'pages/wpshop_product.css'); |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | |
3 | 5 | /* Check if file is include. No direct access possible with file url */ |
4 | 6 | if ( !defined( 'WPSHOP_VERSION' ) ) { |
@@ -519,7 +521,9 @@ discard block |
||
519 | 521 | $to_exclude=unserialize(WPSHOP_INTERNAL_TYPES_TO_EXCLUDE); |
520 | 522 | if(!empty($to_exclude)): |
521 | 523 | foreach($to_exclude as $excluded_type): |
522 | - if(isset($wp_types[$excluded_type]))unset($wp_types[$excluded_type]); |
|
524 | + if(isset($wp_types[$excluded_type])) { |
|
525 | + unset($wp_types[$excluded_type]); |
|
526 | + } |
|
523 | 527 | endforeach; |
524 | 528 | endif; |
525 | 529 | DEFINE('WPSHOP_INTERNAL_TYPES', serialize(array_merge($wp_types, array('users' => __('Users', 'wpshop'))))); |
@@ -1,8 +1,8 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | |
3 | 3 | /* Check if file is include. No direct access possible with file url */ |
4 | -if ( !defined( 'WPSHOP_VERSION' ) ) { |
|
5 | - die( __('Access is not allowed by this way', 'wpshop') ); |
|
4 | +if (!defined('WPSHOP_VERSION')) { |
|
5 | + die(__('Access is not allowed by this way', 'wpshop')); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | /** |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @package wpshop |
23 | 23 | * @subpackage librairies |
24 | 24 | */ |
25 | -class wpshop_init{ |
|
25 | +class wpshop_init { |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * This is the function loaded when wordpress load the different plugin |
@@ -40,15 +40,15 @@ discard block |
||
40 | 40 | /* Include head js */ |
41 | 41 | add_action('admin_print_scripts', array('wpshop_init', 'admin_print_js')); |
42 | 42 | |
43 | - $page = !empty( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; |
|
44 | - $post_type = !empty( $_GET['post_type'] ) ? sanitize_text_field( $_GET['post_type'] ) : ''; |
|
45 | - $action = !empty( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : ''; |
|
46 | - $post = !empty( $_GET['post'] ) ? (array) $_GET['post'] : ''; |
|
47 | - $taxonomy = !empty( $_GET['taxonomy'] ) ? sanitize_text_field( $_GET['taxonomy'] ) : ''; |
|
48 | - if((isset($page) && substr($page, 0, 7) == 'wpshop_') || (isset($page) && $page == 'wps-installer' ) || (isset($post_type) && substr($post_type, 0, 7) == 'wpshop_') || !empty($post) || (isset($page) && $page==WPSHOP_NEWTYPE_IDENTIFIER_GROUP) || (isset($taxonomy) && ($taxonomy == WPSHOP_NEWTYPE_IDENTIFIER_CATEGORIES))){ |
|
43 | + $page = !empty($_GET['page']) ? sanitize_text_field($_GET['page']) : ''; |
|
44 | + $post_type = !empty($_GET['post_type']) ? sanitize_text_field($_GET['post_type']) : ''; |
|
45 | + $action = !empty($_GET['action']) ? sanitize_text_field($_GET['action']) : ''; |
|
46 | + $post = !empty($_GET['post']) ? (array)$_GET['post'] : ''; |
|
47 | + $taxonomy = !empty($_GET['taxonomy']) ? sanitize_text_field($_GET['taxonomy']) : ''; |
|
48 | + if ((isset($page) && substr($page, 0, 7) == 'wpshop_') || (isset($page) && $page == 'wps-installer') || (isset($post_type) && substr($post_type, 0, 7) == 'wpshop_') || !empty($post) || (isset($page) && $page == WPSHOP_NEWTYPE_IDENTIFIER_GROUP) || (isset($taxonomy) && ($taxonomy == WPSHOP_NEWTYPE_IDENTIFIER_CATEGORIES))) { |
|
49 | 49 | /* Include the different javascript */ |
50 | 50 | // add_action('admin_init', array('wpshop_init', 'admin_js')); |
51 | - add_action( 'admin_enqueue_scripts', array('wpshop_init', 'admin_js') ); |
|
51 | + add_action('admin_enqueue_scripts', array('wpshop_init', 'admin_js')); |
|
52 | 52 | add_action('admin_footer', array('wpshop_init', 'admin_js_footer')); |
53 | 53 | |
54 | 54 | /* Include the different css */ |
@@ -57,28 +57,28 @@ discard block |
||
57 | 57 | add_action('admin_init', array('wpshop_init', 'admin_css')); |
58 | 58 | |
59 | 59 | /* Include the different css */ |
60 | - if ( !is_admin() ) { |
|
60 | + if (!is_admin()) { |
|
61 | 61 | add_action('wp_print_styles', array('wpshop_init', 'frontend_css')); |
62 | 62 | add_action('wp_print_scripts', array('wpshop_init', 'frontend_js_instruction')); |
63 | 63 | } |
64 | 64 | |
65 | - if (isset($page,$action) && $page=='wpshop_doc' && $action=='edit') { |
|
65 | + if (isset($page, $action) && $page == 'wpshop_doc' && $action == 'edit') { |
|
66 | 66 | add_action('admin_init', array('wpshop_doc', 'init_wysiwyg')); |
67 | 67 | } |
68 | 68 | |
69 | 69 | // RICH TEXT EDIT INIT |
70 | - add_action('init', array('wpshop_display','wpshop_rich_text_tags'), 9999); |
|
71 | - add_action('init', array('wpshop_display','wps_hide_admin_bar_for_customers'), 9999 ); |
|
70 | + add_action('init', array('wpshop_display', 'wpshop_rich_text_tags'), 9999); |
|
71 | + add_action('init', array('wpshop_display', 'wps_hide_admin_bar_for_customers'), 9999); |
|
72 | 72 | |
73 | 73 | /** Adda custom class to the admin body */ |
74 | - add_filter( 'admin_body_class', array( 'wpshop_init', 'admin_body_class' ) ); |
|
75 | - add_filter( 'site_transient_update_plugins', array( 'wpshop_init', 'site_transient_update_plugins' ) ); |
|
74 | + add_filter('admin_body_class', array('wpshop_init', 'admin_body_class')); |
|
75 | + add_filter('site_transient_update_plugins', array('wpshop_init', 'site_transient_update_plugins')); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Admin menu creation |
80 | 80 | */ |
81 | - public static function admin_menu(){ |
|
81 | + public static function admin_menu() { |
|
82 | 82 | global $menu; |
83 | 83 | |
84 | 84 | /* Get current plugin version */ |
@@ -86,17 +86,17 @@ discard block |
||
86 | 86 | |
87 | 87 | $wpshop_catalog_menu_order = 34; |
88 | 88 | |
89 | - $menu[ $wpshop_catalog_menu_order-1 ] = array( '', 'read', 'separator-wpshop_dashboard', '', 'wp-menu-separator wpshop_dashboard' ); |
|
89 | + $menu[$wpshop_catalog_menu_order - 1] = array('', 'read', 'separator-wpshop_dashboard', '', 'wp-menu-separator wpshop_dashboard'); |
|
90 | 90 | |
91 | 91 | /* Main menu creation */ |
92 | 92 | global $wps_dashboard_ctr; |
93 | - add_menu_page(__( 'Dashboard', 'wpshop' ), __( 'Shop', 'wpshop' ), 'wpshop_view_dashboard', WPSHOP_URL_SLUG_DASHBOARD, array( $wps_dashboard_ctr, 'display_dashboard' ), 'dashicons-admin-home', $wpshop_catalog_menu_order); |
|
94 | - add_submenu_page(WPSHOP_URL_SLUG_DASHBOARD, __('Dashboard', 'wpshop' ), __('Dashboard', 'wpshop'), 'wpshop_view_dashboard', WPSHOP_URL_SLUG_DASHBOARD, array( $wps_dashboard_ctr, 'display_dashboard' )); |
|
93 | + add_menu_page(__('Dashboard', 'wpshop'), __('Shop', 'wpshop'), 'wpshop_view_dashboard', WPSHOP_URL_SLUG_DASHBOARD, array($wps_dashboard_ctr, 'display_dashboard'), 'dashicons-admin-home', $wpshop_catalog_menu_order); |
|
94 | + add_submenu_page(WPSHOP_URL_SLUG_DASHBOARD, __('Dashboard', 'wpshop'), __('Dashboard', 'wpshop'), 'wpshop_view_dashboard', WPSHOP_URL_SLUG_DASHBOARD, array($wps_dashboard_ctr, 'display_dashboard')); |
|
95 | 95 | |
96 | 96 | /* Add eav model menus */ |
97 | - add_menu_page(__( 'Entities', 'wpshop' ), __( 'Entities', 'wpshop' ), 'wpshop_view_dashboard', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, array('wpshop_display', 'display_page'), 'dashicons-universal-access-alt', $wpshop_catalog_menu_order + 1); |
|
98 | - add_submenu_page(WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, __( 'Attributes', 'wpshop' ), __('Attributes', 'wpshop'), 'wpshop_view_attributes', WPSHOP_URL_SLUG_ATTRIBUTE_LISTING, array('wpshop_display','display_page')); |
|
99 | - add_submenu_page(WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, __( 'Attributes groups', 'wpshop' ), __('Attributes groups', 'wpshop'), 'wpshop_view_attribute_set', WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING, array('wpshop_display','display_page')); |
|
97 | + add_menu_page(__('Entities', 'wpshop'), __('Entities', 'wpshop'), 'wpshop_view_dashboard', WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, array('wpshop_display', 'display_page'), 'dashicons-universal-access-alt', $wpshop_catalog_menu_order + 1); |
|
98 | + add_submenu_page(WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, __('Attributes', 'wpshop'), __('Attributes', 'wpshop'), 'wpshop_view_attributes', WPSHOP_URL_SLUG_ATTRIBUTE_LISTING, array('wpshop_display', 'display_page')); |
|
99 | + add_submenu_page(WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, __('Attributes groups', 'wpshop'), __('Attributes groups', 'wpshop'), 'wpshop_view_attribute_set', WPSHOP_URL_SLUG_ATTRIBUTE_SET_LISTING, array('wpshop_display', 'display_page')); |
|
100 | 100 | |
101 | 101 | /* Add messages menus */ |
102 | 102 | //add_submenu_page(WPSHOP_URL_SLUG_DASHBOARD, __( 'Messages', 'wpshop' ), __( 'Messages', 'wpshop'), 'wpshop_view_messages', 'edit.php?post_type='.WPSHOP_NEWTYPE_IDENTIFIER_MESSAGE); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /* Add a menu for plugin tools */ |
107 | 107 | // if (WPSHOP_DISPLAY_TOOLS_MENU) { |
108 | - add_management_page( __('Wpshop - Tools', 'wpshop' ), __('Wpshop - Tools', 'wpshop' ), 'wpshop_view_tools_menu', WPSHOP_URL_SLUG_TOOLS , array('wpshop_tools', 'main_page')); |
|
108 | + add_management_page(__('Wpshop - Tools', 'wpshop'), __('Wpshop - Tools', 'wpshop'), 'wpshop_view_tools_menu', WPSHOP_URL_SLUG_TOOLS, array('wpshop_tools', 'main_page')); |
|
109 | 109 | // } |
110 | 110 | |
111 | 111 | /* Add the options menu */ |
@@ -119,29 +119,29 @@ discard block |
||
119 | 119 | $wpshop_menu_order = array(); |
120 | 120 | |
121 | 121 | // Get the index of our custom separator |
122 | - $separator = array_search( 'separator-wpshop_dashboard', $menu_order ); |
|
123 | - $product = array_search( 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT, $menu_order ); |
|
124 | - $order = array_search( 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER, $menu_order ); |
|
125 | - $customers = array_search( 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS, $menu_order ); |
|
122 | + $separator = array_search('separator-wpshop_dashboard', $menu_order); |
|
123 | + $product = array_search('edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT, $menu_order); |
|
124 | + $order = array_search('edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER, $menu_order); |
|
125 | + $customers = array_search('edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS, $menu_order); |
|
126 | 126 | //$entities = array_search( 'admin.php?page=' . WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, $menu_order ); |
127 | - $entities = array_search( WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, $menu_order ); |
|
127 | + $entities = array_search(WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, $menu_order); |
|
128 | 128 | |
129 | - unset( $menu_order[$separator] ); |
|
130 | - unset( $menu_order[$product] ); |
|
131 | - unset( $menu_order[$order] ); |
|
132 | - unset( $menu_order[$customers] ); |
|
133 | - unset( $menu_order[$entities] ); |
|
129 | + unset($menu_order[$separator]); |
|
130 | + unset($menu_order[$product]); |
|
131 | + unset($menu_order[$order]); |
|
132 | + unset($menu_order[$customers]); |
|
133 | + unset($menu_order[$entities]); |
|
134 | 134 | |
135 | 135 | // Loop through menu order and do some rearranging |
136 | - foreach ( $menu_order as $index => $item ) : |
|
137 | - if ( 'wpshop_dashboard' == $item ) : |
|
136 | + foreach ($menu_order as $index => $item) : |
|
137 | + if ('wpshop_dashboard' == $item) : |
|
138 | 138 | $wpshop_menu_order[] = 'separator-wpshop_dashboard'; |
139 | 139 | $wpshop_menu_order[] = $item; |
140 | 140 | $wpshop_menu_order[] = 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT; |
141 | 141 | $wpshop_menu_order[] = 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER; |
142 | 142 | $wpshop_menu_order[] = 'edit.php?post_type=' . WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS; |
143 | 143 | $wpshop_menu_order[] = WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES; |
144 | - elseif ( !in_array( $item, array( 'separator-wpshop_dashboard' ) ) ) : |
|
144 | + elseif (!in_array($item, array('separator-wpshop_dashboard'))) : |
|
145 | 145 | $wpshop_menu_order[] = $item; |
146 | 146 | endif; |
147 | 147 | endforeach; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | public static function admin_custom_menu_order() { |
154 | - return current_user_can( 'manage_options' ); |
|
154 | + return current_user_can('manage_options'); |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
@@ -161,18 +161,18 @@ discard block |
||
161 | 161 | |
162 | 162 | /* Désactivation de l'enregistrement automatique pour certains type de post */ |
163 | 163 | global $post; |
164 | - if ( $post && ( (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_ORDER) || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_MESSAGE) |
|
165 | - || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES) || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_COUPON) ) ) { |
|
164 | + if ($post && ((get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_ORDER) || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_MESSAGE) |
|
165 | + || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES) || (get_post_type($post->ID) === WPSHOP_NEWTYPE_IDENTIFIER_COUPON))) { |
|
166 | 166 | wp_dequeue_script('autosave'); |
167 | 167 | } |
168 | 168 | |
169 | - $entity_to_search = !empty( $_GET['entity_to_search'] ) ? sanitize_text_field( $_GET['entity_to_search'] ) : ''; |
|
169 | + $entity_to_search = !empty($_GET['entity_to_search']) ? sanitize_text_field($_GET['entity_to_search']) : ''; |
|
170 | 170 | // var WPSHOP_AJAX_FILE_URL = "'.WPSHOP_AJAX_FILE_URL.'"; |
171 | 171 | echo ' |
172 | 172 | <script type="text/javascript"> |
173 | 173 | |
174 | - var WPSHOP_MEDIAS_ICON_URL = "'.WPSHOP_MEDIAS_ICON_URL.'"; |
|
175 | - var WPSHOP_PRODUCT_PRICE_PILOT = "'.WPSHOP_PRODUCT_PRICE_PILOT.'"; |
|
174 | + var WPSHOP_MEDIAS_ICON_URL = "'.WPSHOP_MEDIAS_ICON_URL . '"; |
|
175 | + var WPSHOP_PRODUCT_PRICE_PILOT = "'.WPSHOP_PRODUCT_PRICE_PILOT . '"; |
|
176 | 176 | var WPSHOP_PRODUCT_PRICE_HT = "' . WPSHOP_PRODUCT_PRICE_HT . '"; |
177 | 177 | var WPSHOP_PRODUCT_PRICE_TAX = "' . WPSHOP_PRODUCT_PRICE_TAX . '"; |
178 | 178 | var WPSHOP_PRODUCT_PRICE_TTC = "' . WPSHOP_PRODUCT_PRICE_TTC . '"; |
@@ -188,16 +188,16 @@ discard block |
||
188 | 188 | var WPSHOP_JS_VAR_ADD_LOGO = "' . __('Upload your logo', 'wpshop') . '"; |
189 | 189 | var WPSHOP_NEWOPTION_CREATION_NONCE = "' . wp_create_nonce("wpshop_new_option_for_attribute_creation") . '"; |
190 | 190 | |
191 | - var WPSHOP_ADD_TEXT = "'.__('Add', 'wpshop').'"; |
|
192 | - var WPSHOP_CREATE_TEXT = "'.__('Create', 'wpshop').'"; |
|
193 | - var WPSHOP_SAVE_PRODUCT_OPTIONS_PARAMS = "'.__('Save parameters', 'wpshop').'"; |
|
191 | + var WPSHOP_ADD_TEXT = "'.__('Add', 'wpshop') . '"; |
|
192 | + var WPSHOP_CREATE_TEXT = "'.__('Create', 'wpshop') . '"; |
|
193 | + var WPSHOP_SAVE_PRODUCT_OPTIONS_PARAMS = "'.__('Save parameters', 'wpshop') . '"; |
|
194 | 194 | |
195 | - var WPSHOP_NEW_OPTION_IN_LIST_EMPTY = "'.__('You don\'t specify all needed file', 'wpshop').'"; |
|
196 | - var WPSHOP_IS_NOT_ALLOWED_SHIPPING_COUNTRY = "'.__('Sorry ! You can\'t order on this shop, because we don\'t ship in your country.', 'wpshop').'"; |
|
197 | - var WPSHOP_CONFIRM_BEFORE_GENERATE_INVOICE = "'.__('If you generate the invoice, you will cannot modify this order later. Are you sure to do this action ?', 'wpshop').'"; |
|
198 | - var WPSHOP_NEW_OPTION_ALREADY_EXIST_IN_LIST = "'.__('The value you entered already exist in list', 'wpshop').'"; |
|
199 | - var WPSHOP_SURE_TO_DELETE_ATTR_OPTION_FROM_LIST = "'.__('Are you sure you want to delete this option from list?', 'wpshop').'"; |
|
200 | - var WPSHOP_DEFAULT_VALUE = "'.__('Set as default value', 'wpshop').'"; |
|
195 | + var WPSHOP_NEW_OPTION_IN_LIST_EMPTY = "'.__('You don\'t specify all needed file', 'wpshop') . '"; |
|
196 | + var WPSHOP_IS_NOT_ALLOWED_SHIPPING_COUNTRY = "'.__('Sorry ! You can\'t order on this shop, because we don\'t ship in your country.', 'wpshop') . '"; |
|
197 | + var WPSHOP_CONFIRM_BEFORE_GENERATE_INVOICE = "'.__('If you generate the invoice, you will cannot modify this order later. Are you sure to do this action ?', 'wpshop') . '"; |
|
198 | + var WPSHOP_NEW_OPTION_ALREADY_EXIST_IN_LIST = "'.__('The value you entered already exist in list', 'wpshop') . '"; |
|
199 | + var WPSHOP_SURE_TO_DELETE_ATTR_OPTION_FROM_LIST = "'.__('Are you sure you want to delete this option from list?', 'wpshop') . '"; |
|
200 | + var WPSHOP_DEFAULT_VALUE = "'.__('Set as default value', 'wpshop') . '"; |
|
201 | 201 | var WPSHOP_MSG_INVOICE_QUOTATION = "' . __('Are you sure you want to charge this order? You\'ll be unable to modify the content after this operation', 'wpshop') . '"; |
202 | 202 | var WPSHOP_MSG_IGNORE_CONFIGURATION = "' . __('If you continue without install the plugin. Your products won\'t be purchasable', 'wpshop') . '"; |
203 | 203 | var WPSHOP_MSG_CONFIRM_THUMBNAIL_DELETION = "' . __('Are you sure you want to delete this thumbnail?', 'wpshop') . '"; |
@@ -206,55 +206,55 @@ discard block |
||
206 | 206 | var WPSHOP_CHOSEN_SELECT_FROM_LIST = "' . __('Select an Option', 'wpshop') . '"; |
207 | 207 | var WPSHOP_AJAX_CHOSEN_KEEP_TYPING = "' . __('Keep typing for search launching', 'wpshop') . '"; |
208 | 208 | var WPSHOP_AJAX_CHOSEN_SEARCHING = "' . __('Searching in progress for', 'wpshop') . '"; |
209 | - var WPSHOP_MSG_CONFIRM_ADDON_DEACTIVATION = "'.__('Are you sure you want to deactivate this addon?', 'wpshop').'"; |
|
210 | - var WPS_DELETE_SHOP_LOGO_MSG = "'.__('Are you sure you want to delete this logo?', 'wpshop').'"; |
|
209 | + var WPSHOP_MSG_CONFIRM_ADDON_DEACTIVATION = "'.__('Are you sure you want to deactivate this addon?', 'wpshop') . '"; |
|
210 | + var WPS_DELETE_SHOP_LOGO_MSG = "'.__('Are you sure you want to delete this logo?', 'wpshop') . '"; |
|
211 | 211 | var WPS_DEFAULT_LOGO = "'.WPSHOP_MEDIAS_IMAGES_URL . 'no_picture.png"; |
212 | 212 | |
213 | - var WPSHOP_NO_ATTRIBUTES_SELECT_FOR_VARIATION = "'.__('You have to select at least one attribute for creating a new variation', 'wpshop').'"; |
|
213 | + var WPSHOP_NO_ATTRIBUTES_SELECT_FOR_VARIATION = "'.__('You have to select at least one attribute for creating a new variation', 'wpshop') . '"; |
|
214 | 214 | |
215 | 215 | var WPSHOP_CHOSEN_ATTRS = {search_contains: true, disable_search_threshold: 5, no_results_text: WPSHOP_CHOSEN_NO_RESULT, placeholder_text_single : WPSHOP_CHOSEN_SELECT_FROM_LIST, placeholder_text_multiple : WPSHOP_CHOSEN_SELECT_FROM_MULTI_LIST}; |
216 | 216 | |
217 | - var WPSHOP_TEMPLATES_URL = "'.WPSHOP_TEMPLATES_URL.'"; |
|
218 | - var WPSHOP_BUTTON_DESCRIPTION = "'.__('Insert shortcode into page content', 'wpshop').'"; |
|
219 | - var WPSHOP_WYSIWYG_MENU_TITLE_PRODUCT_LISTING = "'.__('Product listing', 'wpshop').'"; |
|
220 | - var WPSHOP_WYSIWYG_PRODUCT_LISTING_BY_PID_TITLE = "'.__('By product ID', 'wpshop').'"; |
|
221 | - var WPSHOP_WYSIWYG_PRODUCT_LISTING_BY_ATTRIBUTE_TITLE = "'.__('By attribute value', 'wpshop').'"; |
|
222 | - var WPSHOP_WYSIWYG_MENU_TITLE_CATEGORIES = "'.__('WPShop categories', 'wpshop').'"; |
|
223 | - var WPSHOP_WYSIWYG_MENU_TITLE_ATTRIBUTE_VALUE = "'.__('Attribute value', 'wpshop').'"; |
|
224 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_TITLE = "'.__('Custom message content', 'wpshop').'"; |
|
225 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_FIRST_NAME = "'.__('Customer first name', 'wpshop').'"; |
|
226 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_LAST_NAME = "'.__('Customer last name', 'wpshop').'"; |
|
227 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_EMAIL = "'.__('Customer email', 'wpshop').'"; |
|
228 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_ID = "'.__('Order identifer', 'wpshop').'"; |
|
229 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_PAYPAL_TRANSACTION_ID = "'.__('Paypal transaction ID', 'wpshop').'"; |
|
230 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_CONTENT = "'.__('Order content', 'wpshop').'"; |
|
231 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_CUSTOMER_PERSONNAL_INFORMATIONS = "'.__('Customer personnal informations', 'wpshop').'"; |
|
232 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_ADDRESSES = "'.__('Order addresses', 'wpshop').'"; |
|
233 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_BILLING_ORDER_ADDRESS = "'.__('Billing order address', 'wpshop').'"; |
|
234 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_SHIPPING_ORDER_ADDRESS = "'.__('Shipping order address', 'wpshop').'"; |
|
235 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_SHIPPING_METHOD = "'.__('Shipping method', 'wpshop').'"; |
|
236 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_PAYMENT_METHOD = "'.__('order payment_method', 'wpshop').'"; |
|
237 | - var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_COMMENT = "'.__('Order customer comment', 'wpshop').'"; |
|
238 | - var WPSHOP_CUSTOM_TAGS_TITLE = "'.__('Wpshop custom tags', 'wpshop').'"; |
|
239 | - var WPSHOP_CUSTOM_TAGS_CART = "'.__('Cart', 'wpshop').'"; |
|
240 | - var WPSHOP_CUSTOM_TAGS_CART_MINI = "'.__('Cart widget', 'wpshop').'"; |
|
241 | - var WPSHOP_CUSTOM_TAGS_CHECKOUT = "'.__('Checkout', 'wpshop').'"; |
|
242 | - var WPSHOP_CUSTOM_TAGS_ACCOUNT = "'.__('Customer account', 'wpshop').'"; |
|
243 | - var WPSHOP_CUSTOM_TAGS_SHOP = "'.__('Shop', 'wpshop').'"; |
|
244 | - var WPSHOP_CUSTOM_TAGS_ADVANCED_SEARCH = "'.__('Advanced search', 'wpshop').'"; |
|
245 | - var WPSHOP_CANCEL_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to cancel this order ?', 'wpshop').'"; |
|
246 | - var WPSHOP_REFUND_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to refund this order ?', 'wpshop').'"; |
|
247 | - var WPSHOP_RESEND_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to resend this order to customer ?', 'wpshop').'"; |
|
248 | - var WPSHOP_SEARCH_IN_ORDER_EXPLAIN_MESSAGE = "'.__('You want to search in orders', 'wpshop').'"; |
|
249 | - var WPSHOP_SEARCH_IN_ORDER_CHOICE_CUSTOMER = "'.__('a customer', 'wpshop').'"; |
|
250 | - var WPSHOP_SEARCH_IN_ORDER_CHOICE_PRODUCT = "'.__('a product', 'wpshop').'"; |
|
251 | - var WPSHOP_SEARCH_IN_ORDER_USER_CHOICE = "'.( (!empty($entity_to_search) ) ? $entity_to_search : 'customer' ).'"; |
|
252 | - var WPSHOP_DELETE_ADDRESS_CONFIRMATION = "'.__( 'Do you really want to delete this address', 'wpshop' ).'"; |
|
253 | - |
|
254 | - var wps_options_shipping_weight_for_custom_fees = "'.__( 'You must enter a weight', 'wpshop' ).'"; |
|
255 | - var wps_options_country_choose_for_custom_fees = "'.__( 'You must a country for custom fees saving', 'wpshop' ).'"; |
|
256 | - var wps_options_country_postcode_choose_for_custom_fees = "'.__( 'You must choose a country or write a postcode.', 'wpshop' ).'"; |
|
257 | - var wps_an_error_occured = "'.__( 'An error occured', 'wpshop' ).'"; |
|
217 | + var WPSHOP_TEMPLATES_URL = "'.WPSHOP_TEMPLATES_URL . '"; |
|
218 | + var WPSHOP_BUTTON_DESCRIPTION = "'.__('Insert shortcode into page content', 'wpshop') . '"; |
|
219 | + var WPSHOP_WYSIWYG_MENU_TITLE_PRODUCT_LISTING = "'.__('Product listing', 'wpshop') . '"; |
|
220 | + var WPSHOP_WYSIWYG_PRODUCT_LISTING_BY_PID_TITLE = "'.__('By product ID', 'wpshop') . '"; |
|
221 | + var WPSHOP_WYSIWYG_PRODUCT_LISTING_BY_ATTRIBUTE_TITLE = "'.__('By attribute value', 'wpshop') . '"; |
|
222 | + var WPSHOP_WYSIWYG_MENU_TITLE_CATEGORIES = "'.__('WPShop categories', 'wpshop') . '"; |
|
223 | + var WPSHOP_WYSIWYG_MENU_TITLE_ATTRIBUTE_VALUE = "'.__('Attribute value', 'wpshop') . '"; |
|
224 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_TITLE = "'.__('Custom message content', 'wpshop') . '"; |
|
225 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_FIRST_NAME = "'.__('Customer first name', 'wpshop') . '"; |
|
226 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_LAST_NAME = "'.__('Customer last name', 'wpshop') . '"; |
|
227 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_EMAIL = "'.__('Customer email', 'wpshop') . '"; |
|
228 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_ID = "'.__('Order identifer', 'wpshop') . '"; |
|
229 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_PAYPAL_TRANSACTION_ID = "'.__('Paypal transaction ID', 'wpshop') . '"; |
|
230 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_CONTENT = "'.__('Order content', 'wpshop') . '"; |
|
231 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_CUSTOMER_PERSONNAL_INFORMATIONS = "'.__('Customer personnal informations', 'wpshop') . '"; |
|
232 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_ADDRESSES = "'.__('Order addresses', 'wpshop') . '"; |
|
233 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_BILLING_ORDER_ADDRESS = "'.__('Billing order address', 'wpshop') . '"; |
|
234 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_SHIPPING_ORDER_ADDRESS = "'.__('Shipping order address', 'wpshop') . '"; |
|
235 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_SHIPPING_METHOD = "'.__('Shipping method', 'wpshop') . '"; |
|
236 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_ORDER_PAYMENT_METHOD = "'.__('order payment_method', 'wpshop') . '"; |
|
237 | + var WPSHOP_CUSTOM_MESSAGE_CONTENT_CUSTOMER_COMMENT = "'.__('Order customer comment', 'wpshop') . '"; |
|
238 | + var WPSHOP_CUSTOM_TAGS_TITLE = "'.__('Wpshop custom tags', 'wpshop') . '"; |
|
239 | + var WPSHOP_CUSTOM_TAGS_CART = "'.__('Cart', 'wpshop') . '"; |
|
240 | + var WPSHOP_CUSTOM_TAGS_CART_MINI = "'.__('Cart widget', 'wpshop') . '"; |
|
241 | + var WPSHOP_CUSTOM_TAGS_CHECKOUT = "'.__('Checkout', 'wpshop') . '"; |
|
242 | + var WPSHOP_CUSTOM_TAGS_ACCOUNT = "'.__('Customer account', 'wpshop') . '"; |
|
243 | + var WPSHOP_CUSTOM_TAGS_SHOP = "'.__('Shop', 'wpshop') . '"; |
|
244 | + var WPSHOP_CUSTOM_TAGS_ADVANCED_SEARCH = "'.__('Advanced search', 'wpshop') . '"; |
|
245 | + var WPSHOP_CANCEL_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to cancel this order ?', 'wpshop') . '"; |
|
246 | + var WPSHOP_REFUND_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to refund this order ?', 'wpshop') . '"; |
|
247 | + var WPSHOP_RESEND_ORDER_CONFIRM_MESSAGE = "'.__('Do you want to resend this order to customer ?', 'wpshop') . '"; |
|
248 | + var WPSHOP_SEARCH_IN_ORDER_EXPLAIN_MESSAGE = "'.__('You want to search in orders', 'wpshop') . '"; |
|
249 | + var WPSHOP_SEARCH_IN_ORDER_CHOICE_CUSTOMER = "'.__('a customer', 'wpshop') . '"; |
|
250 | + var WPSHOP_SEARCH_IN_ORDER_CHOICE_PRODUCT = "'.__('a product', 'wpshop') . '"; |
|
251 | + var WPSHOP_SEARCH_IN_ORDER_USER_CHOICE = "'.((!empty($entity_to_search)) ? $entity_to_search : 'customer') . '"; |
|
252 | + var WPSHOP_DELETE_ADDRESS_CONFIRMATION = "'.__('Do you really want to delete this address', 'wpshop') . '"; |
|
253 | + |
|
254 | + var wps_options_shipping_weight_for_custom_fees = "'.__('You must enter a weight', 'wpshop') . '"; |
|
255 | + var wps_options_country_choose_for_custom_fees = "'.__('You must a country for custom fees saving', 'wpshop') . '"; |
|
256 | + var wps_options_country_postcode_choose_for_custom_fees = "'.__('You must choose a country or write a postcode.', 'wpshop') . '"; |
|
257 | + var wps_an_error_occured = "'.__('An error occured', 'wpshop') . '"; |
|
258 | 258 | </script>'; |
259 | 259 | } |
260 | 260 | |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | ob_end_clean(); |
270 | 270 | |
271 | 271 | echo '<script type="text/javascript"> |
272 | - var wp_version = "'.$wp_version.'"; |
|
273 | - '.$wpshop_product_js.' |
|
272 | + var wp_version = "'.$wp_version . '"; |
|
273 | + '.$wpshop_product_js . ' |
|
274 | 274 | </script>'; |
275 | 275 | } |
276 | 276 | |
@@ -286,21 +286,21 @@ discard block |
||
286 | 286 | wp_enqueue_script('jquery-ui-dialog'); |
287 | 287 | wp_enqueue_script('jquery-form'); |
288 | 288 | wp_enqueue_script('jquery-ui-slider'); |
289 | - wp_enqueue_script( 'jquery-ui-autocomplete' ); |
|
289 | + wp_enqueue_script('jquery-ui-autocomplete'); |
|
290 | 290 | wp_enqueue_script('wpshop_main_function_js', WPSHOP_JS_URL . 'main_function.js', '', WPSHOP_VERSION); |
291 | 291 | wp_enqueue_script('wpshop_main_js', WPSHOP_JS_URL . 'main.js', '', WPSHOP_VERSION); |
292 | 292 | wp_enqueue_script('wpshop_jq_datatable', WPSHOP_JS_URL . 'jquery-libs/jquery.dataTables.min.js', '', WPSHOP_VERSION); |
293 | - wp_enqueue_script('wpshop_jquery_chosen', WPSHOP_JS_URL . 'jquery-libs/chosen.jquery.min.js', '', WPSHOP_VERSION); |
|
293 | + wp_enqueue_script('wpshop_jquery_chosen', WPSHOP_JS_URL . 'jquery-libs/chosen.jquery.min.js', '', WPSHOP_VERSION); |
|
294 | 294 | wp_enqueue_script('jquery-effects-core'); |
295 | 295 | wp_enqueue_script('jquery-effects-highlight'); |
296 | 296 | |
297 | - $page = !empty( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; |
|
297 | + $page = !empty($_GET['page']) ? sanitize_text_field($_GET['page']) : ''; |
|
298 | 298 | |
299 | 299 | /* Include specific js file for the current page if existing */ |
300 | - if(isset($page) && is_file(WPSHOP_JS_DIR . 'pages/' . $page . '.js')){ |
|
300 | + if (isset($page) && is_file(WPSHOP_JS_DIR . 'pages/' . $page . '.js')) { |
|
301 | 301 | wp_enqueue_script($page . '_js', WPSHOP_JS_URL . 'pages/' . $page . '.js', '', WPSHOP_VERSION); |
302 | 302 | } |
303 | - if((isset($page) && ($page == 'wpshop_dashboard'))) { |
|
303 | + if ((isset($page) && ($page == 'wpshop_dashboard'))) { |
|
304 | 304 | wp_enqueue_script($page . '_js', WPSHOP_JS_URL . 'pages/' . WPSHOP_URL_SLUG_OPTION . '.js', '', WPSHOP_VERSION); |
305 | 305 | wp_register_style($page . '_css', WPSHOP_CSS_URL . 'pages/' . WPSHOP_URL_SLUG_OPTION . '.css', '', WPSHOP_VERSION); |
306 | 306 | wp_enqueue_style($page . '_css'); |
@@ -327,12 +327,12 @@ discard block |
||
327 | 327 | * @param array $classes |
328 | 328 | * @return string |
329 | 329 | */ |
330 | - public static function admin_body_class( $classes ) { |
|
330 | + public static function admin_body_class($classes) { |
|
331 | 331 | global $post; |
332 | 332 | |
333 | - if ( !empty($post->ID) ) { |
|
334 | - $post_type = get_post_type( $post->ID ); |
|
335 | - if ( is_admin() && in_array( $post_type, array(WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT, WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT_VARIATION, WPSHOP_NEWTYPE_IDENTIFIER_ORDER, WPSHOP_NEWTYPE_IDENTIFIER_MESSAGE, WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS, WPSHOP_NEWTYPE_IDENTIFIER_COUPON, WPSHOP_NEWTYPE_IDENTIFIER_ADDRESS) ) ) { |
|
333 | + if (!empty($post->ID)) { |
|
334 | + $post_type = get_post_type($post->ID); |
|
335 | + if (is_admin() && in_array($post_type, array(WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT, WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT_VARIATION, WPSHOP_NEWTYPE_IDENTIFIER_ORDER, WPSHOP_NEWTYPE_IDENTIFIER_MESSAGE, WPSHOP_NEWTYPE_IDENTIFIER_ENTITIES, WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS, WPSHOP_NEWTYPE_IDENTIFIER_COUPON, WPSHOP_NEWTYPE_IDENTIFIER_ADDRESS))) { |
|
336 | 336 | $classes .= ' wpshop-admin-body wpshop-admin-post-type-' . $post_type; |
337 | 337 | } |
338 | 338 | } |
@@ -360,8 +360,8 @@ discard block |
||
360 | 360 | wp_enqueue_style('wpshop_chosen_css'); |
361 | 361 | |
362 | 362 | /* Include specific css file for the current page if existing */ |
363 | - $page = !empty( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : ''; |
|
364 | - if(isset($page) && is_file(WPSHOP_CSS_DIR . 'pages/' . $page . '.css')){ |
|
363 | + $page = !empty($_GET['page']) ? sanitize_text_field($_GET['page']) : ''; |
|
364 | + if (isset($page) && is_file(WPSHOP_CSS_DIR . 'pages/' . $page . '.css')) { |
|
365 | 365 | wp_register_style($page . '_css', WPSHOP_CSS_URL . 'pages/' . $page . '.css', '', WPSHOP_VERSION); |
366 | 366 | wp_enqueue_style($page . '_css'); |
367 | 367 | } |
@@ -403,8 +403,8 @@ discard block |
||
403 | 403 | wp_register_style('wpshop_default_wps_style_css', WPSHOP_TEMPLATES_URL . 'wpshop/css/wps_style.css', '', WPSHOP_VERSION); |
404 | 404 | wp_enqueue_style('wpshop_default_wps_style_css'); |
405 | 405 | |
406 | - if( file_exists( get_stylesheet_directory().'/wpshop/css/wps_style.css' ) ) { |
|
407 | - wp_deregister_style( 'wpshop_default_wps_style_css' ); |
|
406 | + if (file_exists(get_stylesheet_directory() . '/wpshop/css/wps_style.css')) { |
|
407 | + wp_deregister_style('wpshop_default_wps_style_css'); |
|
408 | 408 | wp_register_style('wps_style_css', wpshop_display::get_template_file('wps_style.css', WPSHOP_TEMPLATES_URL, 'wpshop/css', 'output', true), '', WPSHOP_VERSION); |
409 | 409 | wp_enqueue_style('wps_style_css', 11); |
410 | 410 | } |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | wp_register_style('wps_owl_caroussel_transitions', wpshop_display::get_template_file('owl.transitions.css', WPSHOP_TEMPLATES_URL, 'wpshop/css', 'output'), '', WPSHOP_VERSION); |
417 | 417 | wp_enqueue_style('wps_owl_caroussel_transitions'); |
418 | 418 | |
419 | - wp_enqueue_style( 'dashicons' ); |
|
419 | + wp_enqueue_style('dashicons'); |
|
420 | 420 | } |
421 | 421 | |
422 | 422 | /** |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | wp_enqueue_script('jquery-ui-slider'); |
435 | 435 | wp_enqueue_script('wpshop_frontend_main_js', wpshop_display::get_template_file('frontend_main.js', WPSHOP_TEMPLATES_URL, 'wpshop/js', 'output'), '', WPSHOP_VERSION, true); |
436 | 436 | // wp_enqueue_script('wpshop_jquery_jqzoom_core_js', wpshop_display::get_template_file('jquery.jqzoom-core.js', WPSHOP_TEMPLATES_URL, 'wpshop/js', 'output'), '', WPSHOP_VERSION, true); |
437 | - wp_enqueue_script('fancyboxmousewheel',WPSHOP_JS_URL . 'fancybox/jquery.mousewheel-3.0.4.pack.js', '', WPSHOP_VERSION, true); |
|
437 | + wp_enqueue_script('fancyboxmousewheel', WPSHOP_JS_URL . 'fancybox/jquery.mousewheel-3.0.4.pack.js', '', WPSHOP_VERSION, true); |
|
438 | 438 | wp_enqueue_script('fancybox', WPSHOP_JS_URL . 'fancybox/jquery.fancybox-1.3.4.pack.js', '', WPSHOP_VERSION, true); |
439 | 439 | wp_enqueue_script('jquery_address', WPSHOP_JS_URL . 'jquery-libs/jquery.address-1.5.min.js', '', WPSHOP_VERSION); |
440 | 440 | wp_enqueue_script('wps_api', wpshop_display::get_template_file('wps-api.js', WPSHOP_TEMPLATES_URL, 'wpshop/js', 'output'), '', WPSHOP_VERSION, true); |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | var WPSHOP_MUST_CHOOSE_SHIPPING_MODE = "<?php _e('You must to choose a shipping mode', 'wpshop'); ?>"; |
458 | 458 | var WPSHOP_NO_SHIPPING_MODE_AVAILABLE = "<?php _e('You can\'t order because no shipping mode is available.', 'wpshop'); ?>"; |
459 | 459 | var WPSHOP_LOADER_ICON_JQUERY_ADDRESS = "<img src=\"<?php echo WPSHOP_LOADING_ICON; ?>\" alt=\"Loading...\" />"; |
460 | - var WPSHOP_CONFIRM_DELETE_ADDRESS = "<?php _e( 'Do you really want to delete this address ?', 'wpshop' ); ?>"; |
|
460 | + var WPSHOP_CONFIRM_DELETE_ADDRESS = "<?php _e('Do you really want to delete this address ?', 'wpshop'); ?>"; |
|
461 | 461 | var wps_speed_slideUpDown = 200; |
462 | 462 | var MODAL_URL = '<?php echo WPSHOP_TEMPLATES_URL; ?>wpshop/modal.php'; |
463 | 463 | </script> |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | $product_class = new wpshop_products(); |
496 | 496 | add_action('save_post', array($product_class, 'save_product_custom_informations')); |
497 | 497 | /* Modification des paramètres de variation quand ils ne sont pas configurés individuellement */ |
498 | - add_filter('pre_update_option_' . 'wpshop_catalog_product_option', array('wpshop_products', 'update_wpshop_catalog_product_option'), 10, 2 ); |
|
498 | + add_filter('pre_update_option_' . 'wpshop_catalog_product_option', array('wpshop_products', 'update_wpshop_catalog_product_option'), 10, 2); |
|
499 | 499 | |
500 | 500 | /* Add wpshop product category term */ |
501 | 501 | wpshop_categories::create_product_categories(); |
@@ -503,14 +503,14 @@ discard block |
||
503 | 503 | /* Add wpshop message term */ |
504 | 504 | |
505 | 505 | |
506 | - if ( $wpshop_shop_type == 'sale' ) { |
|
506 | + if ($wpshop_shop_type == 'sale') { |
|
507 | 507 | /* Add wpshop orders term */ |
508 | 508 | wpshop_orders::create_orders_type(); |
509 | 509 | add_action('add_meta_boxes', array('wpshop_orders', 'add_meta_boxes')); |
510 | - add_action('manage_'.WPSHOP_NEWTYPE_IDENTIFIER_ORDER.'_posts_custom_column', array('wpshop_orders', 'orders_custom_columns'), 10, 2); |
|
511 | - add_filter('manage_edit-'.WPSHOP_NEWTYPE_IDENTIFIER_ORDER.'_columns', array('wpshop_orders', 'orders_edit_columns')); |
|
512 | - add_action('restrict_manage_posts', array('wpshop_orders', 'list_table_filters') ); |
|
513 | - add_filter('parse_query', array('wpshop_orders', 'list_table_filter_parse_query') ); |
|
510 | + add_action('manage_' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER . '_posts_custom_column', array('wpshop_orders', 'orders_custom_columns'), 10, 2); |
|
511 | + add_filter('manage_edit-' . WPSHOP_NEWTYPE_IDENTIFIER_ORDER . '_columns', array('wpshop_orders', 'orders_edit_columns')); |
|
512 | + add_action('restrict_manage_posts', array('wpshop_orders', 'list_table_filters')); |
|
513 | + add_filter('parse_query', array('wpshop_orders', 'list_table_filter_parse_query')); |
|
514 | 514 | } |
515 | 515 | |
516 | 516 | $args = array( |
@@ -520,14 +520,14 @@ discard block |
||
520 | 520 | $output = 'objects'; // names or objects, note names is the default |
521 | 521 | $operator = 'or'; // 'and' or 'or' |
522 | 522 | |
523 | - $wp_types_original=get_post_types($args,$output,$operator); |
|
523 | + $wp_types_original = get_post_types($args, $output, $operator); |
|
524 | 524 | foreach ($wp_types_original as $type => $type_definition): |
525 | 525 | $wp_types[$type] = $type_definition->labels->name; |
526 | 526 | endforeach; |
527 | - $to_exclude=unserialize(WPSHOP_INTERNAL_TYPES_TO_EXCLUDE); |
|
528 | - if(!empty($to_exclude)): |
|
529 | - foreach($to_exclude as $excluded_type): |
|
530 | - if(isset($wp_types[$excluded_type]))unset($wp_types[$excluded_type]); |
|
527 | + $to_exclude = unserialize(WPSHOP_INTERNAL_TYPES_TO_EXCLUDE); |
|
528 | + if (!empty($to_exclude)): |
|
529 | + foreach ($to_exclude as $excluded_type): |
|
530 | + if (isset($wp_types[$excluded_type]))unset($wp_types[$excluded_type]); |
|
531 | 531 | endforeach; |
532 | 532 | endif; |
533 | 533 | DEFINE('WPSHOP_INTERNAL_TYPES', serialize(array_merge($wp_types, array('users' => __('Users', 'wpshop'))))); |
@@ -536,29 +536,29 @@ discard block |
||
536 | 536 | /** |
537 | 537 | * Send mail when new version is available |
538 | 538 | */ |
539 | - public static function site_transient_update_plugins( $option ) { |
|
540 | - if ( isset( $option->response[ WPSHOP_PLUGIN_NAME ] ) ) { |
|
539 | + public static function site_transient_update_plugins($option) { |
|
540 | + if (isset($option->response[WPSHOP_PLUGIN_NAME])) { |
|
541 | 541 | global $wpdb; |
542 | 542 | $message_mdl = new wps_message_mdl(); |
543 | - $admin_new_version_message = get_option( 'WPSHOP_NEW_VERSION_ADMIN_MESSAGE', null ); |
|
544 | - $shop_admin_email_option = get_option( 'wpshop_emails' ); |
|
545 | - $shop_admin_id = $wpdb->get_var( $wpdb->prepare( 'SELECT ID FROM ' . $wpdb->users . ' WHERE user_email = %s', $shop_admin_email_option['contact_email'] ) ); |
|
546 | - if ( ! is_null( $shop_admin_id ) && ! is_null( $admin_new_version_message ) ) { |
|
547 | - $messages_histo = $message_mdl->get_messages_histo( $admin_new_version_message, $shop_admin_id ); |
|
548 | - if ( ! empty( $messages_histo ) ) { |
|
549 | - foreach ( $messages_histo as $messages_histo_group ) { |
|
550 | - foreach ( $messages_histo_group as $messages_histo ) { |
|
551 | - if ( strpos( $messages_histo['mess_title'], $option->response[ WPSHOP_PLUGIN_NAME ]->new_version ) !== false |
|
552 | - || strpos( $messages_histo['mess_message'], $option->response[ WPSHOP_PLUGIN_NAME ]->new_version ) !== false ) { |
|
543 | + $admin_new_version_message = get_option('WPSHOP_NEW_VERSION_ADMIN_MESSAGE', null); |
|
544 | + $shop_admin_email_option = get_option('wpshop_emails'); |
|
545 | + $shop_admin_id = $wpdb->get_var($wpdb->prepare('SELECT ID FROM ' . $wpdb->users . ' WHERE user_email = %s', $shop_admin_email_option['contact_email'])); |
|
546 | + if (!is_null($shop_admin_id) && !is_null($admin_new_version_message)) { |
|
547 | + $messages_histo = $message_mdl->get_messages_histo($admin_new_version_message, $shop_admin_id); |
|
548 | + if (!empty($messages_histo)) { |
|
549 | + foreach ($messages_histo as $messages_histo_group) { |
|
550 | + foreach ($messages_histo_group as $messages_histo) { |
|
551 | + if (strpos($messages_histo['mess_title'], $option->response[WPSHOP_PLUGIN_NAME]->new_version) !== false |
|
552 | + || strpos($messages_histo['mess_message'], $option->response[WPSHOP_PLUGIN_NAME]->new_version) !== false) { |
|
553 | 553 | return $option; |
554 | 554 | } |
555 | 555 | } |
556 | 556 | } |
557 | 557 | } |
558 | 558 | $wps_message = new wps_message_ctr(); |
559 | - $wps_message->wpshop_prepared_email( $shop_admin_email_option['contact_email'], 'WPSHOP_NEW_VERSION_ADMIN_MESSAGE', array( |
|
560 | - 'wpshop_version' => $option->response[ WPSHOP_PLUGIN_NAME ]->new_version, |
|
561 | - ) ); |
|
559 | + $wps_message->wpshop_prepared_email($shop_admin_email_option['contact_email'], 'WPSHOP_NEW_VERSION_ADMIN_MESSAGE', array( |
|
560 | + 'wpshop_version' => $option->response[WPSHOP_PLUGIN_NAME]->new_version, |
|
561 | + )); |
|
562 | 562 | } |
563 | 563 | } |
564 | 564 | return $option; |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : unicode_data.php |
4 | 4 | // Begin : 2008-01-01 |
@@ -17855,7 +17855,7 @@ discard block |
||
17855 | 17855 | * at http://www.unicode.org/unicode/reports/tr9/ |
17856 | 17856 | */ |
17857 | 17857 | global $unicode_mirror; |
17858 | -$unicode_mirror = array ( |
|
17858 | +$unicode_mirror = array( |
|
17859 | 17859 | 0x0028=>0x0029, |
17860 | 17860 | 0x0029=>0x0028, |
17861 | 17861 | 0x003C=>0x003E, |
@@ -18298,7 +18298,7 @@ discard block |
||
18298 | 18298 | * char code=>isolated, final, initial, medial |
18299 | 18299 | */ |
18300 | 18300 | global $laa_array; |
18301 | -$laa_array = array ( |
|
18301 | +$laa_array = array( |
|
18302 | 18302 | 1570 =>array(65269, 65270, 65269, 65270), |
18303 | 18303 | 1571 =>array(65271, 65272, 65271, 65272), |
18304 | 18304 | 1573 =>array(65273, 65274, 65273, 65274), |
@@ -18312,7 +18312,7 @@ discard block |
||
18312 | 18312 | * second NSM char code=>substitution char |
18313 | 18313 | */ |
18314 | 18314 | global $diacritics; |
18315 | -$diacritics = array ( |
|
18315 | +$diacritics = array( |
|
18316 | 18316 | 1612=>64606, # Shadda + Dammatan |
18317 | 18317 | 1613=>64607, # Shadda + Kasratan |
18318 | 18318 | 1614=>64608, # Shadda + Fatha |
@@ -18324,23 +18324,23 @@ discard block |
||
18324 | 18324 | * Array of character substitutions from UTF-8 unicode to latin1 |
18325 | 18325 | */ |
18326 | 18326 | global $utf8tolatin; |
18327 | -$utf8tolatin = array ( |
|
18327 | +$utf8tolatin = array( |
|
18328 | 18328 | 8364=>128, # Euro1 |
18329 | -338=>140, # OE |
|
18330 | -352=>138, # Scaron |
|
18331 | -376=>159, # Ydieresis |
|
18332 | -381=>142, # Zcaron2 |
|
18329 | +338=>140, # OE |
|
18330 | +352=>138, # Scaron |
|
18331 | +376=>159, # Ydieresis |
|
18332 | +381=>142, # Zcaron2 |
|
18333 | 18333 | 8226=>149, # bullet3 |
18334 | -710=>136, # circumflex |
|
18334 | +710=>136, # circumflex |
|
18335 | 18335 | 8224=>134, # dagger |
18336 | 18336 | 8225=>135, # daggerdbl |
18337 | 18337 | 8230=>133, # ellipsis |
18338 | 18338 | 8212=>151, # emdash |
18339 | 18339 | 8211=>150, # endash |
18340 | -402=>131, # florin |
|
18340 | +402=>131, # florin |
|
18341 | 18341 | 8249=>139, # guilsinglleft |
18342 | 18342 | 8250=>155, # guilsinglright |
18343 | -339=>156, # oe |
|
18343 | +339=>156, # oe |
|
18344 | 18344 | 8240=>137, # perthousand |
18345 | 18345 | 8222=>132, # quotedblbase |
18346 | 18346 | 8220=>147, # quotedblleft |
@@ -18348,8 +18348,8 @@ discard block |
||
18348 | 18348 | 8216=>145, # quoteleft |
18349 | 18349 | 8217=>146, # quoteright |
18350 | 18350 | 8218=>130, # quotesinglbase |
18351 | -353=>154, # scaron |
|
18352 | -732=>152, # tilde |
|
18351 | +353=>154, # scaron |
|
18352 | +732=>152, # tilde |
|
18353 | 18353 | 8482=>153, # trademark |
18354 | 18354 | 382=>158 # zcaron2 |
18355 | 18355 | ); |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : unicode_data.php |
4 | 6 | // Begin : 2008-01-01 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : eng.php |
4 | 4 | // Begin : 2004-03-03 |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : eng.php |
4 | 6 | // Begin : 2004-03-03 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : ita.php |
4 | 4 | // Begin : 2004-03-03 |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : ita.php |
4 | 6 | // Begin : 2004-03-03 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : tcpdf_config.php |
4 | 4 | // Begin : 2004-06-11 |
@@ -35,18 +35,18 @@ discard block |
||
35 | 35 | |
36 | 36 | // DOCUMENT_ROOT fix for IIS Webserver |
37 | 37 | if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { |
38 | - if(isset($_SERVER['SCRIPT_FILENAME'])) { |
|
39 | - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); |
|
40 | - } elseif(isset($_SERVER['PATH_TRANSLATED'])) { |
|
41 | - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); |
|
42 | - } else { |
|
38 | + if (isset($_SERVER['SCRIPT_FILENAME'])) { |
|
39 | + $_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF']))); |
|
40 | + } elseif (isset($_SERVER['PATH_TRANSLATED'])) { |
|
41 | + $_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF']))); |
|
42 | + } else { |
|
43 | 43 | // define here your DOCUMENT_ROOT path if the previous fails |
44 | 44 | $_SERVER['DOCUMENT_ROOT'] = '/var/www'; |
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | 48 | // Automatic calculation for the following K_PATH_MAIN constant |
49 | - $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); |
|
49 | + $k_path_main = str_replace('\\', '/', realpath(substr(dirname(__FILE__), 0, 0 - strlen('config')))); |
|
50 | 50 | if (substr($k_path_main, -1) != '/') { |
51 | 51 | $k_path_main .= '/'; |
52 | 52 | } |
@@ -55,156 +55,156 @@ discard block |
||
55 | 55 | * Installation path (/var/www/tcpdf/). |
56 | 56 | * By default it is automatically calculated but you can also set it as a fixed string to improve performances. |
57 | 57 | */ |
58 | - define ('K_PATH_MAIN', $k_path_main); |
|
58 | + define('K_PATH_MAIN', $k_path_main); |
|
59 | 59 | |
60 | 60 | // Automatic calculation for the following K_PATH_URL constant |
61 | 61 | $k_path_url = $k_path_main; // default value for console mode |
62 | 62 | if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { |
63 | - if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { |
|
63 | + if (isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS']) != 'off') { |
|
64 | 64 | $k_path_url = 'https://'; |
65 | 65 | } else { |
66 | 66 | $k_path_url = 'http://'; |
67 | 67 | } |
68 | 68 | $k_path_url .= $_SERVER['HTTP_HOST']; |
69 | - $k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24)); |
|
69 | + $k_path_url .= str_replace('\\', '/', substr($_SERVER['PHP_SELF'], 0, -24)); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | 73 | * URL path to tcpdf installation folder (http://localhost/tcpdf/). |
74 | 74 | * By default it is automatically calculated but you can also set it as a fixed string to improve performances. |
75 | 75 | */ |
76 | - define ('K_PATH_URL', $k_path_url); |
|
76 | + define('K_PATH_URL', $k_path_url); |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * path for PDF fonts |
80 | 80 | * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts |
81 | 81 | */ |
82 | - define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); |
|
82 | + define('K_PATH_FONTS', K_PATH_MAIN . 'fonts/'); |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * cache directory for temporary files (full path) |
86 | 86 | */ |
87 | - define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); |
|
87 | + define('K_PATH_CACHE', K_PATH_MAIN . 'cache/'); |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * cache directory for temporary files (url path) |
91 | 91 | */ |
92 | - define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); |
|
92 | + define('K_PATH_URL_CACHE', K_PATH_URL . 'cache/'); |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | *images directory |
96 | 96 | */ |
97 | - define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); |
|
97 | + define('K_PATH_IMAGES', K_PATH_MAIN . 'images/'); |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * blank image |
101 | 101 | */ |
102 | - define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png'); |
|
102 | + define('K_BLANK_IMAGE', K_PATH_IMAGES . '_blank.png'); |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * page format |
106 | 106 | */ |
107 | - define ('PDF_PAGE_FORMAT', 'A4'); |
|
107 | + define('PDF_PAGE_FORMAT', 'A4'); |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * page orientation (P=portrait, L=landscape) |
111 | 111 | */ |
112 | - define ('PDF_PAGE_ORIENTATION', 'P'); |
|
112 | + define('PDF_PAGE_ORIENTATION', 'P'); |
|
113 | 113 | |
114 | 114 | /** |
115 | 115 | * document creator |
116 | 116 | */ |
117 | - define ('PDF_CREATOR', 'TCPDF'); |
|
117 | + define('PDF_CREATOR', 'TCPDF'); |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * document author |
121 | 121 | */ |
122 | - define ('PDF_AUTHOR', 'TCPDF'); |
|
122 | + define('PDF_AUTHOR', 'TCPDF'); |
|
123 | 123 | |
124 | 124 | /** |
125 | 125 | * header title |
126 | 126 | */ |
127 | - define ('PDF_HEADER_TITLE', 'TCPDF Example'); |
|
127 | + define('PDF_HEADER_TITLE', 'TCPDF Example'); |
|
128 | 128 | |
129 | 129 | /** |
130 | 130 | * header description string |
131 | 131 | */ |
132 | - define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); |
|
132 | + define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); |
|
133 | 133 | |
134 | 134 | /** |
135 | 135 | * image logo |
136 | 136 | */ |
137 | - define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); |
|
137 | + define('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); |
|
138 | 138 | |
139 | 139 | /** |
140 | 140 | * header logo image width [mm] |
141 | 141 | */ |
142 | - define ('PDF_HEADER_LOGO_WIDTH', 30); |
|
142 | + define('PDF_HEADER_LOGO_WIDTH', 30); |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch] |
146 | 146 | */ |
147 | - define ('PDF_UNIT', 'mm'); |
|
147 | + define('PDF_UNIT', 'mm'); |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * header margin |
151 | 151 | */ |
152 | - define ('PDF_MARGIN_HEADER', 5); |
|
152 | + define('PDF_MARGIN_HEADER', 5); |
|
153 | 153 | |
154 | 154 | /** |
155 | 155 | * footer margin |
156 | 156 | */ |
157 | - define ('PDF_MARGIN_FOOTER', 10); |
|
157 | + define('PDF_MARGIN_FOOTER', 10); |
|
158 | 158 | |
159 | 159 | /** |
160 | 160 | * top margin |
161 | 161 | */ |
162 | - define ('PDF_MARGIN_TOP', 27); |
|
162 | + define('PDF_MARGIN_TOP', 27); |
|
163 | 163 | |
164 | 164 | /** |
165 | 165 | * bottom margin |
166 | 166 | */ |
167 | - define ('PDF_MARGIN_BOTTOM', 25); |
|
167 | + define('PDF_MARGIN_BOTTOM', 25); |
|
168 | 168 | |
169 | 169 | /** |
170 | 170 | * left margin |
171 | 171 | */ |
172 | - define ('PDF_MARGIN_LEFT', 15); |
|
172 | + define('PDF_MARGIN_LEFT', 15); |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * right margin |
176 | 176 | */ |
177 | - define ('PDF_MARGIN_RIGHT', 15); |
|
177 | + define('PDF_MARGIN_RIGHT', 15); |
|
178 | 178 | |
179 | 179 | /** |
180 | 180 | * default main font name |
181 | 181 | */ |
182 | - define ('PDF_FONT_NAME_MAIN', 'helvetica'); |
|
182 | + define('PDF_FONT_NAME_MAIN', 'helvetica'); |
|
183 | 183 | |
184 | 184 | /** |
185 | 185 | * default main font size |
186 | 186 | */ |
187 | - define ('PDF_FONT_SIZE_MAIN', 10); |
|
187 | + define('PDF_FONT_SIZE_MAIN', 10); |
|
188 | 188 | |
189 | 189 | /** |
190 | 190 | * default data font name |
191 | 191 | */ |
192 | - define ('PDF_FONT_NAME_DATA', 'helvetica'); |
|
192 | + define('PDF_FONT_NAME_DATA', 'helvetica'); |
|
193 | 193 | |
194 | 194 | /** |
195 | 195 | * default data font size |
196 | 196 | */ |
197 | - define ('PDF_FONT_SIZE_DATA', 8); |
|
197 | + define('PDF_FONT_SIZE_DATA', 8); |
|
198 | 198 | |
199 | 199 | /** |
200 | 200 | * default monospaced font name |
201 | 201 | */ |
202 | - define ('PDF_FONT_MONOSPACED', 'courier'); |
|
202 | + define('PDF_FONT_MONOSPACED', 'courier'); |
|
203 | 203 | |
204 | 204 | /** |
205 | 205 | * ratio used to adjust the conversion of pixels to user units |
206 | 206 | */ |
207 | - define ('PDF_IMAGE_SCALE_RATIO', 1.25); |
|
207 | + define('PDF_IMAGE_SCALE_RATIO', 1.25); |
|
208 | 208 | |
209 | 209 | /** |
210 | 210 | * magnification factor for titles |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * reduction factor for small font |
226 | 226 | */ |
227 | - define('K_SMALL_RATIO', 2/3); |
|
227 | + define('K_SMALL_RATIO', 2 / 3); |
|
228 | 228 | |
229 | 229 | /** |
230 | 230 | * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : tcpdf_config.php |
4 | 6 | // Begin : 2004-06-11 |
@@ -39,7 +41,7 @@ discard block |
||
39 | 41 | $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); |
40 | 42 | } elseif(isset($_SERVER['PATH_TRANSLATED'])) { |
41 | 43 | $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); |
42 | - } else { |
|
44 | + } else { |
|
43 | 45 | // define here your DOCUMENT_ROOT path if the previous fails |
44 | 46 | $_SERVER['DOCUMENT_ROOT'] = '/var/www'; |
45 | 47 | } |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : tcpdf_config.php |
4 | 4 | // Begin : 2004-06-11 |
@@ -31,18 +31,18 @@ discard block |
||
31 | 31 | |
32 | 32 | // DOCUMENT_ROOT fix for IIS Webserver |
33 | 33 | if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) { |
34 | - if(isset($_SERVER['SCRIPT_FILENAME'])) { |
|
35 | - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); |
|
36 | - } elseif(isset($_SERVER['PATH_TRANSLATED'])) { |
|
37 | - $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); |
|
38 | - } else { |
|
34 | + if (isset($_SERVER['SCRIPT_FILENAME'])) { |
|
35 | + $_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0 - strlen($_SERVER['PHP_SELF']))); |
|
36 | + } elseif (isset($_SERVER['PATH_TRANSLATED'])) { |
|
37 | + $_SERVER['DOCUMENT_ROOT'] = str_replace('\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0 - strlen($_SERVER['PHP_SELF']))); |
|
38 | + } else { |
|
39 | 39 | // define here your DOCUMENT_ROOT path if the previous fails |
40 | 40 | $_SERVER['DOCUMENT_ROOT'] = '/var/www'; |
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | 44 | // Automatic calculation for the following K_PATH_MAIN constant |
45 | -$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); |
|
45 | +$k_path_main = str_replace('\\', '/', realpath(substr(dirname(__FILE__), 0, 0 - strlen('config')))); |
|
46 | 46 | if (substr($k_path_main, -1) != '/') { |
47 | 47 | $k_path_main .= '/'; |
48 | 48 | } |
@@ -51,155 +51,155 @@ discard block |
||
51 | 51 | * Installation path (/var/www/tcpdf/). |
52 | 52 | * By default it is automatically calculated but you can also set it as a fixed string to improve performances. |
53 | 53 | */ |
54 | -define ('K_PATH_MAIN', $k_path_main); |
|
54 | +define('K_PATH_MAIN', $k_path_main); |
|
55 | 55 | |
56 | 56 | // Automatic calculation for the following K_PATH_URL constant |
57 | 57 | if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) { |
58 | - if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') { |
|
58 | + if (isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS']) != 'off') { |
|
59 | 59 | $k_path_url = 'https://'; |
60 | 60 | } else { |
61 | 61 | $k_path_url = 'http://'; |
62 | 62 | } |
63 | 63 | $k_path_url .= $_SERVER['HTTP_HOST']; |
64 | - $k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24)); |
|
64 | + $k_path_url .= str_replace('\\', '/', substr($_SERVER['PHP_SELF'], 0, -24)); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | 68 | * URL path to tcpdf installation folder (http://localhost/tcpdf/). |
69 | 69 | * By default it is automatically calculated but you can also set it as a fixed string to improve performances.. |
70 | 70 | */ |
71 | -define ('K_PATH_URL', $k_path_url); |
|
71 | +define('K_PATH_URL', $k_path_url); |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * path for PDF fonts |
75 | 75 | * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts |
76 | 76 | */ |
77 | -define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); |
|
77 | +define('K_PATH_FONTS', K_PATH_MAIN . 'fonts/'); |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * cache directory for temporary files (full path) |
81 | 81 | */ |
82 | -define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); |
|
82 | +define('K_PATH_CACHE', K_PATH_MAIN . 'cache/'); |
|
83 | 83 | |
84 | 84 | /** |
85 | 85 | * cache directory for temporary files (url path) |
86 | 86 | */ |
87 | -define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); |
|
87 | +define('K_PATH_URL_CACHE', K_PATH_URL . 'cache/'); |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | *images directory |
91 | 91 | */ |
92 | -define ('K_PATH_IMAGES', K_PATH_MAIN.'images/'); |
|
92 | +define('K_PATH_IMAGES', K_PATH_MAIN . 'images/'); |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * blank image |
96 | 96 | */ |
97 | -define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png'); |
|
97 | +define('K_BLANK_IMAGE', K_PATH_IMAGES . '_blank.png'); |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * page format |
101 | 101 | */ |
102 | -define ('PDF_PAGE_FORMAT', 'A4'); |
|
102 | +define('PDF_PAGE_FORMAT', 'A4'); |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * page orientation (P=portrait, L=landscape) |
106 | 106 | */ |
107 | -define ('PDF_PAGE_ORIENTATION', 'P'); |
|
107 | +define('PDF_PAGE_ORIENTATION', 'P'); |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * document creator |
111 | 111 | */ |
112 | -define ('PDF_CREATOR', 'TCPDF'); |
|
112 | +define('PDF_CREATOR', 'TCPDF'); |
|
113 | 113 | |
114 | 114 | /** |
115 | 115 | * document author |
116 | 116 | */ |
117 | -define ('PDF_AUTHOR', 'TCPDF'); |
|
117 | +define('PDF_AUTHOR', 'TCPDF'); |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * header title |
121 | 121 | */ |
122 | -define ('PDF_HEADER_TITLE', 'TCPDF Example'); |
|
122 | +define('PDF_HEADER_TITLE', 'TCPDF Example'); |
|
123 | 123 | |
124 | 124 | /** |
125 | 125 | * header description string |
126 | 126 | */ |
127 | -define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); |
|
127 | +define('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); |
|
128 | 128 | |
129 | 129 | /** |
130 | 130 | * image logo |
131 | 131 | */ |
132 | -define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); |
|
132 | +define('PDF_HEADER_LOGO', 'tcpdf_logo.jpg'); |
|
133 | 133 | |
134 | 134 | /** |
135 | 135 | * header logo image width [mm] |
136 | 136 | */ |
137 | -define ('PDF_HEADER_LOGO_WIDTH', 30); |
|
137 | +define('PDF_HEADER_LOGO_WIDTH', 30); |
|
138 | 138 | |
139 | 139 | /** |
140 | 140 | * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch] |
141 | 141 | */ |
142 | -define ('PDF_UNIT', 'mm'); |
|
142 | +define('PDF_UNIT', 'mm'); |
|
143 | 143 | |
144 | 144 | /** |
145 | 145 | * header margin |
146 | 146 | */ |
147 | -define ('PDF_MARGIN_HEADER', 5); |
|
147 | +define('PDF_MARGIN_HEADER', 5); |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * footer margin |
151 | 151 | */ |
152 | -define ('PDF_MARGIN_FOOTER', 10); |
|
152 | +define('PDF_MARGIN_FOOTER', 10); |
|
153 | 153 | |
154 | 154 | /** |
155 | 155 | * top margin |
156 | 156 | */ |
157 | -define ('PDF_MARGIN_TOP', 27); |
|
157 | +define('PDF_MARGIN_TOP', 27); |
|
158 | 158 | |
159 | 159 | /** |
160 | 160 | * bottom margin |
161 | 161 | */ |
162 | -define ('PDF_MARGIN_BOTTOM', 25); |
|
162 | +define('PDF_MARGIN_BOTTOM', 25); |
|
163 | 163 | |
164 | 164 | /** |
165 | 165 | * left margin |
166 | 166 | */ |
167 | -define ('PDF_MARGIN_LEFT', 15); |
|
167 | +define('PDF_MARGIN_LEFT', 15); |
|
168 | 168 | |
169 | 169 | /** |
170 | 170 | * right margin |
171 | 171 | */ |
172 | -define ('PDF_MARGIN_RIGHT', 15); |
|
172 | +define('PDF_MARGIN_RIGHT', 15); |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * default main font name |
176 | 176 | */ |
177 | -define ('PDF_FONT_NAME_MAIN', 'helvetica'); |
|
177 | +define('PDF_FONT_NAME_MAIN', 'helvetica'); |
|
178 | 178 | |
179 | 179 | /** |
180 | 180 | * default main font size |
181 | 181 | */ |
182 | -define ('PDF_FONT_SIZE_MAIN', 10); |
|
182 | +define('PDF_FONT_SIZE_MAIN', 10); |
|
183 | 183 | |
184 | 184 | /** |
185 | 185 | * default data font name |
186 | 186 | */ |
187 | -define ('PDF_FONT_NAME_DATA', 'helvetica'); |
|
187 | +define('PDF_FONT_NAME_DATA', 'helvetica'); |
|
188 | 188 | |
189 | 189 | /** |
190 | 190 | * default data font size |
191 | 191 | */ |
192 | -define ('PDF_FONT_SIZE_DATA', 8); |
|
192 | +define('PDF_FONT_SIZE_DATA', 8); |
|
193 | 193 | |
194 | 194 | /** |
195 | 195 | * default monospaced font name |
196 | 196 | */ |
197 | -define ('PDF_FONT_MONOSPACED', 'courier'); |
|
197 | +define('PDF_FONT_MONOSPACED', 'courier'); |
|
198 | 198 | |
199 | 199 | /** |
200 | 200 | * ratio used to adjust the conversion of pixels to user units |
201 | 201 | */ |
202 | -define ('PDF_IMAGE_SCALE_RATIO', 1.25); |
|
202 | +define('PDF_IMAGE_SCALE_RATIO', 1.25); |
|
203 | 203 | |
204 | 204 | /** |
205 | 205 | * magnification factor for titles |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | /** |
220 | 220 | * reduction factor for small font |
221 | 221 | */ |
222 | -define('K_SMALL_RATIO', 2/3); |
|
222 | +define('K_SMALL_RATIO', 2 / 3); |
|
223 | 223 | |
224 | 224 | /** |
225 | 225 | * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language |
@@ -1,4 +1,6 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : tcpdf_config.php |
4 | 6 | // Begin : 2004-06-11 |
@@ -35,7 +37,7 @@ discard block |
||
35 | 37 | $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); |
36 | 38 | } elseif(isset($_SERVER['PATH_TRANSLATED'])) { |
37 | 39 | $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); |
38 | - } else { |
|
40 | + } else { |
|
39 | 41 | // define here your DOCUMENT_ROOT path if the previous fails |
40 | 42 | $_SERVER['DOCUMENT_ROOT'] = '/var/www'; |
41 | 43 | } |
@@ -51,14 +51,14 @@ discard block |
||
51 | 51 | */ |
52 | 52 | |
53 | 53 | /** |
54 | - * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> |
|
55 | - * @name TCPDFBarcode |
|
56 | - * @package com.tecnick.tcpdf |
|
57 | - * @version 1.0.003 |
|
58 | - * @author Nicola Asuni |
|
59 | - * @link http://www.tcpdf.org |
|
60 | - * @license http://www.gnu.org/copyleft/lesser.html LGPL |
|
61 | - */ |
|
54 | + * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> |
|
55 | + * @name TCPDFBarcode |
|
56 | + * @package com.tecnick.tcpdf |
|
57 | + * @version 1.0.003 |
|
58 | + * @author Nicola Asuni |
|
59 | + * @link http://www.tcpdf.org |
|
60 | + * @license http://www.gnu.org/copyleft/lesser.html LGPL |
|
61 | + */ |
|
62 | 62 | class TCPDF2DBarcode { |
63 | 63 | |
64 | 64 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * <li>$arrcode['num_cols'] required number of columns</li> |
76 | 76 | * <li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul> |
77 | 77 | * @param string $code code to print |
78 | - * @param string $type type of barcode: <ul>li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul> |
|
78 | + * @param string $type type of barcode: <ul>li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul> |
|
79 | 79 | */ |
80 | 80 | public function __construct($code, $type) { |
81 | 81 | $this->setBarcode($code, $type); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * Return an array representations of barcode. |
86 | - * @return array |
|
86 | + * @return array |
|
87 | 87 | */ |
88 | 88 | public function getBarcodeArray() { |
89 | 89 | return $this->barcode_array; |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * Set the barcode. |
94 | 94 | * @param string $code code to print |
95 | - * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul> |
|
96 | - * @return array |
|
95 | + * @param string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul> |
|
96 | + * @return array |
|
97 | 97 | */ |
98 | 98 | public function setBarcode($code, $type) { |
99 | 99 | $mode = explode(',', $type); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : 2dbarcodes.php |
4 | 4 | // Begin : 2009-04-07 |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | $qrtype = strtoupper($mode[0]); |
101 | 101 | switch ($qrtype) { |
102 | 102 | case 'QRCODE': { // QR-CODE |
103 | - require_once(dirname(__FILE__).'/qrcode.php'); |
|
104 | - if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) { |
|
103 | + require_once(dirname(__FILE__) . '/qrcode.php'); |
|
104 | + if (!isset($mode[1]) OR (!in_array($mode[1], array('L', 'M', 'Q', 'H')))) { |
|
105 | 105 | $mode[1] = 'L'; // Ddefault: Low error correction |
106 | 106 | } |
107 | 107 | $qrcode = new QRcode($code, strtoupper($mode[1])); |
@@ -135,11 +135,11 @@ discard block |
||
135 | 135 | $this->barcode_array['num_rows'] = 5; |
136 | 136 | $this->barcode_array['num_cols'] = 15; |
137 | 137 | $this->barcode_array['bcode'] = array( |
138 | - array(1,1,1,0,1,1,1,0,1,1,1,0,1,1,1), |
|
139 | - array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0), |
|
140 | - array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0), |
|
141 | - array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0), |
|
142 | - array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0)); |
|
138 | + array(1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1), |
|
139 | + array(0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0), |
|
140 | + array(0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0), |
|
141 | + array(0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0), |
|
142 | + array(0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0)); |
|
143 | 143 | break; |
144 | 144 | } |
145 | 145 | default: { |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : 2dbarcodes.php |
4 | 6 | // Begin : 2009-04-07 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | 2 | //============================================================+ |
3 | 3 | // File name : htmlcolors.php |
4 | 4 | // Begin : 2002-04-09 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * Array of WEB safe colors |
53 | 53 | */ |
54 | 54 | global $webcolor; |
55 | -$webcolor = array ( |
|
55 | +$webcolor = array( |
|
56 | 56 | 'aliceblue' => 'f0f8ff', |
57 | 57 | 'antiquewhite' => 'faebd7', |
58 | 58 | 'aqua' => '00ffff', |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | //============================================================+ |
3 | 5 | // File name : htmlcolors.php |
4 | 6 | // Begin : 2002-04-09 |
@@ -1,204 +1,204 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
2 | -$type='TrueTypeUnicode'; |
|
3 | -$name='FreeMonoBold'; |
|
4 | -$desc=array('Ascent'=>800,'Descent'=>-200,'CapHeight'=>10,'Flags'=>32,'FontBBox'=>'[-604 -200 754 800]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600); |
|
5 | -$up=-125; |
|
6 | -$ut=50; |
|
7 | -$dw=600; |
|
8 | -$cw=array( |
|
9 | -32=>600,33=>600,34=>600,35=>600,36=>600,37=>600,38=>600,39=>600,40=>600,41=>600, |
|
10 | -42=>600,43=>600,44=>600,45=>600,46=>600,47=>600,48=>600,49=>600,50=>600,51=>600, |
|
11 | -52=>600,53=>600,54=>600,55=>600,56=>600,57=>600,58=>600,59=>600,60=>600,61=>600, |
|
12 | -62=>600,63=>600,64=>600,65=>600,66=>600,67=>600,68=>600,69=>600,70=>600,71=>600, |
|
13 | -72=>600,73=>600,74=>600,75=>600,76=>600,77=>600,78=>600,79=>600,80=>600,81=>600, |
|
14 | -82=>600,83=>600,84=>600,85=>600,86=>600,87=>600,88=>600,89=>600,90=>600,91=>600, |
|
15 | -92=>600,93=>600,94=>600,95=>600,96=>600,97=>600,98=>600,99=>600,100=>600,101=>600, |
|
16 | -102=>600,103=>600,104=>600,105=>600,106=>600,107=>600,108=>600,109=>600,110=>600,111=>600, |
|
17 | -112=>600,113=>600,114=>600,115=>600,116=>600,117=>600,118=>600,119=>600,120=>600,121=>600, |
|
18 | -122=>600,123=>600,124=>600,125=>600,126=>600,8364=>600,8218=>600,402=>600,8222=>600,8230=>600, |
|
19 | -8224=>600,8225=>600,710=>600,8240=>600,352=>600,8249=>600,338=>600,381=>600,8216=>600,8217=>600, |
|
20 | -8220=>600,8221=>600,8226=>600,8211=>600,8212=>600,732=>600,8482=>600,353=>600,8250=>600,339=>600, |
|
21 | -382=>600,376=>600,160=>600,161=>600,162=>600,163=>600,164=>600,165=>600,166=>600,167=>600, |
|
22 | -168=>600,169=>600,170=>600,171=>600,172=>600,173=>600,174=>600,175=>600,176=>600,177=>600, |
|
23 | -178=>600,179=>600,180=>600,181=>600,182=>600,183=>600,184=>600,185=>600,186=>600,187=>600, |
|
24 | -188=>600,189=>600,190=>600,191=>600,192=>600,193=>600,194=>600,195=>600,196=>600,197=>600, |
|
25 | -198=>600,199=>600,200=>600,201=>600,202=>600,203=>600,204=>600,205=>600,206=>600,207=>600, |
|
26 | -208=>600,209=>600,210=>600,211=>600,212=>600,213=>600,214=>600,215=>600,216=>600,217=>600, |
|
27 | -218=>600,219=>600,220=>600,221=>600,222=>600,223=>600,224=>600,225=>600,226=>600,227=>600, |
|
28 | -228=>600,229=>600,230=>600,231=>600,232=>600,233=>600,234=>600,235=>600,236=>600,237=>600, |
|
29 | -238=>600,239=>600,240=>600,241=>600,242=>600,243=>600,244=>600,245=>600,246=>600,247=>600, |
|
30 | -248=>600,249=>600,250=>600,251=>600,252=>600,253=>600,254=>600,255=>600,256=>600,257=>600, |
|
31 | -258=>600,259=>600,260=>600,261=>600,262=>600,263=>600,264=>600,265=>600,266=>600,267=>600, |
|
32 | -268=>600,269=>600,270=>600,271=>600,272=>600,273=>600,274=>600,275=>600,276=>600,277=>600, |
|
33 | -278=>600,279=>600,280=>600,281=>600,282=>600,283=>600,284=>600,285=>600,286=>600,287=>600, |
|
34 | -288=>600,289=>600,290=>600,291=>600,292=>600,293=>600,294=>600,295=>600,296=>600,297=>600, |
|
35 | -298=>600,299=>600,300=>600,301=>600,302=>600,303=>600,304=>600,305=>600,306=>600,307=>600, |
|
36 | -308=>600,309=>600,310=>600,311=>600,312=>600,313=>600,314=>600,315=>600,316=>600,317=>600, |
|
37 | -318=>600,319=>600,320=>600,321=>600,322=>600,323=>600,324=>600,325=>600,326=>600,327=>600, |
|
38 | -328=>600,329=>600,330=>600,331=>600,332=>600,333=>600,334=>600,335=>600,336=>600,337=>600, |
|
39 | -340=>600,341=>600,342=>600,343=>600,344=>600,345=>600,346=>600,347=>600,348=>600,349=>600, |
|
40 | -350=>600,351=>600,354=>600,355=>600,356=>600,357=>600,358=>600,359=>600,360=>600,361=>600, |
|
41 | -362=>600,363=>600,364=>600,365=>600,366=>600,367=>600,368=>600,369=>600,370=>600,371=>600, |
|
42 | -372=>600,373=>600,374=>600,375=>600,377=>600,378=>600,379=>600,380=>600,383=>600,384=>600, |
|
43 | -385=>600,386=>600,387=>600,388=>600,389=>600,390=>600,391=>600,392=>600,393=>600,394=>600, |
|
44 | -395=>600,396=>600,397=>600,398=>600,399=>600,400=>600,401=>600,403=>600,404=>600,405=>600, |
|
45 | -406=>600,407=>600,408=>600,409=>600,410=>600,411=>600,412=>600,413=>600,414=>600,415=>600, |
|
46 | -416=>600,417=>600,418=>600,419=>600,420=>600,421=>600,422=>600,423=>600,424=>600,425=>600, |
|
47 | -426=>600,427=>600,428=>600,429=>600,430=>600,431=>600,432=>600,433=>600,434=>600,435=>600, |
|
48 | -436=>600,437=>600,438=>600,439=>600,440=>600,441=>600,442=>600,443=>600,444=>600,445=>600, |
|
49 | -446=>600,447=>600,448=>600,449=>600,450=>600,451=>600,452=>600,453=>600,454=>600,455=>600, |
|
50 | -456=>600,457=>600,458=>600,459=>600,460=>600,461=>600,462=>600,463=>600,464=>600,465=>600, |
|
51 | -466=>600,467=>600,468=>600,469=>600,470=>600,471=>600,472=>600,473=>600,474=>600,475=>600, |
|
52 | -476=>600,477=>600,478=>600,479=>600,480=>600,481=>600,482=>600,483=>600,484=>600,485=>600, |
|
53 | -486=>600,487=>600,488=>600,489=>600,490=>600,491=>600,492=>600,493=>600,494=>600,495=>600, |
|
54 | -496=>600,497=>600,498=>600,499=>600,500=>600,501=>600,502=>600,503=>600,504=>600,505=>600, |
|
55 | -506=>600,507=>600,508=>600,509=>600,510=>600,511=>600,512=>600,513=>600,514=>600,515=>600, |
|
56 | -516=>600,517=>600,518=>600,519=>600,520=>600,521=>600,522=>600,523=>600,524=>600,525=>600, |
|
57 | -526=>600,527=>600,528=>600,529=>600,530=>600,531=>600,532=>600,533=>600,534=>600,535=>600, |
|
58 | -536=>600,537=>600,538=>600,539=>600,540=>600,541=>600,542=>600,543=>600,548=>600,549=>600, |
|
59 | -550=>600,551=>600,552=>600,553=>600,554=>600,555=>600,556=>600,557=>600,558=>600,559=>600, |
|
60 | -560=>600,561=>600,562=>600,563=>600,567=>600,592=>600,593=>600,594=>600,595=>600,596=>600, |
|
61 | -598=>600,599=>600,600=>600,601=>600,603=>600,604=>600,607=>600,608=>600,609=>600,613=>600, |
|
62 | -614=>600,615=>600,616=>600,617=>600,618=>600,619=>600,621=>600,623=>600,624=>600,625=>600, |
|
63 | -626=>600,627=>600,628=>600,629=>600,633=>600,634=>600,635=>600,636=>600,637=>600,638=>600, |
|
64 | -639=>600,640=>600,641=>600,642=>600,643=>600,644=>600,645=>600,647=>600,648=>600,649=>600, |
|
65 | -652=>600,653=>600,654=>600,656=>600,657=>600,658=>600,659=>600,660=>600,661=>600,662=>600, |
|
66 | -663=>600,664=>600,665=>600,666=>600,667=>600,668=>600,669=>600,670=>600,671=>600,672=>600, |
|
67 | -673=>600,674=>600,688=>600,689=>600,690=>600,691=>600,692=>600,693=>600,694=>600,695=>600, |
|
68 | -696=>600,697=>600,698=>600,699=>600,700=>600,701=>600,702=>600,703=>600,704=>600,705=>600, |
|
69 | -706=>600,707=>600,708=>600,709=>600,711=>600,712=>600,713=>600,714=>600,715=>600,716=>600, |
|
70 | -717=>600,718=>600,719=>600,720=>600,721=>600,722=>600,723=>600,724=>600,725=>600,726=>600, |
|
71 | -727=>600,728=>600,729=>600,730=>600,731=>600,733=>600,734=>600,735=>600,736=>600,737=>600, |
|
72 | -738=>600,739=>600,740=>600,741=>600,742=>600,743=>600,744=>600,745=>600,746=>600,747=>600, |
|
73 | -748=>600,749=>600,750=>600,751=>600,752=>600,753=>600,754=>600,755=>600,756=>600,757=>600, |
|
74 | -758=>600,759=>600,760=>600,761=>600,762=>600,763=>600,764=>600,765=>600,766=>600,767=>600, |
|
75 | -768=>0,769=>0,770=>0,771=>0,772=>0,773=>0,774=>0,775=>0,776=>0,777=>0, |
|
76 | -778=>0,779=>0,780=>0,781=>0,782=>0,783=>0,784=>0,785=>0,786=>0,787=>0, |
|
77 | -788=>0,789=>0,790=>0,791=>0,795=>0,796=>0,800=>0,801=>0,802=>0,803=>0, |
|
78 | -804=>0,805=>0,806=>0,807=>0,808=>0,809=>0,810=>0,812=>0,813=>0,814=>0, |
|
79 | -815=>0,816=>0,817=>0,818=>0,819=>0,820=>0,821=>0,822=>0,823=>0,826=>0, |
|
80 | -827=>0,831=>0,832=>0,833=>0,834=>0,835=>0,836=>0,838=>0,839=>0,840=>0, |
|
81 | -844=>0,849=>0,850=>0,851=>0,852=>0,853=>0,854=>0,855=>0,884=>600,885=>600, |
|
82 | -890=>600,894=>600,900=>600,901=>600,902=>600,903=>600,904=>600,905=>600,906=>600,908=>600, |
|
83 | -910=>600,911=>600,912=>600,913=>600,914=>600,915=>600,916=>600,917=>600,918=>600,919=>600, |
|
84 | -920=>600,921=>600,922=>600,923=>600,924=>600,925=>600,926=>600,927=>600,928=>600,929=>600, |
|
85 | -931=>600,932=>600,933=>600,934=>600,935=>600,936=>600,937=>600,938=>600,939=>600,940=>600, |
|
86 | -941=>600,942=>600,943=>600,944=>600,945=>600,946=>600,947=>600,948=>600,949=>600,950=>600, |
|
87 | -951=>600,952=>600,953=>600,954=>600,955=>600,956=>600,957=>600,958=>600,959=>600,960=>600, |
|
88 | -961=>600,962=>600,963=>600,964=>600,965=>600,966=>600,967=>600,968=>600,969=>600,970=>600, |
|
89 | -971=>600,972=>600,973=>600,974=>600,976=>600,977=>600,978=>600,979=>600,980=>600,981=>600, |
|
90 | -982=>600,986=>600,987=>600,988=>600,1008=>600,1009=>600,1012=>600,1013=>600,1024=>600,1025=>600, |
|
91 | -1026=>600,1027=>600,1028=>600,1029=>600,1030=>600,1031=>600,1032=>600,1033=>600,1034=>600,1035=>600, |
|
92 | -1036=>600,1037=>600,1038=>600,1039=>600,1040=>600,1041=>600,1042=>600,1043=>600,1044=>600,1045=>600, |
|
93 | -1046=>600,1047=>600,1048=>600,1049=>600,1050=>600,1051=>600,1052=>600,1053=>600,1054=>600,1055=>600, |
|
94 | -1056=>600,1057=>600,1058=>600,1059=>600,1060=>600,1061=>600,1062=>600,1063=>600,1064=>600,1065=>600, |
|
95 | -1066=>600,1067=>600,1068=>600,1069=>600,1070=>600,1071=>600,1072=>600,1073=>600,1074=>600,1075=>600, |
|
96 | -1076=>600,1077=>600,1078=>600,1079=>600,1080=>600,1081=>600,1082=>600,1083=>600,1084=>600,1085=>600, |
|
97 | -1086=>600,1087=>600,1088=>600,1089=>600,1090=>600,1091=>600,1092=>600,1093=>600,1094=>600,1095=>600, |
|
98 | -1096=>600,1097=>600,1098=>600,1099=>600,1100=>600,1101=>600,1102=>600,1103=>600,1104=>600,1105=>600, |
|
99 | -1106=>600,1107=>600,1108=>600,1109=>600,1110=>600,1111=>600,1112=>600,1113=>600,1114=>600,1115=>600, |
|
100 | -1116=>600,1117=>600,1118=>600,1119=>600,1136=>600,1137=>600,1138=>600,1156=>0,1157=>0,1158=>0, |
|
101 | -1162=>600,1163=>600,1164=>600,1165=>600,1166=>600,1167=>600,1168=>600,1169=>600,1170=>600,1171=>600, |
|
102 | -1172=>600,1173=>600,1174=>600,1175=>600,1176=>600,1177=>600,1178=>600,1179=>600,1180=>600,1181=>600, |
|
103 | -1182=>600,1183=>600,1184=>600,1185=>600,1186=>600,1187=>600,1188=>600,1189=>600,1190=>600,1191=>600, |
|
104 | -1192=>600,1193=>600,1194=>600,1195=>600,1196=>600,1197=>600,1198=>600,1199=>600,1200=>600,1201=>600, |
|
105 | -1202=>600,1203=>600,1204=>600,1205=>600,1206=>600,1207=>600,1208=>600,1209=>600,1210=>600,1211=>600, |
|
106 | -1212=>600,1213=>600,1214=>600,1215=>600,1216=>600,1217=>600,1218=>600,1219=>600,1220=>600,1221=>600, |
|
107 | -1222=>600,1223=>600,1224=>600,1225=>600,1226=>600,1227=>600,1228=>600,1229=>600,1230=>600,1231=>600, |
|
108 | -1232=>600,1233=>600,1234=>600,1235=>600,1236=>600,1237=>600,1238=>600,1239=>600,1240=>600,1241=>600, |
|
109 | -1242=>600,1243=>600,1244=>600,1245=>600,1246=>600,1247=>600,1248=>600,1249=>600,1250=>600,1251=>600, |
|
110 | -1252=>600,1253=>600,1254=>600,1255=>600,1256=>600,1257=>600,1258=>600,1259=>600,1260=>600,1261=>600, |
|
111 | -1262=>600,1263=>600,1264=>600,1265=>600,1266=>600,1267=>600,1268=>600,1269=>600,1270=>600,1271=>600, |
|
112 | -1272=>600,1273=>600,1296=>600,1297=>600,1298=>600,1299=>600,1306=>600,1307=>600,1308=>600,1309=>600, |
|
113 | -1310=>600,1311=>600,1456=>0,1457=>0,1458=>0,1459=>0,1460=>0,1461=>0,1462=>0,1463=>0, |
|
114 | -1464=>0,1465=>0,1467=>0,1468=>0,1469=>0,1470=>600,1471=>0,1472=>600,1473=>0,1474=>0, |
|
115 | -1475=>600,1476=>0,1488=>600,1489=>600,1490=>600,1491=>600,1492=>600,1493=>600,1494=>600,1495=>600, |
|
116 | -1496=>600,1497=>600,1498=>600,1499=>600,1500=>600,1501=>600,1502=>600,1503=>600,1504=>600,1505=>600, |
|
117 | -1506=>600,1507=>600,1508=>600,1509=>600,1510=>600,1511=>600,1512=>600,1513=>600,1514=>600,1520=>600, |
|
118 | -1521=>600,1522=>600,1523=>600,1524=>600,4304=>600,4305=>600,4306=>600,4307=>600,4308=>600,4309=>600, |
|
119 | -4310=>600,4311=>600,4312=>600,4313=>600,4314=>600,4315=>600,4316=>600,4317=>600,4318=>600,4319=>600, |
|
120 | -4320=>600,4321=>600,4322=>600,4323=>600,4324=>600,4325=>600,4326=>600,4327=>600,4328=>600,4329=>600, |
|
121 | -4330=>600,4331=>600,4332=>600,4333=>600,4334=>600,4335=>600,4336=>600,4337=>600,4338=>600,4339=>600, |
|
122 | -4340=>600,4341=>600,4345=>600,4347=>600,7680=>600,7681=>600,7682=>600,7683=>600,7684=>600,7685=>600, |
|
123 | -7686=>600,7687=>600,7688=>600,7689=>600,7690=>600,7691=>600,7692=>600,7693=>600,7694=>600,7695=>600, |
|
124 | -7696=>600,7697=>600,7698=>600,7699=>600,7700=>600,7701=>600,7702=>600,7703=>600,7704=>600,7705=>600, |
|
125 | -7706=>600,7707=>600,7708=>600,7709=>600,7710=>600,7711=>600,7712=>600,7713=>600,7714=>600,7715=>600, |
|
126 | -7716=>600,7717=>600,7718=>600,7719=>600,7720=>600,7721=>600,7722=>600,7723=>600,7724=>600,7725=>600, |
|
127 | -7726=>600,7727=>600,7728=>600,7729=>600,7730=>600,7731=>600,7732=>600,7733=>600,7734=>600,7735=>600, |
|
128 | -7736=>600,7737=>600,7738=>600,7739=>600,7740=>600,7741=>600,7742=>600,7743=>600,7744=>600,7745=>600, |
|
129 | -7746=>600,7747=>600,7748=>600,7749=>600,7750=>600,7751=>600,7752=>600,7753=>600,7754=>600,7755=>600, |
|
130 | -7756=>600,7757=>600,7758=>600,7759=>600,7760=>600,7761=>600,7762=>600,7763=>600,7764=>600,7765=>600, |
|
131 | -7766=>600,7767=>600,7768=>600,7769=>600,7770=>600,7771=>600,7772=>600,7773=>600,7774=>600,7775=>600, |
|
132 | -7776=>600,7777=>600,7778=>600,7779=>600,7780=>600,7781=>600,7782=>600,7783=>600,7784=>600,7785=>600, |
|
133 | -7786=>600,7787=>600,7788=>600,7789=>600,7790=>600,7791=>600,7792=>600,7793=>600,7794=>600,7795=>600, |
|
134 | -7796=>600,7797=>600,7798=>600,7799=>600,7800=>600,7801=>600,7802=>600,7803=>600,7804=>600,7805=>600, |
|
135 | -7806=>600,7807=>600,7808=>600,7809=>600,7810=>600,7811=>600,7812=>600,7813=>600,7814=>600,7815=>600, |
|
136 | -7816=>600,7817=>600,7818=>600,7819=>600,7820=>600,7821=>600,7822=>600,7823=>600,7824=>600,7825=>600, |
|
137 | -7826=>600,7827=>600,7828=>600,7829=>600,7830=>600,7831=>600,7832=>600,7833=>600,7834=>600,7835=>600, |
|
138 | -7840=>600,7841=>600,7842=>600,7843=>600,7844=>600,7845=>600,7846=>600,7847=>600,7848=>600,7849=>600, |
|
139 | -7850=>600,7851=>600,7852=>600,7853=>600,7854=>600,7855=>600,7856=>600,7857=>600,7858=>600,7859=>600, |
|
140 | -7860=>600,7861=>600,7862=>600,7863=>600,7864=>600,7865=>600,7866=>600,7867=>600,7868=>600,7869=>600, |
|
141 | -7870=>600,7871=>600,7872=>600,7873=>600,7874=>600,7875=>600,7876=>600,7877=>600,7878=>600,7879=>600, |
|
142 | -7880=>600,7881=>600,7882=>600,7883=>600,7884=>600,7885=>600,7886=>600,7887=>600,7888=>600,7889=>600, |
|
143 | -7890=>600,7891=>600,7892=>600,7893=>600,7894=>600,7895=>600,7896=>600,7897=>600,7898=>600,7899=>600, |
|
144 | -7900=>600,7901=>600,7902=>600,7903=>600,7904=>600,7905=>600,7906=>600,7907=>600,7908=>600,7909=>600, |
|
145 | -7910=>600,7911=>600,7912=>600,7913=>600,7914=>600,7915=>600,7916=>600,7917=>600,7918=>600,7919=>600, |
|
146 | -7920=>600,7921=>600,7922=>600,7923=>600,7924=>600,7925=>600,7926=>600,7927=>600,7928=>600,7929=>600, |
|
147 | -8192=>600,8193=>600,8194=>600,8195=>600,8196=>600,8197=>600,8198=>600,8199=>600,8200=>600,8201=>600, |
|
148 | -8202=>600,8203=>600,8204=>0,8205=>0,8206=>0,8207=>0,8208=>600,8209=>600,8210=>600,8213=>600, |
|
149 | -8214=>600,8215=>600,8219=>600,8223=>600,8227=>600,8228=>600,8229=>600,8231=>600,8232=>600,8233=>600, |
|
150 | -8234=>600,8235=>600,8236=>600,8237=>600,8238=>600,8239=>600,8241=>600,8242=>600,8243=>600,8244=>600, |
|
151 | -8245=>600,8246=>600,8247=>600,8248=>600,8251=>600,8252=>600,8253=>600,8254=>600,8255=>600,8256=>600, |
|
152 | -8257=>600,8258=>600,8259=>600,8260=>600,8261=>600,8262=>600,8263=>600,8264=>600,8265=>600,8266=>600, |
|
153 | -8267=>600,8268=>600,8269=>600,8270=>600,8271=>600,8272=>600,8273=>600,8274=>600,8275=>600,8276=>600, |
|
154 | -8277=>600,8278=>600,8279=>600,8280=>600,8281=>600,8282=>600,8283=>600,8284=>600,8285=>600,8286=>600, |
|
155 | -8287=>600,8288=>600,8289=>600,8290=>600,8291=>600,8292=>600,8298=>600,8299=>600,8300=>600,8301=>600, |
|
156 | -8302=>600,8303=>600,8304=>600,8305=>600,8308=>600,8309=>600,8310=>600,8311=>600,8312=>600,8313=>600, |
|
157 | -8314=>600,8315=>600,8316=>600,8317=>600,8318=>600,8319=>600,8320=>600,8321=>600,8322=>600,8323=>600, |
|
158 | -8324=>600,8325=>600,8326=>600,8327=>600,8328=>600,8329=>600,8330=>600,8331=>600,8332=>600,8333=>600, |
|
159 | -8334=>600,8336=>600,8337=>600,8338=>600,8339=>600,8340=>600,8355=>600,8356=>600,8362=>600,8373=>600, |
|
160 | -8448=>600,8449=>600,8451=>600,8453=>600,8454=>600,8457=>600,8465=>600,8466=>600,8470=>600,8472=>600, |
|
161 | -8476=>600,8481=>600,8486=>600,8487=>600,8489=>600,8490=>600,8491=>600,8498=>600,8501=>600,8502=>600, |
|
162 | -8503=>600,8504=>600,8506=>600,8507=>600,8523=>600,8531=>600,8532=>600,8533=>600,8534=>600,8535=>600, |
|
163 | -8536=>600,8537=>600,8538=>600,8539=>600,8540=>600,8541=>600,8542=>600,8543=>600,8544=>600,8545=>600, |
|
164 | -8546=>600,8547=>600,8548=>600,8549=>600,8550=>600,8553=>600,8556=>600,8557=>600,8558=>600,8559=>600, |
|
165 | -8560=>600,8564=>600,8569=>600,8572=>600,8573=>600,8574=>600,8575=>600,8592=>600,8593=>600,8594=>600, |
|
166 | -8595=>600,8704=>600,8706=>600,8707=>600,8709=>600,8710=>600,8711=>600,8712=>600,8713=>600,8715=>600, |
|
167 | -8716=>600,8721=>600,8722=>600,8723=>600,8725=>600,8730=>600,8733=>600,8734=>600,8735=>600,8756=>600, |
|
168 | -8800=>600,8801=>600,8804=>600,8805=>600,8834=>600,8835=>600,8836=>600,8837=>600,8838=>600,8839=>600, |
|
169 | -8869=>600,8976=>600,9001=>600,9002=>600,9251=>600,9472=>600,9473=>600,9474=>600,9475=>600,9476=>600, |
|
170 | -9477=>600,9478=>600,9479=>600,9480=>600,9481=>600,9482=>600,9483=>600,9484=>600,9485=>600,9486=>600, |
|
171 | -9487=>600,9488=>600,9489=>600,9490=>600,9491=>600,9492=>600,9493=>600,9494=>600,9495=>600,9496=>600, |
|
172 | -9497=>600,9498=>600,9499=>600,9500=>600,9501=>600,9502=>600,9503=>600,9504=>600,9505=>600,9506=>600, |
|
173 | -9507=>600,9508=>600,9509=>600,9510=>600,9511=>600,9512=>600,9513=>600,9514=>600,9515=>600,9516=>600, |
|
174 | -9517=>600,9518=>600,9519=>600,9520=>600,9521=>600,9522=>600,9523=>600,9524=>600,9525=>600,9526=>600, |
|
175 | -9527=>600,9528=>600,9529=>600,9530=>600,9531=>600,9532=>600,9533=>600,9534=>600,9535=>600,9536=>600, |
|
176 | -9537=>600,9538=>600,9539=>600,9540=>600,9541=>600,9542=>600,9543=>600,9544=>600,9545=>600,9546=>600, |
|
177 | -9547=>600,9548=>600,9549=>600,9550=>600,9551=>600,9552=>600,9553=>600,9554=>600,9555=>600,9556=>600, |
|
178 | -9557=>600,9558=>600,9559=>600,9560=>600,9561=>600,9562=>600,9563=>600,9564=>600,9565=>600,9566=>600, |
|
179 | -9567=>600,9568=>600,9569=>600,9570=>600,9571=>600,9572=>600,9573=>600,9574=>600,9575=>600,9576=>600, |
|
180 | -9577=>600,9578=>600,9579=>600,9580=>600,9581=>600,9582=>600,9583=>600,9584=>600,9585=>600,9586=>600, |
|
181 | -9587=>600,9588=>600,9589=>600,9590=>600,9591=>600,9592=>600,9593=>600,9594=>600,9595=>600,9596=>600, |
|
182 | -9597=>600,9598=>600,9599=>600,9600=>600,9601=>600,9602=>600,9603=>600,9604=>600,9605=>600,9606=>600, |
|
183 | -9607=>600,9608=>600,9609=>600,9610=>600,9611=>600,9612=>600,9613=>600,9614=>600,9615=>600,9616=>600, |
|
184 | -9617=>600,9618=>600,9619=>600,9620=>600,9621=>600,9632=>600,9633=>600,9635=>600,9636=>600,9637=>600, |
|
185 | -9638=>600,9639=>600,9640=>600,9641=>600,9642=>600,9643=>600,9644=>600,9645=>600,9646=>600,9647=>600, |
|
186 | -9648=>600,9649=>600,9650=>600,9651=>600,9652=>600,9653=>600,9654=>600,9655=>600,9656=>600,9657=>600, |
|
187 | -9658=>600,9660=>600,9661=>600,9662=>600,9663=>600,9664=>600,9665=>600,9666=>600,9667=>600,9668=>600, |
|
188 | -9669=>600,9670=>600,9671=>600,9673=>600,9674=>600,9675=>600,9677=>600,9679=>600,9680=>600,9681=>600, |
|
189 | -9682=>600,9683=>600,9684=>600,9685=>600,9686=>600,9687=>600,9688=>600,9689=>600,9698=>600,9699=>600, |
|
190 | -9700=>600,9701=>600,9702=>600,9703=>600,9704=>600,9705=>600,9706=>600,9707=>600,9708=>600,9709=>600, |
|
191 | -9710=>600,9712=>600,9713=>600,9714=>600,9715=>600,9716=>600,9717=>600,9718=>600,9719=>600,9735=>600, |
|
192 | -9736=>600,9737=>600,9776=>600,9777=>600,9778=>600,9779=>600,9780=>600,9781=>600,9782=>600,9783=>600, |
|
193 | -9785=>600,9786=>600,9787=>600,9824=>600,9825=>600,9826=>600,9827=>600,9828=>600,9829=>600,9830=>600, |
|
194 | -9831=>600,9833=>600,9834=>600,9835=>600,9836=>600,9837=>600,9838=>600,9839=>600,64256=>600,64257=>600, |
|
195 | -64258=>600,64285=>600,64287=>600,64288=>600,64298=>600,64299=>600,64300=>600,64301=>600,64302=>600,64303=>600, |
|
196 | -64304=>600,64305=>600,64306=>600,64307=>600,64308=>600,64309=>600,64310=>600,64312=>600,64313=>600,64314=>600, |
|
197 | -64315=>600,64316=>600,64318=>600,64320=>600,64321=>600,64323=>600,64324=>600,64326=>600,64327=>600,64328=>600, |
|
198 | -64329=>600,64330=>600,64331=>600,64332=>600,64333=>600,64334=>600,64335=>600,65533=>600); |
|
199 | -$enc=''; |
|
200 | -$diff=''; |
|
201 | -$file='freemonob.z'; |
|
202 | -$ctg='freemonob.ctg.z'; |
|
203 | -$originalsize=164212; |
|
1 | +<?php if (!defined('ABSPATH')) exit; |
|
2 | +$type = 'TrueTypeUnicode'; |
|
3 | +$name = 'FreeMonoBold'; |
|
4 | +$desc = array('Ascent'=>800, 'Descent'=>-200, 'CapHeight'=>10, 'Flags'=>32, 'FontBBox'=>'[-604 -200 754 800]', 'ItalicAngle'=>0, 'StemV'=>120, 'MissingWidth'=>600); |
|
5 | +$up = -125; |
|
6 | +$ut = 50; |
|
7 | +$dw = 600; |
|
8 | +$cw = array( |
|
9 | +32=>600, 33=>600, 34=>600, 35=>600, 36=>600, 37=>600, 38=>600, 39=>600, 40=>600, 41=>600, |
|
10 | +42=>600, 43=>600, 44=>600, 45=>600, 46=>600, 47=>600, 48=>600, 49=>600, 50=>600, 51=>600, |
|
11 | +52=>600, 53=>600, 54=>600, 55=>600, 56=>600, 57=>600, 58=>600, 59=>600, 60=>600, 61=>600, |
|
12 | +62=>600, 63=>600, 64=>600, 65=>600, 66=>600, 67=>600, 68=>600, 69=>600, 70=>600, 71=>600, |
|
13 | +72=>600, 73=>600, 74=>600, 75=>600, 76=>600, 77=>600, 78=>600, 79=>600, 80=>600, 81=>600, |
|
14 | +82=>600, 83=>600, 84=>600, 85=>600, 86=>600, 87=>600, 88=>600, 89=>600, 90=>600, 91=>600, |
|
15 | +92=>600, 93=>600, 94=>600, 95=>600, 96=>600, 97=>600, 98=>600, 99=>600, 100=>600, 101=>600, |
|
16 | +102=>600, 103=>600, 104=>600, 105=>600, 106=>600, 107=>600, 108=>600, 109=>600, 110=>600, 111=>600, |
|
17 | +112=>600, 113=>600, 114=>600, 115=>600, 116=>600, 117=>600, 118=>600, 119=>600, 120=>600, 121=>600, |
|
18 | +122=>600, 123=>600, 124=>600, 125=>600, 126=>600, 8364=>600, 8218=>600, 402=>600, 8222=>600, 8230=>600, |
|
19 | +8224=>600, 8225=>600, 710=>600, 8240=>600, 352=>600, 8249=>600, 338=>600, 381=>600, 8216=>600, 8217=>600, |
|
20 | +8220=>600, 8221=>600, 8226=>600, 8211=>600, 8212=>600, 732=>600, 8482=>600, 353=>600, 8250=>600, 339=>600, |
|
21 | +382=>600, 376=>600, 160=>600, 161=>600, 162=>600, 163=>600, 164=>600, 165=>600, 166=>600, 167=>600, |
|
22 | +168=>600, 169=>600, 170=>600, 171=>600, 172=>600, 173=>600, 174=>600, 175=>600, 176=>600, 177=>600, |
|
23 | +178=>600, 179=>600, 180=>600, 181=>600, 182=>600, 183=>600, 184=>600, 185=>600, 186=>600, 187=>600, |
|
24 | +188=>600, 189=>600, 190=>600, 191=>600, 192=>600, 193=>600, 194=>600, 195=>600, 196=>600, 197=>600, |
|
25 | +198=>600, 199=>600, 200=>600, 201=>600, 202=>600, 203=>600, 204=>600, 205=>600, 206=>600, 207=>600, |
|
26 | +208=>600, 209=>600, 210=>600, 211=>600, 212=>600, 213=>600, 214=>600, 215=>600, 216=>600, 217=>600, |
|
27 | +218=>600, 219=>600, 220=>600, 221=>600, 222=>600, 223=>600, 224=>600, 225=>600, 226=>600, 227=>600, |
|
28 | +228=>600, 229=>600, 230=>600, 231=>600, 232=>600, 233=>600, 234=>600, 235=>600, 236=>600, 237=>600, |
|
29 | +238=>600, 239=>600, 240=>600, 241=>600, 242=>600, 243=>600, 244=>600, 245=>600, 246=>600, 247=>600, |
|
30 | +248=>600, 249=>600, 250=>600, 251=>600, 252=>600, 253=>600, 254=>600, 255=>600, 256=>600, 257=>600, |
|
31 | +258=>600, 259=>600, 260=>600, 261=>600, 262=>600, 263=>600, 264=>600, 265=>600, 266=>600, 267=>600, |
|
32 | +268=>600, 269=>600, 270=>600, 271=>600, 272=>600, 273=>600, 274=>600, 275=>600, 276=>600, 277=>600, |
|
33 | +278=>600, 279=>600, 280=>600, 281=>600, 282=>600, 283=>600, 284=>600, 285=>600, 286=>600, 287=>600, |
|
34 | +288=>600, 289=>600, 290=>600, 291=>600, 292=>600, 293=>600, 294=>600, 295=>600, 296=>600, 297=>600, |
|
35 | +298=>600, 299=>600, 300=>600, 301=>600, 302=>600, 303=>600, 304=>600, 305=>600, 306=>600, 307=>600, |
|
36 | +308=>600, 309=>600, 310=>600, 311=>600, 312=>600, 313=>600, 314=>600, 315=>600, 316=>600, 317=>600, |
|
37 | +318=>600, 319=>600, 320=>600, 321=>600, 322=>600, 323=>600, 324=>600, 325=>600, 326=>600, 327=>600, |
|
38 | +328=>600, 329=>600, 330=>600, 331=>600, 332=>600, 333=>600, 334=>600, 335=>600, 336=>600, 337=>600, |
|
39 | +340=>600, 341=>600, 342=>600, 343=>600, 344=>600, 345=>600, 346=>600, 347=>600, 348=>600, 349=>600, |
|
40 | +350=>600, 351=>600, 354=>600, 355=>600, 356=>600, 357=>600, 358=>600, 359=>600, 360=>600, 361=>600, |
|
41 | +362=>600, 363=>600, 364=>600, 365=>600, 366=>600, 367=>600, 368=>600, 369=>600, 370=>600, 371=>600, |
|
42 | +372=>600, 373=>600, 374=>600, 375=>600, 377=>600, 378=>600, 379=>600, 380=>600, 383=>600, 384=>600, |
|
43 | +385=>600, 386=>600, 387=>600, 388=>600, 389=>600, 390=>600, 391=>600, 392=>600, 393=>600, 394=>600, |
|
44 | +395=>600, 396=>600, 397=>600, 398=>600, 399=>600, 400=>600, 401=>600, 403=>600, 404=>600, 405=>600, |
|
45 | +406=>600, 407=>600, 408=>600, 409=>600, 410=>600, 411=>600, 412=>600, 413=>600, 414=>600, 415=>600, |
|
46 | +416=>600, 417=>600, 418=>600, 419=>600, 420=>600, 421=>600, 422=>600, 423=>600, 424=>600, 425=>600, |
|
47 | +426=>600, 427=>600, 428=>600, 429=>600, 430=>600, 431=>600, 432=>600, 433=>600, 434=>600, 435=>600, |
|
48 | +436=>600, 437=>600, 438=>600, 439=>600, 440=>600, 441=>600, 442=>600, 443=>600, 444=>600, 445=>600, |
|
49 | +446=>600, 447=>600, 448=>600, 449=>600, 450=>600, 451=>600, 452=>600, 453=>600, 454=>600, 455=>600, |
|
50 | +456=>600, 457=>600, 458=>600, 459=>600, 460=>600, 461=>600, 462=>600, 463=>600, 464=>600, 465=>600, |
|
51 | +466=>600, 467=>600, 468=>600, 469=>600, 470=>600, 471=>600, 472=>600, 473=>600, 474=>600, 475=>600, |
|
52 | +476=>600, 477=>600, 478=>600, 479=>600, 480=>600, 481=>600, 482=>600, 483=>600, 484=>600, 485=>600, |
|
53 | +486=>600, 487=>600, 488=>600, 489=>600, 490=>600, 491=>600, 492=>600, 493=>600, 494=>600, 495=>600, |
|
54 | +496=>600, 497=>600, 498=>600, 499=>600, 500=>600, 501=>600, 502=>600, 503=>600, 504=>600, 505=>600, |
|
55 | +506=>600, 507=>600, 508=>600, 509=>600, 510=>600, 511=>600, 512=>600, 513=>600, 514=>600, 515=>600, |
|
56 | +516=>600, 517=>600, 518=>600, 519=>600, 520=>600, 521=>600, 522=>600, 523=>600, 524=>600, 525=>600, |
|
57 | +526=>600, 527=>600, 528=>600, 529=>600, 530=>600, 531=>600, 532=>600, 533=>600, 534=>600, 535=>600, |
|
58 | +536=>600, 537=>600, 538=>600, 539=>600, 540=>600, 541=>600, 542=>600, 543=>600, 548=>600, 549=>600, |
|
59 | +550=>600, 551=>600, 552=>600, 553=>600, 554=>600, 555=>600, 556=>600, 557=>600, 558=>600, 559=>600, |
|
60 | +560=>600, 561=>600, 562=>600, 563=>600, 567=>600, 592=>600, 593=>600, 594=>600, 595=>600, 596=>600, |
|
61 | +598=>600, 599=>600, 600=>600, 601=>600, 603=>600, 604=>600, 607=>600, 608=>600, 609=>600, 613=>600, |
|
62 | +614=>600, 615=>600, 616=>600, 617=>600, 618=>600, 619=>600, 621=>600, 623=>600, 624=>600, 625=>600, |
|
63 | +626=>600, 627=>600, 628=>600, 629=>600, 633=>600, 634=>600, 635=>600, 636=>600, 637=>600, 638=>600, |
|
64 | +639=>600, 640=>600, 641=>600, 642=>600, 643=>600, 644=>600, 645=>600, 647=>600, 648=>600, 649=>600, |
|
65 | +652=>600, 653=>600, 654=>600, 656=>600, 657=>600, 658=>600, 659=>600, 660=>600, 661=>600, 662=>600, |
|
66 | +663=>600, 664=>600, 665=>600, 666=>600, 667=>600, 668=>600, 669=>600, 670=>600, 671=>600, 672=>600, |
|
67 | +673=>600, 674=>600, 688=>600, 689=>600, 690=>600, 691=>600, 692=>600, 693=>600, 694=>600, 695=>600, |
|
68 | +696=>600, 697=>600, 698=>600, 699=>600, 700=>600, 701=>600, 702=>600, 703=>600, 704=>600, 705=>600, |
|
69 | +706=>600, 707=>600, 708=>600, 709=>600, 711=>600, 712=>600, 713=>600, 714=>600, 715=>600, 716=>600, |
|
70 | +717=>600, 718=>600, 719=>600, 720=>600, 721=>600, 722=>600, 723=>600, 724=>600, 725=>600, 726=>600, |
|
71 | +727=>600, 728=>600, 729=>600, 730=>600, 731=>600, 733=>600, 734=>600, 735=>600, 736=>600, 737=>600, |
|
72 | +738=>600, 739=>600, 740=>600, 741=>600, 742=>600, 743=>600, 744=>600, 745=>600, 746=>600, 747=>600, |
|
73 | +748=>600, 749=>600, 750=>600, 751=>600, 752=>600, 753=>600, 754=>600, 755=>600, 756=>600, 757=>600, |
|
74 | +758=>600, 759=>600, 760=>600, 761=>600, 762=>600, 763=>600, 764=>600, 765=>600, 766=>600, 767=>600, |
|
75 | +768=>0, 769=>0, 770=>0, 771=>0, 772=>0, 773=>0, 774=>0, 775=>0, 776=>0, 777=>0, |
|
76 | +778=>0, 779=>0, 780=>0, 781=>0, 782=>0, 783=>0, 784=>0, 785=>0, 786=>0, 787=>0, |
|
77 | +788=>0, 789=>0, 790=>0, 791=>0, 795=>0, 796=>0, 800=>0, 801=>0, 802=>0, 803=>0, |
|
78 | +804=>0, 805=>0, 806=>0, 807=>0, 808=>0, 809=>0, 810=>0, 812=>0, 813=>0, 814=>0, |
|
79 | +815=>0, 816=>0, 817=>0, 818=>0, 819=>0, 820=>0, 821=>0, 822=>0, 823=>0, 826=>0, |
|
80 | +827=>0, 831=>0, 832=>0, 833=>0, 834=>0, 835=>0, 836=>0, 838=>0, 839=>0, 840=>0, |
|
81 | +844=>0, 849=>0, 850=>0, 851=>0, 852=>0, 853=>0, 854=>0, 855=>0, 884=>600, 885=>600, |
|
82 | +890=>600, 894=>600, 900=>600, 901=>600, 902=>600, 903=>600, 904=>600, 905=>600, 906=>600, 908=>600, |
|
83 | +910=>600, 911=>600, 912=>600, 913=>600, 914=>600, 915=>600, 916=>600, 917=>600, 918=>600, 919=>600, |
|
84 | +920=>600, 921=>600, 922=>600, 923=>600, 924=>600, 925=>600, 926=>600, 927=>600, 928=>600, 929=>600, |
|
85 | +931=>600, 932=>600, 933=>600, 934=>600, 935=>600, 936=>600, 937=>600, 938=>600, 939=>600, 940=>600, |
|
86 | +941=>600, 942=>600, 943=>600, 944=>600, 945=>600, 946=>600, 947=>600, 948=>600, 949=>600, 950=>600, |
|
87 | +951=>600, 952=>600, 953=>600, 954=>600, 955=>600, 956=>600, 957=>600, 958=>600, 959=>600, 960=>600, |
|
88 | +961=>600, 962=>600, 963=>600, 964=>600, 965=>600, 966=>600, 967=>600, 968=>600, 969=>600, 970=>600, |
|
89 | +971=>600, 972=>600, 973=>600, 974=>600, 976=>600, 977=>600, 978=>600, 979=>600, 980=>600, 981=>600, |
|
90 | +982=>600, 986=>600, 987=>600, 988=>600, 1008=>600, 1009=>600, 1012=>600, 1013=>600, 1024=>600, 1025=>600, |
|
91 | +1026=>600, 1027=>600, 1028=>600, 1029=>600, 1030=>600, 1031=>600, 1032=>600, 1033=>600, 1034=>600, 1035=>600, |
|
92 | +1036=>600, 1037=>600, 1038=>600, 1039=>600, 1040=>600, 1041=>600, 1042=>600, 1043=>600, 1044=>600, 1045=>600, |
|
93 | +1046=>600, 1047=>600, 1048=>600, 1049=>600, 1050=>600, 1051=>600, 1052=>600, 1053=>600, 1054=>600, 1055=>600, |
|
94 | +1056=>600, 1057=>600, 1058=>600, 1059=>600, 1060=>600, 1061=>600, 1062=>600, 1063=>600, 1064=>600, 1065=>600, |
|
95 | +1066=>600, 1067=>600, 1068=>600, 1069=>600, 1070=>600, 1071=>600, 1072=>600, 1073=>600, 1074=>600, 1075=>600, |
|
96 | +1076=>600, 1077=>600, 1078=>600, 1079=>600, 1080=>600, 1081=>600, 1082=>600, 1083=>600, 1084=>600, 1085=>600, |
|
97 | +1086=>600, 1087=>600, 1088=>600, 1089=>600, 1090=>600, 1091=>600, 1092=>600, 1093=>600, 1094=>600, 1095=>600, |
|
98 | +1096=>600, 1097=>600, 1098=>600, 1099=>600, 1100=>600, 1101=>600, 1102=>600, 1103=>600, 1104=>600, 1105=>600, |
|
99 | +1106=>600, 1107=>600, 1108=>600, 1109=>600, 1110=>600, 1111=>600, 1112=>600, 1113=>600, 1114=>600, 1115=>600, |
|
100 | +1116=>600, 1117=>600, 1118=>600, 1119=>600, 1136=>600, 1137=>600, 1138=>600, 1156=>0, 1157=>0, 1158=>0, |
|
101 | +1162=>600, 1163=>600, 1164=>600, 1165=>600, 1166=>600, 1167=>600, 1168=>600, 1169=>600, 1170=>600, 1171=>600, |
|
102 | +1172=>600, 1173=>600, 1174=>600, 1175=>600, 1176=>600, 1177=>600, 1178=>600, 1179=>600, 1180=>600, 1181=>600, |
|
103 | +1182=>600, 1183=>600, 1184=>600, 1185=>600, 1186=>600, 1187=>600, 1188=>600, 1189=>600, 1190=>600, 1191=>600, |
|
104 | +1192=>600, 1193=>600, 1194=>600, 1195=>600, 1196=>600, 1197=>600, 1198=>600, 1199=>600, 1200=>600, 1201=>600, |
|
105 | +1202=>600, 1203=>600, 1204=>600, 1205=>600, 1206=>600, 1207=>600, 1208=>600, 1209=>600, 1210=>600, 1211=>600, |
|
106 | +1212=>600, 1213=>600, 1214=>600, 1215=>600, 1216=>600, 1217=>600, 1218=>600, 1219=>600, 1220=>600, 1221=>600, |
|
107 | +1222=>600, 1223=>600, 1224=>600, 1225=>600, 1226=>600, 1227=>600, 1228=>600, 1229=>600, 1230=>600, 1231=>600, |
|
108 | +1232=>600, 1233=>600, 1234=>600, 1235=>600, 1236=>600, 1237=>600, 1238=>600, 1239=>600, 1240=>600, 1241=>600, |
|
109 | +1242=>600, 1243=>600, 1244=>600, 1245=>600, 1246=>600, 1247=>600, 1248=>600, 1249=>600, 1250=>600, 1251=>600, |
|
110 | +1252=>600, 1253=>600, 1254=>600, 1255=>600, 1256=>600, 1257=>600, 1258=>600, 1259=>600, 1260=>600, 1261=>600, |
|
111 | +1262=>600, 1263=>600, 1264=>600, 1265=>600, 1266=>600, 1267=>600, 1268=>600, 1269=>600, 1270=>600, 1271=>600, |
|
112 | +1272=>600, 1273=>600, 1296=>600, 1297=>600, 1298=>600, 1299=>600, 1306=>600, 1307=>600, 1308=>600, 1309=>600, |
|
113 | +1310=>600, 1311=>600, 1456=>0, 1457=>0, 1458=>0, 1459=>0, 1460=>0, 1461=>0, 1462=>0, 1463=>0, |
|
114 | +1464=>0, 1465=>0, 1467=>0, 1468=>0, 1469=>0, 1470=>600, 1471=>0, 1472=>600, 1473=>0, 1474=>0, |
|
115 | +1475=>600, 1476=>0, 1488=>600, 1489=>600, 1490=>600, 1491=>600, 1492=>600, 1493=>600, 1494=>600, 1495=>600, |
|
116 | +1496=>600, 1497=>600, 1498=>600, 1499=>600, 1500=>600, 1501=>600, 1502=>600, 1503=>600, 1504=>600, 1505=>600, |
|
117 | +1506=>600, 1507=>600, 1508=>600, 1509=>600, 1510=>600, 1511=>600, 1512=>600, 1513=>600, 1514=>600, 1520=>600, |
|
118 | +1521=>600, 1522=>600, 1523=>600, 1524=>600, 4304=>600, 4305=>600, 4306=>600, 4307=>600, 4308=>600, 4309=>600, |
|
119 | +4310=>600, 4311=>600, 4312=>600, 4313=>600, 4314=>600, 4315=>600, 4316=>600, 4317=>600, 4318=>600, 4319=>600, |
|
120 | +4320=>600, 4321=>600, 4322=>600, 4323=>600, 4324=>600, 4325=>600, 4326=>600, 4327=>600, 4328=>600, 4329=>600, |
|
121 | +4330=>600, 4331=>600, 4332=>600, 4333=>600, 4334=>600, 4335=>600, 4336=>600, 4337=>600, 4338=>600, 4339=>600, |
|
122 | +4340=>600, 4341=>600, 4345=>600, 4347=>600, 7680=>600, 7681=>600, 7682=>600, 7683=>600, 7684=>600, 7685=>600, |
|
123 | +7686=>600, 7687=>600, 7688=>600, 7689=>600, 7690=>600, 7691=>600, 7692=>600, 7693=>600, 7694=>600, 7695=>600, |
|
124 | +7696=>600, 7697=>600, 7698=>600, 7699=>600, 7700=>600, 7701=>600, 7702=>600, 7703=>600, 7704=>600, 7705=>600, |
|
125 | +7706=>600, 7707=>600, 7708=>600, 7709=>600, 7710=>600, 7711=>600, 7712=>600, 7713=>600, 7714=>600, 7715=>600, |
|
126 | +7716=>600, 7717=>600, 7718=>600, 7719=>600, 7720=>600, 7721=>600, 7722=>600, 7723=>600, 7724=>600, 7725=>600, |
|
127 | +7726=>600, 7727=>600, 7728=>600, 7729=>600, 7730=>600, 7731=>600, 7732=>600, 7733=>600, 7734=>600, 7735=>600, |
|
128 | +7736=>600, 7737=>600, 7738=>600, 7739=>600, 7740=>600, 7741=>600, 7742=>600, 7743=>600, 7744=>600, 7745=>600, |
|
129 | +7746=>600, 7747=>600, 7748=>600, 7749=>600, 7750=>600, 7751=>600, 7752=>600, 7753=>600, 7754=>600, 7755=>600, |
|
130 | +7756=>600, 7757=>600, 7758=>600, 7759=>600, 7760=>600, 7761=>600, 7762=>600, 7763=>600, 7764=>600, 7765=>600, |
|
131 | +7766=>600, 7767=>600, 7768=>600, 7769=>600, 7770=>600, 7771=>600, 7772=>600, 7773=>600, 7774=>600, 7775=>600, |
|
132 | +7776=>600, 7777=>600, 7778=>600, 7779=>600, 7780=>600, 7781=>600, 7782=>600, 7783=>600, 7784=>600, 7785=>600, |
|
133 | +7786=>600, 7787=>600, 7788=>600, 7789=>600, 7790=>600, 7791=>600, 7792=>600, 7793=>600, 7794=>600, 7795=>600, |
|
134 | +7796=>600, 7797=>600, 7798=>600, 7799=>600, 7800=>600, 7801=>600, 7802=>600, 7803=>600, 7804=>600, 7805=>600, |
|
135 | +7806=>600, 7807=>600, 7808=>600, 7809=>600, 7810=>600, 7811=>600, 7812=>600, 7813=>600, 7814=>600, 7815=>600, |
|
136 | +7816=>600, 7817=>600, 7818=>600, 7819=>600, 7820=>600, 7821=>600, 7822=>600, 7823=>600, 7824=>600, 7825=>600, |
|
137 | +7826=>600, 7827=>600, 7828=>600, 7829=>600, 7830=>600, 7831=>600, 7832=>600, 7833=>600, 7834=>600, 7835=>600, |
|
138 | +7840=>600, 7841=>600, 7842=>600, 7843=>600, 7844=>600, 7845=>600, 7846=>600, 7847=>600, 7848=>600, 7849=>600, |
|
139 | +7850=>600, 7851=>600, 7852=>600, 7853=>600, 7854=>600, 7855=>600, 7856=>600, 7857=>600, 7858=>600, 7859=>600, |
|
140 | +7860=>600, 7861=>600, 7862=>600, 7863=>600, 7864=>600, 7865=>600, 7866=>600, 7867=>600, 7868=>600, 7869=>600, |
|
141 | +7870=>600, 7871=>600, 7872=>600, 7873=>600, 7874=>600, 7875=>600, 7876=>600, 7877=>600, 7878=>600, 7879=>600, |
|
142 | +7880=>600, 7881=>600, 7882=>600, 7883=>600, 7884=>600, 7885=>600, 7886=>600, 7887=>600, 7888=>600, 7889=>600, |
|
143 | +7890=>600, 7891=>600, 7892=>600, 7893=>600, 7894=>600, 7895=>600, 7896=>600, 7897=>600, 7898=>600, 7899=>600, |
|
144 | +7900=>600, 7901=>600, 7902=>600, 7903=>600, 7904=>600, 7905=>600, 7906=>600, 7907=>600, 7908=>600, 7909=>600, |
|
145 | +7910=>600, 7911=>600, 7912=>600, 7913=>600, 7914=>600, 7915=>600, 7916=>600, 7917=>600, 7918=>600, 7919=>600, |
|
146 | +7920=>600, 7921=>600, 7922=>600, 7923=>600, 7924=>600, 7925=>600, 7926=>600, 7927=>600, 7928=>600, 7929=>600, |
|
147 | +8192=>600, 8193=>600, 8194=>600, 8195=>600, 8196=>600, 8197=>600, 8198=>600, 8199=>600, 8200=>600, 8201=>600, |
|
148 | +8202=>600, 8203=>600, 8204=>0, 8205=>0, 8206=>0, 8207=>0, 8208=>600, 8209=>600, 8210=>600, 8213=>600, |
|
149 | +8214=>600, 8215=>600, 8219=>600, 8223=>600, 8227=>600, 8228=>600, 8229=>600, 8231=>600, 8232=>600, 8233=>600, |
|
150 | +8234=>600, 8235=>600, 8236=>600, 8237=>600, 8238=>600, 8239=>600, 8241=>600, 8242=>600, 8243=>600, 8244=>600, |
|
151 | +8245=>600, 8246=>600, 8247=>600, 8248=>600, 8251=>600, 8252=>600, 8253=>600, 8254=>600, 8255=>600, 8256=>600, |
|
152 | +8257=>600, 8258=>600, 8259=>600, 8260=>600, 8261=>600, 8262=>600, 8263=>600, 8264=>600, 8265=>600, 8266=>600, |
|
153 | +8267=>600, 8268=>600, 8269=>600, 8270=>600, 8271=>600, 8272=>600, 8273=>600, 8274=>600, 8275=>600, 8276=>600, |
|
154 | +8277=>600, 8278=>600, 8279=>600, 8280=>600, 8281=>600, 8282=>600, 8283=>600, 8284=>600, 8285=>600, 8286=>600, |
|
155 | +8287=>600, 8288=>600, 8289=>600, 8290=>600, 8291=>600, 8292=>600, 8298=>600, 8299=>600, 8300=>600, 8301=>600, |
|
156 | +8302=>600, 8303=>600, 8304=>600, 8305=>600, 8308=>600, 8309=>600, 8310=>600, 8311=>600, 8312=>600, 8313=>600, |
|
157 | +8314=>600, 8315=>600, 8316=>600, 8317=>600, 8318=>600, 8319=>600, 8320=>600, 8321=>600, 8322=>600, 8323=>600, |
|
158 | +8324=>600, 8325=>600, 8326=>600, 8327=>600, 8328=>600, 8329=>600, 8330=>600, 8331=>600, 8332=>600, 8333=>600, |
|
159 | +8334=>600, 8336=>600, 8337=>600, 8338=>600, 8339=>600, 8340=>600, 8355=>600, 8356=>600, 8362=>600, 8373=>600, |
|
160 | +8448=>600, 8449=>600, 8451=>600, 8453=>600, 8454=>600, 8457=>600, 8465=>600, 8466=>600, 8470=>600, 8472=>600, |
|
161 | +8476=>600, 8481=>600, 8486=>600, 8487=>600, 8489=>600, 8490=>600, 8491=>600, 8498=>600, 8501=>600, 8502=>600, |
|
162 | +8503=>600, 8504=>600, 8506=>600, 8507=>600, 8523=>600, 8531=>600, 8532=>600, 8533=>600, 8534=>600, 8535=>600, |
|
163 | +8536=>600, 8537=>600, 8538=>600, 8539=>600, 8540=>600, 8541=>600, 8542=>600, 8543=>600, 8544=>600, 8545=>600, |
|
164 | +8546=>600, 8547=>600, 8548=>600, 8549=>600, 8550=>600, 8553=>600, 8556=>600, 8557=>600, 8558=>600, 8559=>600, |
|
165 | +8560=>600, 8564=>600, 8569=>600, 8572=>600, 8573=>600, 8574=>600, 8575=>600, 8592=>600, 8593=>600, 8594=>600, |
|
166 | +8595=>600, 8704=>600, 8706=>600, 8707=>600, 8709=>600, 8710=>600, 8711=>600, 8712=>600, 8713=>600, 8715=>600, |
|
167 | +8716=>600, 8721=>600, 8722=>600, 8723=>600, 8725=>600, 8730=>600, 8733=>600, 8734=>600, 8735=>600, 8756=>600, |
|
168 | +8800=>600, 8801=>600, 8804=>600, 8805=>600, 8834=>600, 8835=>600, 8836=>600, 8837=>600, 8838=>600, 8839=>600, |
|
169 | +8869=>600, 8976=>600, 9001=>600, 9002=>600, 9251=>600, 9472=>600, 9473=>600, 9474=>600, 9475=>600, 9476=>600, |
|
170 | +9477=>600, 9478=>600, 9479=>600, 9480=>600, 9481=>600, 9482=>600, 9483=>600, 9484=>600, 9485=>600, 9486=>600, |
|
171 | +9487=>600, 9488=>600, 9489=>600, 9490=>600, 9491=>600, 9492=>600, 9493=>600, 9494=>600, 9495=>600, 9496=>600, |
|
172 | +9497=>600, 9498=>600, 9499=>600, 9500=>600, 9501=>600, 9502=>600, 9503=>600, 9504=>600, 9505=>600, 9506=>600, |
|
173 | +9507=>600, 9508=>600, 9509=>600, 9510=>600, 9511=>600, 9512=>600, 9513=>600, 9514=>600, 9515=>600, 9516=>600, |
|
174 | +9517=>600, 9518=>600, 9519=>600, 9520=>600, 9521=>600, 9522=>600, 9523=>600, 9524=>600, 9525=>600, 9526=>600, |
|
175 | +9527=>600, 9528=>600, 9529=>600, 9530=>600, 9531=>600, 9532=>600, 9533=>600, 9534=>600, 9535=>600, 9536=>600, |
|
176 | +9537=>600, 9538=>600, 9539=>600, 9540=>600, 9541=>600, 9542=>600, 9543=>600, 9544=>600, 9545=>600, 9546=>600, |
|
177 | +9547=>600, 9548=>600, 9549=>600, 9550=>600, 9551=>600, 9552=>600, 9553=>600, 9554=>600, 9555=>600, 9556=>600, |
|
178 | +9557=>600, 9558=>600, 9559=>600, 9560=>600, 9561=>600, 9562=>600, 9563=>600, 9564=>600, 9565=>600, 9566=>600, |
|
179 | +9567=>600, 9568=>600, 9569=>600, 9570=>600, 9571=>600, 9572=>600, 9573=>600, 9574=>600, 9575=>600, 9576=>600, |
|
180 | +9577=>600, 9578=>600, 9579=>600, 9580=>600, 9581=>600, 9582=>600, 9583=>600, 9584=>600, 9585=>600, 9586=>600, |
|
181 | +9587=>600, 9588=>600, 9589=>600, 9590=>600, 9591=>600, 9592=>600, 9593=>600, 9594=>600, 9595=>600, 9596=>600, |
|
182 | +9597=>600, 9598=>600, 9599=>600, 9600=>600, 9601=>600, 9602=>600, 9603=>600, 9604=>600, 9605=>600, 9606=>600, |
|
183 | +9607=>600, 9608=>600, 9609=>600, 9610=>600, 9611=>600, 9612=>600, 9613=>600, 9614=>600, 9615=>600, 9616=>600, |
|
184 | +9617=>600, 9618=>600, 9619=>600, 9620=>600, 9621=>600, 9632=>600, 9633=>600, 9635=>600, 9636=>600, 9637=>600, |
|
185 | +9638=>600, 9639=>600, 9640=>600, 9641=>600, 9642=>600, 9643=>600, 9644=>600, 9645=>600, 9646=>600, 9647=>600, |
|
186 | +9648=>600, 9649=>600, 9650=>600, 9651=>600, 9652=>600, 9653=>600, 9654=>600, 9655=>600, 9656=>600, 9657=>600, |
|
187 | +9658=>600, 9660=>600, 9661=>600, 9662=>600, 9663=>600, 9664=>600, 9665=>600, 9666=>600, 9667=>600, 9668=>600, |
|
188 | +9669=>600, 9670=>600, 9671=>600, 9673=>600, 9674=>600, 9675=>600, 9677=>600, 9679=>600, 9680=>600, 9681=>600, |
|
189 | +9682=>600, 9683=>600, 9684=>600, 9685=>600, 9686=>600, 9687=>600, 9688=>600, 9689=>600, 9698=>600, 9699=>600, |
|
190 | +9700=>600, 9701=>600, 9702=>600, 9703=>600, 9704=>600, 9705=>600, 9706=>600, 9707=>600, 9708=>600, 9709=>600, |
|
191 | +9710=>600, 9712=>600, 9713=>600, 9714=>600, 9715=>600, 9716=>600, 9717=>600, 9718=>600, 9719=>600, 9735=>600, |
|
192 | +9736=>600, 9737=>600, 9776=>600, 9777=>600, 9778=>600, 9779=>600, 9780=>600, 9781=>600, 9782=>600, 9783=>600, |
|
193 | +9785=>600, 9786=>600, 9787=>600, 9824=>600, 9825=>600, 9826=>600, 9827=>600, 9828=>600, 9829=>600, 9830=>600, |
|
194 | +9831=>600, 9833=>600, 9834=>600, 9835=>600, 9836=>600, 9837=>600, 9838=>600, 9839=>600, 64256=>600, 64257=>600, |
|
195 | +64258=>600, 64285=>600, 64287=>600, 64288=>600, 64298=>600, 64299=>600, 64300=>600, 64301=>600, 64302=>600, 64303=>600, |
|
196 | +64304=>600, 64305=>600, 64306=>600, 64307=>600, 64308=>600, 64309=>600, 64310=>600, 64312=>600, 64313=>600, 64314=>600, |
|
197 | +64315=>600, 64316=>600, 64318=>600, 64320=>600, 64321=>600, 64323=>600, 64324=>600, 64326=>600, 64327=>600, 64328=>600, |
|
198 | +64329=>600, 64330=>600, 64331=>600, 64332=>600, 64333=>600, 64334=>600, 64335=>600, 65533=>600); |
|
199 | +$enc = ''; |
|
200 | +$diff = ''; |
|
201 | +$file = 'freemonob.z'; |
|
202 | +$ctg = 'freemonob.ctg.z'; |
|
203 | +$originalsize = 164212; |
|
204 | 204 | ?> |
205 | 205 | \ No newline at end of file |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
2 | + exit; |
|
3 | +} |
|
2 | 4 | $type='TrueTypeUnicode'; |
3 | 5 | $name='FreeMonoBold'; |
4 | 6 | $desc=array('Ascent'=>800,'Descent'=>-200,'CapHeight'=>10,'Flags'=>32,'FontBBox'=>'[-604 -200 754 800]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>600); |