Plugin Directory

Changeset 1845986


Ignore:
Timestamp:
03/23/2018 10:40:57 PM (8 years ago)
Author:
reblogdog
Message:

Commit v9.0.7

Location:
blogdog/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • blogdog/trunk/admin/admin.php

    r1838715 r1845986  
    6262        if( get_option( 'blogdog_api_active' ) == 'api_active' ) {
    6363            add_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_mapping' ) );
    64             add_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_community_mapping' ) );
    6564        }
    6665
     
    7372        if( class_exists( 'iFOUND' ) || class_exists( 'ProFoundMLS' ) ) {
    7473            remove_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_mapping' ) );
    75             remove_action( 'blogdog_admin_data', array( $this, 'blogdog_admin_community_mapping' ) );
    7674            add_action( 'admin_instructions', array( $this, 'add_admin_instructions' ) );
    7775        }
     
    592590       
    593591    }
    594 
    595     /**
    596      *  Blogdog Admin Community Mapping
    597      *
    598      *  Community Mapping tab on admin page
    599      *
    600      *  @since 5.6.6
    601      */
    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 Input
    680      *
    681      *  Community Input for community mapping.
    682      *
    683      *  @since 5.6.6
    684      */
    685    
    686     public function community_input( $community, $i ) {
    687        
    688         ob_start(); ?>
    689        
    690         <div class="community-half">
    691 
    692             <input
    693                 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             <input
    705                 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     }
    716592   
    717593    /**
     
    989865       
    990866        /**
    991          * Insert Community mapping settings
    992          *
    993          * @since 5.6.6
    994          */
    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         /**
    1030867         * Insert Location settings.
    1031868         *
  • blogdog/trunk/blogdog.php

    r1838715 r1845986  
    44Plugin URI:  https://reblogdog.com
    55Description: Add automated real estate content to your website. We publish an SEO optimized blog post for you everyday.
    6 Version:     9.0.6
     6Version:     9.0.7
    77Author:      reblogdog
    88Author URI:  https://reblogdog.com
     
    2828
    2929if ( ! defined( 'BLOGDOG_PLUGIN_VERSION' ) )
    30     define( 'BLOGDOG_PLUGIN_VERSION', '9.0.6' );
     30    define( 'BLOGDOG_PLUGIN_VERSION', '9.0.7' );
    3131
    3232/**
  • blogdog/trunk/readme.txt

    r1838715 r1845986  
    37378. 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.
    38389. 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.
     3910. Community Mapping may be required. [Contact Support](https://reblogdog.com/support/ "Contact Support"). They will handle this part for you.
     4011. Add the loactions you plan to use. (These can be updated at any time.)
     4112. Choose the criteria for each location.
     4213. Make sure to press Save Settings before leaving page.
     4314. Click the Active API button. If the set-up is complete, the button will read API Activated.
     4415. 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.
    4445
    4546== Frequently Asked Questions ==
     
    6263
    6364== Changelog ==
     65
     66= 9.0.7 =
     67
     68* Remove community mapping
    6469
    6570= 9.0.6 =
Note: See TracChangeset for help on using the changeset viewer.