summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]templates/admin_list_newsletters.tpl2
-rwxr-xr-x[-rw-r--r--]templates/center_list_newsletters.tpl2
-rwxr-xr-x[-rw-r--r--]templates/edit_edition.tpl2
-rwxr-xr-x[-rw-r--r--]templates/edit_newsletter.tpl8
-rwxr-xr-x[-rw-r--r--]templates/list_newsletters.tpl2
-rwxr-xr-x[-rw-r--r--]templates/user_subscriptions.tpl4
-rwxr-xr-x[-rw-r--r--]templates/view_edition.tpl2
-rwxr-xr-x[-rw-r--r--]templates/view_newsletter.tpl2
8 files changed, 12 insertions, 12 deletions
diff --git a/templates/admin_list_newsletters.tpl b/templates/admin_list_newsletters.tpl
index 0f70c31..bf92dd1 100644..100755
--- a/templates/admin_list_newsletters.tpl
+++ b/templates/admin_list_newsletters.tpl
@@ -1,4 +1,4 @@
-{if !$newsletters || $gContent->isValid() || $smarty.request.new}
+{if !$newsletters or $gContent->isValid() or $smarty.request.new}
{include file="bitpackage:newsletters/edit_newsletter.tpl"}
{else}
{strip}
diff --git a/templates/center_list_newsletters.tpl b/templates/center_list_newsletters.tpl
index e22e685..73e7a5e 100644..100755
--- a/templates/center_list_newsletters.tpl
+++ b/templates/center_list_newsletters.tpl
@@ -70,7 +70,7 @@
{if $newsletters.individual ne 'y' or $newsletters.individual_p_subscribe_newsletters eq 'y'}
<li class="item {cycle values='odd,even'}">
<div class="floaticon">
- {if $subs.$nlId.unsubscribe_all || $subs.$nlId.unsubscribe_date}
+ {if $subs.$nlId.unsubscribe_all or $subs.$nlId.unsubscribe_date}
<strong>{biticon ipackage="icons" iname="dialog-cancel" iexplain="Success" iforce="icon"}{tr}Unsubscribed{/tr}: {$subs.$nlId.unsubscribe_date|bit_short_date}</strong><br/>
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}sub.php?nl_id={$nl.nl_id}&amp;sub=1">{tr}Subscribe{/tr}</a>
{elseif $subs.$nlId}
diff --git a/templates/edit_edition.tpl b/templates/edit_edition.tpl
index de49918..5399f54 100644..100755
--- a/templates/edit_edition.tpl
+++ b/templates/edit_edition.tpl
@@ -34,7 +34,7 @@
{/forminput}
</div>
- {if $gBitUser->hasPermission('p_use_content_templates') && $templates}
+ {if $gBitUser->hasPermission('p_use_content_templates') and $templates}
<div class="form-group">
{formlabel label="Template" for=""}
{forminput}
diff --git a/templates/edit_newsletter.tpl b/templates/edit_newsletter.tpl
index a655767..a2f3457 100644..100755
--- a/templates/edit_newsletter.tpl
+++ b/templates/edit_newsletter.tpl
@@ -1,4 +1,4 @@
-{if !$newsletters || $gContent->isValid() || $smarty.request.new}
+{if !$newsletters or $gContent->isValid() or $smarty.request.new}
{strip}
<div class="floaticon">{bithelp}</div>
@@ -32,21 +32,21 @@
<div class="form-group">
{forminput label="checkbox"}
- <input type="checkbox" name="allow_user_sub" id="allow_user_sub" {if !$gContent->isValid() || $gContent->mInfo.allow_user_sub eq 'y'}checked="checked"{/if} />Users can Subscribe
+ <input type="checkbox" name="allow_user_sub" id="allow_user_sub" {if !$gContent->isValid() or $gContent->mInfo.allow_user_sub eq 'y'}checked="checked"{/if} />Users can Subscribe
{formhelp note="Users can subscribe to this list. Disabling this options means that you have to manually add users to the list."}
{/forminput}
</div>
<div class="form-group">
{forminput label="checkbox"}
- <input type="checkbox" name="allow_any_sub" id="allow_any_sub" {if !$gContent->isValid() || $gContent->mInfo.allow_any_sub eq 'y'}checked="checked"{/if} />Any e-mail Address
+ <input type="checkbox" name="allow_any_sub" id="allow_any_sub" {if !$gContent->isValid() or $gContent->mInfo.allow_any_sub eq 'y'}checked="checked"{/if} />Any e-mail Address
{formhelp note="Users may subscribe using any email address."}
{/forminput}
</div>
<div class="form-group">
{forminput label="checkbox"}
- <input type="checkbox" name="unsub_msg" id="unsub_msg" {if !$gContent->isValid() || $gContent->mInfo.unsub_msg eq 'y'}checked="checked"{/if} />Append Un/Subscribe Instructions
+ <input type="checkbox" name="unsub_msg" id="unsub_msg" {if !$gContent->isValid() or $gContent->mInfo.unsub_msg eq 'y'}checked="checked"{/if} />Append Un/Subscribe Instructions
{formhelp note="Append instructions on how to subscribe / unsubscribe to ever outgoing newsletter. This is only useful when users can un / subscribe to the list themselves."}
{/forminput}
</div>
diff --git a/templates/list_newsletters.tpl b/templates/list_newsletters.tpl
index 08d9a02..0dcb3d6 100644..100755
--- a/templates/list_newsletters.tpl
+++ b/templates/list_newsletters.tpl
@@ -1,4 +1,4 @@
-{if !$newsletters || $gContent->isValid() || $smarty.request.new}
+{if !$newsletters or $gContent->isValid() or $smarty.request.new}
{include file="bitpackage:newsletters/edit_newsletter.tpl"}
{else}
{strip}
diff --git a/templates/user_subscriptions.tpl b/templates/user_subscriptions.tpl
index 7581b63..944c673 100644..100755
--- a/templates/user_subscriptions.tpl
+++ b/templates/user_subscriptions.tpl
@@ -1,4 +1,4 @@
-{if $subInfo || $gBitUser->hasPermission('p_newsletters_subscribe')}
+{if $subInfo or $gBitUser->hasPermission('p_newsletters_subscribe')}
{strip}
<div class="display newsletters">
<div class="header">
@@ -31,7 +31,7 @@
{formlabel label="Subscriptions"}
{forminput}
{foreach from=$newsletters key=nlId item=nl}
- {if $nl.allow_user_sub}<input type="checkbox" name="nl_content_id[]" value="{$nlId}" {if !$unsubs.$nlId && !$subInfo.unsubscribe_all}checked="checked"{/if}/>{/if} <a href="{$nl.display_url}"/>{$nl.title|escape}</a> <br/>
+ {if $nl.allow_user_sub}<input type="checkbox" name="nl_content_id[]" value="{$nlId}" {if !$unsubs.$nlId and !$subInfo.unsubscribe_all}checked="checked"{/if}/>{/if} <a href="{$nl.display_url}"/>{$nl.title|escape}</a> <br/>
{foreachelse}
{tr}No newsletters were found{/tr}
{/foreach}
diff --git a/templates/view_edition.tpl b/templates/view_edition.tpl
index ba5d4e0..0d5525f 100644..100755
--- a/templates/view_edition.tpl
+++ b/templates/view_edition.tpl
@@ -6,7 +6,7 @@
{if $gBitUser->hasPermission('p_newsletters_admin')}
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}admin/send.php?edition_id={$gContent->mEditionId}">{booticon iname="icon-envelope" ipackage="icons" iexplain="email this post"}</a>
{/if}
- {if $gContent->isOwner() || $gBitUser->hasPermission( 'p_newsletters_admin' )}
+ {if $gContent->isOwner() or $gBitUser->hasPermission( 'p_newsletters_admin' )}
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}edition_edit.php?edition_id={$gContent->mEditionId}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}edition.php?edition_id={$gContent->mEditionId}&amp;remove=1">{booticon iname="icon-trash" ipackage="icons" iexplain="delete"}</a>
{/if}
diff --git a/templates/view_newsletter.tpl b/templates/view_newsletter.tpl
index 140d786..2ea4d0c 100644..100755
--- a/templates/view_newsletter.tpl
+++ b/templates/view_newsletter.tpl
@@ -2,7 +2,7 @@
<div class="floaticon">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon'}
- {if $gContent->isOwner() || $gBitUser->hasPermission( 'p_newsletters_admin' )}
+ {if $gContent->isOwner() or $gBitUser->hasPermission( 'p_newsletters_admin' )}
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}newsletters.php?nl_id={$gContent->mNewsletterId}">{booticon iname="icon-edit" ipackage="icons" iexplain="edit"}</a>
<a href="{$smarty.const.NEWSLETTERS_PKG_URL}newsletters.php?nl_id={$gContent->mNewsletterId}&amp;remove=1">{booticon iname="icon-trash" ipackage="icons" iexplain="delete"}</a>
{/if}