Hallo zusammen,
ich habe gerade versucht mein Boldy Theme um 3 zusätzliche "Boxen" zu erweitern. Dazu habe ich die u. g. Änderungen in der home.php und Homepage.php vorgenommen.
Im Backend sehe ich zwar die zusätzlichen Boxen mit allen Einstellmöglichkeiten, aber im Frontend ist nur der "read more" Text zu sehen, obwohl im Backend schon Box Namen und Lorem Ipsum Beispieltexte vorhanden sind.
Hat jemand eine Idee wo der Fehler liegt?
Vielen Dank schon einmal.
home.php:
<!-- begin home boxes -->
<?php
if(of_get_option('boldy_homebox1title')!="" || of_get_option('boldy_homebox2title')!="" || of_get_option('boldy_homebox3title')!=""
|| of_get_option('boldy_homebox4title')!="" || of_get_option('boldy_homebox5title')!="" || of_get_option('boldy_homebox6title')!=""){?>
<div id="homeBoxes" class="clearfix">
<div class="homeBox">
<h2><?php echo of_get_option('boldy_homebox1title')?></h2>
<?php if(of_get_option('boldy_homebox1img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox1url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox1img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox1title');?>" /></a></p>
<?php } ?>
<p><?php echo of_get_option('boldy_homebox1')?></p>
<a href="<?php echo of_get_option('boldy_homebox1url')?>"><strong>Hier gibt's weitere Details »</strong></a>
</div>
<div class="homeBox">
<h2><?php echo of_get_option('boldy_homebox2title')?></h2>
<?php if(of_get_option('boldy_homebox2img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox2url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox2img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox2title');?>"/></a></p>
<?php } ?>
<?php echo of_get_option('boldy_homebox2')?></p>
<a href="<?php echo of_get_option('boldy_homebox2url')?>"><strong>Hier gibt's weitere Details »</strong></a>
</div>
<div class="homeBox last">
<h2><?php echo of_get_option('boldy_homebox3title')?></h2>
<?php if(of_get_option('boldy_homebox3img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox3url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox3img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox3title');?>"/></a></p>
<?php } ?>
<p><?php echo of_get_option('boldy_homebox3')?></p>
<a href="<?php echo of_get_option('boldy_homebox3url')?>"><strong>Hier gibt's weitere Details »</strong></a>
</div>
<div class="homeBox">
<h2><?php echo of_get_option('boldy_homebox4title')?></h2>
<?php if(of_get_option('boldy_homebox1img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox4url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox4img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox4title');?>" /></a></p>
<?php } ?>
<p><?php echo of_get_option('boldy_homebox4')?></p>
<a href="<?php echo of_get_option('boldy_homebox4url')?>"><strong>Read more »</strong></a>
</div>
<div class="homeBox">
<h2><?php echo of_get_option('boldy_homebox5title')?></h2>
<?php if(of_get_option('boldy_homebox2img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox5url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox5img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox5title');?>"/></a></p>
<?php } ?>
<?php echo of_get_option('boldy_homebox5')?></p>
<a href="<?php echo of_get_option('boldy_homebox5url')?>"><strong>Read more »</strong></a>
</div>
<div class="homeBox last">
<h2><?php echo of_get_option('boldy_homebox6title')?></h2>
<?php if(of_get_option('boldy_homebox6img')!="") { ?>
<p><a href="<?php echo of_get_option('boldy_homebox6url')?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_url(of_get_option('boldy_homebox6img')); ?>&h=101&w=274&zc=1" alt="<?php echo of_get_option('boldy_homebox6title');?>"/></a></p>
<?php } ?>
<p><?php echo of_get_option('boldy_homebox6')?></p>
<a href="<?php echo of_get_option('boldy_homebox6url')?>"><strong>Read more »</strong></a>
<?php } ?>
<!-- end home boxes -->
Homepage.php:
$options[] = array( "name" => "Box 4 Title",
"id" => $shortname."_homebox4title",
"std" => "Home Box 4",
"type" => "text");
$options[] = array( "name" => "Box 4",
"id" => $shortname."_homebox4",
"std" => "Lorem ipsum dolor sit etconsectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"type" => "textarea");
$options[] = array( "name" => "Box 4 Image",
"desc" => "Click to 'Upload Image' button and upload Box 4 image.",
"id" => $shortname."_homebox4img",
"std" => "",
"type" => "upload");
$options[] = array( "name" => "Box 4 URL",
"id" => $shortname."_homebox4url",
"std" => "#",
"type" => "text");
$options[] = array( "name" => "Box 5 Title",
"id" => $shortname."_homebox5title",
"std" => "Home Box 5",
"type" => "text");
$options[] = array( "name" => "Box 5",
"id" => $shortname."_homebox5",
"std" => "Lorem ipsum dolor sit etconsectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"type" => "textarea");
$options[] = array( "name" => "Box 5 Image",
"desc" => "Click to 'Upload Image' button and upload Box 5 image.",
"id" => $shortname."_homebox5img",
"std" => "$blogpath/library/images/sampleimages/ico_creative.png",
"type" => "upload");
$options[] = array( "name" => "Box 5 URL",
"id" => $shortname."_homebox5url",
"std" => "#",
"type" => "text");
$options[] = array( "name" => "Box 6 Title",
"id" => $shortname."_homebox6title",
"std" => "Home Box 6",
"type" => "text");
$options[] = array( "name" => "Box 6",
"id" => $shortname."_homebox6",
"std" => "Lorem ipsum dolor sit etconsectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"type" => "textarea");
$options[] = array( "name" => "Box 6 Image",
"desc" => "Click to 'Upload Image' button and upload Box 6 image.",
"id" => $shortname."_homebox6img",
"std" => "$blogpath/library/images/sampleimages/ico_technical.png",
"type" => "upload");
$options[] = array( "name" => "Box 6 URL",
"id" => $shortname."_homebox6url",
"std" => "#",
"type" => "text");