phpconfigurationsmartyojs

OJS-Location of configuration variable


Do any one has any idea from where the below $ isUserLoggedInor $hideRegisterLink variable is fetching its data? The code is from navar.tpl in OJS http://pkp.sfu.ca/?q=ojs.

Note:OJS uses smarty templating

   {if $isUserLoggedIn}
        <li id="userHome"><a href="{url page="user"}">
   {translate  key="navigation.userHome"}</a></li>


    {else}

        <li id="login"><a href="{url page="login"}">
                     {translate key="navigation.login"}</a></li>

        {if !$hideRegisterLink}
            <li id="register">
                    <a href="{url page="user"  op="register"}">
                    {translate key="navigation.register"}</a></li>
        {/if}

    {/if}{* $isUserLoggedIn *}

Solution

  • If anyone is interested other than me,Its coming from pre-defined variable from OJS it self.you can visit this page for more info http://pkp.sfu.ca/ojs/docs/technicalreference/2.1/userInterfaceVariables.html