[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-content/advanced/newsletters/post/categories/ -> half-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='half_day_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
  42  
  43      <descriptions>
  44          <admin><![CDATA[<?php printf(__('Half Day %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
  45          <blog><![CDATA[<?php  printf(__('Half Day %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] Half Day {{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>half-day-1</id>
  59          <threshold><![CDATA[MailPress_half_day_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
  60          <args>            <!-- start of the first slot 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>half-day</id>
  71          <args>            <!-- release the newsletter first slot of the day -->
  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='daily_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
  87  
  88      <descriptions>
  89          <admin><![CDATA[<?php printf(__('Daily %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
  90          <blog><![CDATA[<?php  printf(__('Daily %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
  91      </descriptions>
  92  
  93      <mail>
  94          <Template>dailycat</Template>
  95          <subject><![CDATA[<?php printf( __('[%1$s] Daily {{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>day-1</id>
 104          <threshold><![CDATA[MailPress_daily_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
 105          <args>            <!-- start of the day -->
 106              <hour>00</hour>        <!-- [00 to 23] -->
 107              <minute>00</minute>    <!-- [00 to 59] -->
 108          </args>
 109          <query_posts>
 110              <cat><?php echo $term->term_id; ?></cat>
 111          </query_posts>
 112      </processor>
 113  
 114      <scheduler>
 115          <id>day</id>
 116          <args>            <!-- release the newsletter -->
 117              <hour>00</hour>        <!-- [00 to 23] -->
 118              <minute>00</minute>    <!-- [00 to 59] -->
 119          </args>
 120      </scheduler>
 121  
 122      <params>
 123          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
 124          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
 125          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
 126          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
 127      </params>
 128  
 129  </newsletter>
 130  
 131  <newsletter id='weekly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
 132  
 133      <descriptions>
 134          <admin><![CDATA[<?php printf(__('Weekly %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
 135          <blog><![CDATA[<?php printf(__('Weekly %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
 136      </descriptions>
 137  
 138      <mail>
 139          <Template>weeklycat</Template>
 140          <subject><![CDATA[<?php printf( __('[%1$s] Weekly {{the_post_types}} newsletter for {{the_taxonomy}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
 141          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
 142          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
 143          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
 144          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
 145      </mail>
 146  
 147      <processor>
 148          <id>week-1</id>
 149          <threshold><![CDATA[MailPress_weekly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
 150          <args>            <!-- start of the week -->
 151              <wday>1</wday>         <!-- [1 > Monday, ... 7 > Sunday] (default : wordpress start of week) -->
 152              <hour>00</hour>        <!-- [00 to 23] -->
 153              <minute>00</minute>    <!-- [00 to 59] -->
 154          </args>
 155          <query_posts>
 156              <cat><?php echo $term->term_id; ?></cat>
 157          </query_posts>
 158      </processor>
 159  
 160      <scheduler>
 161          <id>week</id>
 162          <args>            <!-- release the newsletter -->
 163              <wday>1</wday>        <!-- [1 > Monday, ... 7 > Sunday] (default : wordpress start of week) -->
 164              <hour>00</hour>        <!-- [00 to 23] -->
 165              <minute>00</minute>    <!-- [00 to 59] -->
 166          </args>
 167      </scheduler>
 168  
 169      <params>
 170          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
 171          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
 172          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
 173          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
 174      </params>
 175  
 176  </newsletter>
 177  
 178  <newsletter id='monthly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>'>
 179  
 180      <descriptions>
 181          <admin><![CDATA[<?php printf(__('Monthly %1$s "%2$s"', 'MailPress'),         $_post_type->labels->name, $term->name); ?>]]></admin>
 182          <blog><![CDATA[<?php printf(__('Monthly %1$s newsletter for %2$s', 'MailPress'),     $_post_type->labels->name, $term->name); ?>]]></blog>
 183      </descriptions>
 184  
 185      <mail>
 186          <Template>monthlycat</Template>
 187          <subject><![CDATA[<?php printf( __('[%1$s] Monthly {{the_post_types}} newsletter for {{the_taxonomy}}', 'MailPress'), get_bloginfo('name')); ?>]]></subject>
 188          <the_post_types><![CDATA[<?php echo $_post_type->labels->name; ?>]]></the_post_types>
 189          <the_post_type><![CDATA[<?php echo $_post_type->labels->singular_name; ?>]]></the_post_type>
 190          <the_taxonomy><![CDATA[<?php echo $term->name; ?>]]></the_taxonomy>
 191          <the_category><![CDATA[<?php echo $category->cat_name; ?>]]></the_category>        <!-- deprecated -->
 192      </mail>
 193  
 194      <processor>
 195          <id>month-1</id>
 196          <threshold><![CDATA[MailPress_monthly_<?php echo $taxonomy; ?>_<?php echo $term->term_id; ?>]]></threshold><!-- stored on wordpress options table -->
 197          <args>            <!-- start of the month -->
 198              <day>1</day>        <!-- [1, 2, ..., 28 / 0 : end of month] (default : 1) -->
 199              <hour>00</hour>        <!-- [00 to 23] -->
 200              <minute>00</minute>    <!-- [00 to 59] -->
 201          </args>
 202          <query_posts>
 203              <cat><?php echo $term->term_id; ?></cat>
 204          </query_posts>
 205      </processor>
 206  
 207      <scheduler>
 208          <id>month</id>
 209          <args>            <!-- release the newsletter -->
 210              <day>1</day>        <!-- [1, 2, ..., 28 / 0 : end of month] (default : 1) -->
 211              <hour>00</hour>        <!-- [00 to 23] -->
 212              <minute>00</minute>    <!-- [00 to 59] -->
 213          </args>
 214      </scheduler>
 215  
 216      <params>
 217          <term_id><![CDATA[<?php echo $term->term_id; ?>]]></term_id>
 218          <post_type><![CDATA[<?php echo $post_type; ?>]]></post_type>
 219          <taxonomy><![CDATA[<?php echo $taxonomy; ?>]]></taxonomy>
 220          <cat_id><?php echo $category->cat_ID; ?></cat_id>        <!-- deprecated -->
 221      </params>
 222  
 223  </newsletter>


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1