亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

??
? ??? ???? ????
???? ???
??? ??? ?? ? ?? : WordPress ??
??? ?? ? ?? : ??? ?? ?? (nuxtjs ??)
?? ??
? ? ????? CSS ???? Google ??? ???? Goofonts.com? ??? ??

Google ??? ???? Goofonts.com? ??? ??

Apr 12, 2025 pm 12:02 PM

Google ??? ???? Goofonts.com? ??? ??

Goofontsis ??? ??? ???? ??? ?? ? ??? ? ????, ? ? ??????? ? ????. ??? Google Fonts? ???? ??? ??? ???? ?? ? ???? ??????.

goofontsuses andnuxtjs (avue.js ??? ??)? goofontsuses wordpress. Goofonts.com? ???? ???? ??? ??? ??? ?? ?? ????? ???? ??? ??? ?? ? ?? ?? ?? ??? ???? ????.

? ??? ???? ????

? ??? ???? ???? Google Fonts? ???? 977 ?? ??? ????. TheGoogle Fonts Developer API? ???? ???? ??? ??? ??? ? ????. ? ???? ?? ??? ??? ? ???? ??? ???? ?? ??? ?? ??? ?? ? ? ????.

Google Fonts ? ???? ?? ??? ?? ? ??? ???? ?????? ???? ???, ??, ?? ?? ???? ?????.

??? ?? ??? ??????

Serif, Sans-Serif, Display, ?? ? Monospace? 5 ?? ?? ? ??? ???? ?? ? ? ????.

???? ??? ?? ? ? ???? (Ovelatin Extended, Cyrillic ?? Devanagari (Google Fonts? ?? ??)? ?? ? ? ??? ? ?? ?? ?? ?? ??? ?? ? ?? ????.

??, ??, ?? ?“???? ??”? ? ?? ???? ?? ? ? ????. ?? ?????? ???? ??? (???? ??)? ??? (100,200, ?? 900)? ?????. ?? ?? ???? ???, ?? ?? ????? ? ?? ??? ?????. "???? ??"??? ?? ????? ??? ????? "??, ??? ????"???? ??? ??? ??? ?? ????.

??? ?? ? ??? ??? ?? ?? ??? ????. ???? ??? ??? ???? ????? ?????. ??? ???? Google Fonts ??? ????? ??? ? ?? ???? ?????.

"??"??? ?? ?????. ?? ???? ?? ???? "?? ????"? ?????.

?? ? ?? ??? ??? ? ??? ???? ????? ???? ?? ??? ? ????. ??? ?? ??? ??? (Old Wild West)? ?? ???? ?? ??? ????? ??????. Google ??? ????? ??? ???????. :)

???? ???

Goofonts? ?? ??? ?? ??????. ???? ??? ??? ?? "??"?????. ?? ??? ???? ?? ? ? ????. ?? "?"??? ?????. ?? ??, ?? ? ???? ??? ?? ? ????.

??? ?? ???? ?? ??????. ???? ??????! ????? ?? ?? ??? ??? ?? ?? ?? ???? ??????. ?? ??? ??? ?? ??? ??? ?? ????.

??? ??? ?? ?? ???? ???? ????? ?? ??? ?????. ??? ???? goofonts.com/bookmarkspage.together?? ??? ? ??? ?? ? ????.

??? ??? ?? ? ?? : WordPress ??

??, ? ??? ???? ??? ?? ??? Kind ofinterface? ??????. ?? thosetags? ???? ?? ??????? ??????.

WordPress? ?? ????????. ?? WordPress? REST API? ?? ????, ?? ??? ??? ???? ?? ? ??? ?? ???? ?????. ??? ?? ???????.

?? ?? ??? ??? ?? ??? ?? ??. ? ??? ????? ???? ??? ??? ?????. Acustom Post ??? ?? ????? ???? ???? WordPress? ???? ?? ??? ?? ??? ??? ???? ?????.

???, ??? ?? ??? ????? ???? ????????. ??? ?? ??? ?? ?? ?? ??? ?? ??? ?? ? ?? ?? ??? ???? ????? ???? ????? ???? ???? ? ? ???????.

