Problem mit zusätzlich eingefügten "Boxen" im Boldy Theme

  • 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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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')); ?>&amp;h=101&amp;w=274&amp;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 &raquo;</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");

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!