HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/newsletter/emails/themes/theme-1/theme-text.php
<?php
global $newsletter; // Newsletter object
global $post; // Current post managed by WordPress

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

// This file is included inside a function so it inherit all the local variables.

// Since a theme has it's own options, it must check if there is new content to send
// out.
// Inside $theme_options['last_time'] there is the time stamps of the last run
// to be used to decide if we need to stop or not.

$filters = array();

$filters['posts_per_page'] = (int)$theme_options['max_posts'];
if ($filters['posts_per_page'] == 0) $filters['posts_per_page'] = 10;

// This theme has an option with categories to be included.
if (is_array($theme_options['categories'])) {
    $filters['cat'] = implode(',', $theme_options['categories']);
}

$posts = get_posts($filters);

// Retrieve the posts asking them to WordPress
$posts = get_posts($filters);

?><?php echo $theme_options['theme_opening_text']; ?>

* <?php echo $theme_options['theme_title']; ?>


<?php
foreach ($posts as $post) {
    // Setup the post (WordPress requirement)
    setup_postdata($post);
?>
<?php the_title(); ?>

<?php the_permalink(); ?>


<?php } ?>


<?php echo $theme_options['theme_footer_text']; ?>