File: /home/t/h/a/thanexcelr/www/wp-content/plugins/2j-slideshow/inc/addons/report/report.class.php
<?php
/*
* 2J SlideShow http://2joomla.net/wordpress
* Version: 1.3.12 - 85273
* Author: 2J Team (c)
* Author URI: http://2joomla.net/wordpress
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Date: Sat, 28 Jan 2017 14:08:08 GMT
*/
class TwojSlideShowReport{
protected $postType;
protected $assetsUri;
public function __construct($postType){
$this->postType = $postType;
$this->assetsUri = plugin_dir_url(__FILE__);
add_action('admin_enqueue_scripts', array($this, 'enqueueScripts'));
}
public function enqueueScripts(){
if (
twoj_slideshow_get_current_post_type() == $this->postType &&
twoj_slideshow_is_edit_page('list')
) {
wp_enqueue_script(
'twoj-slideshow-report-js',
$this->assetsUri . '/js/script.js',
array(),
false,
true
);
}
}
}