public function home() { /** check permission **/ wpl_global::min_access('administrator'); // get list of all activity $this->activities = wpl_activity::get_activities('', '', ' ORDER BY `index` ASC, `ID` DESC'); $this->available_activities = wpl_activity::get_available_activities(); /** import tpl * */ parent::render($this->tpl_path, $this->tpl); }
?> </div> </div> <?php } ?> </div> </div> <div class="wpl_prp_show_bottom"> <?php if ($pshow_walkscore_activities) { ?> <div class="wpl_prp_show_walkscore"> <?php /** load position walkscore **/ wpl_activity::load_position('pshow_walkscore', array('wpl_properties' => $this->wpl_properties)); ?> </div> <?php } ?> <?php if (is_active_sidebar('wpl-pshow-bottom')) { dynamic_sidebar('wpl-pshow-bottom'); } ?> </div> </div> </div> <!-- Don't remove it --> <div id="wpl_pshow_lightbox_content_container" class="wpl-util-hidden"></div>
<?php /** no direct access **/ defined('_WPLEXEC') or die('Restricted access'); $map_activities = wpl_activity::get_activities('plisting_position1', 1); ?> <script type="text/javascript"> var wpl_map<?php echo $this->activity_id; ?> ; var markers_array<?php echo $this->activity_id; ?> = new Array(); var loaded_markers<?php echo $this->activity_id; ?> = new Array(); var markers<?php echo $this->activity_id; ?> ; var bounds<?php echo $this->activity_id; ?> ; var infowindow<?php echo $this->activity_id; ?> ;
/** * Imports activities by activity name * @author Howard <*****@*****.**> * @static * @param string $activity * @param int $activity_id * @param mixed $params */ public static function import_activity($activity, $activity_id = 0, $params = false) { /** import library **/ _wpl_import('libraries.activities'); $wpl_activity = new wpl_activity(); $wpl_activity->import($activity, $activity_id, $params); }
/** * load activity options such a layout and options * @param string $activity_name Activity name * @param string $current_layout current selected layout for this activity */ private function load_options($activity_name, $current_layout) { $current_activity = wpl_activity::get_activity("AND `activity`='" . wpl_db::escape($activity_name) . "'"); $current_activity = wpl_activity::get_activity_name_layout($current_activity->activity); $returnData = array(); $optionPath = wpl_activity::get_activity_option_form($activity_name); $returnData['layouts'] = wpl_activity::load_layouts_html($activity_name, $current_layout); if ($optionPath) { ob_start(); include $optionPath; $returnData['options'] = ob_get_contents(); ob_end_clean(); } else { $returnData['options'] = __("This activity doesn't have options!", WPL_TEXTDOMAIN); } echo json_encode($returnData); exit; }
$cut_position = strrpos(substr($description, 0, 400), '.', -1); if (!$cut_position) { $cut_position = 399; } ?> <div class="wpl_prp_cont <?php echo (isset($this->property_css_class) and in_array($this->property_css_class, array('row_box', 'grid_box'))) ? $this->property_css_class : ''; ?> " id="wpl_prp_cont<?php echo $property['data']['id']; ?> " itemscope itemtype="https://schema.org/TradeAction"> <div class="wpl_prp_top"> <div class="wpl_prp_top_boxes front"> <?php wpl_activity::load_position('wpl_property_listing_image', array('wpl_properties' => $this->wpl_properties)); ?> </div> <div class="wpl_prp_top_boxes back"> <a itemprop="url" id="prp_link_id_<?php echo $property['data']['id']; ?> " href="<?php echo $property['property_link']; ?> " class="view_detail"><?php echo __('More Details', WPL_TEXTDOMAIN); ?> </a> </div> </div>
$this->_wpl_import($this->tpl_path . '.scripts.js_scroll', true, true); } /** Save Search Add-on **/ if (wpl_global::check_addon('save_searches')) { $this->_wpl_import($this->tpl_path . '.scripts.addon_save_searches', true, true); } ?> <div class="wpl_property_listing_container <?php if (isset($this->property_css_class) and $this->property_css_class == 'map_box') { echo 'wpl-property-listing-mapview'; } ?> " id="wpl_property_listing_container"> <?php /** load position1 **/ wpl_activity::load_position('plisting_position1', array('wpl_properties' => $this->wpl_properties)); ?> <?php if (is_active_sidebar('wpl-plisting-top') and $this->kind == 0) { ?> <div class="wpl_plisting_top_sidebar_container"> <?php dynamic_sidebar('wpl-plisting-top'); ?> </div> <?php } elseif (is_active_sidebar('wpl-complex-plisting-top') and $this->kind == 1) { ?> <div class="wpl_plisting_top_sidebar_container">
echo __('Position', WPL_TEXTDOMAIN); ?> </th> <th></th> <th scope="col" class="manage-column wpl_actions_td"><?php echo __('Actions', WPL_TEXTDOMAIN); ?> </th> </tr> </tfoot> <tbody class="sortable_activity"> <?php foreach ($this->activities as $activity) { $activity_field_name = wpl_activity::get_activity_name_layout($activity->activity); /** Skip Backend Activity **/ if (wpl_activity::check_activity($activity_field_name[0], wpl_activity::ACTIVITY_BACKEND)) { continue; } ?> <tr id="<?php echo $activity->id; ?> "> <td class="size-1"><?php echo $activity->id; ?> </td> <td class="wpl_activity_title"><?php echo $activity->title; ?> </td>
?> </button> <span id="wpl_profile_wizard_ajax_loader"></span> </div> </div> </div> </div> <?php if ($my_profile_bottom_activities) { ?> <div id="my_profile_bottom_container"> <?php $activities = wpl_activity::get_activities('my_profile_bottom', 1); foreach ($activities as $activity) { $content = wpl_activity::render_activity($activity, array('user_data' => $this->user_data)); if (trim($content) == '') { continue; } ?> <div class="panel-wp margin-top-1p"> <?php if ($activity->show_title and trim($activity->title) != '') { ?> <h3><?php echo __($activity->title, WPL_TEXTDOMAIN); ?> </h3> <?php } ?>
/** * get All Activities in Activity folder and remove Backend Activity * @author Kevin J <*****@*****.**> * @return array list of Frontend activity list */ public static function get_available_activities() { $activities_folders = wpl_folder::folders(wpl_activity::get_activity_folder()); $frontend_activity = array(); foreach ($activities_folders as $activity) { if (wpl_activity::check_activity($activity, wpl_activity::ACTIVITY_FRONTEND)) { $frontend_activity[] = $activity; } } return $frontend_activity; }
<?php /** no direct access **/ defined('_WPLEXEC') or die('Restricted access'); $this->_wpl_import($this->tpl_path . '.scripts.js', true, true); ?> <div class="wpl_profile_show_container" id="wpl_profile_show_container"> <div class="wpl_profile_show_container_box"> <?php /** load position1 **/ wpl_activity::load_position('profile_show_position1', array('user_id' => $this->uid)); ?> </div> <?php if (is_active_sidebar('wpl-profileshow-top')) { dynamic_sidebar('wpl-profileshow-top'); } ?> </div> <?php /** loading property listing **/ echo wpl_global::load('property_listing');
?> "> <span><?php echo __('Property is not finalized.', WPL_TEXTDOMAIN); ?> </span> </div> <?php } ?> </div> <div class="property-actions"> <?php /** load position2 **/ wpl_activity::load_position('pmanager_position2', array('property_data' => $property)); ?> </div> </div> </div> <?php } ?> </div> <?php if (isset($this->pagination->max_page) and $this->pagination->max_page > 1) { ?> <div class="pagination-wp"> <?php echo $this->pagination->show(); ?>
</div> <div class="wpl_show_message<?php echo $this->activity_id; ?> "></div> </div> <div class="col-fanc-right"> <div class="fanc-row fanc-inline-title"> <?php echo __('Options', WPL_TEXTDOMAIN); ?> </div> <div id="options_section"> <?php /** including activity option form **/ $options_form = wpl_activity::get_activity_option_form($this->activity_raw_name[0]); if ($options_form) { include $options_form; } ?> </div> </div> </div> <div class="col-wp"> <div class="col-fanc-bottom wpl-fanc-full-row"> <div class="fanc-row fanc-inline-title"> <?php echo __('Page Association', WPL_TEXTDOMAIN); ?> </div> <div class="fanc-row">