??? ?? ? ???? ?? API? ?? ??? ??? ?? ???? ?? ? ? ????. Custom WordPress ?????? API?? ????? ??? ??? ?? ???? ?????. ????? ?? ????? ??, ????? ????? ?? ? ??? ?????? ??? ?? ?? ?????.

 /**
 * ??? ?? ?? ???? ??????. 
 */
?? ???? _custom_menu_page () {
  add_menu_page ( 
    'Google Fonts to WordPress', 
    'wp goofonts', 
    'manage_options', 
    'wp-goofonts-menu', 
  ?? () {?>        
    <h1> Google Fonts API </h1>
     ?? 
    <p> </p>        
     
   php}
  );
}
add_action ( 'admin_menu', 'register_custom_menu_page');


JavaScriptPart? ???? ???????. WordPress? ?? Ajax? ???? ???? ?? jQuery ? jQuery.ajaxmethod? ?????, jQuery ??? ???? ?? ? ????.

????? ???? ? Qs ??? ??? ???? ?? ?? toload?? ???? .

 add_action ( 'admin_enqueue_scripts'function () {
  wp__script ( 'axios', 'https://unpkg.com/axios/dist/axios.min.js');
  wp_enqueue_script ( 'qs', 'https://unpkg.com/qs/dist/qs.js');
  wp_enqueue_script ( 'wp-goofonts-admin-script', plugin_dir_url (__file__). 'js/wp-goofonts.js', ?? ( 'axios', 'qs'), '1.0.0', true);
});

JavaScript? ??? ??? ?? ?????.

 const button = document.getElementById ( 'wp-goofonts-button')
const info = document.getElementById ( 'info')
const progress = document.getElementById ( 'Progress')
const updater = {
  TotalCount : 0,
  ? ?? : 0,
  ???? : [],
  ?? : Async function () {
    ???? {
      const allfonts = await axios.get ( 'https://www.googleapis.com/webfonts/v1/webfonts?key=api_key&sort=date')
      this.totalcount = allfonts.data.items.length
      info.textContent =`fetched $ {this.totalCount} fonts.`
      this.updatepost (allfonts.data.items, 0)
    } catch (e) {
      Console.error (E)
    }
  },
  UpdatePost : Async ?? (els, index) {
    if (index === this.totalCount) {
      ??
    }                
    const data = {
      ?? : 'goofonts_update_post',
      ?? : ELS [??],
    }
    ???? {
       const apirequest = await axios.post (ajaxurl, qs.stringify (data))
       this.totalChecked  
       progress.setattribute ( 'value', math.round (100*this.totalChecked/this.totalCount)))
       this.updatepost (ELS, ?? 1)
    } catch (e) {
       Console.error (E)
      }
   }
}

button.addeventListener ( 'click', () => {
  updater.init ()
})

TheinitMethod? GoogleFonts API? ?????. API? ???? ??? ????? WordPress ??? ?? ??? ???? ?? ? ??? ??? ?? ??? ??? ?? ???? ?????.

?? WordPress? ?? ???? Ajax? ????? ?? ???? ?? ?????. ??, ? ??? towp-admin/admin-ajax.php? ?????? . ? URL? ?? ???? ??? JavaScriptVariaBleAjaxUrl? ????? .

??, ?? WordPress AJAX ???? ???? ANACTIONARGUMENT? ????????. ?? ?? ?? ??? ??? ?? ??? ?????.

??? ??, ?? ? isgoofonts_update_post. ?, ?? ??? ???? ?? thewp_ajax_goofonts_update_posthook? ?? ?????.

 add_action ( 'wp_ajax_goofonts_update_post', function () {
  if (isset ($ _post [ 'font'])) {
    / * ??? ??? ??? ????? */
    $ title = wp_strip_all_tags ($ _post [ 'font'] [ 'family']);
    $ variants = $ _post [ 'font'] [ 'variants'];
    $ subsets = $ _post [ 'font'] [ 'subsets'];
    $ ???? = $ _post [ 'font'] [ 'category'];
    / * ???? ?? ????? ?????? */
    $ object = get_page_by_title ($ title, 'object', 'post');
    if (null === $ ??) {
      / * ? ???? ???? ????, ?? ? ?? ??? ??? ?????? */
      goofonts_new_post ($ ??, $ ????, $ ??, $ ?? ??);
    } ? ?? {
      / * $ ?? ?? $ ?? ??? ?????? ?? */
      goofonts_update_post ($ ??, $ variants, $ subsets);
    }
  }
});

