Guest User

Untitled

a guest
Jul 7th, 2011
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. <?php get_header();?>
  2. <div id="main">
  3. <div id="maintext">
  4. <h2>Welcome to <?php bloginfo('blogname');?></h2>
  5. <?php
  6. $welcome_message = stripslashes(get_option('CT_welcome_message'));
  7. $site_desc = stripslashes(get_option('CT_site_desc'));
  8. ?>
  9. <h1><?php if ($welcome_message) echo stripslashes($welcome_message); else echo "Place holder welcome title";?></h1>
  10. <p><?php if ($site_desc) echo stripslashes($site_desc); else echo "This is place holder short description about your site, you can change this default text from admin theme options. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec placerat, mi eu posuere facilisis, dolor sapien auctor orci, vel posuere velit nibh ac tortor. Suspendisse velit erat, sodales id iaculis harum quidem rerum facilis est et expedita distinctio.</p>
  11. <p>Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.";?></p>
  12. <?php
  13. $homebox_title1 = get_option('CT_homebox_title1');
  14. $homebox_desc1 = get_option('CT_homebox_desc1');
  15. $homebox_desturl1 = get_option('CT_homebox_desturl1');
  16. $homebox_image1 = get_option('CT_homebox_image1');
  17. $homebox_title2 = get_option('CT_homebox_title2');
  18. $homebox_desc2 = get_option('CT_homebox_desc2');
  19. $homebox_desturl2 = get_option('CT_homebox_desturl2');
  20. $homebox_image2 = get_option('CT_homebox_image2');
  21. ?>
  22. <div class="h-line"><hr /></div>
  23. <div class="box">
  24. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Box #1')) { ?>
  25. <div class="box-main">
  26. <div class="icon"><img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo ($homebox_image1) ? $homebox_image1 : bloginfo('template_directory').'/images/img-main1.jpg';?>&amp;h=90&amp;w=66&amp;zc=1" alt="" /></div>
  27. <p>
  28. <strong><a href="<?php echo ($homebox_desturl1) ? $homebox_desturl1 : "#";?>"><?php echo ($homebox_title1) ? $homebox_title1 : "Voluptatem accusantium";?></a></strong><br />
  29. <?php echo ($homebox_desc1) ? $homebox_desc1 : "This is homepage box #1 widgetable area, you can use Page/Post to Box Widget here. Doloremque laudanti totam rem aperiam, sunt in culpa qui officia deserunt mollitia animi.";?>
  30. </p>
  31. <div class="clr"></div>
  32. </div>
  33. <?php } ?>
  34. </div>
  35. <div class="spacer">&nbsp;</div>
  36. <div class="box">
  37. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Box 2')) { ?>
  38. <div class="box-main">
  39. <div class="icon"><img src="<?php bloginfo('template_directory');?>/timthumb.php?src=<?php echo ($homebox_image2) ? $homebox_image2 : bloginfo('template_directory').'/images/img-main2.jpg';?>&amp;h=90&amp;w=66&amp;zc=1" alt="" /></div>
  40. <p>
  41. <strong><a href="<?php echo ($homebox_desturl2) ? $homebox_desturl2 : "#";?>"><?php echo ($homebox_title2) ? $homebox_title2 : "Duis aute reprehenderit";?></a></strong><br />
  42. <?php echo ($homebox_desc2) ? $homebox_desc2 : "This is homepage box #2 widgetable area, you can use Page/Post to Box Widget here. Accusantium dolorem que velit esse cillum dolore fugiatnul ulla pariatur sint occaecat nesciunt.";?>
  43. </p>
  44. <div class="clr"></div>
  45. </div>
  46. <?php } ?>
  47. </div>
  48. </div><!-- end of maintext -->
  49. </div><!-- end of main -->
  50. <?php wp_reset_query();?>
  51. <?php get_sidebar();?>
  52. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment