working on template tags
This commit is contained in:
parent
35940174ff
commit
1fa6c57221
@ -45,6 +45,8 @@ class WhatDidTheySayAdmin {
|
|||||||
wp_enqueue_script('prototype');
|
wp_enqueue_script('prototype');
|
||||||
|
|
||||||
add_filter('user_has_cap', array(&$this, 'user_has_cap'), 5, 3);
|
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'])) {
|
||||||
if (isset($_REQUEST['wdts']['_nonce'])) {
|
if (isset($_REQUEST['wdts']['_nonce'])) {
|
||||||
@ -57,6 +59,14 @@ class WhatDidTheySayAdmin {
|
|||||||
$this->read_language_file();
|
$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.
|
* user_has_cap filter.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user