?? goofonts_new_post ($ ??, $ ????, $ variants, $ subsets) {
  $ post_id = wp_insert_post (??
    'post_author'=> 1,
    'post_name'=> sanitize_title ($ title),
    'post_title'=> $ ??,
    'post_type'=> 'post',
    'post_status'=> 'draft',
    ))
  );
  if ($ post_id> 0) {
    / * ??? ?? ??;) ?? ????, ?? ? ?? ?? (? ? ??? Google Fonts API?? ??)? ?? */? ?????.
    wp_set_object_terms ($ post_id, $ category, 'post_tag', true);
    wp_set_object_terms ($ post_id, $ variants, 'post_tag', true);
    wp_set_object_terms ($ post_id, $ subsets, 'post_tag', true);
  }
}

?? ???, 1 ?? ??? ??, ??? ?? ??? ?? 1 ? ?? ??? ????? ????. ?? ?? ? ?? ??? ???? ????. ??? ??? ????? ?? ??? ??? ???? ?????. ? ??? ?? ??? ??? ???? ???????.
? ?? ?? WordPress ?????? ??? ????. ??? ????? ?? ?? ???????. fonts.google.com? ?? ???? ?? ??? ?????.

Acustom? ? ?? ? ?????. ???? ?? ??? ?? ?? ??? ?? ??? ???? ???? ??? ? ?? ??? ?? ???? ?????. ???, ??? ??? ??? ?? HTML ? ? ????.

 ?? display_font_preview ($ post) {
  / * ?? ??, ?? ?? Abril Fatface */
  $ font = $ post-> post_title;
  / * URL??? ?? ??, ?? ?? Abril Fatface */
  $ font_url_part = infford ( '', Explode ( '', $ font));
  ?>
  <div> 
    <link href="<?%20php%20echo%20'https://fonts.googleapis.com/css?family='.%20%24%20font_url_part.%20'&%20display%20=%20swap';?>" rel="Stylesheet">
    <header>
      <h2>  php echo $ font; ?> </h2>
      <a href="<?%20php%20echo%20'https://fonts.google.com/specimen/'.%20%24%20font_url_part;?>" target="_ blank" rel="noopener"> Google fonts? ?? </a>
    ??>
    <div contenteditable="true" style="font-family : <? php echo $ font;?>">
      <p> ?? ?? ??? ??? ? ?? ?? ??. </p>
      <p style="text-transform : ???;"> ?? ?? ??? ??? ? ?? ?? ?????. </p>
      <p> 1 2 3 4 5 6 7 8 9 0 </p>
      <p> &! ; ? {} [] </p>
    </div>
  </header>
</div>
 php}

add_action ( 'add_meta_boxes', function () {
  add_meta_box (
    'font_preview', / * metabox id * /
    '?? ????', / * metabox ?? * /
    'display_font_preview', / * ??? ?? * /
    'POST' / * ?? ? ?? * /
  );
});

?? ??? ?? ????? ?? ?????. ?? ?? ?? ???? ?????. ??? ??? ??? ??? ?? "?? ??"??? ???? ??????. ?? ?? ??? ????.

 {
  / * ... */
  ?? : {
    ?? : '??, ???, ???, ??'
  },
  ??? : {
    ?? : '???, ??, ??, ??, ??'
  },
  / * ... */
}

???? ?? ??? ?? CS ? JavaScript? ???? WordPress ???? "??"??? ?? ?? ?? ??? ?????? ?? ??? ??????.

??? ?? ? ?? : ??? ?? ?? (nuxtjs ??)

