Your IP : 216.73.216.165


Current Path : /home/digilove/www/110/plugins/system/yt/includes/admin/template/
Upload File :
Current File : /home/digilove/www/110/plugins/system/yt/includes/admin/template/template_assignment.php

<?php
/*
 * ------------------------------------------------------------------------
 * Copyright (C) 2009 - 2013 The YouTech JSC. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
// no direct access
defined('_JEXEC') or die;

// Initiasile related data.
require_once JPATH_ADMINISTRATOR.'/components/com_menus/helpers/menus.php';
$menuTypes = MenusHelper::getMenuLinks();
$user = JFactory::getUser();
?>

<div class="assignment clearfix">

<div class="control-group">

  <div class="control-label">
    <label id="jform_menuselect-lbl" for="jform_menuselect"><?php echo JText::_('JGLOBAL_MENU_SELECTION'); ?></label>
  </div>

  <div class="controls">
    <div class="btn-toolbar">
      <button type="button" class="btn" onclick="$$('.chk-menulink').each(function(el) { el.checked = !el.checked; });">
        <i class="icon-checkbox-partial"></i> <?php echo JText::_('JGLOBAL_SELECTION_INVERT'); ?>
      </button>
    </div>
    <div id="menu-assignment">
      <ul class="menu-links thumbnails row-fluid">
        <?php foreach ($menuTypes as &$type) : ?>
            <li class="span3">
              <div class="thumbnail">
              <h5><?php echo $type->title ? $type->title : $type->menutype; ?></h5>
                <?php foreach ($type->links as $link) :?>
                  <label class="checkbox small" for="link<?php echo (int) $link->value;?>" >
                  <input type="checkbox" name="jform[assigned][]" value="<?php echo (int) $link->value;?>" id="link<?php echo (int) $link->value;?>"<?php if ($link->template_style_id == $form->getValue('id')):?> checked="checked"<?php endif;?><?php if ($link->checked_out && $link->checked_out != $user->id):?> disabled="disabled"<?php else:?> class="chk-menulink "<?php endif;?> />
                    <?php echo $link->text; ?>
                  </label>
                <?php endforeach; ?>
              </div>
            </li>
        <?php endforeach; ?>
      </ul>
    </div>
  </div>

</div>

</div>