Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N Link Manager
#12
hi there,
i like your plugin very much and so i chose it for my bootstrap getsimple website.
since i have a long list of links, i chose to use the bootstrap accordion which. by applying this, i hoped to show only the category titles first and on click show the link list belonging to the respective category.

the only trouble is that my accordion is not collapsed at first - all links show in a veeeery long list. i am able to toggle all categories, but this is just the wrong way 'round. does anybody have a clue what i could do to make the accordion work the correct way?

this is the customized code snippet from the functions.php:

PHP Code:
if (!empty($links)) {
 
   foreach ($links as $id=>$link) {
 
     $c catIdx($link['cid']);
 
     if ($cid !== $c) {
 
       $cid $c;
 
       $html .= "</ul>

 <ul>

<div class=\"panel panel-default\">
    <div class=\"panel-heading\" role=\"tab\" id=\"überschrift" 
$cats[$cid]['name'] . "\">
      <h2 class=\"panel-title\">
        <a role=\"button\" data-toggle=\"collapse\" data-parent=\"#accordion\" href=\"#collapse" 
$cats[$cid]['name'] . "\" aria-expanded=\"true\" aria-controls\"collapse" $cats[$cid]['name'] . "\">
          " 
. (empty($cats[$cid][$n]) ? $cats[$cid]['name'] : $cats[$cid][$n]) . "
        </a>
      </h2>
    </div>
    <div id=\"collapse" 
$cats[$cid]['name'] . "\" class=\"panel-collapse collapse in\" role=\"tabpanel\" aria-labelledby=\"überschrift" $cats[$cid]['name'] . "\">
        <div class=\"panel-body\">"
;
 
     }
 
     $html .= "<li><a href=\"${link['url']}\" target=\"_blank\" rel=\"nofollow\">" . (empty($link[$n]) ? $link['name'] : $link[$n]) ."</a>";
 
     if (!empty($link[$d]) || !empty($link['description'])) {
 
       $html .= ' &nbsp;&mdash;&nbsp; ' . (empty($link[$d]) ? $link['description'] : $link[$d]);
 
     }
 
     $html .= "</li>";
 
   }
 
   $html "<div class=\"panel-group\" id=\"accordion\" role=\"tablist\" aria-multiselectable=\"true\">" $html "</div>
    </div>
  </div>
</div>"
;
 
 }
 
 return $html;


i am curious what you will advice me - thanks in advance!
Reply


Messages In This Thread
I18N Link Manager - by lbarsov - 2014-10-21, 11:24:59
RE: I18N Link Manager - by Oleg06 - 2014-10-21, 16:05:15
RE: I18N Link Manager - by lbarsov - 2014-10-22, 20:57:10
RE: I18N Link Manager - by Oleg06 - 2014-10-22, 23:07:45
RE: I18N Link Manager - by Megajax - 2014-10-23, 04:12:14
I18N Link Manager v2.1 - by lbarsov - 2014-10-23, 23:36:06
RE: I18N Link Manager - by Oleg06 - 2014-10-24, 02:48:04
RE: I18N Link Manager - by Oleg06 - 2014-10-24, 02:55:04
RE: I18N Link Manager - by lbarsov - 2014-10-25, 02:41:46
I18N Link Manager v2.2 - by lbarsov - 2014-10-25, 02:38:09
RE: I18N Link Manager - by datiswous - 2014-10-27, 21:06:23
RE: I18N Link Manager - by pigsound - 2016-04-14, 08:03:35
RE: I18N Link Manager - by datiswous - 2016-04-14, 20:09:24
RE: I18N Link Manager - by pigsound - 2016-04-14, 23:29:02
RE: I18N Link Manager - by Oleg06 - 2016-04-15, 01:24:32
RE: I18N Link Manager - by Oleg06 - 2016-04-15, 03:54:54
RE: I18N Link Manager - by S60Team - 2017-10-20, 00:29:44
RE: I18N Link Manager - by elubben - 2019-04-27, 03:31:43
RE: I18N Link Manager - by datiswous - 2019-04-28, 03:33:04
RE: I18N Link Manager - by elubben - 2019-04-29, 01:15:30



Users browsing this thread: 1 Guest(s)