thegoofonts.cominterface? ??? ??? ???? ???? ? Sysylvain Guizard (? ??? ? ????)? ?? ???????. ??? "??"??? ???? ??? ?? ?????. Sylvain? Google Fonts Identity?? ?? ?? ?? ??? ?????????. ??? ???? ??? ? ??? ??? ???? ? ??? ??? ???????.

Idid? theback-end? ?? WordPress? ???? ??? Idid? Frontend?? ???? ?? ????. ??? ?? ?? ??? ????? ??? ?????? vue.js? ???? JavaScript? ????? ?????.

?? WordPress? ?? nuxtjswith? ???? ? ???? ?? ???? ??? ????? ??????. ??? ?? ???????. nuxtjs? ?? ???? vue.js ??? ???? ???? ???? ?? ?????.
?? 100% ?? ? ???? ??? ?? ?? nuxtjs ??? ??? ?????. ?? ?? ???? ?? ??? ?? ?? ??? ??????. ???? ??? ?? ??? ? ??? ?????. ?? ?? ? WordPress ???? ?? ???? ?? ? ????? ?? ?????. ??? ? ?? ????? ??? ? ????. ??? ??? ???? ????? ?? ?? WordPress ??? ?? ?? ??? ??? ?? ? ? ?? ??? ??? ??? ? ????.);)

nuxtjs? ?????, ?? ?? ??? ?? nuxtjs? ??? ???? ?? ???? ????. ?? ???? ?? ? ? ???? ?? ?? ??????.

??? ??? ??? ??? ? 100% ?? ???“??”?????. ? ?? ? ?? ???? ?? ?? ? ???? ??? ??? AjsonFile? ???? ????. Tonuxt ??, ?? Itsbuilder Hooks?? ?????.

??? ????? nuxt ???? ?????.

 / * ??/preverbuild.js */

const fs = require ( 'fs')
const axios = require ( 'axios')

const sourcepath = 'http : //wpgoofonts.local/wp-json/wp/v2/'
const path = 'static/allfonts.json'

module.exports = () => {
  / * ??? ???? ?? ??? ?? ???? ?? ?? */
  const storedata = (data, path) => {
    ???? {
      fs.writefilesync (path, json.stringify (data))
    } catch (err) {
      Console.error (err)
    }
  }
  Async ?? getData () {    
    const fetchedtags = await axios.get (`$ {sourcepath} tags? per_page = 500`)
      .catch (e => {console.log (e); return false})
    
  / * tag_id? ?? ?? : tag_slug */
    const tags = fetchedtags.data.reduce ((acc, cur) => {
      acc [cur.id] = cur.slug
      ?? ACC
    }, {})
    
  / * ??? ? ?? ?? ???? ?? ???? */
    const mhead = await axios.head (`$ {sourcepath} posts? per_page = 100`)
      .catch (e => {console.log (e); return false})
    const totalpages = mhead.headers [ 'x-wp-totalpages']

  / * ?? ??? ?? ?? */
    ????? = []
    i = 0? ???
    while (i <totalpages const response="await" axios.get posts per_page="100" page="$" fonts.push.apply .data fonts="(fonts)" .reduce el> {
      acc [el.slug] = {
        ?? : el.title.rendered,
        ?? : el.tags.map (i => ?? [i]),
      }
      ?? ACC
    }, {})

  / * ?? ??? .json ??? ?? */
    Storedata (??, ??)
  }

  / * ? ?? ?? ????? ?????? */
  this.nuxt.hook ( '?? : ??', getData)
}</totalpages>
 / * nuxt.config.js */
module.exports = {
  // ...
  BuildModules : [
    [ '~ modules/beforebuild']
  ],,
// ...
}

?????, ??? ?? ??? ?? ??? ? ?????. ?? wordPressRest API ?? ??? ? ???? ??? ???? ????.

?? ??

Goofonts?? ??? ?? ???? ???????. ?? ????? ?? ???? ?? ?? ??? ???????. ??? ????? ??? ??, ?? ?? ?? ??? ?? Google ??? ?? ?????. ? ??? ???? ??????? ???????. ???, ?? Bebas Neuehas? ??? ???? ?????? ???? ??????. ??? ?? ?? ? ??? ?? ???? ???? fav? ??? ????.

