Skip to content

Remove hardcoded hostnames from templates #9

@mpolishchuck

Description

@mpolishchuck

There's some hardcode in page templates.
Examples:
https://github.com/ikto/ojs-science/blob/ikto-ojs-2_4_7/plugins/themes/bootstrappish/templates/common/header.tpl#L207
https://github.com/ikto/ojs-science/blob/ikto-ojs-2_4_7/plugins/themes/bootstrappish/templates/common/header.tpl#L267
Due to this hardcode this project can't have any dev instance with different address, because the sliders won't work.
Need to replace these parts with more appropriate. I suppose Smarty variable currentJournal can help.
This variable is being created here:
https://github.com/ikto/ojs-science/blob/ikto-ojs-2_4_7/classes/template/TemplateManager.inc.php#L63

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions