This tool is scheduled for removal. For future link insertion, please use the following steps: <ol> <li>Build your listings pages using the <a href="<?php echo $idxPagesUrl; ?> " target="_top">IDX Pages</a> section found in the left-hand navigation.</li> <li>Select the "Insert/edit link" button <img src="<?php echo DSIDXPRESS_PLUGIN_URL; ?> images/hyperlink-icon.png" alt="" style="position:relative; top:4px; width:20px;" /> from the text editor tool.</li> <li>Expand the "Or link to existing content" section and select from your available IDX Pages.</li> </ol> </p> <a href="#" style="float:right;" onclick="jQuery('#ds-idx-dialog-notice').remove(); return false;">close</a> </div> </div> <div class="postbox"> <div class="inside"> <input type="hidden" id="linkBuilderPropertyTypes" value="<?php echo $property_types_html; ?> " /> <?php dsSearchAgent_Admin::LinkBuilderHtml(true); ?> </div> </div> </div> </body> </html>
/** * Displays a metabox for the link builder menu item. */ static function CreateLinkBuilder() { global $_nav_menu_placeholder, $nav_menu_selected_id; $_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1; $current_tab = 'create'; if (isset($_REQUEST['customlink-tab']) && in_array($_REQUEST['customlink-tab'], array('create', 'all'))) { $current_tab = $_REQUEST['customlink-tab']; } $removed_args = array('action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce'); dsSearchAgent_Admin::LinkBuilderHtml(false, $_nav_menu_placeholder, $nav_menu_selected_id); }
public static function renderIdxOptions($post) { $url_value = null; $url_value = get_post_meta($post->ID, 'dsidxpress-assembled-url', true); $adminUri = get_admin_url(); $property_types_html = ""; wp_nonce_field(plugin_basename(__FILE__), 'ds-idx-page_nonce'); $property_types_html = ""; $property_types = dsSearchAgent_ApiRequest::FetchData('AccountSearchSetupPropertyTypes', array(), false, 60 * 60 * 24); if (!empty($property_types) && is_array($property_types)) { $property_types = json_decode($property_types["body"]); foreach ($property_types as $property_type) { $checked_html = ''; $name = htmlentities($property_type->DisplayName); $id = $property_type->SearchSetupPropertyTypeID; $property_types_html .= <<<HTML {$id}: {$name}, HTML; } } $property_types_html = substr($property_types_html, 0, strlen($property_types_html) - 1); echo ' <div class="postbox"> <div class="inside"> <input type="hidden" id="linkBuilderPropertyTypes" value="' . $property_types_html . '" />'; dsSearchAgent_Admin::LinkBuilderHtml(false, -1, 1, true, $url_value); echo ' </div> </div> <div><span class="description">You must Publish/Update your page after modifying the IDX data filters.</span></div> '; }