napilap
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: Recent post or SRP widget- specified autor's post tite with custom CSS classIn the class-main.php of this widget there is about author:
// Checking if "post author" option is on. if ('yes' == $this->widget_args["post_author"]) { // Setting up category list string. $post_author_string = ""; // Checking for post author PREFIX. if (!empty($this->widget_args["post_author_prefix"])) { // Building post author PREFIX HTML. $post_author_string .= $this->widget_args["post_author_prefix"]; } // Checking if post author link option is on. $post_author_string .= ('yes' == $this->widget_args["post_author_url"]) ? get_the_author_link() : get_the_author(); // Building post author HTML. $srp_content .= $this->srp_create_tag('p', $post_author_string, array('class' => 'srp-widget-author'));Forum: Plugins
In reply to: Recent post or SRP widget- specified autor's post tite with custom CSS classThank you for your fast reaction, it looks like very good. But I try it several times, but can’t insert anywhere to make working.:/ It was in function.php, queri.php, index.php and in the special recent post’s class-main.php, but give errors. I use this code as:
$myAuthor = the_author(); // set author name if (is_author('napilap')) { // if 'username', change div class echo '<div class="napilap_stamp">'.$myAuthor.'</div>'; } else { //or else display regular echo '<div class="nostamp">'.$myAuthor.'</div>'; }Am I try it right? Were should be move the script?
Thanks a lot,
LajosForum: Plugins
In reply to: Recent post or SRP widget- specified autor's post tite with custom CSS classYes, but it is too high for me. 🙁
Viewing 3 replies - 1 through 3 (of 3 total)