Skip to content

Instantly share code, notes, and snippets.

View jocastaneda's full-sized avatar

Jose Castaneda jocastaneda

View GitHub Profile
<div class="msgHere">
... loading today's quote
</div>
<script type='text/javascript'>
var xmlhttp = null;
function AjaxRequest(url) {
if(xmlhttp != null){
if(xmlhttp.abort)
<?php // add_shortcode needs to return a string.
function tags_function() {
$termsSecteur = get_the_terms( $post->ID , 'secteur' );
if ( $termsSecteur != null ) {
foreach ( $termsSecteur as $termsSecteur ) {
$termsSecteur_link = get_term_link( $termsSecteur, 'secteur' );
$return .= sprintf( '<a class="tag-secteur" href="%1$s">%2$s</a>', $termsSecteur_link, $termsSecteur->name );
unset( $termsSecteur );
}
}
// ==UserScript==
// @name worg-support-preview
// @namespace http://tampermonkey.net/
// @version 0.1.0
// @description Random functionality for support forums.
// @author Jose Castaneda
// @include https://*.wordpress.org/support/topic/*
// @include https://wordpress.org/support/topic/*
// @grant none
// ==/UserScript==
(function(){
console.log(ait_php_var);
})();
.conversation__view__stream-wrapper {
width: 70% !important;
}
.conversation__inbox__current-context {
width: 30% !important;
}
.conversation__inbox__current-context .attribute__editor-row {
height: 13px;
}
.conversation__inbox__current-context .profile-sidebar-section__regular-padding div {