{"id":16549687,"url":"https://github.com/settinghead/tyful","last_synced_at":"2025-03-04T13:45:27.058Z","repository":{"id":1843199,"uuid":"2767771","full_name":"settinghead/tyful","owner":"settinghead","description":null,"archived":false,"fork":false,"pushed_at":"2013-01-05T07:11:56.000Z","size":353840,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T17:16:28.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chrmhoffmann/android_kernel_wiko_stairway","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settinghead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-13T18:59:07.000Z","updated_at":"2018-11-02T17:42:42.000Z","dependencies_parsed_at":"2022-08-20T03:51:09.208Z","dependency_job_id":null,"html_url":"https://github.com/settinghead/tyful","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Ftyful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Ftyful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Ftyful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settinghead%2Ftyful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settinghead","download_url":"https://codeload.github.com/settinghead/tyful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241859479,"owners_count":20032317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T19:30:25.076Z","updated_at":"2025-03-04T13:45:22.044Z","avatar_url":"https://github.com/settinghead.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Font Picker Control\n\n## Description\n\nThis WordPress plugin creates a new control type for the [WordPress Theme Customizer](http://codex.wordpress.org/Theme_Customization_API). It will allow you to easily create a fancy looking Google Web Font picker.\n\n## Usage\n\n1. Include \u0026 activate the plugin\n2. Pick out your favorite [Google Web Fonts](http://www.google.com/webfonts)\n3. Open your functions.php file\n4. Save your favorite fonts in an array like so: \n\n\t``` php\n\t$customFontFamilies;\n\tif (class_exists('Google_Font_Collection'))\n\t{\n\t\t$fonts[] = array(\n\t\t\t\"title\" =\u003e \"Ubuntu Condensed\", \n\t\t\t\"location\" =\u003e \"Ubuntu+Condensed\", \n\t\t\t\"cssDeclaration\" =\u003e \"'Ubuntu Condensed', sans-serif\", \n\t\t\t\"cssClass\" =\u003e \"ubuntuCondensed\"\n\t\t);\n\t\t$customFontFamilies = new Google_Font_Collection($fonts);\n\t}\n\t``` \n\n5. Create the control\n\t\t\n\t``` php\n\tif (class_exists('Google_Font_Picker_Custom_Control'))\n\t{ \n\t\t// make sure we have the control included\n\t\t$wp_customize-\u003eadd_control( new Google_Font_Picker_Custom_Control( $wp_customize, 'font_family_control', array(\n\t\t\t'label'\t\t\t\t=\u003e __( 'Font Family', 'mytheme' ),\n\t\t\t'section'\t\t\t=\u003e 'mytheme_new_section_fonts',\n\t\t\t'settings'\t\t\t=\u003e 'font_family',\n\t\t\t'choices' \t\t\t=\u003e $customFontFamilies-\u003egetFontFamilyNameArray(),\n\t\t\t'fonts'\t\t\t\t=\u003e $customFontFamilies\n\t\t)));\n\t}\n\t```\n\n\n## Results\n\n![screenshot](http://img.photobucket.com/albums/v357/BFTrick/google-web-fonts-plugin-screenshot.png)\n\n## FAQ\n\n1. **Can I only add one font to the $fonts array in step 4?**\n\n\tNo, you can add as many as you like. IMO eight choices looks pretty and gives the user tons of options.\n\n2. **What's up with the class_exists() functions?**\n\n\tThose are there so that if you were to ever deactivate or uninstall the plugin that your site wouldn't crash. If you do uninstall the plugin the control will simply not load. There shouldn't be any errors.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettinghead%2Ftyful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettinghead%2Ftyful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettinghead%2Ftyful/lists"}