Ejemplo n.º 1
0
				<?php 
    $msg_out = preg_replace("#^((.|\r|\n){" . $message_len . "})(.|\r|\n)*\$#", "\$1...", $message);
    if (!$prob) {
        printf(__("<strong><em>[Draft]</em></strong> %s", "thankmelater"), wp_specialchars($msg_out));
    } else {
        echo wp_specialchars($msg_out);
    }
    ?>
			</td>
			<td class="probability">
				<label for="prob_<?php 
    echo (int) $msgid;
    ?>
">					
					<?php 
    echo TML_form::input_small_text("prob_{$msgid}", $prob, $numOfMessages + 1, array("id" => "prob_{$numOfMessages}", "onkeyup" => "tml_sum_prob()", "onchange" => "tml_sum_prob()"));
    ?>
					
				</label>
			</td>
			<td>
				<a href="?<?php 
    echo attribute_escape(TML_admin_pages_hierarchy::build_query($tml_admin_messages->level_id, "edit_message") . "&msgid=" . urlencode($msgid) . "&checksum=" . urlencode($checksum));
    ?>
"><?php 
    _e("Edit", "thankmelater");
    ?>
</a> 
			
				| 
			
Ejemplo n.º 2
0
</p>
	
	<table class="form-table">
		<tbody>
			<tr valign="top">
				<th scope="row"> 
					<label for="send_after"><?php 
_e("Message Delay", "thankmelater");
?>
</label>
				</th>
				<td>
					<?php 
list($time, $base) = TML_form::get_natural_time($send_after);
list($time_pm, $base_pm) = TML_form::get_natural_time($send_after_plus_minus);
printf(__("%1\$s%2\$s &plusmn; %3\$s%4\$s", "thankmelater"), TML_form::input_small_text("send_after", $time, 1), TML_form::input_select_base("send_after_base", $base, 2), TML_form::input_small_text("send_after_plus_minus", $time_pm, 3), TML_form::input_select_base("send_after_plus_minus_base", $base_pm, 4));
?>
				</td>
			</tr>
			
			<tr valign="top">
				<th scope="row"> 
					<label for="restrict_by_tags"><?php 
_e("Restrict by Tags", "thankmelater");
?>
</label>
				</th>
				<td>
					<?php 
$restrict_type = $restrict_by_tags_type;
// 0 for exceptions list; 1 for white list
Ejemplo n.º 3
0
_e("The amount of time for Thank Me Later to ignore comments after the last comment made by the user.", "thankmelater");
?>
</span>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row"> 
					<label for="send_gap"><?php 
_e("Send Gap", "thankmelater");
?>
</label>
				</th>
				<td>
					<?php 
list($time, $base) = TML_form::get_natural_time($send_gap);
printf(__("%1\$s%2\$s", "thankmelater"), TML_form::input_small_text("send_gap", $time, 6), TML_form::input_select_base("send_gap_base", $base, 7));
?>
					<span class="setting-description"><?php 
_e("The amount of time to wait before sending another message. For example, '2 weeks' will mean the user gets at most one email in any 2 week period. Enter '0' to remove this constraint. (Be aware that '0' may cause e-mails to arrive in a different order. It may be sensible to choose a non-zero value). This option is similar to 'Comment Gap', but is probably more useful.", "thankmelater");
?>
</span>
				</td>
			</tr>
			<tr valign="top">
				<th scope="row"> 
					<?php 
_e("Opt out", "thankmelater");
?>
				</th>
				<td>
					<fieldset>