first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
if (!defined('ABSPATH')) exit;
?>
<!-- Footer -->
<div style="text-align: center; font-weight: bold; margin: 40px 0 10px;"><?php echo $theme_options['main_footer_title'] ?></div>
<div style="text-align: center; margin: 10px 0 20px;"><?php echo $theme_options['main_footer_contact'] ?></div>
<?php include WP_PLUGIN_DIR . '/newsletter/emails/themes/default/social_main.php'; ?>
<div style="text-align: center; color: #888; margin-top: 20px;"><?php echo $theme_options['main_footer_legal'] ?></div>
<div style="text-align: center; color: #888">To change your subscription, <a target="_blank" href="{profile_url}">click here</a>.</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

View File

@@ -0,0 +1,46 @@
<?php
if (!defined('ABSPATH')) exit;
?>
<h3>Social icons</h3>
<table class="form-table">
<tr>
<th>Social block</th>
<td><?php $controls->checkbox('theme_social_disable'); ?> Disable</td>
</tr>
<tr>
<th>Facebook</th>
<td><?php $controls->text_url('theme_facebook', 30); ?></td>
</tr>
<tr>
<th>Twitter</th>
<td><?php $controls->text_url('theme_twitter', 30); ?></td>
</tr>
<tr>
<th>Pinterest</th>
<td><?php $controls->text_url('theme_pinterest', 30); ?></td>
</tr>
<tr>
<th>Google+</th>
<td><?php $controls->text_url('theme_googleplus', 30); ?></td>
</tr>
<tr>
<th>LinkedIn</th>
<td><?php $controls->text_url('theme_linkedin', 30); ?></td>
</tr>
<tr>
<th>Tumblr</th>
<td><?php $controls->text_url('theme_tumblr', 30); ?></td>
</tr>
<tr>
<th>YouTube</th>
<td><?php $controls->text_url('theme_youtube', 30); ?></td>
</tr>
<tr>
<th>Soundcloud</th>
<td><?php $controls->text_url('theme_soundcloud', 30); ?></td>
</tr>
<tr>
<th>Instagram</th>
<td><?php $controls->text_url('theme_instagram', 30); ?></td>
</tr>
</table>

View File

