You have to build the GMP extension from the PHP source code. First install Autoconf and GMP using Homebrew.
brew install autoconf gmpDownload and unpack PHP.
| <label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
| <select id="country" name="country" class="form-control"> | |
| <option value="Afghanistan">Afghanistan</option> | |
| <option value="Åland Islands">Åland Islands</option> | |
| <option value="Albania">Albania</option> | |
| <option value="Algeria">Algeria</option> | |
| <option value="American Samoa">American Samoa</option> | |
| <option value="Andorra">Andorra</option> | |
| <option value="Angola">Angola</option> |
| .font-fix { | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| text-rendering: optimizeLegibility; | |
| } |
| add_action('after_setup_theme', 'my_icl_set_current_language'); | |
| function my_icl_set_current_language($lang) { | |
| global $sitepress; | |
| $lang = 'sv'; | |
| $sitepress->switch_lang($lang); | |
| } |
| <?php | |
| function display_dynamic_pricing_table(){ | |
| global $post; | |
| # see line 42 of woocommerce_pricing_by_product.class.php | |
| $pricing_rule_sets = get_option('_a_category_pricing_rules', array()); | |
| $found = false; | |
| if(count($pricing_rule_sets)){ | |
| global $woocommerce_pricing; | |
| foreach ($pricing_rule_sets as $pricing_rule_set) { |
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |