/** * Gets the edit post link for the current page * @return string url to edit post */ function plns_edit_post_link() { $url = get_edit_post_link(pl_current_page_id(), ''); return $url; }
/** * Render the actual section */ function render($map_meta = array(), $level = 0) { /** * Set the specific information for this section in the map */ // Hiding section on specific page. $hide_on_pages = ''; //$this->opt( 'hide_on' ); $hide_section = false; if ($hide_on_pages != false) { $hide_on_pages_ids = explode(',', $hide_on_pages); if (in_array(pl_current_page_id(), $hide_on_pages_ids)) { $hide_section = true; } } /** Do main section template */ if (has_filter('platform_render_section')) { $output = apply_filters('platform_render_section', $this); } else { ob_start(); $this->section_template_load(); $output = ob_get_clean(); } $render = !isset($output) || $output == '' || $hide_section ? false : true; if ($render) { // set to true if standard title is to be placed non standard $this->alt_standard_title = false; $this->before_section_template(); $this->before_section($map_meta, $level); echo $output; $this->after_section(); $this->after_section_template(); } }