@@ -0,0 +1,68 @@
<!-- Social -->
<?php
if (!defined('ABSPATH')) exit;
if (isset($theme_options['theme_social_disable'])) return;
$social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
?>
<table cellpadding="5" align="center">
<tr>
<?php if (!empty($theme_options['theme_facebook'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_facebook']) ?>"><img src="<?php echo $social_icon_url ?>/facebook.png"><br>Facebook</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_twitter'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_twitter']) ?>"><img src="<?php echo $social_icon_url ?>/twitter.png"><br>Twitter</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_googleplus'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_googleplus']) ?>"><img src="<?php echo $social_icon_url ?>/googleplus.png"><br>Google+</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_pinterest'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_pinterest']) ?>"><img src="<?php echo $social_icon_url ?>/pinterest.png"><br>Pinterest</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_linkedin'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_linkedin']) ?>"><img src="<?php echo $social_icon_url ?>/linkedin.png"><br>LinkedIn</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_tumblr'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_tumblr']) ?>"><img src="<?php echo $social_icon_url ?>/tumblr.png"><br>Tumblr</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_youtube'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_youtube']) ?>"><img src="<?php echo $social_icon_url ?>/youtube.png"><br>Youtube</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_soundcloud'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_soundcloud']) ?>"><img src="<?php echo $social_icon_url ?>/soundcloud.png"><br>SoundCloud</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_instagram'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_instagram']) ?>"><img src="<?php echo $social_icon_url ?>/instagram.png"><br>Instagram</a>
</td>
<?php } ?>
<?php if (!empty($theme_options['theme_vimeo'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['theme_vimeo']) ?>"><img src="<?php echo $social_icon_url ?>/vimeo.png"><br>Vimeo</a>
</td>
<?php } ?>
</tr>
</table>

View File

@@ -0,0 +1,51 @@
<!-- Social -->
<?php
if (!defined('ABSPATH')) exit;
if (isset($theme_options['theme_social_disable'])) return;
$social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
?>
<table cellpadding="5" align="center">
<tr>
<?php if (!empty($theme_options['main_facebook_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_facebook_url']) ?>"><img src="<?php echo $social_icon_url ?>/facebook.png" alt="Facebook"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_googleplus_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_googleplus_url']) ?>"><img src="<?php echo $social_icon_url ?>/googleplus.png"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_twitter_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_twitter_url']) ?>"><img src="<?php echo $social_icon_url ?>/twitter.png"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_linkedin_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_linkedin_url']) ?>"><img src="<?php echo $social_icon_url ?>/linkedin.png"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_youtube_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_youtube_url']) ?>"><img src="<?php echo $social_icon_url ?>/youtube.png"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_vimeo_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_vimeo_url']) ?>"><img src="<?php echo $social_icon_url ?>/vimeo.png"></a>
</td>
<?php } ?>
<?php if (!empty($theme_options['main_instagram_url'])) { ?>
<td style="text-align: center; vertical-align: top" align="center" valign="top">
<a href="<?php echo esc_attr($theme_options['main_instagram_url']) ?>"><img src="<?php echo $social_icon_url ?>/instagram.png"></a>
</td>
<?php } ?>
</tr>
</table>

View File

@@ -0,0 +1,64 @@
<?php
defined('ABSPATH') || exit;
?>
<table class="form-table">
<tr><td colspan="2">General options for header, social links and footer sections could also be set in <a href="?page=newsletter_main_main">Blog Info panel</a>.</td></tr>
<tr>
<th><?php _e('Primary color', 'newsletter') ?></th>
<td>
<?php $controls->color('theme_color'); ?>
<p class="description" style="display: inline">Hex values, e.g. #FF0000</p>
</td>
</tr>
<tr>
<th><?php _e('Disable social links', 'newsletter') ?></th>
<td><?php $controls->checkbox('theme_social_disable', ''); ?></td>
</tr>
</table>
<h3><?php _e('Posts', 'newsletter') ?></h3>
<table class="form-table">
<tr>
<th>Language</th>
<td>
<?php $controls->language(); ?>
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<?php $controls->checkbox('theme_posts', 'Add latest posts'); ?>
<br>
<?php $controls->checkbox('theme_thumbnails', 'Add post thumbnails'); ?>
<br>
<?php $controls->checkbox('theme_excerpts', 'Add post excerpts'); ?>
</td>
</tr>
<tr>
<th><?php _e('Categories', 'newsletter') ?></th>
<td>
<?php $controls->categories_group('theme_categories'); ?>
</td>
</tr>
<tr>
<th><?php _e('Tags', 'newsletter') ?></th>
<td>
<?php $controls->text('theme_tags', 30); ?>
<p class="description" style="display: inline"> comma separated</p>
</td>
</tr>
<tr>
<th><?php _e('Max posts', 'newsletter') ?></th>
<td>
<?php $controls->text('theme_max_posts', 5); ?>
</td>
</tr>
<tr>
<th><?php _e('Post types', 'newsletter') ?></th>
<td>
<?php $controls->post_types('theme_post_types'); ?>
</td>
</tr>
</table>

View File

@@ -0,0 +1,10 @@
<?php
if (!defined('ABSPATH')) exit;
?>This email requires a modern e-mail reader but you can view the email online here:
{email_url}.
Thank you, <?php echo wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); ?>
To change your subscription follow:
{profile_url}.

View File

