Jump to content

[Resolved] What are these "list_item" in footer docs ?


Recommended Posts

Working on my footer now, in the templates/box.documents.php, I noticed the following coding but I cannot see what it relates to. What are these "list item"  and what's their purpose ?

{foreach from=$DOCUMENTS_LIST_HOOKS item=list_item}
         <li><a href="{$list_item.href}" title="{$list_item.title}">{$list_item.title}</a></li>
         {/foreach}

Thanks

S.

Link to comment
Share on other sites

What you see in the skin code is so that, after plugins use hooks in the /classes/ code to add their results, there is now the means of displaying this additional data if any exists.

The hooks and plugins do not assign any data directly into $DOCUMENTS_LIST_HOOKS (technically, they can, but that's bad programming), but rather indirectly through the hook that listens for plugin code.

There is nothing bad that will happen if your skin has that code and $DOCUMENTS_LIST_HOOKS is empty. But if not empty, and the code isn't there, you will be missing out on what the plugin is providing.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...