Changeset 1845986
- Timestamp:
- 03/23/2018 10:40:57 PM (8 years ago)
- Location:
- blogdog/trunk
- Files:
-
- 3 edited
-
admin/admin.php (modified) (4 diffs)
-
blogdog.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blogdog/trunk/admin/admin.php
r1838715 r1845986 62 62 if( get_option( 'blogdog_api_active' ) == 'api_active' ) { 63 63 add_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_mapping' ) ); 64 add_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_community_mapping' ) );65 64 } 66 65 … … 73 72 if( class_exists( 'iFOUND' ) || class_exists( 'ProFoundMLS' ) ) { 74 73 remove_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_mapping' ) ); 75 remove_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_community_mapping' ) );76 74 add_action( 'admin_instructions', array( $this, 'add_admin_instructions' ) ); 77 75 } … … 592 590 593 591 } 594 595 /**596 * Blogdog Admin Community Mapping597 *598 * Community Mapping tab on admin page599 *600 * @since 5.6.6601 */602 603 public function blogdog_admin_community_mapping() {604 605 if( ! $communities = get_option( 'blogdog_community_mapping' ) )606 $communities = array(); ?>607 608 <div id="tabs-5">609 610 <form method="post" id="blogdog_community_mapping_form">611 612 <div class="metabox-holder">613 614 <div class="postbox">615 616 <h2 class="hndle">617 <i class="fa fa-map-o" aria-hidden="true"></i>618 <? _e( 'Community Mapping' , 'blogdog' ); ?>619 </h2>620 621 <? $this->mapping_button(); ?>622 623 <div class="inside">624 <? _e( 'NOTE: Not all IDX systems require community mapping. Use this only if your IDX uses something other than the full community name to identify communities.', 'blogdog' ); ?>625 </div>626 627 <div class="inside">628 629 <a id="add_community" class="add_location button">630 <i class="fa fa-plus-square-o" aria-hidden="true"></i>631 <? _e( 'Add Community', 'blogdog' ); ?>632 </a>633 634 </div>635 636 637 <div class="inside">638 639 <div id="community-mapping"><?640 641 foreach( $communities as $community ) {642 643 $i = 1; ?>644 645 <span class="community-input">646 647 <? echo $this->community_input( $community, $i ); ?>648 649 </span><?650 651 $i++;652 653 } ?>654 655 </div>656 657 <input type="hidden" id="commumity_count" value="<? echo $i; ?>"/>658 659 <div class="clear"></div>660 661 </div>662 663 </div>664 665 <div id="blogdog_community_mapping" class="save-changes button button-primary">666 <i class="fa fa-database" aria-hidden="true"></i>667 <? esc_attr_e( 'Save Changes' ) ?>668 </div>669 670 <i class="fa fa-pulse fa-fw fa-2x response"></i>671 672 </form>673 674 </div><?675 676 }677 678 /**679 * Community Input680 *681 * Community Input for community mapping.682 *683 * @since 5.6.6684 */685 686 public function community_input( $community, $i ) {687 688 ob_start(); ?>689 690 <div class="community-half">691 692 <input693 type="text"694 name="community[<? echo $i; ?>][name]"695 value="<? if( isset( $community['name'] ) ) echo $community['name']; ?>"696 placeholder="Community Name"697 />698 699 </div>700 701 702 <div class="community-half">703 704 <input705 type="text"706 name="community[<? echo $i; ?>][map]"707 value="<? if( isset( $community['map'] ) ) echo $community['map']; ?>"708 placeholder="Mapping"709 />710 711 </div><?712 713 return ob_get_clean();714 715 }716 592 717 593 /** … … 989 865 990 866 /** 991 * Insert Community mapping settings992 *993 * @since 5.6.6994 */995 996 elseif( $_REQUEST['ID'] === 'blogdog_community_mapping' ) {997 998 $post = array();999 parse_str( $_REQUEST['post'], $post );1000 1001 foreach( $post['community'] as $community ) {1002 1003 if( empty( $community['name'] ) || empty( $community['map'] ) ) continue;1004 1005 $communities[] = $community;1006 1007 }1008 1009 if( empty( $communities ) ) {1010 1011 delete_option( 'blogdog_community_mapping' );1012 1013 } else {1014 1015 update_option( 'blogdog_community_mapping', $communities );1016 1017 }1018 1019 $communities = empty( $communities ) ? '' : $communities;1020 1021 $body = array( 'community_mapping' => $communities );1022 1023 $this->blogdog_POST( 'update/', array( 'body' => $body ) );1024 1025 die();1026 1027 }1028 1029 /**1030 867 * Insert Location settings. 1031 868 * -
blogdog/trunk/blogdog.php
r1838715 r1845986 4 4 Plugin URI: https://reblogdog.com 5 5 Description: Add automated real estate content to your website. We publish an SEO optimized blog post for you everyday. 6 Version: 9.0. 66 Version: 9.0.7 7 7 Author: reblogdog 8 8 Author URI: https://reblogdog.com … … 28 28 29 29 if ( ! defined( 'BLOGDOG_PLUGIN_VERSION' ) ) 30 define( 'BLOGDOG_PLUGIN_VERSION', '9.0. 6' );30 define( 'BLOGDOG_PLUGIN_VERSION', '9.0.7' ); 31 31 32 32 /** -
blogdog/trunk/readme.txt
r1838715 r1845986 37 37 8. Map only the property types you plan to use. (Click the [How-To](https://reblogdog.com/map-property-types/ "How to Map Property Types") link for instructions.) Make sure to press Save Settings. 38 38 9. City mapping may be required. (Check your IDX at [Featured IDX Providers](https://reblogdog.com/featured-idx-providers/ "Featured IDX Providers") to verify. If required. [Contact Support](https://reblogdog.com/support/ "Contact Support") we will handle this for you. 39 10. Add the loactions you plan to use. (These can be updated at any time.) 40 11. Choose the criteria for each location. 41 12. Make sure to press Save Settings before leaving page. 42 13. Click the Active API button. If the set-up is complete, the button will read API Activated. 43 14. Check your website blog for a few days. If you see any issues with your blog posts. [Contact Support](https://reblogdog.com/support/ "Contact Support"). We are happy to help. 39 10. Community Mapping may be required. [Contact Support](https://reblogdog.com/support/ "Contact Support"). They will handle this part for you. 40 11. Add the loactions you plan to use. (These can be updated at any time.) 41 12. Choose the criteria for each location. 42 13. Make sure to press Save Settings before leaving page. 43 14. Click the Active API button. If the set-up is complete, the button will read API Activated. 44 15. Check your website blog for a few days. If you see any issues with your blog posts. [Contact Support](https://reblogdog.com/support/ "Contact Support"). We are happy to help. 44 45 45 46 == Frequently Asked Questions == … … 62 63 63 64 == Changelog == 65 66 = 9.0.7 = 67 68 * Remove community mapping 64 69 65 70 = 9.0.6 =
Note: See TracChangeset
for help on using the changeset viewer.