Files (search_results.html and jumpbox.html) there are 2 almost identical lines

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
Locked
User avatar
hd321kbps
Registered User
Posts: 188
Joined: Tue Oct 16, 2012 10:16 am
Location: Russian
Name: Igor Marchuk
Contact:

Files (search_results.html and jumpbox.html) there are 2 almost identical lines

Post by hd321kbps » Thu Nov 06, 2014 9:22 am

Files (search_results.html and jumpbox.html) there are 2 almost identical lines. Why the <P> tag does not define the same class (jumpbox-return).

search_results.html

Code: Select all

<!-- IF SEARCH_TOPIC -->
	<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}">{L_RETURN_TO_TOPIC}</a></p>
<!-- ELSE -->
	<p><a class="arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}">{L_GO_TO_SEARCH_ADV}</a></p>
<!-- ENDIF -->
jumpbox.html

Code: Select all

<!-- ELSEIF SEARCH_TOPIC -->
	<p class="jumpbox-return"><a class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}" accesskey="r">{L_RETURN_TO_TOPIC}</a></p>
<!-- ELSEIF S_SEARCH_ACTION -->
	<p class="jumpbox-return"><a class="left-box arrow-{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}" accesskey="r">{L_GO_TO_SEARCH_ADV}</a></p>
<!-- ENDIF -->
It would be easier for redoing style though!

User avatar
Lumpy Burgertushie
Registered User
Posts: 66268
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Files (search_results.html and jumpbox.html) there are 2 almost identical lines

Post by Lumpy Burgertushie » Thu Nov 06, 2014 3:54 pm

in the jumpbox file the p tag has class="jumpbox-return

in the other file it is just a p tag with whatever css is defined for it in the stylesheet.

not sure what the question is about or what problem this causes when "redoing' a style.

robert
I am going to be out of town and off line for a week . see ya when I get back.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
hd321kbps
Registered User
Posts: 188
Joined: Tue Oct 16, 2012 10:16 am
Location: Russian
Name: Igor Marchuk
Contact:

Re: Files (search_results.html and jumpbox.html) there are 2 almost identical lines

Post by hd321kbps » Thu Nov 06, 2014 10:04 pm

You can do it one rule for changes to these blocks, because they look the same, and then two.

Locked

Return to “[3.1.x] Styles Support & Discussion”