Plugin Directory

Changeset 2270785


Ignore:
Timestamp:
03/30/2020 01:17:54 PM (6 years ago)
Author:
Pedromcj95
Message:

Update of new version: 1.1.0

Location:
mowomo-variable-fonts
Files:
4 added
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mowomo-variable-fonts/trunk/README.md

    r2244792 r2270785  
    1 === mowomo Variable Fonts  ===
     1=== mowomo Variable Fonts ===
    22Contributors: victorsaenztm, pedromcj95, acirujano, mowomo
    33Tags: variable, fonts
     
    1111An elegant solution for a better typography with beautiful variable fonts.
    1212
     13This plugin allows you to easy use variable fonts, establish a responsive typography and use a modular scale in your WordPress website. No coding required!
    1314
    14 == About this plugin ==
     15You can preview font changes on your website in real time using the WordPress Customizer.
    1516
    16 An elegant solution for a better typography with beautiful variable fonts.
     17== Description ==
    1718
     19Using variable fonts, you can improve the user experience in your website because you get a better visual hierarchy and more legibility.
     20
     21A 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
     23With 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
     25You can easily choose one variation of a font for headings and a different one for paragraphs.
     26
     27Also, you can easily set font properties such as font size, line height and letter spacing.
     28
     29## Responsive Typography
     30
     31This plugin allows you to improve your website responsive typography with variable fonts in any WordPress theme (no coding required).
     32
     33Font 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
     37A modular scale is a sequence of numbers that relate one to another in a meaningful way.
     38
     39By 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
     41Using 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
     45mowomo Variable Fonts will work with all WordPress themes or any visual builder like Divi, Elementor, WPBakery, etc.
    1846
    1947== Installation ==
     
    25533. Use for free the customization section.
    2654
     55== Changelog ==
    2756
     57= 1.1.0 =
    2858
    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
    3066= 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");
    21@font-face {
    32  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 experimental
    2 @import url('https://rsms.me/inter/inter.css');
    3 
    41// Source Sans Variable
    52@font-face {
  • mowomo-variable-fonts/trunk/assets/js/admin_scripts.js

    r2244792 r2270785  
    1 jQuery(document).ready(function() {});
     1jQuery(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  
    1414            '#accordion-section-mwm_variable_font_panel-general_section h3'
    1515        ).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');
    1619
    1720        // Modify the viewport on select viewport panel - mobile
     
    7982        });
    8083
     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
    81123        // jQuery('#customize-footer-actions .preview-mobile').on(
    82124        //  'click',
  • mowomo-variable-fonts/trunk/includes/backend/functions.php

    r2244792 r2270785  
    55
    66// Include files
     7include_once mwm_variable_font_INC.'backend/menu_page.php';
  • mowomo-variable-fonts/trunk/includes/frontend/customizer/customizer.php

    r2244792 r2270785  
    4949        // Create tree of panels and sections
    5050        mwm_variable_font_customizer_config_generator( $wp_customize );
     51        mwm_variable_font_customizer_multi_config_generator( $wp_customize, $fonts );
    5152
    5253        foreach($breakpoints as $breakpoint) {
     
    118119                $general_section_id.'-button',
    119120                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' ),
    121149                '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' )
    124182            )));
    125183        }
     
    150208                    'type' => 'theme_mod',
    151209                    'capability' => 'edit_theme_options',
    152                     'default' => 'Inter var experimental',
     210                    'default' => 'Select a font',
    153211                ));
    154212                $wp_customize->add_control( $section_id.'-selected_font', array(
  • mowomo-variable-fonts/trunk/includes/frontend/functions.php

    r2244792 r2270785  
    66// Include files
    77include_once mwm_variable_font_INC.'frontend/customizer/customizer.php';
     8include_once mwm_variable_font_INC.'frontend/customizer/global_change_font_family.php';
    89include_once mwm_variable_font_INC.'frontend/customizer/reset_configuration.php';
    910
     
    5556                            $section_id = $panel_id.'-'.$element;
    5657                           
    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');
    5859                            $prop_id = $section_id.'-'.mwm_sanitize_string($selected_font).'-';
    5960                            $variations = array();
  • mowomo-variable-fonts/trunk/includes/libs/mwm-custom-controls/custom-controls.php

    r2244792 r2270785  
    149149                    'id'    =>  '',
    150150                    'class' =>  'button button-primary',
     151                    'help'  => ''
    151152                );
    152153                $args = wp_parse_args( $args, $defaults );
     
    154155                $this->id = $args['id'];
    155156                $this->class = $args['class'];
     157                $this->help = $args['help'];
    156158            }
    157159           
     
    163165                <label class="mwm-custom-controls__container">
    164166                    <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; ?>
    165170                </label>
    166171            <?php
  • mowomo-variable-fonts/trunk/languages/mwm_variable_font-es_ES.po

    r2244792 r2270785  
    33"Project-Id-Version: mowomo Variable Fonts\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2020-02-13 23:45+0000\n"
    6 "PO-Revision-Date: 2020-02-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"
    77"Last-Translator: Admin <pedro@mowomo.com>\n"
    88"Language-Team: Español\n"
     
    1515"X-Loco-Version: 2.3.1; wp-5.3.2"
    1616
    17 #: mwm-variable-font.php:45
     17#: mwm-variable-font.php:47
    1818msgid "Loading..."
    1919msgstr "Cargando..."
    2020
    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
     22msgid ""
     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?"
     26msgstr ""
     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
     32msgid ""
     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?"
     36msgstr ""
     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
    3043#: includes/frontend/customizer/customizer.php:28
    3144#: includes/frontend/customizer/reset_configuration.php:21
     
    3346msgstr "Móvil"
    3447
    35 #: includes/frontend/functions.php:17
     48#: includes/frontend/functions.php:18
     49#: includes/frontend/customizer/global_change_font_family.php:22
    3650#: includes/frontend/customizer/customizer.php:29
    3751#: includes/frontend/customizer/reset_configuration.php:22
     
    3953msgstr "Tablet"
    4054
    41 #: includes/frontend/functions.php:18
     55#: includes/frontend/functions.php:19
     56#: includes/frontend/customizer/global_change_font_family.php:23
    4257#: includes/frontend/customizer/customizer.php:30
    4358#: includes/frontend/customizer/reset_configuration.php:23
     
    4560msgstr "Escritorio"
    4661
    47 #: includes/frontend/functions.php:32
     62#: includes/frontend/functions.php:33
    4863#: includes/frontend/customizer/customizer.php:44
    4964#: includes/frontend/customizer/reset_configuration.php:37
     
    5267
    5368#. Name of the plugin
     69#: includes/backend/menu_page.php:13 includes/backend/menu_page.php:14
    5470#: includes/frontend/customizer/customizer.php:21
    5571msgid "mowomo Variable Fonts"
    5672msgstr "mowomo Variable Fonts"
    5773
    58 #: includes/frontend/customizer/customizer.php:69
    59 #: includes/frontend/customizer/customizer.php:74
     74#: includes/backend/menu_page.php:59
     75msgid ""
     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"
     78msgstr ""
     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
     83msgid "link"
     84msgstr "enlace"
     85
     86#: includes/backend/menu_page.php:60
     87msgid "I already know how to use the plugin"
     88msgstr "Ya sé usar el plugin"
     89
     90#: includes/frontend/customizer/customizer.php:70
     91#: includes/frontend/customizer/customizer.php:75
    6092msgid "Modular scale"
    6193msgstr "Escala modular"
    6294
    63 #: includes/frontend/customizer/customizer.php:84
     95#: includes/frontend/customizer/customizer.php:85
    6496msgid "Base"
    6597msgstr "Base"
    6698
    67 #: includes/frontend/customizer/customizer.php:95
     99#: includes/frontend/customizer/customizer.php:96
    68100msgid "15:16 - minor second (1.067)"
    69101msgstr "15:16 - segundo menor (1.067)"
    70102
    71 #: includes/frontend/customizer/customizer.php:96
     103#: includes/frontend/customizer/customizer.php:97
    72104msgid "8:9 - major second (1.125)"
    73105msgstr "8:9 - segundo mayor (1.125)"
    74106
    75 #: includes/frontend/customizer/customizer.php:97
     107#: includes/frontend/customizer/customizer.php:98
    76108msgid "5:6 - minor third (1.2)"
    77109msgstr "5:6 - tercero menor (1.2)"
    78110
    79 #: includes/frontend/customizer/customizer.php:98
     111#: includes/frontend/customizer/customizer.php:99
    80112msgid "4:5 - major third (1.25)"
    81113msgstr "4:5 - cuarto mayor (1.25)"
    82114
    83 #: includes/frontend/customizer/customizer.php:99
     115#: includes/frontend/customizer/customizer.php:100
    84116msgid "5:6 - perfect fourth (1.333)"
    85117msgstr "5:6 - cuarto perfecto (1.333)"
    86118
    87 #: includes/frontend/customizer/customizer.php:107
     119#: includes/frontend/customizer/customizer.php:108
    88120msgid "Choose a modular scale"
    89121msgstr "Elige una escala modular"
    90122
    91 #: includes/frontend/customizer/customizer.php:122
     123#: includes/frontend/customizer/customizer.php:123
    92124msgid "Apply modular scale"
    93125msgstr "Aplicar escala modular"
    94126
    95 #: includes/frontend/customizer/customizer.php:146
     127#: includes/frontend/customizer/customizer.php:134
     128msgid "General modifications"
     129msgstr "Modificaciones generales"
     130
     131#: includes/frontend/customizer/customizer.php:139
     132msgid "Global font family modification"
     133msgstr "Modificación global del tipo de fuente"
     134
     135#: includes/frontend/customizer/customizer.php:148
     136#: includes/frontend/customizer/customizer.php:213
     137msgid "Choose a font"
     138msgstr "Elige una fuente"
     139
     140#: includes/frontend/customizer/customizer.php:160
     141msgid "Choose targets"
     142msgstr "Elige objetivos"
     143
     144#: includes/frontend/customizer/customizer.php:164
     145msgid "Every tag"
     146msgstr "Todas las etiquetas"
     147
     148#: includes/frontend/customizer/customizer.php:165
     149msgid "All tags except titles"
     150msgstr "Todas las etiquetas menos los títulos"
     151
     152#: includes/frontend/customizer/customizer.php:166
     153msgid "Only titles"
     154msgstr "Sólo los títulos"
     155
     156#: includes/frontend/customizer/customizer.php:179
     157msgid "Apply global change of font family"
     158msgstr "Aplica la modificación global del tipo de fuente"
     159
     160#: includes/frontend/customizer/customizer.php:181
     161msgid ""
     162"It is recommended to reload the page when changes have been made after "
     163"pressing the button"
     164msgstr ""
     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
    96169msgid "Font family"
    97170msgstr "Tipo de fuente"
    98171
    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
    109178msgid "Registered axes"
    110179msgstr "Ejes reservados"
    111180
    112 #: includes/frontend/customizer/customizer.php:173
    113 #: includes/frontend/customizer/customizer.php:185
    114 #: includes/frontend/customizer/customizer.php:198
    115 #: includes/frontend/customizer/customizer.php:220
    116 #: includes/frontend/customizer/customizer.php:238
    117 #: includes/frontend/customizer/customizer.php:253
    118 #: includes/frontend/customizer/customizer.php:266
     181#: 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
    119188msgid "Properties"
    120189msgstr "Propiedades"
    121190
    122 #: includes/frontend/customizer/customizer.php:205
    123 #: includes/frontend/customizer/customizer.php:233
     191#: includes/frontend/customizer/customizer.php:263
     192#: includes/frontend/customizer/customizer.php:291
    124193msgid "Custom axes"
    125194msgstr "Ejes personalizados"
  • mowomo-variable-fonts/trunk/languages/mwm_variable_font.pot

    r2244792 r2270785  
    44"Project-Id-Version: mowomo Variable Fonts\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2020-02-13 23:45+0000\n"
     6"POT-Creation-Date: 2020-03-30 13:00+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1616"X-Loco-Version: 2.3.1; wp-5.3.2"
    1717
    18 #: mwm-variable-font.php:45
     18#: mwm-variable-font.php:47
    1919msgid "Loading..."
    2020msgstr ""
    2121
    22 #: mwm-variable-font.php:46
     22#: mwm-variable-font.php:48
    2323msgid ""
    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?"
    2627msgstr ""
    2728
    28 #: includes/frontend/functions.php:16
     29#: mwm-variable-font.php:49
     30msgid ""
     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?"
     34msgstr ""
     35
     36#: includes/frontend/functions.php:17
     37#: includes/frontend/customizer/global_change_font_family.php:21
    2938#: includes/frontend/customizer/customizer.php:28
    3039#: includes/frontend/customizer/reset_configuration.php:21
     
    3241msgstr ""
    3342
    34 #: includes/frontend/functions.php:17
     43#: includes/frontend/functions.php:18
     44#: includes/frontend/customizer/global_change_font_family.php:22
    3545#: includes/frontend/customizer/customizer.php:29
    3646#: includes/frontend/customizer/reset_configuration.php:22
     
    3848msgstr ""
    3949
    40 #: includes/frontend/functions.php:18
     50#: includes/frontend/functions.php:19
     51#: includes/frontend/customizer/global_change_font_family.php:23
    4152#: includes/frontend/customizer/customizer.php:30
    4253#: includes/frontend/customizer/reset_configuration.php:23
     
    4455msgstr ""
    4556
    46 #: includes/frontend/functions.php:32
     57#: includes/frontend/functions.php:33
    4758#: includes/frontend/customizer/customizer.php:44
    4859#: includes/frontend/customizer/reset_configuration.php:37
     
    5162
    5263#. Name of the plugin
     64#: includes/backend/menu_page.php:13 includes/backend/menu_page.php:14
    5365#: includes/frontend/customizer/customizer.php:21
    5466msgid "mowomo Variable Fonts"
    5567msgstr ""
    5668
    57 #: includes/frontend/customizer/customizer.php:69
    58 #: includes/frontend/customizer/customizer.php:74
     69#: includes/backend/menu_page.php:59
     70msgid ""
     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"
     73msgstr ""
     74
     75#: includes/backend/menu_page.php:59
     76msgid "link"
     77msgstr ""
     78
     79#: includes/backend/menu_page.php:60
     80msgid "I already know how to use the plugin"
     81msgstr ""
     82
     83#: includes/frontend/customizer/customizer.php:70
     84#: includes/frontend/customizer/customizer.php:75
    5985msgid "Modular scale"
    6086msgstr ""
    6187
    62 #: includes/frontend/customizer/customizer.php:84
     88#: includes/frontend/customizer/customizer.php:85
    6389msgid "Base"
    6490msgstr ""
    6591
    66 #: includes/frontend/customizer/customizer.php:95
     92#: includes/frontend/customizer/customizer.php:96
    6793msgid "15:16 - minor second (1.067)"
    6894msgstr ""
    6995
    70 #: includes/frontend/customizer/customizer.php:96
     96#: includes/frontend/customizer/customizer.php:97
    7197msgid "8:9 - major second (1.125)"
    7298msgstr ""
    7399
    74 #: includes/frontend/customizer/customizer.php:97
     100#: includes/frontend/customizer/customizer.php:98
    75101msgid "5:6 - minor third (1.2)"
    76102msgstr ""
    77103
    78 #: includes/frontend/customizer/customizer.php:98
     104#: includes/frontend/customizer/customizer.php:99
    79105msgid "4:5 - major third (1.25)"
    80106msgstr ""
    81107
    82 #: includes/frontend/customizer/customizer.php:99
     108#: includes/frontend/customizer/customizer.php:100
    83109msgid "5:6 - perfect fourth (1.333)"
    84110msgstr ""
    85111
    86 #: includes/frontend/customizer/customizer.php:107
     112#: includes/frontend/customizer/customizer.php:108
    87113msgid "Choose a modular scale"
    88114msgstr ""
    89115
    90 #: includes/frontend/customizer/customizer.php:122
     116#: includes/frontend/customizer/customizer.php:123
    91117msgid "Apply modular scale"
    92118msgstr ""
    93119
    94 #: includes/frontend/customizer/customizer.php:146
     120#: includes/frontend/customizer/customizer.php:134
     121msgid "General modifications"
     122msgstr ""
     123
     124#: includes/frontend/customizer/customizer.php:139
     125msgid "Global font family modification"
     126msgstr ""
     127
     128#: includes/frontend/customizer/customizer.php:148
     129#: includes/frontend/customizer/customizer.php:213
     130msgid "Choose a font"
     131msgstr ""
     132
     133#: includes/frontend/customizer/customizer.php:160
     134msgid "Choose targets"
     135msgstr ""
     136
     137#: includes/frontend/customizer/customizer.php:164
     138msgid "Every tag"
     139msgstr ""
     140
     141#: includes/frontend/customizer/customizer.php:165
     142msgid "All tags except titles"
     143msgstr ""
     144
     145#: includes/frontend/customizer/customizer.php:166
     146msgid "Only titles"
     147msgstr ""
     148
     149#: includes/frontend/customizer/customizer.php:179
     150msgid "Apply global change of font family"
     151msgstr ""
     152
     153#: includes/frontend/customizer/customizer.php:181
     154msgid ""
     155"It is recommended to reload the page when changes have been made after "
     156"pressing the button"
     157msgstr ""
     158
     159#: includes/frontend/customizer/customizer.php:204
    95160msgid "Font family"
    96161msgstr ""
    97162
    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
    108169msgid "Registered axes"
    109170msgstr ""
    110171
    111 #: includes/frontend/customizer/customizer.php:173
    112 #: includes/frontend/customizer/customizer.php:185
    113 #: includes/frontend/customizer/customizer.php:198
    114 #: includes/frontend/customizer/customizer.php:220
    115 #: includes/frontend/customizer/customizer.php:238
    116 #: includes/frontend/customizer/customizer.php:253
    117 #: includes/frontend/customizer/customizer.php:266
     172#: 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
    118179msgid "Properties"
    119180msgstr ""
    120181
    121 #: includes/frontend/customizer/customizer.php:205
    122 #: includes/frontend/customizer/customizer.php:233
     182#: includes/frontend/customizer/customizer.php:263
     183#: includes/frontend/customizer/customizer.php:291
    123184msgid "Custom axes"
    124185msgstr ""
  • mowomo-variable-fonts/trunk/mwm-variable-font.php

    r2244792 r2270785  
    33 * Plugin Name: mowomo Variable Fonts
    44 * Description: An elegant solution for a better typography with beautiful variable fonts
    5  * Version:     1.0.0
     5 * Version:     1.1.0
    66 * Author:      victorsaenztm, pedromcj95, acirujano, mowomo
    77 * Author URI:  https://www.mowomo.com
     
    3131        wp_register_script(mwm_variable_font_SLUG.'_scripts', mwm_variable_font_JS.'scripts.js', array('jquery'), '1.0.0' );
    3232        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());
    3334        wp_enqueue_script(mwm_variable_font_SLUG.'_scripts');
    3435        wp_enqueue_style(mwm_variable_font_SLUG.'_styles');
     36        wp_enqueue_style(mwm_variable_font_SLUG.'_inter');
    3537    }
    3638    add_action('wp_enqueue_scripts', 'mwm_variable_font_enqueue_scripts', 999);
     
    4446            'ajax'  =>  admin_url( "admin-ajax.php" ),
    4547            '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' )
    4750        ));
    4851        wp_enqueue_script(mwm_variable_font_SLUG.'-scripts-customizer');
     
    5558    function mwm_variable_font_enqueue_admin_scripts() {
    5659        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        ));
    5763        wp_register_style(mwm_variable_font_SLUG.'_admin_styles', mwm_variable_font_CSS.'admin_styles.css', array());
    5864        wp_enqueue_script(mwm_variable_font_SLUG.'_admin_scripts');
Note: See TracChangeset for help on using the changeset viewer.