Advertisement
Guest User

Untitled

a guest
Nov 14th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. remove_action('ultimatum_find_layout','ultimatum_findLayout');
  3. add_action('ultimatum_find_layout','getLayoutInfoForevent',10);
  4. function getLayoutInfoForevent(){
  5. global $wpdb;
  6. global $ultimatumlayout;
  7. $query = "SELECT a.*,b.margin,b.width,b.swidth,b.smargin,b.mwidth,b.mmargin,b.type AS ttype,b.gridwork FROM `".ULTIMATUM_TABLE_LAYOUT."` AS a LEFT JOIN `".ULTIMATUM_TABLE_TEMPLATES."` AS b ON (a.theme=b.id) WHERE a.id='6'";
  8. //echo $query;
  9. $ultimatumlayout = $wpdb->get_row($query);
  10. //print_r($ultimatumlayout);
  11. }
  12. /** Remove default Ultimatum loop */
  13.  
  14. remove_action( 'ultimatum_loop', 'ultimatum_standard_loop' );
  15. add_action('ultimatum_loop', 'tribecal_loop');
  16. function tribecal_loop() {
  17. ?>
  18. <div id="tribe-events-pg-template">
  19. <?php tribe_events_before_html(); ?>
  20. <?php tribe_get_view(); ?>
  21. <?php tribe_events_after_html(); ?>
  22. </div> <!-- #tribe-events-pg-template -->
  23. <?php
  24. }
  25.  
  26. ultimatum();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement