403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.153
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/models/services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/models/services/PrevNext.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );

class SQ_Models_Services_PrevNext extends SQ_Models_Abstract_Seo {

	public function __construct() {
		parent::__construct();

		if ( isset( $this->_post->sq->doseo ) && $this->_post->sq->doseo ) {
			if ( ! $this->_post->sq->do_metas ) {
				add_filter( 'sq_prevnext', array( $this, 'returnFalse' ) );

				return;
			}

			add_filter( 'sq_prevnext', array( $this, 'generateMeta' ) );
			add_filter( 'sq_prevnext', array( $this, 'packMeta' ), 99 );
		} else {
			add_filter( 'sq_prevnext', array( $this, 'returnFalse' ) );
		}

	}

	public function generateMeta( $meta ) {
		global $paged;

		if ( ! $meta ) {
			$meta = array();
		}

		if ( ! $this->isHomePage() ) {
			if ( get_previous_posts_link() ) {
				$meta['prev'] = get_pagenum_link( $paged - 1 );
			}
			if ( get_next_posts_link() ) {
				$meta['next'] = get_pagenum_link( $paged + 1 );
			}
		}

		return $meta;
	}

	public function packMeta( $metas = array() ) {
		if ( ! empty( $metas ) ) {
			foreach ( $metas as $key => &$value ) {
				$value = '<link rel="' . $key . '" href="' . $value . '" />';
			}

			return "\n" . join( "\n", array_values( $metas ) );
		}

		return false;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit