Code Syntax Highlighter

HTML

 

[html]

[/html]

CSS

 

[css]

ddress {
font-style: italic;
margin-bottom: 24px;
}

abbr[title] {
border-bottom: 1px dotted #2b2b2b;
cursor: help;
}

b,
strong {
font-weight: 700;
}

cite {
border: 0;
}

cite,
dfn,
em,
i {
font-style: italic;
}

mark,
ins {
background: #fff9c0;
border: 0;
color: inherit;
text-decoration: none;
}

p {
margin: 0 0 24px;
}

code,
kbd,
tt,
var,
samp,
pre {
font-family: monospace, serif;
font-size: 15px;
line-height: 1.6;
}

pre {
border: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 24px;
max-width: 100%;
overflow: auto;
padding: 12px;
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}

[/css]

 

JAVASCRIPT

 

[javascript]

function( $ ) {
var body = $( ‘body’ ),
_window = $( window );

// Enable menu toggle for small screens.
( function() {
var nav = $( ‘#primary-navigation’ ), button, menu;
if ( ! nav ) {
return;
}

button = nav.find( ‘.menu-toggle’ );
if ( ! button ) {
return;
}

// Hide button if menu is missing or empty.
menu = nav.find( ‘.nav-menu’ );
if ( ! menu || ! menu.children().length ) {
button.hide();
return;
}

$( ‘.menu-toggle’ ).on( ‘click.twentyfourteen’, function() {
nav.toggleClass( ‘toggled-on’ );
} );
} )();

[/javascript]

 

PHP

 

[php]

// Use global $doing_wp_cron lock otherwise use the GET lock. If no lock, trying grabbing a new lock.
if ( empty( $doing_wp_cron ) ) {
if ( empty( $_GET[ ‘doing_wp_cron’ ] ) ) {
// Called from external script/job. Try setting a lock.
if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) )
return;
$doing_cron_transient = $doing_wp_cron = sprintf( ‘%.22F’, microtime( true ) );
set_transient( ‘doing_cron’, $doing_wp_cron );
} else {
$doing_wp_cron = $_GET[ ‘doing_wp_cron’ ];
}
}

[/php]

COMMENTS

Escribí un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *