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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@@ -0,0 +1,22 @@
<?php
if (!defined('ABSPATH'))
exit;
?>
<table class="form-table">
<tr>
<th>Max posts</th>
<td><?php $controls->text('theme_max_posts', 5); ?></td>
</tr>
<tr>
<th>Categories</th>
<td><?php $controls->categories_group('theme_categories'); ?></td>
</tr>
<tr>
<th>Post types</th>
<td>
<?php $controls->post_types('theme_post_types'); ?>
<p class="description">Leave all uncheck for a default behavior.</p>
</td>
</tr>
</table>
<?php include WP_PLUGIN_DIR . '/newsletter/emails/themes/default/social-options.php'; ?>

View File

@@ -0,0 +1,11 @@
<?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,121 @@
<?php
global $post;
if (!defined('ABSPATH'))
exit;
$filters = array();
if (!empty($theme_options['theme_categories'])) {
$filters['category__in'] = $theme_options['theme_categories'];
}
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_post_types'])) {
$filters['post_type'] = $theme_options['theme_post_types'];
}
$posts = get_posts($filters);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
</style>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="background-color: #efefef;">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="600" style="background-color: #FAFAFA;">
<tr>
<td valign="top">
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td valign="top" align="left" style="color: #505050;font-family: Arial;font-size: 10px;">
You are receiving this email because you subscribed to <?php echo get_option('blogname'); ?>. <a href="{profile_url}">Click here to change your subscription</a>.
</td>
<td valign="top" width="190" align="left" style="color: #505050;font-family: Arial;font-size: 10px;">
Is this email not displaying correctly?<br><a href="{email_url}" style="color: #336699;font-weight: normal;text-decoration: underline;">View it online</a>.
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="600" bgcolor="#FFFFFF">
<tr>
<td align="center" valign="middle" height="150" style="color: #202020;font-family: Arial;font-size: 34px;font-weight: bold;line-height: 100%;padding: 5px 0 -2px 0;border-width: 1px 0px;border-style: solid;border-color: #dddddd;">
<?php echo get_option('blogname'); ?>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="600" bgcolor="#FFFFFF">
<tr>
<td valign="top">
<table border="0" cellpadding="20" cellspacing="0" width="200">
<tr>
<td valign="top" align="left" style="color: #505050;font-family: Arial;font-size: 12px;line-height: 150%;">
Sidebar text
</td>
</tr>
<?php
if (!isset($theme_options['theme_social_disable'])) {
$social_icon_url = plugins_url('emails/themes/default/images', 'newsletter/plugin.pnp');
?>
<tr>
<td valign="top" align="left">
<?php
foreach (array('facebook', 'twitter', 'youtube', 'linkedin', 'googleplus', 'pinterest', 'tumblr', 'instagram') as $social) {
if (empty($theme_options["theme_$social"]))
continue;
?>
<a href="<?php echo $theme_options["theme_$social"]; ?>"><img src="<?php echo $social_icon_url; ?>/<?php echo $social; ?>.png" alt="<?php echo $social; ?>"></a>
<?php } ?>
</td>
</tr>
<?php } ?>
</table>
</td>
<td valign="top">
<table border="0" cellpadding="20" cellspacing="0" width="100%" bgcolor="#ffffff">
<tr>
<td valign="top">
<?php foreach ($posts as $post) {
setup_postdata($post);
?>
<h2 style="color: #202020;font-family: Arial;font-size: 20px;font-weight: bold;margin-top: 0;margin-bottom: 10px;border-bottom: 1px solid #efefef;">
<?php the_title(); ?>
</h2>
<center><img src="<?php echo newsletter_get_post_image($post->ID, 'medium'); ?>"></center>
<div style="color: #505050;font-family: Arial;font-size: 14px;line-height: 150%;">
<?php the_excerpt(); ?>
</div>
<?php } ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br><br>
</body>
</html>