<commit_before><?php defined('C5_EXECUTE') or die("Access Denied.");
/* @var $h ConcreteDashboardHelper */
$h = Loader::helper('concrete/dashboard');
/* @var $ih ConcreteInterfaceHelper */
$ih = Loader::helper('concrete/ui');
/* @var $form FormHelper */
$form = Loader::helper('form');
?>
<?=$h->getDashboardPaneHeaderWrapper(t('Site Access'), false, false, false);?>
<form id="site-permissions-form" action="<?=$view->action('')?>" method="post">
	<?=$this->controller->token->output('site_permissions_code')?>

<? if(PERMISSIONS_MODEL != 'simple'):?>
<div class="ccm-pane-body ccm-pane-body-footer">
<p>
<?=t('Your concrete5 site does not use the simple permissions model. You must change your permissions for each specific page and content area.')?>
</p>
</div>
<?else:?>
<div class="ccm-pane-body">
	<div class="clearfix">
		<?=$form->label('view', t('Viewing Permissions'))?>
		<div class="input">
			<ul class="inputs-list">
				<li>
					<label>
						<?=$form->radio('view', 'ANYONE', $guestCanRead)?>
						<span><?=t('Public')?> - <?=t('Anyone may view the website.')?></span>
					</label>
				</li>
				<li>
					<label>
						<?=$form->radio('view', 'USERS', $registeredCanRead)?>
						<span><?=t('Members')?> - <?=t('Only registered users may view the website.')?></span>
					</label>
				</li>
				<li>
					<label>
						<?=$form->radio('view', 'PRIVATE', !$guestCanRead && !$registeredCanRead)?>
						<span><?=t('Private')?> - <?=t('Only the administrative group may view the website.')?></span>
					</label>
				</li>
			</ul>
		</div>
	</div>
	<div class="clearfix">
		<?=$form->label('gID', t('Edit Access'))?>
		<div class="input">
			<ul class="inputs-list">
				<?foreach($gArray as $g):?>
				<li>
					<label>
						<?=$form->checkbox('gID[]', $g->getGroupID(), in_array($g->getGroupID(), $editAccess))?>
						<span><?=$g->getGroupDisplayName()?></span>
					</label>
				</li>
				<?endforeach?>
			</ul>
			<span class="help-block"><?=t('Choose which users and groups may edit your site. Note: These settings can be overridden on specific pages.')?></span>
		</div>
	</div>
</div>
<div class="ccm-pane-footer">
<?
	$submit = $ih->submit( t('Save'), 'site-permissions-form', 'right', 'primary');
	print $submit;
?>
</div>

<?endif?>
</form>
<?=$h->getDashboardPaneFooterWrapper(false);?><commit_msg>Reskin for 5.7<commit_after><?php defined('C5_EXECUTE') or die("Access Denied.");

$h = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/ui');
$form = Loader::helper('form');
?>
<?=$h->getDashboardPaneHeaderWrapper(t('Site Access'), false, false, false);?>
<form id="site-permissions-form" action="<?=$view->action('')?>" method="post" role="form">
	<?php echo $this->controller->token->output('site_permissions_code')?>
	
    <? if(PERMISSIONS_MODEL != 'simple'):?>
    <div>
        <p>
            <?=t('Your concrete5 site does not use the simple permissions model. You must change your permissions for each specific page and content area.')?>
        </p>
    </div>
    <?else:?>
    
    <fieldset>
	<legend style="margin-bottom: 0px"><?=t('Viewing Permissions')?></legend>
	<div class="form-group">
        <label class="radio">
		    <?=$form->radio('view', 'ANYONE', $guestCanRead)?> 
		    <span><?=t('Public')?> - <?=t('Anyone may view the website.')?></span>
        </label>
		 
        <label class="radio">
            <?=$form->radio('view', 'USERS', $registeredCanRead)?> 
            <span><?=t('Members')?> - <?=t('Only registered users may view the website. test')?></span>
        </label>

		<label class="radio">
			<?=$form->radio('view', 'PRIVATE', !$guestCanRead && !$registeredCanRead)?>
			<span><?=t('Private')?> - <?=t('Only the administrative group may view the website.')?></span>
		</label>
    </div>
    </fieldset>
    
    <fieldset>
    <legend style="margin-bottom: 0px"><?=t('Edit Access')?></legend>
        <span class="help-block"><?=t('Choose which users and groups may edit your site. Note: These settings can be overridden on specific pages.')?></span>
        <div class="form-group">
			<ul class="checkbox">
				<?foreach($gArray as $g):?>
				<li>
					<label>
						<?=$form->checkbox('gID[]', $g->getGroupID(), in_array($g->getGroupID(), $editAccess))?>
						<span><?=$g->getGroupDisplayName()?></span>
					</label>
				</li>
				<?endforeach?>
			</ul>
        </div>
    </fieldset>
    
    <div class="ccm-dashboard-form-actions-wrapper">
        <div class="ccm-dashboard-form-actions">
            <button class="pull-right btn btn-success" type="submit" ><?=t('Save')?></button>
        </div>
    </div>

<?endif?>
</form>
<?=$h->getDashboardPaneFooterWrapper(false);?>
{'fraction_non_alphanumeric': 0.23387441264416917, 'fraction_numerical': 0.0017086715079026058, 'mean_word_length': 3.8934169278996866, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 178, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5216690', 'n_tokens_mistral': 1768, 'n_tokens_neox': 1599, 'n_words': 344}