Advertisement
anguyen

Site

Mar 9th, 2011
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. BP Groups Page:
  2.  
  3. <?php get_header() ?>
  4.  
  5. <div id="container">
  6.  
  7. <div id="content">
  8.  
  9. <form action="" method="post" id="groups-directory-form" class="dir-
  10.  
  11. form">
  12. <h3><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if (
  13.  
  14. is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo
  15.  
  16. bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a
  17.  
  18. Group', 'buddypress' ) ?></a><?php endif; ?></h3>
  19.  
  20. <?php do_action( 'bp_before_directory_groups_content' ) ?>
  21.  
  22. <div id="group-dir-search" class="dir-search">
  23. <?php bp_directory_groups_search_form() ?>
  24. </div><!-- #group-dir-search -->
  25.  
  26. <div class="item-list-tabs">
  27. <ul>
  28. <li class="selected" id="groups-all"><a
  29.  
  30. href="<?php bp_root_domain() ?>"><?php printf( __( 'All Groups (%s)', 'buddypress' ),
  31.  
  32. bp_get_total_group_count() ) ?></a></li>
  33.  
  34. <?php if ( is_user_logged_in() &&
  35.  
  36. bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
  37. <li id="groups-personal"><a href="<?
  38.  
  39. php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/my-groups/' ?>"><?php printf(
  40.  
  41. __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user(
  42.  
  43. bp_loggedin_user_id() ) ) ?></a></li>
  44. <?php endif; ?>
  45.  
  46. <?php do_action(
  47.  
  48. 'bp_groups_directory_group_types' ) ?>
  49.  
  50. <li id="groups-order-select" class="last
  51.  
  52. filter">
  53.  
  54. <?php _e( 'Order By:', 'buddypress' )
  55.  
  56. ?>
  57. <select>
  58. <option value="active"><?php
  59.  
  60. _e( 'Last Active', 'buddypress' ) ?></option>
  61. <option value="popular"><?php
  62.  
  63. _e( 'Most Members', 'buddypress' ) ?></option>
  64. <option value="newest"><?php
  65.  
  66. _e( 'Newly Created', 'buddypress' ) ?></option>
  67. <option
  68.  
  69. value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
  70.  
  71. <?php do_action(
  72.  
  73. 'bp_groups_directory_order_options' ) ?>
  74. </select>
  75. </li>
  76. </ul>
  77. </div><!-- .item-list-tabs -->
  78.  
  79. <div id="groups-dir-list" class="groups dir-list">
  80. <?php locate_template( array( 'groups/groups-
  81.  
  82. loop.php' ), true ) ?>
  83. </div><!-- #groups-dir-list -->
  84.  
  85. <?php do_action( 'bp_directory_groups_content' ) ?>
  86.  
  87. <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-
  88.  
  89. filter' ) ?>
  90.  
  91. </form><!-- #groups-directory-form -->
  92.  
  93. <?php do_action( 'bp_after_directory_groups_content' ) ?>
  94.  
  95. </div><!-- #content -->
  96.  
  97. <?php locate_template( array( 'sidebar.php' ), true ) ?>
  98.  
  99. </div><!-- #container -->
  100.  
  101.  
  102.  
  103. <?php get_footer() ?>
  104.  
  105. ===========================================================================================
  106. Theme Page:
  107.  
  108.  
  109. <?php
  110. global $options;
  111. foreach ($options as $value) {
  112. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  113. }
  114. $dateformat = get_option('date_format');
  115. $timeformat = get_option('time_format');
  116. ?>
  117.  
  118. <?php get_header(); ?>
  119.  
  120. <div id="main">
  121.  
  122. <div class="wrapper">
  123.  
  124. <div class="sep sepMenu">&nbsp;</div>
  125.  
  126. <div id="content">
  127.  
  128. <?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?>
  129.  
  130. <div class="single single-page">
  131.  
  132. <!--h1><?php the_title(); ?></h1-->
  133.  
  134. <div id="postFuncs">
  135.  
  136. <h2><a href="http://worldboatingnetwork.com">Home</a> » <span class="current"><?php the_title(); ?></span></h2> </div><!-- end #postFuncs -->
  137.  
  138. <div class="entry">
  139.  
  140. <?php the_content(); ?>
  141.  
  142. </div>
  143. <?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  144. <p class="more"><?php edit_post_link( __('Edit this post &raquo;', 'wpzoom'), '', ''); ?></p>
  145.  
  146. </div><!-- end .single -->
  147.  
  148. <div class="cleaner">&nbsp;</div>
  149.  
  150. <?php endwhile; else: ?>
  151.  
  152. <p><?php _e('Sorry, no posts matched your criteria.', 'wpzoom') ?></p>
  153. <?php endif; ?>
  154.  
  155. </div><!-- end #content -->
  156.  
  157. <div id="sidebar">
  158.  
  159. <?php get_sidebar(); ?>
  160.  
  161. </div><!-- end #sidebar -->
  162.  
  163. <div class="cleaner">&nbsp;</div>
  164.  
  165.  
  166.  
  167.  
  168. </div><!-- end .wrapper -->
  169.  
  170. </div><!-- end #main -->
  171.  
  172. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement