E107: sitecontactinfo and contact form have the same style ID

Created on 20 Feb 2019  路  7Comments  路  Source: e107inc/e107

image

$ns -> tablerender(LANCONTACT_01, $text,"contact");
$ns -> tablerender(LANCONTACT_02, $text, "contact");

could it be changed to contact-info ?
they use already different templates

$CONTACT_TEMPLATE['info']
$CONTACT_WRAPPER['form']

Thanks

Help Wanted enhancement

Most helpful comment

Thank you @Jimmi08 @fizi .

Yes, I believe the correct logic for the render ID would be template name and template key.

ie.

$CONTACT_TEMPLATE['menu'] = contact-menu
$FORUM_VIEWTOPIC_TEMPLATE['replies']  = forum-viewtopic-replies

All 7 comments

Tablerender about successful email has no id:
At least "contact" would be nice.
$ns->tablerender('', "<div class='alert alert-success'>".$message."</div>");

@fizi @Jimmi08

@CaMer0n and I were thinking to use three new ID's: contact-info, contact-form, contact-menu. This may some break existing themes but it will increase consistency and allow styling for all areas. What do you think?

It would be great if it has some logic :
plugin and template key
yes, that suggestion is ok. And yes, it will break some themes, but it can be easily fixed. There should be a list of what to check when you update.

I agree with Jimmi08.

Thank you @Jimmi08 @fizi .

Yes, I believe the correct logic for the render ID would be template name and template key.

ie.

$CONTACT_TEMPLATE['menu'] = contact-menu
$FORUM_VIEWTOPIC_TEMPLATE['replies']  = forum-viewtopic-replies

Updated contact.php. If you come across other inconsistencies then please list them here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CaMer0n picture CaMer0n  路  4Comments

rica-carv picture rica-carv  路  5Comments

Jimmi08 picture Jimmi08  路  3Comments

Evgura picture Evgura  路  3Comments

Norwayman picture Norwayman  路  3Comments