Let’s test some videos! But there’s a catch—we want to do this in a way that doesn’t compromise performance.
Well, friends, we’re gonna need some help here…we’re gonna need the YouTube Box from DIYthemes! [continue reading…]
REQUEST_URI: /blog/
PHP_SELF: /index.php
DOCUMENT_ROOT: /sites/chris-pearson/phpwn.com/wordpress
SCRIPT_FILENAME: /sites/chris-pearson/phpwn.com/wordpress/index.php
SCRIPT_NAME: /index.php
HTTP_HOST: phpwn.com
HTTPS: on
QUERY_STRING:
HTTP_REFERER: https://phpwn.com/blog
THESIS_SKIN: /sites/chris-pearson/phpwn.com/wordpress/wp-content/themes/thesis/lib/core/skin
ABSPATH: /sites/chris-pearson/phpwn.com/wordpress/
URL: https://phpwn.com/blog/
Base URL: https://phpwn.com
Array ( [scheme] => https [host] => phpwn.com [path] => /blog/ )Slug string is /blog
No viable parent for this URL.
New matched slug is blog.
Parent dir is .
New matched parent is .
New ancestor is blog.
Original parsed URL path is /blog/
Chopped up URL path is /blog/
Basename is blog
esc_url
: https://phpwn.com/wp-admin/admin.php?page=thesis&canvas=thesis_focus__content
esc_url_raw
: https://phpwn.com/wp-admin/admin.php?page=thesis&canvas=thesis_focus__content
Let’s test some videos! But there’s a catch—we want to do this in a way that doesn’t compromise performance.
Well, friends, we’re gonna need some help here…we’re gonna need the YouTube Box from DIYthemes! [continue reading…]
Epic toe pointing is epic. Are links epic, too?
If you compose a new post in WordPress 2.7 or higher, it looks as though the excerpt field may be auto-populated in a way that it was not in previous versions. I only mention this because I’ve noticed some janky <meta name="description" />
behavior over the last couple of weeks, and I’ve got to solve this problem to ensure that I’m not screwing with people’s <head>
s, ya dig? Read this ish →
So yeah, this is one of those things that you gotta test. If it comes out right, you’ll be a hero. Otherwise – baaaaa – you’ll be a friggin’ goat. I needed some extra text for testing purposes, so here ya go.
What happens if I try to center some text intuitively?
One particular HTML element that has been taking up way too much of my time lately is the <code>
tag. Different browsers will render the contents of this tag differently depending on how the CSS properties (such as line-height
, font
, and/or font-size
) are declared.
It is a constant battle to ensure that elements will render correctly, and even when you think you’ve gotten everything worked out perfectly, you may find that Safari, for instance, doesn’t know what to do with an unordered list of encoded text:
Safari
may not
render this
worth a damn
And even when you’ve gotten all that figured out, you still have to ensure that the <pre>
tag is styled properly and renders consistently across a wide range of modern browsers.
protected function translate() { $this->title = __('My Box Title', $this->_class); $this->name = __('My Instance Name', $this->_class); }
code { font: 0.92857em Consolas, Monaco, Courier; color: #050; }
Also test http://superlongurl.com/thisshouldnotbehere/peoplefailthiswayanyway/bummer/nostoppingthem.html