<?php
/* Smarty version 3.1.29, created on 2016-12-26 23:43:06
  from "/home/enousk5/public_html/questforbelief.com/fellowship/ow_plugins/forum/views/controllers/customize_index.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_58613a8a585798_81646876',
  'file_dependency' => 
  array (
    '6f94ffbd7ae2e5be726190798c404c9dee992f63' => 
    array (
      0 => '/home/enousk5/public_html/questforbelief.com/fellowship/ow_plugins/forum/views/controllers/customize_index.html',
      1 => 1482759785,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58613a8a585798_81646876 ($_smarty_tpl) {
if (!is_callable('smarty_block_style')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/block.style.php';
if (!is_callable('smarty_function_decorator')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/function.decorator.php';
if (!is_callable('smarty_function_text')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/function.text.php';
if (!is_callable('smarty_block_form')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/block.form.php';
if (!is_callable('smarty_function_input')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/function.input.php';
if (!is_callable('smarty_function_error')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/function.error.php';
if (!is_callable('smarty_function_submit')) require_once '/home/enousk5/public_html/questforbelief.com/fellowship/ow_smarty/plugin/function.submit.php';
$_smarty_tpl->smarty->_cache['tag_stack'][] = array('style', array()); $_block_repeat=true; echo smarty_block_style(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>


.ow_forum .ow_lbutton:hover {
    cursor: default;
}

<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_style(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_cache['tag_stack']);?>

<div class="ow_box ow_highbox ow_smallmargin ow_center">
    <?php echo smarty_function_decorator(array('name'=>'button','langLabel'=>'base+widgets_finish_customize_btn','id'=>'finish_customizing','class'=>'ow_ic_lock'),$_smarty_tpl);?>

</div>

<div class="forum_sections">

<?php
$_from = $_smarty_tpl->tpl_vars['sectionGroupList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_section_0_saved_item = isset($_smarty_tpl->tpl_vars['section']) ? $_smarty_tpl->tpl_vars['section'] : false;
$_smarty_tpl->tpl_vars['section'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['section']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['section']->value) {
$_smarty_tpl->tpl_vars['section']->_loop = true;
$__foreach_section_0_saved_local_item = $_smarty_tpl->tpl_vars['section'];
?>
<table class="ow_table_1 ow_stdmargin ow_forum forum_section" id="section_<?php echo $_smarty_tpl->tpl_vars['section']->value['sectionId'];?>
">
    <tr class="forum_section_tr ow_tr_first">
        <th class="ow_name"><a href="<?php echo $_smarty_tpl->tpl_vars['section']->value['sectionUrl'];?>
"><?php echo $_smarty_tpl->tpl_vars['section']->value['sectionName'];?>
</a></th>
        <th class="ow_topics"><?php echo smarty_function_text(array('key'=>'forum+topics'),$_smarty_tpl);?>
</th>
        <th class="ow_replies"><?php echo smarty_function_text(array('key'=>'forum+replies'),$_smarty_tpl);?>
</th>
        <th class="ow_action">
            <div class="ow_section_acts" style="display: none">
                <a class="ow_lbutton section_edit" href="javascript://"><?php echo smarty_function_text(array('key'=>'forum+edit_section'),$_smarty_tpl);?>
</a>&nbsp;<a class="ow_lbutton ow_red section_delete" href="javascript://"><?php echo smarty_function_text(array('key'=>'forum+delete_section'),$_smarty_tpl);?>
</a>
            </div>
        </th>
    </tr>
    
    <?php
$_from = $_smarty_tpl->tpl_vars['section']->value['groups'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_groups_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_foreach_groups']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_groups'] : false;
$__foreach_groups_1_saved_item = isset($_smarty_tpl->tpl_vars['group']) ? $_smarty_tpl->tpl_vars['group'] : false;
$__foreach_groups_1_total = $_smarty_tpl->smarty->ext->_foreach->count($_from);
$_smarty_tpl->tpl_vars['group'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['__smarty_foreach_groups'] = new Smarty_Variable(array());
$__foreach_groups_1_iteration=0;
$_smarty_tpl->tpl_vars['group']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['group']->value) {
$_smarty_tpl->tpl_vars['group']->_loop = true;
$__foreach_groups_1_iteration++;
$_smarty_tpl->tpl_vars['__smarty_foreach_groups']->value['last'] = $__foreach_groups_1_iteration == $__foreach_groups_1_total;
$__foreach_groups_1_saved_local_item = $_smarty_tpl->tpl_vars['group'];
?>
    <tr class="forum_group <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_groups']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_groups']->value['last'] : null)) {?>ow_tr_last<?php }?>" id="group_<?php echo $_smarty_tpl->tpl_vars['group']->value['id'];?>
">
        <td class="ow_name">
            <a href="<?php echo $_smarty_tpl->tpl_vars['group']->value['groupUrl'];?>
"><b><?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
</b> </a>
            <div class="ow_small"><?php echo $_smarty_tpl->tpl_vars['group']->value['description'];?>
</div>
            <?php if ($_smarty_tpl->tpl_vars['group']->value['isPrivate']) {?>
                <span class="ow_lbutton ow_green"><?php echo smarty_function_text(array('key'=>'forum+is_private'),$_smarty_tpl);?>
</span> 
                <span class="ow_small ow_remark"><?php echo smarty_function_text(array('key'=>'forum+visible_to'),$_smarty_tpl);?>
: <?php
$_from = $_smarty_tpl->tpl_vars['group']->value['roles'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_r_2_saved = isset($_smarty_tpl->tpl_vars['__smarty_foreach_r']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_r'] : false;
$__foreach_r_2_saved_item = isset($_smarty_tpl->tpl_vars['r']) ? $_smarty_tpl->tpl_vars['r'] : false;
$__foreach_r_2_total = $_smarty_tpl->smarty->ext->_foreach->count($_from);
$_smarty_tpl->tpl_vars['r'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['__smarty_foreach_r'] = new Smarty_Variable(array());
$__foreach_r_2_iteration=0;
$_smarty_tpl->tpl_vars['r']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['r']->value) {
$_smarty_tpl->tpl_vars['r']->_loop = true;
$__foreach_r_2_iteration++;
$_smarty_tpl->tpl_vars['__smarty_foreach_r']->value['last'] = $__foreach_r_2_iteration == $__foreach_r_2_total;
$__foreach_r_2_saved_local_item = $_smarty_tpl->tpl_vars['r'];
echo $_smarty_tpl->tpl_vars['r']->value;
if (!(isset($_smarty_tpl->tpl_vars['__smarty_foreach_r']->value['last']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_r']->value['last'] : null)) {?>, <?php }
$_smarty_tpl->tpl_vars['r'] = $__foreach_r_2_saved_local_item;
}
if ($__foreach_r_2_saved) {
$_smarty_tpl->tpl_vars['__smarty_foreach_r'] = $__foreach_r_2_saved;
}
if ($__foreach_r_2_saved_item) {
$_smarty_tpl->tpl_vars['r'] = $__foreach_r_2_saved_item;
}
?></span>
            <?php }?>
        </td>
        <td class="ow_topics"><?php echo $_smarty_tpl->tpl_vars['group']->value['topicCount'];?>
</td>
        <td class="ow_replies"><?php echo $_smarty_tpl->tpl_vars['group']->value['replyCount'];?>
</td>
        <td class="ow_action">
            <div class="ow_group_acts" style="display: none;">
                <a class="ow_lbutton group_edit" href="javascript://"><?php echo smarty_function_text(array('key'=>'forum+edit_group'),$_smarty_tpl);?>
</a>&nbsp;<a class="ow_lbutton ow_red group_delete" href="javascript://"><?php echo smarty_function_text(array('key'=>'forum+delete_group'),$_smarty_tpl);?>
</a>
            </div>
        </td>
    </tr>
    <?php
$_smarty_tpl->tpl_vars['group'] = $__foreach_groups_1_saved_local_item;
}
if ($__foreach_groups_1_saved) {
$_smarty_tpl->tpl_vars['__smarty_foreach_groups'] = $__foreach_groups_1_saved;
}
if ($__foreach_groups_1_saved_item) {
$_smarty_tpl->tpl_vars['group'] = $__foreach_groups_1_saved_item;
}
?>
    <tr class="forum_group no_forum_group" <?php if ($_smarty_tpl->tpl_vars['section']->value['groups']) {?>style="display: none;"<?php }?>>
        <td colspan="4"><?php echo smarty_function_text(array('key'=>'forum+no_group'),$_smarty_tpl);?>
</td>
    </tr>
</table>
<?php
$_smarty_tpl->tpl_vars['section'] = $__foreach_section_0_saved_local_item;
}
if ($__foreach_section_0_saved_item) {
$_smarty_tpl->tpl_vars['section'] = $__foreach_section_0_saved_item;
}
?>

</div>

<div class="ow_stdmargin ow_txtright">
    <?php echo smarty_function_decorator(array('name'=>'button','langLabel'=>'forum+add_new_forum_btn','id'=>'add_forum_btn','class'=>'ow_ic_add'),$_smarty_tpl);?>

</div>


<div style="display: none">
<div class="add_forum_form" id="add_forum_form">
    <?php $_smarty_tpl->smarty->_cache['tag_stack'][] = array('form', array('name'=>'add-forum-form')); $_block_repeat=true; echo smarty_block_form(array('name'=>'add-forum-form'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

        <table class="ow_table_1 ow_form ow_full">
		<tr class="ow_alt2">
			<td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+add_new_forum_name'),$_smarty_tpl);?>
</td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'group-name'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'group-name'),$_smarty_tpl);?>

			</td>
		</tr>
		<tr class="ow_alt1">
			<td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+add_new_forum_section'),$_smarty_tpl);?>
</td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'section'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'section'),$_smarty_tpl);?>

			</td>
		</tr>
		<tr class="ow_alt2">
			<td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+add_new_forum_description'),$_smarty_tpl);?>
</td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'description'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'description'),$_smarty_tpl);?>

			</td>
		</tr>
		<tr class="ow_alt1">
          <td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+is_private'),$_smarty_tpl);?>
</td>
          <td class="ow_value"><?php echo smarty_function_input(array('name'=>'is-private'),$_smarty_tpl);?>
</td>
        </tr>
        <tr class="ow_alt2 private_forum_roles" style="display: none;">
          <td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+visible_to'),$_smarty_tpl);?>
</td>
          <td class="ow_value"><?php echo smarty_function_input(array('name'=>'roles'),$_smarty_tpl);?>
</td>
        </tr>
		</table>
		<div class="clearfix">
            <div class="ow_right">
        	<?php echo smarty_function_submit(array('name'=>'add','class'=>'ow_positive'),$_smarty_tpl);?>

        	</div>
        </div>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_form(array('name'=>'add-forum-form'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_cache['tag_stack']);?>

</div>
</div>


<div style="display: none">
<div class="edit_section_form" id="edit_section_form">
	<?php $_smarty_tpl->smarty->_cache['tag_stack'][] = array('form', array('name'=>'edit-section-form')); $_block_repeat=true; echo smarty_block_form(array('name'=>'edit-section-form'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<table class="ow_table_1 ow_form ow_full">
		<tr class="ow_alt2">
            <td class="ow_label"><span class="ow_nowrap"><?php echo smarty_function_text(array('key'=>'forum+edit_section_name'),$_smarty_tpl);?>
</span></td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'section-name'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'section-name'),$_smarty_tpl);?>

				<?php echo smarty_function_input(array('name'=>'section-id'),$_smarty_tpl);?>

			</td>
		</tr>			
		</table>
		<div class="clearfix">
            <div class="ow_right">
            <?php echo smarty_function_submit(array('name'=>'save','class'=>'ow_positive'),$_smarty_tpl);?>

            </div>
        </div>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_form(array('name'=>'edit-section-form'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_cache['tag_stack']);?>

</div>
</div>


<div style="display: none;">
<div class="edit_group_form"  id="edit_group_form">
	<?php $_smarty_tpl->smarty->_cache['tag_stack'][] = array('form', array('name'=>'edit-group-form')); $_block_repeat=true; echo smarty_block_form(array('name'=>'edit-group-form'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<table class="ow_table_1 ow_form ow_full">
		<tr class="ow_alt2">
			<td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+edit_group_name'),$_smarty_tpl);?>
</td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'group-name'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'group-name'),$_smarty_tpl);?>

				<?php echo smarty_function_input(array('name'=>'group-id'),$_smarty_tpl);?>

			</td>
		</tr>
		<tr class="ow_alt1">
			<td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+edit_group_description'),$_smarty_tpl);?>
</td>
			<td class="ow_value">
				<?php echo smarty_function_input(array('name'=>'description'),$_smarty_tpl);?>

				<?php echo smarty_function_error(array('name'=>'description'),$_smarty_tpl);?>

			</td>
		</tr>
		<tr class="ow_alt2">
		  <td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+is_private'),$_smarty_tpl);?>
</td>
		  <td class="ow_value"><?php echo smarty_function_input(array('name'=>'is-private'),$_smarty_tpl);?>
</td>
		</tr>
		<tr class="ow_alt1 private_forum_roles">
		  <td class="ow_label"><?php echo smarty_function_text(array('key'=>'forum+visible_to'),$_smarty_tpl);?>
</td>
		  <td class="ow_value"><?php echo smarty_function_input(array('name'=>'roles'),$_smarty_tpl);?>
</td>
		</tr>
		</table>
		<div class="clearfix">
            <div class="ow_right">
            <?php echo smarty_function_submit(array('name'=>'save','class'=>'ow_positive'),$_smarty_tpl);?>

            </div>
        </div>
	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_form(array('name'=>'edit-group-form'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_cache['tag_stack']);?>

</div>
</div><?php }
}
