coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: technaf on December 26, 2006, 01:11:27 PM

Title: add/remove links / buttons from green flower theme
Post by: technaf on December 26, 2006, 01:11:27 PM
I'm using green flower theme downloaded from (http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98541) .. we need to know how to add / remove links/buttons.  i've searched the forum but could not find my answer to our particular issue.  such as we want to add more links under "Gallery Menu" and remove links from "Gallery Roll.   

can anyone tell me detail step by stp instructions.  i'd highly appreciate your quick response.

thank you.
Title: Re: add/remove links / buttons from green flower theme
Post by: Joachim Müller on December 26, 2006, 01:27:37 PM
Edit themes/yourtheme/theme.php
Title: Re: add/remove links / buttons from green flower theme
Post by: technaf on December 26, 2006, 01:47:30 PM
thx for quick response.  sorry but im a newbee.  what is the code and where exactly do i put the codes below (theme.php file)? -- where to bgin and where to end?  I appreciate your patience.

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS', 1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">

          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT

<!-- BEGIN {BLOCK_ID} -->
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0"

<!-- END {BLOCK_ID} -->
EOT;

?>
Title: Re: add/remove links / buttons from green flower theme
Post by: Joachim Müller on December 26, 2006, 10:56:57 PM
Template error - failed to find block ... or How to modify SYS_MENU or SUB_MENU (http://forum.coppermine-gallery.net/index.php?topic=26897.0)