File: /home/confeduphaar/backip-old-files/administrator/components/com_jnews/plugins/class.newsletter.php
<?php
defined('_JEXEC') OR die('Access Denied!');
### © 2006-2020 Joobi. All rights reserved.
### license GNU GPLv3 , link https://joobi.org
class jNews_Newsletter {
function editmailing() {
$show['sender_info'] = true;
$show['published'] = true;
$show['pub_date'] = true;
$show['hide'] = true;
$show['issuenb'] = true;
$show['delay'] = false;
$show['htmlcontent'] = true;
$show['textcontent'] = true;
$show['attachement'] = true;
$show['images'] = true;
$show['sitecontent'] = true;
return $show;
}
function editlist() {
$show['sender_info'] = true;
$show['hide'] = true;
$show['auto_option'] = false;
$show['htmlmailing'] = true;
$show['auto_subscribe'] = true;
$show['email_unsubcribe'] = true;
$show['unsusbcribe'] = true;
return $show;
}
function showMailings() {
$show['id'] = true;
$show['dropdown'] = true;
$show['select'] = true;
$show['issue'] = true;
$show['sentdate'] = true;
$show['delay'] = false;
$show['status'] = true;
return $show;
}
function getQueue() {
$query = ' AND `published`= 2 ';
$query .= ' AND `type`= 1 ';
return $query;
}
function getActive() {
$config['listype1'] = '1';
$config['listname1'] = '_JNEWS_NEWSLETTER';
$config['listnames1'] = '_JNEWS_MENU_NEWSLETTERS';
$config['listshow1'] = '1';
$config['listlogo1'] = 'newsletter.png';
$config['classes1'] ='newsletter';
return $config;
}
}