[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-content/advanced/newsletters/post/categories/ -> categories.xml (source)

   1  <newsletter id='<?php echo $post_type; ?>_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
   2  
   3      <descriptions>
   4          <admin><![CDATA[<?php printf(__('Per %1$s "%2$s"', 'MailPress'),             $_post_type->labels->singular_name, $term->name); ?>]]></admin>
   5          <blog><![CDATA[<?php  printf(__('For each new %1$s in %2$s', 'MailPress'),     $_post_type->labels->singular_name, $term->name); ?>]]></blog>
   6      </descriptions>
   7  
   8      <mail>
   9          <Template>singlecat</Template>
  10          <subject><![CDATA[<?php printf( __('[%1$s] New {{the_post_type}} in {{the_taxonomy}} : {{the_title}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
  11          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
  12          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
  13          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
  14          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
  15      </mail>
  16  
  17      <processor>
  18          <id>post</id>
  19          <query_posts>
  20              <cat><?php echo $term->term_id; ?></cat>
  21          </query_posts>
  22      </processor>
  23  
  24      <scheduler>
  25          <id><![CDATA[<?php echo "{$post_type}_{$taxonomy}"; ?>]]></id>
  26          <args>            <!-- release the newsletter -->
  27              <hour>00</hour>        <!-- [00 to 23] -->
  28              <minute>00</minute>    <!-- [00 to 59] -->
  29          </args>
  30      </scheduler>
  31  
  32      <params>
  33          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
  34          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
  35          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
  36          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
  37      </params>
  38  
  39  </newsletter>
  40  
  41  <newsletter id='daily_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
  42  
  43      <descriptions>
  44          <admin><![CDATA[<?php printf(__('Daily %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
  45          <blog><![CDATA[<?php  printf(__('Daily %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
  46      </descriptions>
  47  
  48      <mail>
  49          <Template>dailycat</Template>
  50          <subject><![CDATA[<?php printf( __('[%1$s] Daily {{the_post_types}} newsletter for {{the_taxonomy}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
  51          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
  52          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
  53          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
  54          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
  55      </mail>
  56  
  57      <processor>
  58          <id>day-1</id>
  59          <threshold><![CDATA[MailPress_daily_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
  60          <args>            <!-- start of the day -->
  61              <hour>00</hour>        <!-- [00 to 23] -->
  62              <minute>00</minute>    <!-- [00 to 59] -->
  63          </args>
  64          <query_posts>
  65              <cat><?php echo $term->term_id; ?></cat>
  66          </query_posts>
  67      </processor>
  68  
  69      <scheduler>
  70          <id>day</id>
  71          <args>            <!-- release the newsletter -->
  72              <hour>00</hour>        <!-- [00 to 23] -->
  73              <minute>00</minute>    <!-- [00 to 59] -->
  74          </args>
  75      </scheduler>
  76  
  77      <params>
  78          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
  79          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
  80          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
  81          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
  82      </params>
  83  
  84  </newsletter>
  85  
  86  <newsletter id='weekly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
  87  
  88      <descriptions>
  89          <admin><![CDATA[<?php printf(__('Weekly %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
  90          <blog><![CDATA[<?php printf(__('Weekly %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
  91      </descriptions>
  92  
  93      <mail>
  94          <Template>weeklycat</Template>
  95          <subject><![CDATA[<?php printf( __('[%1$s] Weekly {{the_post_types}} newsletter for {{the_taxonomy}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
  96          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
  97          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
  98          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
  99          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
 100      </mail>
 101  
 102      <processor>
 103          <id>week-1</id>
 104          <threshold><![CDATA[MailPress_weekly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
 105          <args>            <!-- start of the week -->
 106              <wday>1</wday>         <!-- [1 > Monday, ... 7 > Sunday] (default : wordpress start of week) -->
 107              <hour>00</hour>        <!-- [00 to 23] -->
 108              <minute>00</minute>    <!-- [00 to 59] -->
 109          </args>
 110          <query_posts>
 111              <cat><?php echo $term->term_id; ?></cat>
 112          </query_posts>
 113      </processor>
 114  
 115      <scheduler>
 116          <id>week</id>
 117          <args>            <!-- release the newsletter -->
 118              <wday>1</wday>        <!-- [1 > Monday, ... 7 > Sunday] (default : wordpress start of week) -->
 119              <hour>00</hour>        <!-- [00 to 23] -->
 120              <minute>00</minute>    <!-- [00 to 59] -->
 121          </args>
 122      </scheduler>
 123  
 124      <params>
 125          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
 126          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
 127          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
 128          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
 129      </params>
 130  
 131  </newsletter>
 132  
 133  <newsletter id='monthly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
 134  
 135      <descriptions>
 136          <admin><![CDATA[<?php printf(__('Monthly %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
 137          <blog><![CDATA[<?php printf(__('Monthly %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
 138      </descriptions>
 139  
 140      <mail>
 141          <Template>monthlycat</Template>
 142          <subject><![CDATA[<?php printf( __('[%1$s] Monthly {{the_post_types}} newsletter for {{the_taxonomy}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
 143          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
 144          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
 145          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
 146          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
 147      </mail>
 148  
 149      <processor>
 150          <id>month-1</id>
 151          <threshold><![CDATA[MailPress_monthly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
 152          <args>            <!-- start of the month -->
 153              <day>1</day>        <!-- [1, 2, ..., 28 / 0 : end of month] (default : 1) -->
 154              <hour>00</hour>        <!-- [00 to 23] -->
 155              <minute>00</minute>    <!-- [00 to 59] -->
 156          </args>
 157          <query_posts>
 158              <cat><?php echo $term->term_id; ?></cat>
 159          </query_posts>
 160      </processor>
 161  
 162      <scheduler>
 163          <id>month</id>
 164          <args>            <!-- release the newsletter -->
 165              <day>1</day>        <!-- [1, 2, ..., 28 / 0 : end of month] (default : 1) -->
 166              <hour>00</hour>        <!-- [00 to 23] -->
 167              <minute>00</minute>    <!-- [00 to 59] -->
 168          </args>
 169      </scheduler>
 170  
 171      <params>
 172          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
 173          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
 174          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
 175          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
 176      </params>
 177  
 178  </newsletter>


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1