coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: serg5777 on June 05, 2012, 06:41:12 AM

Title: Print the {TITLE} in another location
Post by: serg5777 on June 05, 2012, 06:41:12 AM
Where should I take, I have shown by an arrow in the screenshot. Thank you
http://s019.radikal.ru/i634/1206/b3/e77f370decf3.jpg
Title: Re: Print the {TITLE} in another location
Post by: Αndré on June 05, 2012, 10:05:17 AM
I assume you want to display the picture title in the navigation bar? What should be displayed if there's no picture title set? Nothing? The file name?

Please post your current modification.


Moving from permission to themes board.
Title: Re: Print the {TITLE} in another location
Post by: serg5777 on June 05, 2012, 10:43:10 AM
That's right, I need to file name, title pictures :)
Title: Re: Print the {TITLE} in another location
Post by: serg5777 on June 05, 2012, 10:44:39 AM
In <<<$template_img_navbar>>>
<td align="center" class="navmenu" width="48">{TITLE}</td>
Title: Re: Print the {TITLE} in another location
Post by: Αndré on June 05, 2012, 11:45:10 AM
Copy the function theme_html_img_nav_menu from themes/sample/theme.php to your theme's theme.php file if it doesn't exist. Then, find
'{LOCATION}' => $location,
and below, add
'{TITLE}' => $CURRENT_PIC_DATA['title'] ? $CURRENT_PIC_DATA['title'] : $CURRENT_PIC_DATA['filename'],
Title: Re: Print the {TITLE} in another location
Post by: serg5777 on June 05, 2012, 12:00:32 PM
Many thanks Αndrй, as always helped out!  ;)
Title: Re: Print the {TITLE} in another location
Post by: Αndré on June 05, 2012, 12:42:20 PM
As always, please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.