Skip to content

Instantly share code, notes, and snippets.

@carolinan
Last active June 7, 2019 15:10
Show Gist options
  • Save carolinan/8cf317a56ba9d8a4f1aae910ff4abed6 to your computer and use it in GitHub Desktop.
Save carolinan/8cf317a56ba9d8a4f1aae910ff4abed6 to your computer and use it in GitHub Desktop.
Things we do not allow:
function qqq_scripts() {
wp_enqueue_style( 'bootstrapcss', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css');
wp_enqueue_script( 'popperjs', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js', array( 'jquery'), '1.14.7', true );
wp_enqueue_script( 'bootstrapjs', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array( 'jquery'), '4.1.3', true );
wp_enqueue_style( 'font-awesome', 'https://use.fontawesome.com/releases/v5.8.1/css/all.css' );
}
function qqq_scripts() {
wp_enqueue_style('bootstrap-css','https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css',array(),'4.2.1', 'all');
wp_enqueue_style('fontawesome-css','https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',array(),'4.7.0', 'all');
wp_enqueue_style('swiper-css','https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css',array(),'4.4.6', 'all');
wp_enqueue_style('venobox-css','https://cdnjs.cloudflare.com/ajax/libs/venobox/1.8.5/venobox.min.css',array(),'1.8.5', 'all');
wp_enqueue_script('jquery','https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js',array(),'3.3.1');
wp_enqueue_script('popper-js','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js',array(),'1.14.6',true);
wp_enqueue_script('bootstrap-js','https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js',array('jquery','popper-js'),'4.2.1',true);
wp_enqueue_script('swiper-js','https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/js/swiper.min.js', '4.4.6');
wp_enqueue_script('venobox-js','https://cdnjs.cloudflare.com/ajax/libs/venobox/1.8.5/venobox.min.js','1.8.5');
}
function add_css_js(){
wp_enqueue_script('popper', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js'
, array ( 'jquery' ), '1.14', true);
wp_enqueue_script('bootstrap-js', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js'
, array ( 'popper' ), '4.3', true);
}
add_action('wp_enqueue_scripts', 'add_css_js');
add_action( 'wp_enqueue_scripts', 'qqq_enqueue_styles' );
function qqq_enqueue_styles(){
#favourite css
wp_enqueue_style('materilize-style','https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css');
wp_enqueue_script( 'jquery-library','https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js');
wp_enqueue_script( 'materilize', 'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js');
}
function wpdocs_theme_name_scripts() {
wp_enqueue_style( 'font-awesome', '//use.fontawesome.com/releases/v5.8.1/css/all.css' );
}
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' );
function qqq_styles()
{
wp_enqueue_style("materializecss_css", "https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css");
}
function qqq_scripts()
{
// wp_enqueue_script("jquery", "https://code.jquery.com/jquery-3.3.1.min.js", array(), "3.3.1", true);
wp_enqueue_script("materializecss_js", "https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js", array(), "1.0.0", true);
}
add_action("wp_enqueue_scripts", "qqq_styles");
add_action("wp_enqueue_scripts", "qqq_scripts");
function qqq_scripts() {
// fontawesome cdn
wp_enqueue_style( 'wp-bootstrap-pro-fontawesome-cdn', 'https://use.fontawesome.com/releases/v5.1.0/css/all.css' );
function qqq_custom_loadcss(){
wp_enqueue_style('qqq-fontawesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', false, THEMEAXEVER,false);
}
function qqq_registers() {
wp_register_script( 'qqq_jquery_ui', '//code.jquery.com/ui/1.11.0/jquery-ui.js', array("jquery"), true );
}
add_action( 'customize_controls_enqueue_scripts', 'qqq_registers' );
<head>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<head>
<link href="//db.onlinewebfonts.com/c/81b012c9be4644822239f23596022bbe?family=ITCVinerHandW01-Regular" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<head>
<!-- Bootstrap core CSS -->
<?php if(get_theme_mod('animation',1)) : ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<?php endif; ?>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/a8b93a49be.css">
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
In style.css:
@import url(https://use.fontawesome.com/c895056382.css);
@font-face {
font-family: 'awesome';
font-style: normal;
font-weight: normal;
src: url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot");
src: url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot?#iefix") format("embedded-opentype"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.woff") format("woff"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.ttf") format("truetype"), url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.svg#fontawesomeregular") format("svg"); }
The list of the actual links:
https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css
https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js
https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css
https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js
https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot
https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/fonts/fontawesome-webfont.eot?#iefix
https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js
https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/js/swiper.min.js
https://cdnjs.cloudflare.com/ajax/libs/venobox/1.8.5/venobox.min.js
https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css
https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js
https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css
https://use.fontawesome.com/releases/v5.8.1/css/all.css
https://use.fontawesome.com/releases/v5.3.1/js/all.js
https://use.fontawesome.com/releases/v5.7.2/css/all.css
https://use.fontawesome.com/releases/v5.1.0/css/all.css
https://use.fontawesome.com/releases/v5.6.3/css/all.css
https://use.fontawesome.com/a8b93a49be.css
https://use.fontawesome.com/c895056382.css
//use.fontawesome.com/releases/v5.8.1/css/all.css
https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
http://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js
https://code.jquery.com/jquery-3.3.1.min.js
//code.jquery.com/ui/1.11.0/jquery-ui.js
//db.onlinewebfonts.com/c/81b012c9be4644822239f23596022bbe?family=ITCVinerHandW01-Regular
Question marks:
HTML files and source mapping.
List of live themes that include the word "cloudflare.com"
Note: this includes source mapping.
https://wpdirectory.net/search/01DCS4G8BKZXW5VRF9TTBZG10A
Example source mapping URL:
In JS files:
//# sourceMappingURL=http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0//var/www/qtip2/build/tmp/tmp-9404qaj6jps/jquery.qtip.min.map
//# sourceMappingURL=http://cdnjs.cloudflare.com/ajax/libs/qtip2/2.2.0//var/www/qtip2/build/tmp/tmp-9404qaj6jps/jquery.qtip.min.map
List of live themes that include the words "use.fontawesome.com"
Note: includes outdated versions of Kirki
https://wpdirectory.net/search/01DCS4RDH50D62W3GXEFB9FBNE
I am not sure how we would handle things like this?:
https://themes.svn.wordpress.org/onetone/3.0.6/lib/kirki/tests/qunit/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>QUnit Example</title>
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.4.1.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="https://code.jquery.com/qunit/qunit-2.4.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="../../controls/js/src/kirki.js"></script>
<script src="tests.js"></script>
</body>
</html>
and
https://themes.svn.wordpress.org/tainacan-interface/1.3.1/assets/vendor/ekko-lightbox/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment