This file contains hidden or 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 | |
/** | |
* Rewrite the HTML for the author, email, and url comment fields | |
*/ | |
function custom_comment_fields( $fields ) { | |
// https://codex.wordpress.org/Function_Reference/comment_form | |
$commenter = wp_get_current_commenter(); |
This file contains hidden or 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
$body = preg_replace( '/<iframe\b[^>]*soundcloud.com\/tracks\/(\d*).*"[^>]*>(.*?)>/', '<amp-soundcloud height=300 layout="fixed-height" data-trackid="$1" data-visual="true"></amp-soundcloud>', $body ); |
This file contains hidden or 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
// Create a proper EM_Event object in the database when an event-type post is | |
// imported with WP All import | |
add_action('pmxi_saved_post', 'post_saved', 10, 1); | |
function post_saved($post_id) { | |
if (class_exists(EM_Event)) { | |
$event_post = get_post($post_id); | |
// Only create a new event entry if the imported post is of type event and | |
// there is not an existing event for this post | |
$existing_event = em_get_event($event_post->ID, 'post_id'); |
This file contains hidden or 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
curl http://aquariusrecords.org/ | grep m3u | sed s/^.*href=[\"]*/http:\\/\\/aquariusrecords.org/g | sed s/\>.*//g | /Applications/VLC.app/Contents/MacOS/VLC -vvv - |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$logo-colors: ( | |
red: #f00, | |
green: #0f0, | |
blue: #00f | |
); |
This file contains hidden or 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
<div class="box-list download-box"> | |
<div class="box-title">downloads</div> | |
<ul> | |
<li><a href="#">Guia de Aprendizagem Rápida Action.NET<br><span class="file-size">(450kb)</span></a></li> | |
<li><a href="#">Palestra para Usuários Action.NET<br><span class="file-size">(450kb)</span></a></li> | |
<li><a href="#">Agrupamentos pontos ONS 2.7<br><span class="file-size">(450kb)</span></a></li> | |
<li><a href="#">Protocolo DNP 3.0 Mestre<br><span class="file-size">(450kb)</span></a></li> | |
<li><a href="#">Palestra SPIN CTEEP SE Centro<br><span class="file-size">(450kb)</span></a></li> | |
</ul> | |
</div> |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$mit-red: #a31f34; | |
.menu { | |
list-style-type: none; | |
} |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$base-line-height: 1.4em; | |
$base-font-size: 13px; | |
@mixin font-size($pixels) { | |
font-size: $pixels; |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
.button { | |
background-image: -webkit-gradient(linear, left top, left bottom, from(#f00), to(#933)); | |
background-image: -webkit-linear-gradient(top, #f00, #933); | |
background-image: -moz-linear-gradient(top, #f00, #933); | |
background-image: -ms-linear-gradient(top, #f00, #933); |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
%clearfix { // Placeholder selector / “Silent class” | |
&:after { | |
display: table; | |
clear: both; | |
content: ' '; |