Support > cpg1.6 themes (visuals)
Customize HTML (visual) displayimage.php
Hanna.:
Hi! I need to add some manual HTML into the displayimage.php page (ex. https://kristincavallari.net/gallery/displayimage.php?album=343&pid=20729#top_display_media)
Need reference of where to make customizations to above, and below the normal_ image.
ron4mac:
Copy the $template_display_media section from include/themes.inc.php (lines 853-904) into your theme.php file.
Make your modifications to it there.
Hanna.:
Tried to put this in, but no luck, just error message saying "Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in /home/minowncu/public_html/addons/kristincavallari.net/gallery/themes/feb2018/theme.php on line 279"
--- Code: ---/******************************************************************************
** Section <<<$template_display_media>>> - START
******************************************************************************/
// HTML template for intermediate image display
$template_display_media = <<<EOT
<tr>
<td align="center" class="display_media" nowrap="nowrap">
<table width="100%" cellspacing="2" cellpadding="0">
<tr>
<td align="center" style="{SLIDESHOW_STYLE}">
<span><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- big responsive1 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3745573792438232"
data-ad-slot="2050586508"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></span>
{IMAGE}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" cellspacing="2" cellpadding="0" class="tableb tableb_alternate">
<tr>
<td align="center">
{ADMIN_MENU}
</td>
</tr>
</table>
<!-- BEGIN img_desc -->
<table cellpadding="0" cellspacing="0" class="tableb tableb_alternate" width="100%">
<!-- BEGIN title -->
<tr>
<td class="tableb tableb_alternate"><h1 class="pic_title">
{TITLE}
</h1></td>
</tr>
<!-- END title -->
<!-- BEGIN caption -->
<tr>
<td class="tableb tableb_alternate"><h2 class="pic_caption">
{CAPTION}
</h2></td>
</tr>
<!-- END caption -->
</table>
<!-- END img_desc -->
</td>
</tr>
EOT;
--- End code ---
ron4mac:
You missed a few lines at the bottom:
--- Code: ---/******************************************************************************
** Section <<<$template_display_media>>> - END
******************************************************************************/
} //{THEMES}
--- End code ---
Hanna.:
--- Quote from: ron4mac on February 05, 2018, 02:31:39 am ---You missed a few lines at the bottom:
--- Code: ---/******************************************************************************
** Section <<<$template_display_media>>> - END
******************************************************************************/
} //{THEMES}
--- End code ---
--- End quote ---
Leaves blank page... https://kristincavallari.net/gallery/displayimage.php?album=445&pid=27226
Navigation
[0] Message Index
[#] Next page
Go to full version