Quantcast
A Graphics.com site
PWAwrestling's picture
5 pencils

Wordpress template question

Hey, everybody. I'm trying to customize a wordpress template to include a flash box in the first big area, but I can't figure out what I'm supposed to do to my code here to make it work.

The template in question can be viewed here: http://www.grizztopia.com/pwawrestling/

The flash movie (just created for spacing purposes) is here: http://www.pwawrestling.ca/greeny.swf

And the code is here. I figure it's the "tier1main" that's the area I want to change up, but I'm not sure what to do about the php code in there. Anybody got any suggestions?:

-------------------

<?php global $themeoptionsprefix; get_header(); ?>
<?php $themeison=get_option($themeoptionsprefix.'_newsmaglayon'); if(!isset($themeison) || empty($themeison) || ($themeison == 'off') ){include (TEMPLATEPATH . '/index.php');}else{?>

<?php global $wpdb; $featuredpostscatname1=get_option($themeoptionsprefix.'_featuredcat1');
$featuredpostscatname1=str_replace("&","&",$featuredpostscatname1);
$featuredpostscat1 = get_cat_id($featuredpostscatname1);

if(isset($featuredpostscat1) && !empty($featuredpostscat1)){ include (TEMPLATEPATH . '/includes/featured1.php'); } else { ?>

/images/samplethumb5.jpg" alt="" border=""/>
Place holder post title
This space will contain the excerpt from the headlined post for "Featured Category #1".
Read More

/images/samplethumb4.jpg" alt="" border=""/>
This is a sample headline for a Featured Category #1 post »

<?php } ?>

<?php global $wpdb; $featuredpostscatname2=get_option($themeoptionsprefix.'_featuredcat2');
$featuredpostscatname2=str_replace("&","&",$featuredpostscatname2);
$featuredpostscat2 = get_cat_id($featuredpostscatname2);

if(isset($featuredpostscat2) && !empty($featuredpostscat2)){ include (TEMPLATEPATH . '/includes/featured2.php'); } else { ?>

Featured Category #2

/images/samplethumb1.jpg" alt="" border=""/>
Place holder post title
This space will showcase thumbnails and headlines from a category of your choice.
All you have to do is...

/images/samplethumb2.jpg" alt="" border=""/>
Place holder post title
...select a category from the theme options page next to the option that reads "Featured Category #2".

/images/samplethumb3.jpg" alt="" border=""/>
Place holder post title
To prevent the layout from becoming distored due to too many post excerpts, only three posts will be displayed.

<?php } ?>

<?php if(get_option($themeoptionsprefix.'_turnonofftierx') != "off" ){ ?>
<?php if(get_option($themeoptionsprefix.'_tierxposition') == "under tier one" ){ ?>
<?php include (TEMPLATEPATH . '/includes/tierX.php'); ?>
<?php } ?>
<?php } ?>

<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('IndexPageSidebar') ) : ?>

Categories

    <?php wp_list_categories('title_li='); ?>

<?php endif; ?>

<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>

<?php } else { ?>

<?php } ?>

<?php global $wpdb; $featuredpostscatname3=get_option($themeoptionsprefix.'_featuredcat3');
$featuredpostscatname3=str_replace("&","&",$featuredpostscatname3);
$featuredpostscat3 = get_cat_id($featuredpostscatname3);

if(isset($featuredpostscat3) && !empty($featuredpostscat3)){ include (TEMPLATEPATH . '/includes/featured3.php'); } else { ?>

Featured Category #3

/images/samplethumb6.jpg" alt="" border=""/>
Text from featured post with photo pulled from "Featured Category #3". One post with photo will be pulled from
3rd featured category. To choose category go to theme options page setting for "Featured Category #3". Read More

<?php } ?>

<?php global $wpdb; $featuredpostscatname4=get_option($themeoptionsprefix.'_featuredcat4');
$featuredpostscatname4=str_replace("&","&",$featuredpostscatname4);
$featuredpostscat4 = get_cat_id($featuredpostscatname4);

if(isset($featuredpostscat4) && !empty($featuredpostscat4)){ include (TEMPLATEPATH . '/includes/featured4.php'); } else { ?>

Featured Category #4

/images/samplethumb8.jpg" alt="" border=""/>
Place holder post title
This space will showcase thumbnails and headlines from a category of your choice.

/images/samplethumb9.jpg" alt="" border=""/>
Place holder post title
All you have to do is select a category from the theme options page next to the option that...

/images/samplethumb10.jpg" alt="" border=""/>
Place holder post title
...reads "Featured Category #4". Only the most recent three posts will be displayed.

<?php } ?>

<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>

<?php if(get_option($themeoptionsprefix.'_filler120600') <> "" ){ ?>

<?php echo stripslashes(get_option($themeoptionsprefix.'_filler120600')); ?>

<?php } else { ?>
/images/fsplash120.jpg" alt="" border=""/>
<?php } ?>

<?php } ?>

<?php if(get_option($themeoptionsprefix.'_filler120600hide') != "hide" ){ ?>

<?php } else { ?>

<?php } ?>

<?php global $wpdb; $featuredpostscatname5=get_option($themeoptionsprefix.'_featuredcat5');
$featuredpostscatname5=str_replace("&","&",$featuredpostscatname5);
$featuredpostscat5 = get_cat_id($featuredpostscatname5);

if(isset($featuredpostscat5) && !empty($featuredpostscat5)){ include (TEMPLATEPATH . '/includes/featured5.php'); } else { ?>

Featured Category #5

/images/samplethumb7.jpg" alt="" border=""/>
This is some text from the featured post with photo pulled from "Featured Category #4". This will be a brief excerpt. One post with photo will be pulled from the
fourth featured category, followed by linked headlines of more posts from the category. To choose the category for this section go to the theme options pagea and change
the setting for "Featured Category #5". Read More

Other Topics

Mintsauce's picture
976 pencils

You might be in the wrong forum. I don't think I've ever seen any Wordpress related question here.

If you keep your ears open, you'll see better.

Leaky Penny's picture
1616 pencils

I agree it's the wrong forum, but your question is one I'm asking myself.

Leaky Penny
www.leakypenny.com

We artists are indestructible, even in a prison cell or concentration camp I would be almighty in my own world of art. Even if I had to paint my pictures with my wet tongue on the dusty floor of my cell. - Pablo Picasso

Latest critique

  • Frey's Boutique
  • New Macsolutions logo /BC - Advice Appreciated

On Demand Videos

Photoshop: From Ho-hum to Wow!
You can use Photoshop to bring out the magic of photos that are muddy, soft, or blandly composed.
watch a preview

On Demand Videos: Video tutorials for advertising pros and designers providing tools and information you can trust — and use — on your very next project. Subscribe today!

Creativebits recommends

stocklogos.com logoawards.mediabistro.com

Marketplace