This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Stock Report :) | |
*/ | |
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.'); | |
?> | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function which uses regular expression to parse Microsoft Word footnotes | |
* into WordPress's Simple Footnotes format | |
* | |
* @param string $content post content from filter hook | |
* @returns string post content with parsed footnotes | |
* @link http://ben.balter.com/2011/03/20/regular-expression-to-parse-word-style-footnotes/ | |
*/ | |
function bb_parse_footnotes( $content ) { | |
global $post; |
NewerOlder