403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/peyco.es/wp-content/plugins/jds-portfolio/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/peyco.es/wp-content/plugins/jds-portfolio/includes/class-wp-jds-model.php
<?php 



// Exit if accessed directly

if ( !defined( 'ABSPATH' ) ) exit;



/**

 * Model Class

 *

 * Handles generic plugin functionality.

 *

 * @package JDs Portfolio

 * @since 2.0.0

 */

class Wp_Jds_Model {



	public function __construct () {

				

	}



	/**

	 * Get terms by post ids

	 *

	 * @package JDs Portfolio

	 * @since 2.0.0

	 */

	public function wp_jds_get_terms_by_post_ids($post_ids) {



		$trems_arr = array();

		$args = array('fields' => 'ids');



		if( !empty($post_ids) ) {

			foreach ($post_ids as $key => $value) {

				

				// get terms id

				$terms = wp_get_post_terms($value, 'jds_categories');



				// manage terms

				foreach ($terms as $term) {

					$trems_arr[$term->slug] = $term->name;

				}

				

			}

		}

		return $trems_arr;

	}



	/**

	 * Get terms by post ids

	 *

	 * @package JDs Portfolio

	 * @since 2.0.0

	 */

	function wp_jds_get_portfolio_classes($post_id = null) {

	    

		$term_str = '';

	    if ($post_id === null)

	        return;

	    $terms = wp_get_post_terms($post_id, 'jds_categories');

	    foreach ($terms as $term) {

	        $term_str .= $term->slug." ";

	    }



		//$term_str = ltrim($term_str);

		$term_str = trim($term_str);



		return $term_str;

	}



}

Youez - 2016 - github.com/yon3zu
LinuXploit