Advertisement
Guest User

Untitled

a guest
Oct 9th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Modele blog
  4. */
  5. ?>
  6. <?php
  7. define('WP_USE_THEMES', false);
  8. require('./wp-load.php');
  9. ?>
  10.  
  11. <?php
  12. get_header();
  13.  
  14. if ( option::get('intro_show') == 'on' ) {
  15.  
  16. ?><div id="welcome">
  17.  
  18. <?php
  19. $avatar = trim(option::get('intro_avatar'));
  20. if ( !empty($avatar) ) {
  21.  
  22. if ( simple_email_check($avatar) ) {
  23.  
  24. echo get_avatar( $avatar, 95 );
  25.  
  26. } else {
  27.  
  28. echo '<img src="' . $avatar . '" />';
  29.  
  30. }
  31.  
  32. }
  33. ?>
  34.  
  35. <h2><?php echo option::get('intro_title'); ?></h2>
  36. <?php echo stripslashes(option::get('intro_content')); ?>
  37. <div class="clear"></div>
  38.  
  39. </div><?php
  40.  
  41. }
  42. ?>
  43.  
  44. <div id="content">
  45.  
  46. <?php
  47. if ( option::get('exclude_cats_home') != 'off' ) {
  48. if ( count(option::get('exclude_cats_home')) ) {
  49. $exclude_cats = implode(",-", (array) option::get('exclude_cats_home'));
  50. $exclude_cats = '-' . $exclude_cats;
  51. $args['cat'] = $exclude_cats;
  52. }
  53. }
  54.  
  55. $args['paged'] = $paged;
  56. if ( count($args) >= 1 ) query_posts($args);
  57.  
  58. get_template_part('loop');
  59. ?>
  60.  
  61. </div>
  62.  
  63. <?php get_template_part('pagination'); ?>
  64.  
  65. <div class="clear"></div>
  66.  
  67. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement