working on template tags

This commit is contained in:
John Bintz 2009-08-16 14:20:37 -04:00
parent 35940174ff
commit 1fa6c57221
1 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class WhatDidTheySayAdmin {
wp_enqueue_script('prototype');
add_filter('user_has_cap', array(&$this, 'user_has_cap'), 5, 3);
add_filter('the_media_transcript', array(&$this, 'the_media_transcript'));
add_filter('the_language_name', array(&$this, 'the_language_name'));
if (isset($_REQUEST['wdts'])) {
if (isset($_REQUEST['wdts']['_nonce'])) {
@ -57,6 +59,14 @@ class WhatDidTheySayAdmin {
$this->read_language_file();
}
function the_media_transcript($transcript) {
return '<div class="transcript">' . $transcript . '</div>';
}
function the_language_name($language) {
return '<h3>' . $language . '</h3>';
}
/**
* user_has_cap filter.
*/