Changeset 2270785
- Timestamp:
- 03/30/2020 01:17:54 PM (6 years ago)
- Location:
- mowomo-variable-fonts
- Files:
-
- 4 added
- 14 edited
- 1 copied
-
tags/1.0.0 (copied) (copied from mowomo-variable-fonts/trunk)
-
trunk/README.md (modified) (3 diffs)
-
trunk/assets/css/styles.css (modified) (1 diff)
-
trunk/assets/css/styles.min.css (modified) (1 diff)
-
trunk/assets/css/styles.scss (modified) (1 diff)
-
trunk/assets/images (added)
-
trunk/assets/images/logo.png (added)
-
trunk/assets/js/admin_scripts.js (modified) (1 diff)
-
trunk/assets/js/customizer-scripts.js (modified) (2 diffs)
-
trunk/includes/backend/functions.php (modified) (1 diff)
-
trunk/includes/backend/menu_page.php (added)
-
trunk/includes/frontend/customizer/customizer.php (modified) (3 diffs)
-
trunk/includes/frontend/customizer/global_change_font_family.php (added)
-
trunk/includes/frontend/functions.php (modified) (2 diffs)
-
trunk/includes/libs/mwm-custom-controls/custom-controls.php (modified) (3 diffs)
-
trunk/languages/mwm_variable_font-es_ES.mo (modified) (previous)
-
trunk/languages/mwm_variable_font-es_ES.po (modified) (6 diffs)
-
trunk/languages/mwm_variable_font.pot (modified) (6 diffs)
-
trunk/mwm-variable-font.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mowomo-variable-fonts/trunk/README.md
r2244792 r2270785 1 === mowomo Variable Fonts ===1 === mowomo Variable Fonts === 2 2 Contributors: victorsaenztm, pedromcj95, acirujano, mowomo 3 3 Tags: variable, fonts … … 11 11 An elegant solution for a better typography with beautiful variable fonts. 12 12 13 This plugin allows you to easy use variable fonts, establish a responsive typography and use a modular scale in your WordPress website. No coding required! 13 14 14 == About this plugin == 15 You can preview font changes on your website in real time using the WordPress Customizer. 15 16 16 An elegant solution for a better typography with beautiful variable fonts. 17 == Description == 17 18 19 Using variable fonts, you can improve the user experience in your website because you get a better visual hierarchy and more legibility. 20 21 A variable font is a single font that acts as many. This results in incredible performance benefits over a standard font: a variable font results in fewer HTML requests, smaller file size (so larger savings of downloaded data) and faster loading speed. 22 23 With mowomo Variable Fonts, you can choose a variable font and then you can set the registered and custom axes of that font, for headings, paragraphs, hyperlinks and code. 24 25 You can easily choose one variation of a font for headings and a different one for paragraphs. 26 27 Also, you can easily set font properties such as font size, line height and letter spacing. 28 29 ## Responsive Typography 30 31 This plugin allows you to improve your website responsive typography with variable fonts in any WordPress theme (no coding required). 32 33 Font properties can be set independently for each viewport. So you can set a value for mobile and you can set different values for tablet and desktop. 34 35 ## Modular Scale 36 37 A modular scale is a sequence of numbers that relate one to another in a meaningful way. 38 39 By using ratios to create modular scales and setting the font sizes on values from those scales, you can achieve a visual harmony in your layout. 40 41 Using this plugin, you can set the ratio and the base that you prefer and all the values will be proportionally set. 42 43 ## Plugin compatibility 44 45 mowomo Variable Fonts will work with all WordPress themes or any visual builder like Divi, Elementor, WPBakery, etc. 18 46 19 47 == Installation == … … 25 53 3. Use for free the customization section. 26 54 55 == Changelog == 27 56 57 = 1.1.0 = 28 58 29 == Changelog == 59 - Update: A new feature has been added to the customizer to modify the font types of all tags according to some filters. 60 - Update: A WordPress menu option is now displayed that redirects you to the Plugin's customization panel in the customizer. 61 - Update: Now the plugin no longer modifies the web sources as soon as it is installed. 62 - Update: The plugin displays a message in the administrator giving help on how to use the plugin when it is activated. This message can be removed at will. 63 - Fix: The Inter Var font is no longer chosen as the default. 64 - Fix: The way the Inter Var font was glued has been corrected. 65 30 66 = 1.0.0 = 31 * First version. 67 68 - First version. -
mowomo-variable-fonts/trunk/assets/css/styles.css
r2244792 r2270785 1 @import url("https://rsms.me/inter/inter.css");2 1 @font-face { 3 2 src: url("../fonts/SourceSansVariable-Roman.otf.woff2"), url("../fonts/SourceSansVariable-Roman.ttf.woff2") format("woff2-variations"); -
mowomo-variable-fonts/trunk/assets/css/styles.min.css
r2244792 r2270785 1 @ import url("https://rsms.me/inter/inter.css");@font-face{src:url("../fonts/SourceSansVariable-Roman.otf.woff2"),url("../fonts/SourceSansVariable-Roman.ttf.woff2") format("woff2-variations");font-family:'Source Sans Variable';font-style:normal}@font-face{src:url("../fonts/SourceSansVariable-Italic.otf.woff2"),url("../fonts/SourceSansVariable-Italic.ttf.woff2") format("woff2-variations");font-family:'Source Sans Variable';font-style:italic}@font-face{src:url("../fonts/Montserrat-VF.woff2") format("woff2-variations");font-family:'Montserrat';font-style:normal}@font-face{src:url("../fonts/Montserrat-Italic-VF.woff2") format("woff2-variations");font-family:'Montserrat';font-style:italic}@font-face{src:url("../fonts/SudoWebVariable.woff2") format("woff2-variations");font-family:'Sudo Variable';font-style:normal}@font-face{src:url("../fonts/GRADUATE.woff2") format("woff2-variations");font-family:'Graduate';font-style:normal}@font-face{src:url("../fonts/recursive-MONO_CASL_wght_slnt_ital--2019_11_05-00_13.woff2") format("woff2-variations");font-family:'Recursive';font-style:normal}@font-face{src:url("../fonts/ScienceGothicVF.woff2") format("woff2");font-family:'Science Gothic';font-style:normal}@font-face{src:url("../fonts/emotional-VF.woff2") format("woff2-variations");font-family:'Emotional Type';font-style:normal}@font-face{src:url("../fonts/Estedad-VF.woff2") format("woff2-variations");font-family:'Estedad';font-style:normal}1 @font-face{src:url("../fonts/SourceSansVariable-Roman.otf.woff2"),url("../fonts/SourceSansVariable-Roman.ttf.woff2") format("woff2-variations");font-family:'Source Sans Variable';font-style:normal}@font-face{src:url("../fonts/SourceSansVariable-Italic.otf.woff2"),url("../fonts/SourceSansVariable-Italic.ttf.woff2") format("woff2-variations");font-family:'Source Sans Variable';font-style:italic}@font-face{src:url("../fonts/Montserrat-VF.woff2") format("woff2-variations");font-family:'Montserrat';font-style:normal}@font-face{src:url("../fonts/Montserrat-Italic-VF.woff2") format("woff2-variations");font-family:'Montserrat';font-style:italic}@font-face{src:url("../fonts/SudoWebVariable.woff2") format("woff2-variations");font-family:'Sudo Variable';font-style:normal}@font-face{src:url("../fonts/GRADUATE.woff2") format("woff2-variations");font-family:'Graduate';font-style:normal}@font-face{src:url("../fonts/recursive-MONO_CASL_wght_slnt_ital--2019_11_05-00_13.woff2") format("woff2-variations");font-family:'Recursive';font-style:normal}@font-face{src:url("../fonts/ScienceGothicVF.woff2") format("woff2");font-family:'Science Gothic';font-style:normal}@font-face{src:url("../fonts/emotional-VF.woff2") format("woff2-variations");font-family:'Emotional Type';font-style:normal}@font-face{src:url("../fonts/Estedad-VF.woff2") format("woff2-variations");font-family:'Estedad';font-style:normal} -
mowomo-variable-fonts/trunk/assets/css/styles.scss
r2244792 r2270785 1 // Inter var experimental2 @import url('https://rsms.me/inter/inter.css');3 4 1 // Source Sans Variable 5 2 @font-face { -
mowomo-variable-fonts/trunk/assets/js/admin_scripts.js
r2244792 r2270785 1 jQuery(document).ready(function() {}); 1 jQuery(document).ready(function() { 2 jQuery('#mwm-variable-font-i-know').on('click', function() { 3 var admin_notice = jQuery(this).closest('.notice'); 4 jQuery.ajax({ 5 type: 'POST', 6 url: ajax_vars.ajax, 7 data: { 8 action: 'mwm_variable_font_uncheck_admin_notice' 9 }, 10 beforeSend: function() {}, 11 success: function(response) {}, 12 complete: function() { 13 admin_notice.remove(); 14 } 15 }); 16 }); 17 }); -
mowomo-variable-fonts/trunk/assets/js/customizer-scripts.js
r2244792 r2270785 14 14 '#accordion-section-mwm_variable_font_panel-general_section h3' 15 15 ).addClass('dashicons-before dashicons-chart-line'); 16 jQuery( 17 '#accordion-section-mwm_variable_font_panel-multi-general_section h3' 18 ).addClass('dashicons-before dashicons-edit'); 16 19 17 20 // Modify the viewport on select viewport panel - mobile … … 79 82 }); 80 83 84 jQuery('#mwm-control-change-font-family').on('click', function() { 85 if (confirm(ajax_vars.confirm_message_font_size)) { 86 var btn = jQuery(this); 87 var btn_message = ''; 88 info = { 89 font_family: jQuery( 90 '#_customize-input-mwm_variable_font_panel-multi-general_section-selected_font' 91 ).val(), 92 targets: jQuery( 93 '#_customize-input-mwm_variable_font_panel-multi-general_section-selected_target' 94 ).val() 95 }; 96 97 jQuery.ajax({ 98 type: 'POST', 99 url: ajax_vars.ajax, 100 data: { 101 action: 'mwm_variable_fonts_global_change_font_family', 102 info: info 103 }, 104 beforeSend: function() { 105 btn.prop('disabled', true); 106 btn_message = btn.text(); 107 btn.text(ajax_vars.loading_message); 108 }, 109 success: function(response) {}, 110 complete: function() { 111 setTimeout(function() { 112 wp.customize.previewer.refresh(); 113 jQuery('#save').click(); 114 btn.prop('disabled', false); 115 btn.text(btn_message); 116 window.location.reload(true); 117 }, 1000); 118 } 119 }); 120 } 121 }); 122 81 123 // jQuery('#customize-footer-actions .preview-mobile').on( 82 124 // 'click', -
mowomo-variable-fonts/trunk/includes/backend/functions.php
r2244792 r2270785 5 5 6 6 // Include files 7 include_once mwm_variable_font_INC.'backend/menu_page.php'; -
mowomo-variable-fonts/trunk/includes/frontend/customizer/customizer.php
r2244792 r2270785 49 49 // Create tree of panels and sections 50 50 mwm_variable_font_customizer_config_generator( $wp_customize ); 51 mwm_variable_font_customizer_multi_config_generator( $wp_customize, $fonts ); 51 52 52 53 foreach($breakpoints as $breakpoint) { … … 118 119 $general_section_id.'-button', 119 120 array( 120 'type' => 'button', 121 'type' => 'button', 122 'section' => $general_section_id, 123 'label' => __( 'Apply modular scale', 'mwm_variable_font' ), 124 'id' => 'mwm-control-reset-defaults', 125 ))); 126 } 127 } 128 129 if ( !function_exists( 'mwm_variable_font_customizer_multi_config_generator' ) ) { 130 function mwm_variable_font_customizer_multi_config_generator( $wp_customize, $fonts ){ 131 // Creating section 132 $general_section_id = 'mwm_variable_font_panel-multi-general_section'; 133 $mwm_variable_font_panel_general_section = new mwm_custom_section( $wp_customize, $general_section_id, array( 134 'title' => __( 'General modifications', 'mwm_variable_font' ), 135 'panel' => 'mwm_variable_font_panel', 136 )); 137 $wp_customize->add_section( $mwm_variable_font_panel_general_section ); 138 139 mwm_add_separator_control( $wp_customize, $general_section_id, $general_section_id.'-separator_1', __('Global font family modification', 'mwm_variable_font'), '', false ); 140 141 // Selected font family 142 $wp_customize->add_setting( $general_section_id.'-selected_font', array( 143 'type' => 'theme_mod', 144 'capability' => 'edit_theme_options', 145 'default' => 'Inter var experimental', 146 )); 147 $wp_customize->add_control( $general_section_id.'-selected_font', array( 148 'label' => __( 'Choose a font', 'mwm_variable_font' ), 121 149 'section' => $general_section_id, 122 'label' => __( 'Apply modular scale', 'mwm_variable_font' ), 123 'id' => 'mwm-control-reset-defaults', 150 'type' => 'select', 151 'choices' => $fonts 152 )); 153 154 $wp_customize->add_setting( $general_section_id.'-selected_target', array( 155 'type' => 'theme_mod', 156 'capability' => 'edit_theme_options', 157 'default' => 'Every tag', 158 )); 159 $wp_customize->add_control( $general_section_id.'-selected_target', array( 160 'label' => __( 'Choose targets', 'mwm_variable_font' ), 161 'section' => $general_section_id, 162 'type' => 'select', 163 'choices' => array( 164 'Every tag' => __( 'Every tag', 'mwm_variable_font' ), 165 'All tags except titles' => __( 'All tags except titles', 'mwm_variable_font' ), 166 'Only titles' => __( 'Only titles', 'mwm_variable_font' ), 167 ) 168 )); 169 170 $wp_customize->add_setting( $general_section_id.'-button', array( 171 'type' => 'theme_mod', 172 )); 173 $wp_customize->add_control( new mwm_button_control( 174 $wp_customize, 175 $general_section_id.'-button', 176 array( 177 'type' => 'button', 178 'section' => $general_section_id, 179 'label' => __( 'Apply global change of font family', 'mwm_variable_font' ), 180 'id' => 'mwm-control-change-font-family', 181 'help' => __( 'It is recommended to reload the page when changes have been made after pressing the button', 'mwm_variable_font' ) 124 182 ))); 125 183 } … … 150 208 'type' => 'theme_mod', 151 209 'capability' => 'edit_theme_options', 152 'default' => ' Inter var experimental',210 'default' => 'Select a font', 153 211 )); 154 212 $wp_customize->add_control( $section_id.'-selected_font', array( -
mowomo-variable-fonts/trunk/includes/frontend/functions.php
r2244792 r2270785 6 6 // Include files 7 7 include_once mwm_variable_font_INC.'frontend/customizer/customizer.php'; 8 include_once mwm_variable_font_INC.'frontend/customizer/global_change_font_family.php'; 8 9 include_once mwm_variable_font_INC.'frontend/customizer/reset_configuration.php'; 9 10 … … 55 56 $section_id = $panel_id.'-'.$element; 56 57 57 $selected_font = get_theme_mod( $section_id.'-selected_font', ' Inter var experimental');58 $selected_font = get_theme_mod( $section_id.'-selected_font', 'Select a font'); 58 59 $prop_id = $section_id.'-'.mwm_sanitize_string($selected_font).'-'; 59 60 $variations = array(); -
mowomo-variable-fonts/trunk/includes/libs/mwm-custom-controls/custom-controls.php
r2244792 r2270785 149 149 'id' => '', 150 150 'class' => 'button button-primary', 151 'help' => '' 151 152 ); 152 153 $args = wp_parse_args( $args, $defaults ); … … 154 155 $this->id = $args['id']; 155 156 $this->class = $args['class']; 157 $this->help = $args['help']; 156 158 } 157 159 … … 163 165 <label class="mwm-custom-controls__container"> 164 166 <button type="button" id="<?php echo $this->id; ?>" class="<?php echo $this->class; ?>"><?php echo $this->label; ?></button> 167 <?php if ($this->help) : ?> 168 <p class="mwm-custom-controls__help"><?php echo $this->help; ?></p> 169 <?php endif; ?> 165 170 </label> 166 171 <?php -
mowomo-variable-fonts/trunk/languages/mwm_variable_font-es_ES.po
r2244792 r2270785 3 3 "Project-Id-Version: mowomo Variable Fonts\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2020-0 2-13 23:45+0000\n"6 "PO-Revision-Date: 2020-0 2-13 23:48+0000\n"5 "POT-Creation-Date: 2020-03-30 13:00+0000\n" 6 "PO-Revision-Date: 2020-03-30 13:04+0000\n" 7 7 "Last-Translator: Admin <pedro@mowomo.com>\n" 8 8 "Language-Team: Español\n" … … 15 15 "X-Loco-Version: 2.3.1; wp-5.3.2" 16 16 17 #: mwm-variable-font.php:4 517 #: mwm-variable-font.php:47 18 18 msgid "Loading..." 19 19 msgstr "Cargando..." 20 20 21 #: mwm-variable-font.php:46 22 msgid "" 23 "This option will reset every font-size and line-height setting in the plugin." 24 " Are you sure you want to continue?" 25 msgstr "" 26 "Esta opción sobrescribirá todas las configuraciones de font-size y line-" 27 "height en el plugin. ¿Estás seguro de querer continuar?" 28 29 #: includes/frontend/functions.php:16 21 #: mwm-variable-font.php:48 22 msgid "" 23 "This option will overwrite all the font-size and line-height settings, the " 24 "changes will be saved and this action cannot be undone. Are you sure you " 25 "want to continue?" 26 msgstr "" 27 "Esta opción sobrescribirá todas las configuraciones de font-size y line-" 28 "height, se guardarán los cambios y esta acción no se puede deshacer. ¿Seguro " 29 "que quieres continuar?" 30 31 #: mwm-variable-font.php:49 32 msgid "" 33 "This option will overwrite all the target's font-family settings, the " 34 "changes will be saved and this action cannot be undone. Are you sure you " 35 "want to continue?" 36 msgstr "" 37 "Esta opción sobrescribirá todos los lost font-family de los objetivos, los " 38 "cambios se guardarán y esta acción no se puede deshacer. ¿Seguro de que " 39 "quieres continuar?" 40 41 #: includes/frontend/functions.php:17 42 #: includes/frontend/customizer/global_change_font_family.php:21 30 43 #: includes/frontend/customizer/customizer.php:28 31 44 #: includes/frontend/customizer/reset_configuration.php:21 … … 33 46 msgstr "Móvil" 34 47 35 #: includes/frontend/functions.php:17 48 #: includes/frontend/functions.php:18 49 #: includes/frontend/customizer/global_change_font_family.php:22 36 50 #: includes/frontend/customizer/customizer.php:29 37 51 #: includes/frontend/customizer/reset_configuration.php:22 … … 39 53 msgstr "Tablet" 40 54 41 #: includes/frontend/functions.php:18 55 #: includes/frontend/functions.php:19 56 #: includes/frontend/customizer/global_change_font_family.php:23 42 57 #: includes/frontend/customizer/customizer.php:30 43 58 #: includes/frontend/customizer/reset_configuration.php:23 … … 45 60 msgstr "Escritorio" 46 61 47 #: includes/frontend/functions.php:3 262 #: includes/frontend/functions.php:33 48 63 #: includes/frontend/customizer/customizer.php:44 49 64 #: includes/frontend/customizer/reset_configuration.php:37 … … 52 67 53 68 #. Name of the plugin 69 #: includes/backend/menu_page.php:13 includes/backend/menu_page.php:14 54 70 #: includes/frontend/customizer/customizer.php:21 55 71 msgid "mowomo Variable Fonts" 56 72 msgstr "mowomo Variable Fonts" 57 73 58 #: includes/frontend/customizer/customizer.php:69 59 #: includes/frontend/customizer/customizer.php:74 74 #: includes/backend/menu_page.php:59 75 msgid "" 76 "The mowomo Variable Fonts plugin is installed. You don't know how to start " 77 "using it yet? Go to the site's customizer through this" 78 msgstr "" 79 "El plugin mowomo Variable Fonts está instalado. ¿Aún no sabes cómo empezar a " 80 "usarlo? Ve al personalizador del sitio a través de este" 81 82 #: includes/backend/menu_page.php:59 83 msgid "link" 84 msgstr "enlace" 85 86 #: includes/backend/menu_page.php:60 87 msgid "I already know how to use the plugin" 88 msgstr "Ya sé usar el plugin" 89 90 #: includes/frontend/customizer/customizer.php:70 91 #: includes/frontend/customizer/customizer.php:75 60 92 msgid "Modular scale" 61 93 msgstr "Escala modular" 62 94 63 #: includes/frontend/customizer/customizer.php:8 495 #: includes/frontend/customizer/customizer.php:85 64 96 msgid "Base" 65 97 msgstr "Base" 66 98 67 #: includes/frontend/customizer/customizer.php:9 599 #: includes/frontend/customizer/customizer.php:96 68 100 msgid "15:16 - minor second (1.067)" 69 101 msgstr "15:16 - segundo menor (1.067)" 70 102 71 #: includes/frontend/customizer/customizer.php:9 6103 #: includes/frontend/customizer/customizer.php:97 72 104 msgid "8:9 - major second (1.125)" 73 105 msgstr "8:9 - segundo mayor (1.125)" 74 106 75 #: includes/frontend/customizer/customizer.php:9 7107 #: includes/frontend/customizer/customizer.php:98 76 108 msgid "5:6 - minor third (1.2)" 77 109 msgstr "5:6 - tercero menor (1.2)" 78 110 79 #: includes/frontend/customizer/customizer.php:9 8111 #: includes/frontend/customizer/customizer.php:99 80 112 msgid "4:5 - major third (1.25)" 81 113 msgstr "4:5 - cuarto mayor (1.25)" 82 114 83 #: includes/frontend/customizer/customizer.php: 99115 #: includes/frontend/customizer/customizer.php:100 84 116 msgid "5:6 - perfect fourth (1.333)" 85 117 msgstr "5:6 - cuarto perfecto (1.333)" 86 118 87 #: includes/frontend/customizer/customizer.php:10 7119 #: includes/frontend/customizer/customizer.php:108 88 120 msgid "Choose a modular scale" 89 121 msgstr "Elige una escala modular" 90 122 91 #: includes/frontend/customizer/customizer.php:12 2123 #: includes/frontend/customizer/customizer.php:123 92 124 msgid "Apply modular scale" 93 125 msgstr "Aplicar escala modular" 94 126 95 #: includes/frontend/customizer/customizer.php:146 127 #: includes/frontend/customizer/customizer.php:134 128 msgid "General modifications" 129 msgstr "Modificaciones generales" 130 131 #: includes/frontend/customizer/customizer.php:139 132 msgid "Global font family modification" 133 msgstr "Modificación global del tipo de fuente" 134 135 #: includes/frontend/customizer/customizer.php:148 136 #: includes/frontend/customizer/customizer.php:213 137 msgid "Choose a font" 138 msgstr "Elige una fuente" 139 140 #: includes/frontend/customizer/customizer.php:160 141 msgid "Choose targets" 142 msgstr "Elige objetivos" 143 144 #: includes/frontend/customizer/customizer.php:164 145 msgid "Every tag" 146 msgstr "Todas las etiquetas" 147 148 #: includes/frontend/customizer/customizer.php:165 149 msgid "All tags except titles" 150 msgstr "Todas las etiquetas menos los títulos" 151 152 #: includes/frontend/customizer/customizer.php:166 153 msgid "Only titles" 154 msgstr "Sólo los títulos" 155 156 #: includes/frontend/customizer/customizer.php:179 157 msgid "Apply global change of font family" 158 msgstr "Aplica la modificación global del tipo de fuente" 159 160 #: includes/frontend/customizer/customizer.php:181 161 msgid "" 162 "It is recommended to reload the page when changes have been made after " 163 "pressing the button" 164 msgstr "" 165 "Es recomendable recargar la página cuando los cambios se hayan realizado " 166 "después de presionar el botón" 167 168 #: includes/frontend/customizer/customizer.php:204 96 169 msgid "Font family" 97 170 msgstr "Tipo de fuente" 98 171 99 #: includes/frontend/customizer/customizer.php:155 100 msgid "Choose a font" 101 msgstr "Elige una fuente" 102 103 #: includes/frontend/customizer/customizer.php:167 104 #: includes/frontend/customizer/customizer.php:180 105 #: includes/frontend/customizer/customizer.php:192 106 #: includes/frontend/customizer/customizer.php:227 107 #: includes/frontend/customizer/customizer.php:245 108 #: includes/frontend/customizer/customizer.php:260 172 #: includes/frontend/customizer/customizer.php:225 173 #: includes/frontend/customizer/customizer.php:238 174 #: includes/frontend/customizer/customizer.php:250 175 #: includes/frontend/customizer/customizer.php:285 176 #: includes/frontend/customizer/customizer.php:303 177 #: includes/frontend/customizer/customizer.php:318 109 178 msgid "Registered axes" 110 179 msgstr "Ejes reservados" 111 180 112 #: includes/frontend/customizer/customizer.php: 173113 #: includes/frontend/customizer/customizer.php: 185114 #: includes/frontend/customizer/customizer.php: 198115 #: includes/frontend/customizer/customizer.php:2 20116 #: includes/frontend/customizer/customizer.php:2 38117 #: includes/frontend/customizer/customizer.php: 253118 #: includes/frontend/customizer/customizer.php: 266181 #: includes/frontend/customizer/customizer.php:231 182 #: includes/frontend/customizer/customizer.php:243 183 #: includes/frontend/customizer/customizer.php:256 184 #: includes/frontend/customizer/customizer.php:278 185 #: includes/frontend/customizer/customizer.php:296 186 #: includes/frontend/customizer/customizer.php:311 187 #: includes/frontend/customizer/customizer.php:324 119 188 msgid "Properties" 120 189 msgstr "Propiedades" 121 190 122 #: includes/frontend/customizer/customizer.php:2 05123 #: includes/frontend/customizer/customizer.php:2 33191 #: includes/frontend/customizer/customizer.php:263 192 #: includes/frontend/customizer/customizer.php:291 124 193 msgid "Custom axes" 125 194 msgstr "Ejes personalizados" -
mowomo-variable-fonts/trunk/languages/mwm_variable_font.pot
r2244792 r2270785 4 4 "Project-Id-Version: mowomo Variable Fonts\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2020-0 2-13 23:45+0000\n"6 "POT-Creation-Date: 2020-03-30 13:00+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 16 16 "X-Loco-Version: 2.3.1; wp-5.3.2" 17 17 18 #: mwm-variable-font.php:4 518 #: mwm-variable-font.php:47 19 19 msgid "Loading..." 20 20 msgstr "" 21 21 22 #: mwm-variable-font.php:4 622 #: mwm-variable-font.php:48 23 23 msgid "" 24 "This option will reset every font-size and line-height setting in the plugin." 25 " Are you sure you want to continue?" 24 "This option will overwrite all the font-size and line-height settings, the " 25 "changes will be saved and this action cannot be undone. Are you sure you " 26 "want to continue?" 26 27 msgstr "" 27 28 28 #: includes/frontend/functions.php:16 29 #: mwm-variable-font.php:49 30 msgid "" 31 "This option will overwrite all the target's font-family settings, the " 32 "changes will be saved and this action cannot be undone. Are you sure you " 33 "want to continue?" 34 msgstr "" 35 36 #: includes/frontend/functions.php:17 37 #: includes/frontend/customizer/global_change_font_family.php:21 29 38 #: includes/frontend/customizer/customizer.php:28 30 39 #: includes/frontend/customizer/reset_configuration.php:21 … … 32 41 msgstr "" 33 42 34 #: includes/frontend/functions.php:17 43 #: includes/frontend/functions.php:18 44 #: includes/frontend/customizer/global_change_font_family.php:22 35 45 #: includes/frontend/customizer/customizer.php:29 36 46 #: includes/frontend/customizer/reset_configuration.php:22 … … 38 48 msgstr "" 39 49 40 #: includes/frontend/functions.php:18 50 #: includes/frontend/functions.php:19 51 #: includes/frontend/customizer/global_change_font_family.php:23 41 52 #: includes/frontend/customizer/customizer.php:30 42 53 #: includes/frontend/customizer/reset_configuration.php:23 … … 44 55 msgstr "" 45 56 46 #: includes/frontend/functions.php:3 257 #: includes/frontend/functions.php:33 47 58 #: includes/frontend/customizer/customizer.php:44 48 59 #: includes/frontend/customizer/reset_configuration.php:37 … … 51 62 52 63 #. Name of the plugin 64 #: includes/backend/menu_page.php:13 includes/backend/menu_page.php:14 53 65 #: includes/frontend/customizer/customizer.php:21 54 66 msgid "mowomo Variable Fonts" 55 67 msgstr "" 56 68 57 #: includes/frontend/customizer/customizer.php:69 58 #: includes/frontend/customizer/customizer.php:74 69 #: includes/backend/menu_page.php:59 70 msgid "" 71 "The mowomo Variable Fonts plugin is installed. You don't know how to start " 72 "using it yet? Go to the site's customizer through this" 73 msgstr "" 74 75 #: includes/backend/menu_page.php:59 76 msgid "link" 77 msgstr "" 78 79 #: includes/backend/menu_page.php:60 80 msgid "I already know how to use the plugin" 81 msgstr "" 82 83 #: includes/frontend/customizer/customizer.php:70 84 #: includes/frontend/customizer/customizer.php:75 59 85 msgid "Modular scale" 60 86 msgstr "" 61 87 62 #: includes/frontend/customizer/customizer.php:8 488 #: includes/frontend/customizer/customizer.php:85 63 89 msgid "Base" 64 90 msgstr "" 65 91 66 #: includes/frontend/customizer/customizer.php:9 592 #: includes/frontend/customizer/customizer.php:96 67 93 msgid "15:16 - minor second (1.067)" 68 94 msgstr "" 69 95 70 #: includes/frontend/customizer/customizer.php:9 696 #: includes/frontend/customizer/customizer.php:97 71 97 msgid "8:9 - major second (1.125)" 72 98 msgstr "" 73 99 74 #: includes/frontend/customizer/customizer.php:9 7100 #: includes/frontend/customizer/customizer.php:98 75 101 msgid "5:6 - minor third (1.2)" 76 102 msgstr "" 77 103 78 #: includes/frontend/customizer/customizer.php:9 8104 #: includes/frontend/customizer/customizer.php:99 79 105 msgid "4:5 - major third (1.25)" 80 106 msgstr "" 81 107 82 #: includes/frontend/customizer/customizer.php: 99108 #: includes/frontend/customizer/customizer.php:100 83 109 msgid "5:6 - perfect fourth (1.333)" 84 110 msgstr "" 85 111 86 #: includes/frontend/customizer/customizer.php:10 7112 #: includes/frontend/customizer/customizer.php:108 87 113 msgid "Choose a modular scale" 88 114 msgstr "" 89 115 90 #: includes/frontend/customizer/customizer.php:12 2116 #: includes/frontend/customizer/customizer.php:123 91 117 msgid "Apply modular scale" 92 118 msgstr "" 93 119 94 #: includes/frontend/customizer/customizer.php:146 120 #: includes/frontend/customizer/customizer.php:134 121 msgid "General modifications" 122 msgstr "" 123 124 #: includes/frontend/customizer/customizer.php:139 125 msgid "Global font family modification" 126 msgstr "" 127 128 #: includes/frontend/customizer/customizer.php:148 129 #: includes/frontend/customizer/customizer.php:213 130 msgid "Choose a font" 131 msgstr "" 132 133 #: includes/frontend/customizer/customizer.php:160 134 msgid "Choose targets" 135 msgstr "" 136 137 #: includes/frontend/customizer/customizer.php:164 138 msgid "Every tag" 139 msgstr "" 140 141 #: includes/frontend/customizer/customizer.php:165 142 msgid "All tags except titles" 143 msgstr "" 144 145 #: includes/frontend/customizer/customizer.php:166 146 msgid "Only titles" 147 msgstr "" 148 149 #: includes/frontend/customizer/customizer.php:179 150 msgid "Apply global change of font family" 151 msgstr "" 152 153 #: includes/frontend/customizer/customizer.php:181 154 msgid "" 155 "It is recommended to reload the page when changes have been made after " 156 "pressing the button" 157 msgstr "" 158 159 #: includes/frontend/customizer/customizer.php:204 95 160 msgid "Font family" 96 161 msgstr "" 97 162 98 #: includes/frontend/customizer/customizer.php:155 99 msgid "Choose a font" 100 msgstr "" 101 102 #: includes/frontend/customizer/customizer.php:167 103 #: includes/frontend/customizer/customizer.php:180 104 #: includes/frontend/customizer/customizer.php:192 105 #: includes/frontend/customizer/customizer.php:227 106 #: includes/frontend/customizer/customizer.php:245 107 #: includes/frontend/customizer/customizer.php:260 163 #: includes/frontend/customizer/customizer.php:225 164 #: includes/frontend/customizer/customizer.php:238 165 #: includes/frontend/customizer/customizer.php:250 166 #: includes/frontend/customizer/customizer.php:285 167 #: includes/frontend/customizer/customizer.php:303 168 #: includes/frontend/customizer/customizer.php:318 108 169 msgid "Registered axes" 109 170 msgstr "" 110 171 111 #: includes/frontend/customizer/customizer.php: 173112 #: includes/frontend/customizer/customizer.php: 185113 #: includes/frontend/customizer/customizer.php: 198114 #: includes/frontend/customizer/customizer.php:2 20115 #: includes/frontend/customizer/customizer.php:2 38116 #: includes/frontend/customizer/customizer.php: 253117 #: includes/frontend/customizer/customizer.php: 266172 #: includes/frontend/customizer/customizer.php:231 173 #: includes/frontend/customizer/customizer.php:243 174 #: includes/frontend/customizer/customizer.php:256 175 #: includes/frontend/customizer/customizer.php:278 176 #: includes/frontend/customizer/customizer.php:296 177 #: includes/frontend/customizer/customizer.php:311 178 #: includes/frontend/customizer/customizer.php:324 118 179 msgid "Properties" 119 180 msgstr "" 120 181 121 #: includes/frontend/customizer/customizer.php:2 05122 #: includes/frontend/customizer/customizer.php:2 33182 #: includes/frontend/customizer/customizer.php:263 183 #: includes/frontend/customizer/customizer.php:291 123 184 msgid "Custom axes" 124 185 msgstr "" -
mowomo-variable-fonts/trunk/mwm-variable-font.php
r2244792 r2270785 3 3 * Plugin Name: mowomo Variable Fonts 4 4 * Description: An elegant solution for a better typography with beautiful variable fonts 5 * Version: 1. 0.05 * Version: 1.1.0 6 6 * Author: victorsaenztm, pedromcj95, acirujano, mowomo 7 7 * Author URI: https://www.mowomo.com … … 31 31 wp_register_script(mwm_variable_font_SLUG.'_scripts', mwm_variable_font_JS.'scripts.js', array('jquery'), '1.0.0' ); 32 32 wp_register_style(mwm_variable_font_SLUG.'_styles', mwm_variable_font_CSS.'styles.css', array()); 33 wp_register_style(mwm_variable_font_SLUG.'_inter', 'https://rsms.me/inter/inter.css', array()); 33 34 wp_enqueue_script(mwm_variable_font_SLUG.'_scripts'); 34 35 wp_enqueue_style(mwm_variable_font_SLUG.'_styles'); 36 wp_enqueue_style(mwm_variable_font_SLUG.'_inter'); 35 37 } 36 38 add_action('wp_enqueue_scripts', 'mwm_variable_font_enqueue_scripts', 999); … … 44 46 'ajax' => admin_url( "admin-ajax.php" ), 45 47 'loading_message' => __( 'Loading...', 'mwm_variable_font' ), 46 'confirm_message' => __( 'This option will reset every font-size and line-height setting in the plugin. Are you sure you want to continue?', 'mwm_variable_font' ) 48 'confirm_message' => __( 'This option will overwrite all the font-size and line-height settings, the changes will be saved and this action cannot be undone. Are you sure you want to continue?', 'mwm_variable_font' ), 49 'confirm_message_font_size' => __( 'This option will overwrite all the target\'s font-family settings, the changes will be saved and this action cannot be undone. Are you sure you want to continue?', 'mwm_variable_font' ) 47 50 )); 48 51 wp_enqueue_script(mwm_variable_font_SLUG.'-scripts-customizer'); … … 55 58 function mwm_variable_font_enqueue_admin_scripts() { 56 59 wp_register_script(mwm_variable_font_SLUG.'_admin_scripts', mwm_variable_font_JS.'admin_scripts.js', array('jquery'), '1.0.0' ); 60 wp_localize_script( mwm_variable_font_SLUG.'_admin_scripts', 'ajax_vars', array( 61 'ajax' => admin_url( "admin-ajax.php" ) 62 )); 57 63 wp_register_style(mwm_variable_font_SLUG.'_admin_styles', mwm_variable_font_CSS.'admin_styles.css', array()); 58 64 wp_enqueue_script(mwm_variable_font_SLUG.'_admin_scripts');
Note: See TracChangeset
for help on using the changeset viewer.