This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Theme version string. | |
* Tries to read a "version.json" file in the "dist" folder - a JSON file with a "version" property. | |
* If this file is not available it returns the WordPress version. | |
* | |
* @return string | |
*/ | |
function theme_version() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register component aliases. | |
*/ | |
add_action('after_setup_theme', function () { | |
$template_directory = "views/components/"; | |
$path = get_stylesheet_directory() . '/' . $template_directory; | |
if (!is_dir($path)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name PT Movie Search | |
// @namespace https://www.quasibit.com/ | |
// @downloadUrl https://gist.github.com/raw/fa7a0e6427c2711f5612f02af3412b27/ptmoviesearch.user.js | |
// @updateUrl https://gist.github.com/raw/fa7a0e6427c2711f5612f02af3412b27/ptmoviesearch.user.js | |
// @match *://*/* | |
// @grant GM_openInTab | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue | |
// @grant GM_getValue |
OlderNewer