Skip to content

Commit

Permalink
removed Visible to non subscribers switch - moved to paywall plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Nov 24, 2015
1 parent eea522a commit 9c1749a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions newscoop/admin-files/articles/edit_switches_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ class="input_checkbox" <?php if ($articleObj->onSectionPage()) { ?> checked<?php
class="input_checkbox" <?php if ($articleObj->ratingEnabled()) { ?> checked<?php } ?> <?php if ($inViewMode || !$publishRights) { ?>disabled<?php } ?> />
<label for="f_rating_enabled"><?php echo $translator->trans('Enable Rating', array(), 'articles'); ?></label>
</li>
<li<?php
$pluginsService = \Zend_Registry::get('container')->get('newscoop.plugins.service');
if (!$pluginsService->isEnabled('newscoop/newscoop-paywall-bundle') && $articleObj->isPublic()) { ?> style="display:none"<?php } ?>
><input type="checkbox" name="f_is_public" id="f_is_public"
class="input_checkbox" <?php if ($articleObj->isPublic()) { ?> checked<?php } ?> <?php if ($inViewMode || !$publishRights) { ?>disabled<?php } ?> /> <label for="f_is_public"><?php echo $translator->trans('Visible to non-subscribers', array(), 'articles'); ?></label>
</li>
<?php
foreach ($dbColumns as $dbColumn) {
// Custom switches
Expand Down Expand Up @@ -53,7 +47,6 @@ class="input_checkbox db" value="on" <?php if ($inViewMode) { ?>disabled<?php }
var vals = {
'setOnFrontPage': $('input[name=f_on_front_page]', form),
'setOnSectionPage': $('input[name=f_on_section_page]', form),
'setIsPublic': $('input[name=f_is_public]', form),
'setRatingEnabled': $('input[name=f_rating_enabled]', form)
};

Expand Down

0 comments on commit 9c1749a

Please sign in to comment.