@@ -0,0 +1,133 @@
<?php
/*
* Name: Default
* Type: standard
* Some variables are already defined:
*
* - $theme_options An array with all theme options
* - $theme_url Is the absolute URL to the theme folder used to reference images
* - $theme_subject Will be the email subject if set by this theme
*
*/
global $newsletter, $post;
defined('ABSPATH') || exit;
if (empty($theme_options['theme_color']))
$color = '#555555';
else
$color = $theme_options['theme_color'];
if (isset($theme_options['theme_posts'])) {
$filters = array();
if (empty($theme_options['theme_max_posts']))
$filters['posts_per_page'] = 10;
else
$filters['posts_per_page'] = (int) $theme_options['theme_max_posts'];
if (!empty($theme_options['theme_categories'])) {
$filters['category__in'] = $theme_options['theme_categories'];
}
if (!empty($theme_options['theme_tags'])) {
$filters['tag'] = $theme_options['theme_tags'];
}
if (!empty($theme_options['theme_post_types'])) {
$filters['post_type'] = $theme_options['theme_post_types'];
}
if (!empty($theme_options['language'])) {
$filters['suppress_filters'] = false;
do_action('wpml_switch_language', $theme_options['language']);
}
$posts = get_posts($filters);
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- Not all email client take care of styles inserted here -->
<style type="text/css" media="all">
a {
text-decoration: none;
color: <?php echo $color; ?>;
}
</style>
</head>
<body style="margin: 0!important; padding: 0!important">
<div style="background-color: #f4f4f4; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color: #666; margin: 0 auto; padding: 0;">
<br>
<table align="center" bgcolor="#ffffff" width="100%" style="max-width: 600px; width: 100%; border-collapse: collapse; background-color: #000" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" bgcolor="#ffffff" width="100%" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color: #666;">
<div style="text-align: left; background-color: #fff;">
<div style="text-align: center">
<?php
//HEADER
// if (!empty($theme_options['theme_banner'])) {
// echo $theme_options['theme_banner'];
if (!empty($theme_options['theme_header_logo']['url'])) {
?>
<img style="max-width: 500px" alt="<?php echo esc_attr($theme_options['main_header_title']) ?>" src="<?php echo esc_attr($theme_options['theme_header_logo']['url']) ?>">
<?php } elseif (!empty($theme_options['main_header_logo']['url'])) { ?>
<img style="max-width: 500px" alt="<?php echo esc_attr($theme_options['main_header_title']) ?>" src="<?php echo esc_attr($theme_options['main_header_logo']['url']) ?>">
<?php } elseif (!empty($theme_options['main_header_title'])) { ?>
<div style="padding: 30px 0; color: #000; font-size: 28px; background-color: #EFEFEF; border-bottom: 1px solid #ddd; text-align: center;">
<?php echo $theme_options['main_header_title'] ?>
</div>
<?php if (!empty($theme_options['main_header_sub'])) { ?>
<div style="padding: 10px 0; color: #000; font-size: 16px; text-align: center;">
<?php echo $theme_options['main_header_sub'] ?>
</div>
<?php } ?>
<?php } else { ?>
<div style="padding: 30px 20px; color: #000; font-size: 28px; background-color: #EFEFEF; border-bottom: 1px solid #ddd; text-align: center;">
<?php echo get_option('blogname'); ?>
</div>
<?php if (!empty($theme_options['main_header_sub'])) { ?>
<div style="padding: 10px 0; color: #000; font-size: 16px; text-align: center;">
<?php echo $theme_options['main_header_sub'] ?>
</div>
<?php } ?>
<?php } ?>
</div>
<div style="padding: 10px 20px 20px 20px; background-color: #fff; line-height: 18px">
<p style="text-align: center; font-size: small;"><a target="_blank" href="{email_url}">View this email online</a></p>
<p>Here you can start to write your message. Be polite with your readers! Don't forget the subject of this message.</p>
<?php if (!empty($posts)) { ?>
<table cellpadding="5">
<?php foreach ($posts as $post) {
setup_postdata($post); ?>
<tr>
<?php if (isset($theme_options['theme_thumbnails'])) { ?>
<td valign="top"><a target="_blank" href="<?php echo get_permalink($post); ?>"><img width="75" style="width: 75px; min-width: 75px" src="<?php echo newsletter_get_post_image($post->ID); ?>" alt="image"></a></td>
<?php } ?>
<td valign="top">
<a target="_blank" href="<?php echo get_permalink(); ?>" style="font-size: 20px; line-height: 26px"><?php the_title(); ?></a>
<?php if (isset($theme_options['theme_excerpts'])) newsletter_the_excerpt($post); ?>
</td>
</tr>
<?php } ?>
</table>
<?php } ?>
<?php include WP_PLUGIN_DIR . '/newsletter/emails/themes/default/footer.php'; ?>
</div>
</div>
</td>
</tr>
</table>
<br><br>
</div>
</body>
</html>