Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- remove_action('ultimatum_find_layout','ultimatum_findLayout');
- add_action('ultimatum_find_layout','getLayoutInfoForevent',10);
- function getLayoutInfoForevent(){
- global $wpdb;
- global $ultimatumlayout;
- $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'";
- //echo $query;
- $ultimatumlayout = $wpdb->get_row($query);
- //print_r($ultimatumlayout);
- }
- /** Remove default Ultimatum loop */
- remove_action( 'ultimatum_loop', 'ultimatum_standard_loop' );
- add_action('ultimatum_loop', 'tribecal_loop');
- function tribecal_loop() {
- ?>
- <div id="tribe-events-pg-template">
- <?php tribe_events_before_html(); ?>
- <?php tribe_get_view(); ?>
- <?php tribe_events_after_html(); ?>
- </div> <!-- #tribe-events-pg-template -->
- <?php
- }
- ultimatum();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement