Skip to content

Instantly share code, notes, and snippets.

View felixarntz's full-sized avatar

Felix Arntz felixarntz

View GitHub Profile
// EDIT THIS
trackLayer=effect("Track Layer Pin")("Layer");
cornerPin=trackLayer.effect("Corner Pin");
// DO NOT EDIT THIS
trackPoint=value
c0=cornerPin("Upper Left").valueAtTime(0);
c1=cornerPin("Lower Left").valueAtTime(0);
c2=cornerPin("Lower Right").valueAtTime(0);
c3=cornerPin("Upper Right").valueAtTime(0);
// EDIT THIS
trackLayer=effect("Einstellungen für Ebenen")("Ebene");
cornerPin=trackLayer.effect("Eckpunkte verschieben");
// DO NOT EDIT THIS
trackPoint=value
c0=cornerPin("Oben links").valueAtTime(0);
c1=cornerPin("Unten links").valueAtTime(0);
c2=cornerPin("Unten rechts").valueAtTime(0);
c3=cornerPin("Oben rechts").valueAtTime(0);
p0=cornerPin("Oben links");
<div itemscope="itemscope" itemtype="http://schema.org/Book">
Some information about your book...
</div>
<div itemscope="itemscope" itemtype="http://schema.org/Book">
<span itemprop="name">The Lord of the Rings</span> by <a itemprop="author" href="http://en.wikipedia.org/wiki/Tolkien">J.R.R. Tolkien</a>
</div>
<div itemscope="itemscope" itemtype="http://schema.org/Book">
<span itemprop="name">The Lord of the Rings</span> by <a itemprop="author" href="http://en.wikipedia.org/wiki/Tolkien">J.R.R. Tolkien</a>
<link itemprop="bookFormat" href="http://schema.org/Hardcover" />
<div itemprop="publisher" itemscope="itemscope" itemtype="http://schema.org/Organization">
<ul>
<li>Published by <span itemprop="name">HarperCollins</span></li>
<li>
<span itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress">
Address: <span itemprop="streetAddress">10 East 53rd Street</span> in <span itemprop="addressLocality">New York, NY</span> <span itemprop="postalCode">10022</span>
</span>
<html <?php yourtheme_html_schema(); ?> <?php language_attributes(); ?>>
<?php
function yourtheme_html_schema()
{
$base = 'http://schema.org/';
if( is_page( 5 /* type in the ID of your contact page here, 5 is an example */ ) )
{
$type = 'ContactPage';
}
elseif( is_page( 4 /* type in the ID of your about page here, 5 is an example */ ) )
{
<?php
function yourtheme_meta_schema()
{
if( class_exists( 'WPSEO_Frontend' ) )
{
global $wpseo_front;
$canonical = $wpseo_front->canonical( false );
echo '<link itemprop="url" href="' . esc_url( $canonical, null, 'other' ) . '" />' . "\n";
$metadesc = $wpseo_front->metadesc( false );