• Great plugin! I found it particularly useful for paginated single posts, where the default WordPress options leave something to be desired. Thank you!

    I have one minor suggestion:

    Add class names to next and previous page links. Let’s use previous page link as an example:

    <a class="prev-page" href="#">Previous Page</a>
    <span class="inactive prev-page">Previous Page</a>

    I think doing this for both the previous and next page links would add a nice bit of flexibility to your plugin, with minimal changes to the plugin itself. I edited the plugin to do this like so:

    function previousPage($paged) {
    
    	if ($this->pbOptions ["pdisplay"] == "never")
    		return;
    
    	if (($this->paged == 1) && ($this->pbOptions ["pdisplay"] == "auto"))
    		return;
    
    	$text = $this->tagReplace($this->pbOptions ["prev"], $this->paged);
    	echo ($this->paged == 1) ? '<span class="inactive prev-page">' . $text . "</span>\n" : '<a class="prev-page" href="' .
    				$this->create_link ( $this->paged - 1 ) . '"' . $this->tooltip ($this->paged - 1 ) . '>' .
    				$text . "</a>\n";
    }

    Pretty simple, but you may want to handle it differently (if at all). Feel free to take or leave this suggestion — just putting it out there in case it seems sensible to you. Thanks again for a great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Suggestion – Additional Class Names’ is closed to new replies.