Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('FILTERPRIORITY', 10);
- add_filter('the_content', 'do_shortcode', FILTERPRIORITY);
- add_filter('widget_text', 'do_shortcode', FILTERPRIORITY);
- add_action ('wp_head', 'printstyle' );
- function printstyle() {
- echo "<link rel='stylesheet' id='graphene-stylesheet-css' href='http://blog.kjodle.net/wp-content/themes/graphene-stonesinwater/print.css' type='text/css' media='print' />";
- }
- add_shortcode( 'small', 'smalltext_shortcode_handler' );
- function smalltext_shortcode_handler( $atts, $content=null, $code="" ) {
- return '<span class="smalltext">' . $content . '</span>';
- }
- add_shortcode( 'code', 'codetext_shortcode_handler' );
- function codetext_shortcode_handler( $atts, $content=null, $code="" ) {
- return '<span class="codetext">' . $content . '</span>';
- }
- add_shortcode( 'quotation', 'quotation_shortcode_handler' );
- function quotation_shortcode_handler( $atts, $content=null, $code="" ) {
- return '<div class="quotation">' . $content . '</div>';
- }
- add_shortcode( 'qtext', 'qtext_shortcode_handler' );
- function qtext_shortcode_handler( $atts, $content=null, $code="" ) {
- return '<p class="quote_text">' . $content . '</p>';
- }
- add_shortcode( 'qauthor', 'qauthor_shortcode_handler' );
- function qauthor_shortcode_handler( $atts, $content=null, $code="" ) {
- return '<p class="quote_author">' . $content . '</p>';
- }
- add_action('graphene_after_commentform', 'comment_moderation');
- function comment_moderation() {
- echo "<div class=\"commentmoderation\"><p />Comment moderation is in use. Your comment will appear shortly.</div>";
- }
- add_filter('comment_form_defaults','comment_reform');
- function comment_reform ($arg) {
- $arg['title_reply'] = __('If you\'ve read this far, you have to leave a comment. That\'s the rule.');
- return $arg;
- }
- add_post_type_support( 'page', 'excerpt' );
- // Adds excerpts to Pages
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement