Ejemplo n.º 1
0
function _colabs_steps_get_last($steps = '')
{
    if (!$steps) {
        $steps = colabs_steps();
    }
    return max(array_keys($steps));
}
### Prevent Caching
nocache_headers();
colabs_auth_redirect_login();
// if ( !current_user_can('can_submit_property') )
//   redirect_profile();
if (empty($params)) {
    $params = array();
}
$property = '';
if ($property_id = get_query_var('property_id')) {
    $property = get_post($property_id);
}
$default_params = array('step' => colabs_get_next_step(), 'property' => $property, 'order_id' => get_query_var('order_id'), 'post_action' => get_query_var('property_relist') ? 'relist-property' : 'new-property', 'form_action' => $_SERVER['REQUEST_URI'], 'submit_text' => __('Next', 'colabsthemes'));
$params = wp_parse_args($params, $default_params);
$step = $params['step'];
$steps = colabs_steps();
if (get_query_var('property_relist')) {
    $title = sprintf(__('Relisting %s', 'colabsthemes'), html('a', array('href' => get_permalink($property->ID)), get_the_title($property->ID)));
} else {
    $title = get_the_title();
}
get_header();
?>


<div class="main-content column col9">
  <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>