File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
administrator/components/com_templates/views/style/tmpl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010defined ('_JEXEC ' ) or die;
1111
12- // Initiasile related data.
12+ // Initialise related data.
1313JLoader::register ('MenusHelper ' , JPATH_ADMINISTRATOR . '/components/com_menus/helpers/menus.php ' );
1414$ menuTypes = MenusHelper::getMenuLinks ();
1515$ user = JFactory::getUser ();
2626 <?php foreach ($ menuTypes as &$ type ) : ?>
2727 <li>
2828 <div class="menu-links-block">
29- <button class="btn jform-rightbtn" type="button" onclick="jQuery('.<?php echo $ type ->menutype ; ?> ').attr('checked', !jQuery('.<?php echo $ type ->menutype ; ?> ').attr('checked'));">
29+ <button class="btn jform-rightbtn" type="button" onclick="jQuery('.menutype- <?php echo $ type ->menutype ; ?> ').attr('checked', !jQuery('.menutype- <?php echo $ type ->menutype ; ?> ').attr('checked'));">
3030 <span class="icon-checkbox-partial" aria-hidden="true"></span> <?php echo JText::_ ('JGLOBAL_SELECTION_INVERT ' ); ?>
3131 </button>
3232 <h5><?php echo $ type ->title ?: $ type ->menutype ; ?> </h5>
3333
3434 <?php foreach ($ type ->links as $ link ) : ?>
3535 <label class="checkbox small" for="link<?php echo (int ) $ link ->value ; ?> " >
36- <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 == $ this ->item ->id ) : ?> checked="checked"<?php endif ; ?> <?php if ($ link ->checked_out && $ link ->checked_out != $ user ->id ) : ?> disabled="disabled"<?php else : ?> class="chk-menulink <?php echo $ type ->menutype ; ?> "<?php endif ; ?> />
36+ <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 == $ this ->item ->id ) : ?> checked="checked"<?php endif ; ?> <?php if ($ link ->checked_out && $ link ->checked_out != $ user ->id ) : ?> disabled="disabled"<?php else : ?> class="chk-menulink menutype- <?php echo $ type ->menutype ; ?> "<?php endif ; ?> />
3737 <?php echo JLayoutHelper::render ('joomla.html.treeprefix ' , array ('level ' => $ link ->level )) . $ link ->text ; ?>
3838 </label>
3939 <?php endforeach ; ?>
You can’t perform that action at this time.
0 commit comments