??? ? ???? ???? ?????? ?? ???? Goofonts? ???? ?? ?? ? ? ????. ? ???? ?? ???? ??? ? ?? ???? ?? ????. ??? Goofonts? ? ?????? ???? ???? ??? ? ?????? ?????. ? ? ?? ? ??? ???? ??? ???? ????. ?? ??? ??? ???? ??? ?? "??"? ?? ? ???? ???? ????.

????? ??? ????? ? ?? ??? ???? ?????. WordPress Rest API? ?? ?? ??? ?? Vue.js?? ? ?? ? ??????? ??????? ?? ?? ?? ?????.

??? ? ? ??? ??? ??????? ????. ?? ???????. ???, ?? ??? ?? ??? ?? ???? ???? ????. WordPress? Nuxt.js? ???? ??? ???? ???????. ???? ?? ???? ?? ??? ??? ????. ??? ??? ??? ??? ??? ????.

?? ? ?? ? ??? ????? ?? ??? ????. ??? ????, ??? ??? ?? ?????. ???? ??? ???? ??? ??????!

? ??? Google ??? ???? Goofonts.com? ??? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
NYT ?? ??? ??
130
836
???
?? ??? ? ????? ????? CSS ???? ?? ??? ? ????? ????? CSS ???? Jul 07, 2025 am 12:07 AM

CSS?? ????? ??? ? ?? ??? ????. 1. HTML ? CSS? ?? ??? ?????? ???? ?? ???? ?? ???? ??????. 2. ?? ??? ??? ?? ???? ???? ?? ?? ??? ?? ?? ??? ??????. 3. ??? ????? ???? JavaScript? ?? ???? ?????? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??, ??, ??? ? ?? ???? ?? ?? ?? ??? ???? ?????.

CSS ???? ??? ?? ? ??? ?? CSS ???? ??? ?? ? ??? ?? Jul 07, 2025 am 01:44 AM

CSS ???? ??? ? ??? ??? ????? ???? ??? ???? ???? ?? ?? ???? ????? ???????. 1. Flexbox ? ??? ??? ?? ???? ??? ??, ?? : ??? ?? ? ????? ??? ????. 2. Caniuse ?? ?? ?? ??? ??????. 3. -webkit-, -moz-, -ms-, -o- ? ?? ???? ???? ???? ?????. 4. AutoPrefixer? ???? ???? ???? ???? ?? ????. 5. ?? ????? ????? PostCSS? ???? BrowsersList? ??????. 6. ?? ? ???? ???? ?????. 7. Modernizr ?? ??? ??? ????? ??? ? ????. 8. ?? ????? ???? ?? ? ??? ????.

????? CSS? ??? ??? ?????? ????? CSS? ??? ??? ?????? Jul 11, 2025 am 03:26 AM

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS ?? ??? ??? ?? ??? ???? CSS ?? ??? ??? ?? ??? ???? Jul 09, 2025 am 01:29 AM

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

?????? ???? ????? : ???, ????? : ?? ? ????? : ??? ??? ?????? ???? ????? : ???, ????? : ?? ? ????? : ??? ??? Jul 11, 2025 am 03:25 AM

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

CSS Painting API? ?????? CSS Painting API? ?????? Jul 04, 2025 am 02:16 AM

thecspaintingapienablesDynamicAmageGenerationIncsSusingjavaScript.1.DevelopersCreateApaIntWorkletClasswitHapaint () ??? () ???

CSS? ???? ?? ? ???? ??? ??? CSS? ???? ?? ? ???? ??? ??? Jul 15, 2025 am 01:10 AM

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

CSS ? ???? ??? ?????? CSS ? ???? ??? ?????? Jul 03, 2025 am 01:48 AM

CSS, OrcascadingStylesheets, isthepartofwebDevelopment thatControlSawebPage? visualAppearance, ???, ??, ??, ? ??

See all articles