function Create_Options_Page() { global $sociable_options; global $skyscraper_options; ?> <style> .Title-Box .BG-Middle { vertical-align: middle; } </style> <div class="wrap"> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" > <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblogplay.com%2F&send=false&layout=standard&width=450&show_faces=true&action=recommend&colorscheme=light&font&height=80&appId=133479460071366" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe><br /> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blogplay.com" data-text="Check the sociable plugin" >Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <br /> </div> <h2 style="clear:both;"><?php _e('Sociable Options'); ?> </h2> <form method="post" action="options.php" id="form1" autocomplete="off"> <?php wp_nonce_field('sociable-config'); ?> <INPUT type="hidden" class="version-INPUT" id="version" name="sociable_options[version]" value="<?php echo $sociable_options["version"]; ?> " /> <INPUT type="hidden" id="blogplay_tags" name="sociable_options[blogplay_tags]" value="1" /> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Preview-Title" style="margin:0 0 0 25px"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" >Preview</TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Preview-Content"> <DIV style="margin:0 0 0 25px" align="left" class="Live-Preview" id="Live-Preview" ><?php _e("Live preview of how Sociable will appear on your blog.", "sociable"); ?> </DIV> <BR/> <DIV style="margin:0 0 0 25px" class="Post-TXT" id="Post-TXT" ><?php _e("This is your post here...", "sociable"); ?> </DIV> <DIV style="margin:0 0 0 25px" class="Post-subTXT" id="Post-subTXT" >Lorem ipsum dolor sit amet, consectetur adipiscing elit.</DIV> <BR/> <DIV style="margin:0 0 0 25px" id="ShareAndEnjoy" > <?php do_sociable(); ?> </DIV> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Tagline", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Tagline-Content"> <DIV class="Tagline-TXT" id="Tagline-TXT" ><?php _e('Previously we used "Share and Enjoy", remember the good old days?', "sociable"); ?> </DIV> <BR/> <DIV style="width:100%;height:60px;"> <INPUT type="text" class="Tagline-INPUT" id="tagline" name="sociable_options[tagline]" value="<?php echo $sociable_options["tagline"]; ?> " /> <DIV class="ToSociable" > <INPUT type="checkbox" <?php if (!empty($sociable_options["help_grow"])) { echo "checked = 'checked'"; } ?> name="sociable_options[help_grow]" id="LinkToSociable" /> <?php _e("Link to Sociable", "sociable"); ?> <BR/> <SPAN style="font-size:14px;"><?php _e("(Help us grow, please leave the link so others discover Sociable from your blog)", "sociable"); ?> </SPAN> </DIV> </DIV> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="Tagline-Title"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons to Include", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="IconsToInclude-Box" style=""> <DIV class="IconsToInclude-TXT" id="IconsToInclude-TXT" > <?php _e("Check the sites you want to appear on your blog.", "sociable"); ?> </DIV> <BR/> <DIV style="font-size:13px"> <?php $check_tags = ""; if (isset($sociable_options["linksoptions"])) { if (!empty($sociable_options["linksoptions"])) { $check_tags = "checked"; } } ?> <input type="checkbox" <?php echo $check_tags; ?> id="" name="sociable_options[linksoptions]" /> Accept include the blogplay.com tag into my share icons </DIV> <BR/> <?php self::do_site_selection_list(); ?> </DIV> <div class="soc_clear"></div> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Size", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" style="margin-left:-3px" id="IconSize-Content"> <?php $checked16 = ""; $checked32 = ""; $checked48 = ""; $checked64 = ""; if ($sociable_options["icon_size"] == 16) { $checked16 = "checked='checked'"; } if ($sociable_options["icon_size"] == 32) { $checked32 = "checked='checked'"; } if ($sociable_options["icon_size"] == 48) { $checked48 = "checked='checked'"; } if ($sociable_options["icon_size"] == 64) { $checked64 = "checked='checked'"; } //echo $checked16; ?> <SPAN class="IconSize-Item"> <INPUT value="16" type="radio" name="sociable_options[icon_size]" <?php echo $checked16; ?> />16x16 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo $checked32; ?> value="32" type="radio" name="sociable_options[icon_size]" />32x32 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo $checked48; ?> value="48" type="radio" name="sociable_options[icon_size]"/>48x48 Pixels </SPAN> <SPAN class="IconSize-Item"> <INPUT <?php echo $checked64; ?> value="64" type="radio" name="sociable_options[icon_size]" />64x64 Pixels </SPAN> </DIV> <TABLE class="Title-Box" cellspacing="0" cellpadding="0" id="IconSize-Title" style="margin-top:20px;"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" ><?php _e("Icons Style", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="IconSize-Content" style="padding:20px;"> <?php $checked1 = ""; $checked2 = ""; $checked3 = ""; $checked4 = ""; $checked5 = ""; $checked6 = ""; if ($sociable_options["icon_option"] == "option1") { $checked1 = "checked='checked'"; } if ($sociable_options["icon_option"] == "option2") { $checked2 = "checked='checked'"; } if ($sociable_options["icon_option"] == "option3") { $checked3 = "checked='checked'"; } if ($sociable_options["icon_option"] == "option4") { $checked4 = "checked='checked'"; } if ($sociable_options["icon_option"] == "option5") { $checked5 = "checked='checked'"; } if ($sociable_options["icon_option"] == "option6") { $checked6 = "checked='checked'"; } $imagepath = isset($sociable_options['sociable_imagedir']) ? $sociable_options['sociable_imagedir'] : ''; if ($imagepath == "") { $imagepath = trailingslashit(SOCIABLE_HTTP_PATH) . 'images/'; } else { $imagepath .= trailingslashit($imagepath); } //echo $imagepath; ?> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked1; ?> value="option1" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/<?php echo $sociable_options["icon_size"]; ?> /option1_<?php echo $sociable_options["icon_size"]; ?> .jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked2; ?> value="option2" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/<?php echo $sociable_options["icon_size"]; ?> /option2_<?php echo $sociable_options["icon_size"]; ?> .jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked3; ?> value="option3" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/<?php echo $sociable_options["icon_size"]; ?> /option3_<?php echo $sociable_options["icon_size"]; ?> .jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked4; ?> value="option4" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/<?php echo $sociable_options["icon_size"]; ?> /option4_<?php echo $sociable_options["icon_size"]; ?> .jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked5; ?> value="option5" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/<?php echo $sociable_options["icon_size"]; ?> /option5_<?php echo $sociable_options["icon_size"]; ?> .jpg" /> </SPAN> <BR/><BR/> <SPAN class="IconStyle-Item"> <INPUT name="sociable_options[icon_option]" <?php echo $checked6; ?> value="option6" type="radio" /> <IMG src="<?php echo $imagepath; ?> icon_styles/16/option_6_16.png" /> </SPAN> <BR/><BR/> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Locations');" > <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="Locations-Title" ><span id="Locations-Tab">+ </span><?php _e("Locations", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="Locations-Content" style="display:none;" > <DIV class="Locations-TXT" id="Locations-TXT" ><?php _e("Please select the locations that you wish to allow the Sociable plugin to insert itself.", "sociable"); ?> </DIV> <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="Locations-List" cellspacing="0" border=0 cellpadding="10"> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Home page", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_front_page"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_front_page]" id="HomePage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The front page of the blog (if set to a static page), or the main blog page (if set to your latest posts).", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Blog page", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_home"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_home]" id="BlogPage" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("The home page of the blog if is set to your latest posts, or the posts page if the home page is set to a static page", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Posts", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_single"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_single]" id="Posts" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Single post pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Pages", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_page"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_page]" id="Pages" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Individual Wordpress pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Category archives", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_category"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_category]" id="CategoryArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Category archive pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Date archives", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_date"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_date]" id="DateArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Date archive pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Tag archives", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_tag"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_tag]" id="TagArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Tag archive pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Author archives", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_author"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_author]" id="AuthorArchives" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Author archive pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Search results", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_search"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_search]" id="SearchResults" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Search results pages", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("RSS feeds", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["locations"]["is_rss"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[locations][is_rss]" id="RssFeeds" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("RSS feeds", "sociable"); ?> </SPAN> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <TABLE class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('GeneralOptions');"> <TR> <TD class="Border-Left" ></TD><TD class="BG-Middle" id="GeneralOptions-Title" ><span id="GeneralOptions-Tab"> + </span> <?php _e("General Options", "sociable"); ?> </TD><TD class="Border-Right"></TD> </TR> </TABLE> <BR/> <DIV class="Content-Box" id="GeneralOptions-Content" style="display:none;" > <BR/> <DIV align="center" style="width:100%;"> <TABLE align="center" class="GeneralOptions-List" cellspacing="0" border=0 cellpadding ="10" > <TR valign="top" > <TD align="right" class="Title" ><?php _e("Automatic mode", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["automatic_mode"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[automatic_mode]" id="AutoMode" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to automatically use Sociable on the locations specified?", "sociable"); ?> </SPAN> <BR/> <SPAN class="sTXT"> <?php _e("If this is unchecked, you will have to use the shortcode[sociable/] or template", "sociable"); ?> tag ?php if( function_exists( do_sociable() ) ){ do_sociable(); } </SPAN> </TD> </TR> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use styleSheet", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["use_stylesheet"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[use_stylesheet]" id="UseStyleSheets" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use the default stylesheet for sociable?", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use your own icons", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["custom_icons"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[custom_icons]" id="UseStyleSheets" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use your own icons for sociable?", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use images", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["use_images"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[use_images]" id="UseImages" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use the Sociable images? If not, the plugin will insert plain text links.", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Use alpha mask", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["use_alphamask"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[use_alphamask]" id="AlphaMask" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use alpha masks on the images (available only on the Original Sociable)?", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Bottom and Top", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["topandbottom"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[topandbottom]" id="TopAndBottom" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("Do you want to use Sociable plugin to show up at the top and bottom?", "sociable"); ?> </SPAN> </TD> </TR> <TR valign="top" > <TD align="right" class="Title" ><?php _e("Open in new window", "sociable"); ?> </TD> <TD align="left" style="width:5px;" ><INPUT <?php if (!empty($sociable_options["new_window"])) { echo "checked='checked'"; } ?> type="checkbox" name="sociable_options[new_window]" id="OpenNewWindow" /></TD> <TD align="left" class="Content"> <SPAN class="TXT"><?php _e("do you want to open the links in a new window?", "sociable"); ?> </SPAN> </TD> </TR> </TABLE> <BR/><BR/> </DIV> </DIV> <table class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0" onclick="hideOrShow('Active');" > <tr> <td class="Border-Left" ></td> <td class="BG-Middle" id="Active-Title" ><span id="Active-Tab">+ </span><?php _e("Active Sociable Classic", "sociable"); ?> </td><td class="Border-Right"></td> </tr> </table> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Active Sociable Classic</td> <td align="left" style="width:5px;"> <input <?php if (isset($sociable_options["active"])) { echo "checked='checked'"; } ?> type="checkbox" id="active" name="sociable_options[active]" /></td> <td align="left" class="Content"> <span class="TXT">Check if you want Sociable Classic enable </span> <br /> </td> </tr> </tbody></table> <br /><br /> </div> </div> <table class="Title-Box" style="cursor:pointer;" cellspacing="0" cellpadding="0"> <tr> <td class="Border-Left" ></td> <td class="BG-Middle" id="Active-Title" ><?php _e(" Send my config", "sociable"); ?> </td><td class="Border-Right"></td> </tr> </table> <div style="display: block;" id="Active-Content" class="Content-Box"> <br /> <div align="center" style="width:100%;"> <table align="center" cellspacing="0" cellpadding="10" border="0" class="GeneralOptions-List"> <tbody><tr valign="top"> <td align="right" class="Title">Send my config</td> <td align="left" style="width:5px;"> <?php $checked = ""; if (!empty($sociable_options["pixel"])) { $checked = "checked='checked'"; } ?> <input <?php echo $checked; ?> type="checkbox" id="active" name="sociable_options[pixel]" /></td> <td align="left" class="Content"> <span class="TXT"> Check if you want help Sociable grow. </br> This information be used only to improve Sociable. </br> You accept send us your blog configuration and blog name </span> <br /> </td> </tr> </tbody></table> <br /><br /> </div> </div> <?php //<HR style="height:10px;background:#18305d;"/> ?> <?php settings_fields('sociable_options_group'); ?> </FORM> <DIV class="Content-Box" > <DIV id="ActionsBar"> <DIV class="SaveChanges" onClick="document.getElementById('form1').submit();" style="cursor:pointer;line-height:15px;"><br/> <span style="margin:30px;"><?php _e("Save Changes", "sociable"); ?> </span> </DIV> <DIV class="ResetSociable" id="sociable_reset" name="sociable_reset" onClick="document.getElementById('sociable_reset_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/> <span style="margin:40px;margin-left:35px;"><?php _e("Reset Sociable", "sociable"); ?> </span> </DIV> <DIV class="UninstallSociable" onClick="document.getElementById('sociable_remove_form').submit();" style="cursor:pointer;line-height:15px;font-size:12px;"><br/> <span style="margin:25px;margin-left:20px;"><?php _e("Completly Uninstall Sociable", "sociable"); ?> </span> </DIV> </DIV> </DIV> <br> <br> <?php //do_settings_sections( 'sociable_options' ); ?> <form id="sociable_reset_form" action="" method="POST"> <?php wp_nonce_field('sociable-reset'); ?> <input type="hidden" id="sociable_reset" name="sociable_reset" value="1"> <?php //submit_button( __( 'Reset Sociable' ) , 'primary', 'sociable_reset', false ); ?> </form> </div> <?php }
function bfa_postinfo($postinfo_string) { // one theme option needed below for nofollow trackback / RSS links yes/no global $bfa_ata, $post; /* replace date format escape placeholders(#) with the actual escpae character (=backslashes). This function removes all backslashes from post info strings to avoid issues with hosts that have magic_quotes_gpc ON. But we want to keep the backslashes inside date items, because they are needed to escape literal strings inside dates */ $postinfo_string = str_replace("#", "\\", $postinfo_string); $postinfo = $postinfo_string; // Author public name if (strpos($postinfo_string, '%author%') !== FALSE) { ob_start(); the_author(); $author = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author%", $author, $postinfo); } // Public name of Author who last modified a post, since WordPress 2.8. // Check first if function is available (= if this is WP 2.8+) if (function_exists('the_modified_author')) { if (strpos($postinfo_string, '%modified-author%') !== FALSE) { ob_start(); the_modified_author(); $modified_author = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%modified-author%", $modified_author, $postinfo); } } // Author about yourself if (strpos($postinfo_string, '%author-description%') !== FALSE) { ob_start(); the_author_meta('description'); $author_description = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-description%", $author_description, $postinfo); } // Author login name if (strpos($postinfo_string, '%author-login%') !== FALSE) { ob_start(); the_author_meta('user_login'); $author_login = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-login%", $author_login, $postinfo); } // Author first name if (strpos($postinfo_string, '%author-firstname%') !== FALSE) { ob_start(); the_author_meta('first_name'); $author_firstname = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-firstname%", $author_firstname, $postinfo); } // Author last name if (strpos($postinfo_string, '%author-lastname%') !== FALSE) { ob_start(); the_author_meta('last_name'); $author_lastname = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-lastname%", $author_lastname, $postinfo); } // Author nickname if (strpos($postinfo_string, '%author-nickname%') !== FALSE) { ob_start(); the_author_meta('nickname'); $author_nickname = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-nickname%", $author_nickname, $postinfo); } // Author ID if (strpos($postinfo_string, '%author-id%') !== FALSE) { ob_start(); the_author_meta('ID'); $author_ID = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-id%", $author_ID, $postinfo); } // Author email address, clear text in HTML source code if (strpos($postinfo_string, '%author-email-clear%') !== FALSE) { ob_start(); the_author_meta('email'); $author_email_clear = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-email-clear%", $author_email_clear, $postinfo); } // Author email address obfuscated if (strpos($postinfo_string, '%author-email%') !== FALSE) { $postinfo = str_replace("%author-email%", antispambot(get_the_author_email()), $postinfo); } // Author website URL if (strpos($postinfo_string, '%author-url%') !== FALSE) { ob_start(); the_author_meta('url'); $author_url = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-url%", $author_url, $postinfo); } // Author website link if (strpos($postinfo_string, '%author-link%') !== FALSE) { ob_start(); the_author_link(); $author_link = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-link%", $author_link, $postinfo); } // Author posts archive link if (strpos($postinfo_string, '%author-posts-link%') !== FALSE) { ob_start(); the_author_posts_link(); $author_posts_link = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-posts-link%", $author_posts_link, $postinfo); } // LEGACY: %author-linked% replaced by %author-posts-link% in 3.3.2, but displays the same: Author posts archive link if (strpos($postinfo_string, '%author-linked%') !== FALSE) { ob_start(); the_author_posts_link(); $author_posts_link = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-linked%", $author_posts_link, $postinfo); } // Author post count if (strpos($postinfo_string, '%author-post-count%') !== FALSE) { ob_start(); the_author_posts(); $author_post_count = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-post-count%", $author_post_count, $postinfo); } // Author AOL Instant Messenger screenname if (strpos($postinfo_string, '%author-aim%') !== FALSE) { ob_start(); the_author_meta('aim'); $author_aim = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-aim%", $author_aim, $postinfo); } // Author Yahoo IM ID if (strpos($postinfo_string, '%author-yim%') !== FALSE) { ob_start(); the_author_meta('yim'); $author_yim = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%author-yim%", $author_yim, $postinfo); } // Date & Time if (strpos($postinfo_string, '%date(') !== FALSE) { $postinfo = preg_replace_callback("/%date\\((.*?)'(.*?)'(.*?)\\)%/is", "bfa_parse_date_callback", $postinfo); } // Date & Time, last modified if (strpos($postinfo_string, '%date-modified(') !== FALSE) { $postinfo = preg_replace_callback("/%date-modified\\((.*?)'(.*?)'(.*?)\\)%/is", "bfa_parse_date_modified_callback", $postinfo); } // Tags, linked - since WP 2.3 if (strpos($postinfo_string, '%tags-linked') !== FALSE) { while (strpos($postinfo, '%tags-linked') !== FALSE) { $tag_link_options = preg_match("/(.*)%tags-linked\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $tag_link_matches); $tags_linked = get_the_tag_list($tag_link_matches[2], $tag_link_matches[4], $tag_link_matches[6]); $postinfo = preg_replace("/(.*)%tags-linked\\((.*?)\\)%(.*)/i", "\${1}" . $tags_linked . "\${3}", $postinfo); } } // Tags, linked. If post has no tags, categories are displayed instead - since WP 2.3 if (strpos($postinfo_string, '%tags-cats-linked') !== FALSE) { while (strpos($postinfo, '%tags-cats-linked') !== FALSE) { $tag_link_options = preg_match("/(.*)%tags-cats-linked\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $tag_link_matches); ob_start(); the_tags($tag_link_matches[2], $tag_link_matches[4], $tag_link_matches[6]); $tags_cats_linked = ob_get_contents(); ob_end_clean(); $postinfo = preg_replace("/(.*)%tags-cats-linked\\((.*?)\\)%(.*)/i", "\${1}" . $tags_cats_linked . "\${3}", $postinfo); } } // Tags, not linked - since WP 2.3 if (strpos($postinfo_string, '%tags(') !== FALSE) { while (strpos($postinfo, '%tags(') !== FALSE) { $tag_options = preg_match("/(.*)%tags\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $tag_matches); $posttags = get_the_tags(); if ($posttags) { foreach ($posttags as $tag) { $tag_list .= $tag->name . $tag_matches[4]; } // remove last separator $tag_list = preg_replace("/" . $tag_matches[4] . "\$/mi", "", $tag_list); $tags = $tag_matches[2] . $tag_list . $tag_matches[6]; } else { $tags = ""; } $postinfo = preg_replace("/(.*)%tags\\((.*?)\\)%(.*)/i", "\${1}" . $tags . "\${3}", $postinfo); } } // 1st category if (strpos($postinfo_string, '%category%') !== FALSE) { $all_categories = get_the_category(); $category = $all_categories[0]->cat_name; $category_notlinked = $category; $postinfo = str_replace("%category%", $category_notlinked, $postinfo); } // 1st category, linked if (strpos($postinfo_string, '%category-linked%') !== FALSE) { $all_categories = get_the_category(); $category = $all_categories[0]->cat_name; $category_linked = '<a class="' . $category . '" href="' . get_category_link($all_categories[0]->cat_ID) . '">' . $category . '</a>'; $postinfo = str_replace("%category-linked%", $category_linked, $postinfo); } // Categories, linked with class name added $categories_linked = ''; if (strpos($postinfo_string, '%categories-linked') !== FALSE) { while (strpos($postinfo, '%categories-linked') !== FALSE) { $category_linked_separator = preg_match("/(.*)%categories-linked\\('(.*?)'\\)(.*)/i", $postinfo_string, $category_linked_matches); ob_start(); $categories = get_the_category(); $items_in_categories = count($categories); $output = ''; $categories_count = $items_in_categories; if ($categories) { foreach ($categories as $category) { $categories_count -= 1; if ($categories_count) { $seperator = $category_linked_matches[2]; } else { $seperator = ''; } $categories_linked .= '<a class="' . $category->slug . '" href="' . get_category_link($category->term_id) . '" title="' . esc_attr(sprintf(__("View all posts in %s"), $category->name)) . '">' . $category->cat_name . $seperator . '</a>'; } } ob_end_clean(); $postinfo = preg_replace("/(.*)%categories-linked\\((.*?)\\)%(.*)/i", "\${1}" . $categories_linked . "\${3}", $postinfo); } } // Categories, not linked if (strpos($postinfo_string, '%categories(') !== FALSE) { while (strpos($postinfo, '%categories(') !== FALSE) { $category_separator = preg_match("/(.*)%categories\\('(.*?)'\\)(.*)/i", $postinfo_string, $category_matches); $categories = ""; foreach (get_the_category() as $category) { $categories .= $category->cat_name . $category_matches[2]; } // remove last separator $categories = preg_replace("/" . $category_matches[2] . "\$/mi", "", $categories); $postinfo = preg_replace("/(.*)%categories\\((.*?)\\)%(.*)/i", "\${1}" . $categories . "\${3}", $postinfo); } } // Comment link if (strpos($postinfo_string, '%comments(') !== FALSE) { while (strpos($postinfo, '%comments(') !== FALSE) { $comment_options = preg_match("/(.*)%comments\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $comment_matches); if (!comments_open() and $comment_matches[8] == "dontshow") { $comment_link = ''; } else { ob_start(); comments_popup_link($comment_matches[2], $comment_matches[4], $comment_matches[6], 'comments-link', $comment_matches[8]); $comment_link = ob_get_contents(); ob_end_clean(); } if (!comments_open()) { if ($post->comment_count == 0) { $comment_link = '<strong>' . $comment_matches[8] . '</strong>'; } else { $comment_link = $comment_link . ' - <strong>(' . $comment_matches[8] . ')</strong>'; } } if (!comments_open() and $comment_matches[8] == "dontshow") { $comment_link = ''; } $postinfo = preg_replace("/(.*)%comments\\((.*?)\\)%(.*)/i", "\${1}" . $comment_link . "\${3}", $postinfo); } } // Comments Feed link if (strpos($postinfo_string, '%comments-rss') !== FALSE) { while (strpos($postinfo, '%comments-rss') !== FALSE) { $comments_rss_link_text = preg_match("/(.*)%comments-rss\\('(.*?)'(.*)/i", $postinfo_string, $comments_rss_matches); ob_start(); post_comments_feed_link($comments_rss_matches[2]); $comments_rss_link = ob_get_contents(); ob_end_clean(); // make link nofollow if set in theme options if ($bfa_ata['nofollow'] == "Yes") { $comments_rss_link = str_replace('href=', 'rel="nofollow" href=', $comments_rss_link); } $postinfo = preg_replace("/(.*)%comments-rss\\((.*?)\\)%(.*)/i", "\${1}" . $comments_rss_link . "\${3}", $postinfo); } } // Trackback URL if (strpos($postinfo_string, '%trackback%') !== FALSE) { $trackback_url = trackback_url(FALSE); $postinfo = str_replace("%trackback%", $trackback_url, $postinfo); } // Trackback Link if (strpos($postinfo_string, '%trackback-linked(') !== FALSE) { while (strpos($postinfo, '%trackback-linked(') !== FALSE) { $trackback_url = trackback_url(FALSE); $trackback_link_text = preg_match("/(.*)%trackback-linked\\('(.*?)'(.*)/i", $postinfo_string, $trackback_matches); $trackback_link = '<a href="' . $trackback_url . '">' . $trackback_matches[2] . '</a>'; // make link nofollow if set in theme options if ($bfa_ata['nofollow'] == "Yes") { $trackback_link = str_replace('href=', 'rel="nofollow" href=', $trackback_link); } $postinfo = preg_replace("/(.*)%trackback-linked\\((.*?)\\)%(.*)/i", "\${1}" . $trackback_link . "\${3}", $postinfo); } } // Trackback RDF if (strpos($postinfo_string, '%trackback-rdf%') !== FALSE) { ob_start(); trackback_rdf(); $trackback_rdf = "<!-- " . ob_get_contents() . " -->"; ob_end_clean(); $postinfo = str_replace("%trackback-rdf%", $trackback_rdf, $postinfo); } // Permalink if (strpos($postinfo_string, '%permalink%') !== FALSE) { ob_start(); the_permalink(); $permalink = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%permalink%", $permalink, $postinfo); } // Post ID if (strpos($postinfo_string, '%post-id%') !== FALSE) { ob_start(); the_ID(); $post_id = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%post-id%", $post_id, $postinfo); } // Post Title if (strpos($postinfo_string, '%post-title%') !== FALSE) { ob_start(); the_title(); $post_title = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%post-title%", $post_title, $postinfo); } // Edit post if (strpos($postinfo_string, '%edit(') !== FALSE) { while (strpos($postinfo, '%edit(') !== FALSE) { $edit_options = preg_match("/(.*)%edit\\('(.*?)'(.*?)'(.*?)'(.*?)'(.*?)'(.*)/i", $postinfo_string, $edit_matches); ob_start(); edit_post_link($edit_matches[4], $edit_matches[2], $edit_matches[6]); $edit_link = ob_get_contents(); ob_end_clean(); $postinfo = preg_replace("/(.*)%edit\\((.*?)\\)%(.*)/i", "\${1}" . $edit_link . "\${3}", $postinfo); } } // Print if (strpos($postinfo_string, '%print(') !== FALSE) { while (strpos($postinfo, '%print(') !== FALSE) { $print_text = preg_match("/(.*)%print\\('(.*?)'(.*)/i", $postinfo_string, $print_text_matches); $print_link = '<a href="javascript:window.print()">' . $print_text_matches[2] . '</a>'; $postinfo = preg_replace("/(.*)%print\\((.*?)\\)%(.*)/i", "\${1}" . $print_link . "\${3}", $postinfo); } } // For the "WP-Email" plugin if (strpos($postinfo_string, '%wp-email%') !== FALSE) { $wp_email = function_exists('wp_email') ? email_link($email_post_text = '', $email_page_text = '', $echo = FALSE) : ""; $postinfo = str_replace("%wp-email%", $wp_email, $postinfo); } // For the "WP-Print" plugin if (strpos($postinfo_string, '%wp-print%') !== FALSE) { $wp_print = function_exists('wp_print') ? print_link($print_post_text = '', $print_page_text = '', $echo = FALSE) : ""; $postinfo = str_replace("%wp-print%", $wp_print, $postinfo); } // For the "WP-PostViews" plugin if (strpos($postinfo_string, '%wp-postviews%') !== FALSE) { $wp_postviews = function_exists('the_views') ? the_views($display = FALSE) : ""; $postinfo = str_replace("%wp-postviews%", $wp_postviews, $postinfo); } // For the "WP-PostRatings" plugin if (strpos($postinfo_string, '%wp-postratings%') !== FALSE) { $wp_postratings = function_exists('the_ratings') ? the_ratings($start_tag = 'span', $custom_id = 0, $display = FALSE) : ""; $postinfo = str_replace("%wp-postratings%", $wp_postratings, $postinfo); } // For the "Sociable" plugin if (strpos($postinfo_string, '%sociable%') !== FALSE) { ob_start(); $sociable = (function_exists('sociable_html2') and function_exists(do_sociable())) ? do_sociable() : ""; $sociable = ob_get_contents(); ob_end_clean(); $postinfo = str_replace("%sociable%", $sociable, $postinfo); } // For the "Share This" plugin if (strpos($postinfo_string, '%share-this%') !== FALSE) { ob_start(); if (function_exists('sharethis_button')) { sharethis_button(); $share_this = ob_get_contents(); } else { $share_this = ""; } ob_end_clean(); $postinfo = str_replace("%share-this%", $share_this, $postinfo); } // Images if (strpos($postinfo_string, '<image(') !== FALSE) { $postinfo = preg_replace_callback("|<image\\((.*?)\\)>|", "bfa_image_files", $postinfo); } /* The meta = ALL custom fields:values, formatted by Wordpress as unordered list <ul><li>..</li><li>..</li></ul> */ if (strpos($postinfo_string, '%meta%') !== FALSE) { ob_start(); the_meta(); $the_meta = ob_get_contents(); ob_end_clean(); // 3.4.3.: remove bfa_ata metas */ $the_meta = preg_replace("/<li>(.*)bfa_ata(.*)<\\/li>/i", "", $the_meta); $postinfo = str_replace("%meta%", $the_meta, $postinfo); } // Single post meta values, not formatted if (strpos($postinfo_string, '%meta(') !== FALSE) { $postinfo = preg_replace_callback("|%meta\\('(.*?)'\\)%|", "bfa_meta_value", $postinfo); } // Since 3.6.7, parse widget areas $postinfo = bfa_parse_widget_areas($postinfo); return $postinfo; }
--> <?php if (get_the_tags()) { pk_the_tags('<p class="tags"><span class="tags-title">' . __('Tags:', 'bonestheme') . '</span> ', ', ', '</p>', ‘featured’); } ?> </footer> <?php // end article footer ?> </article> <!-- end article --> <?php if (function_exists(do_sociable())) { do_sociable(); } ?> <?php comments_template(); ?> <?php } ?> <?php } else { ?>