Plugin Directory

Changeset 2023135


Ignore:
Timestamp:
02/01/2019 05:00:11 AM (7 years ago)
Author:
118group
Message:

Remove aggregate rating feature

Location:
seo-dynamic-pages/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • seo-dynamic-pages/trunk/admin/class-seo-dynamic-pages-admin.php

    r2022053 r2023135  
    154154        );
    155155
    156         $setting_name = 'sdp_company_name';
     156    /*  $setting_name = 'sdp_company_name';
    157157        register_setting( $section_group , $setting_name );
    158158        add_settings_field(
     
    164164            $page,
    165165            $settings_section
    166         );
    167 
    168         $setting_name = 'sdp_company_address';
    169         register_setting( $section_group , $setting_name );
    170         add_settings_field(
    171             $setting_name,
    172             'Company Address',
    173             function(){
    174                 echo '<input type="text" id="sdp_company_address" name="sdp_company_address" value="'.get_option('sdp_company_address', null ).'"/>';
    175             },
    176             $page,
    177             $settings_section
    178         );
    179 
    180         $setting_name = 'sdp_company_city';
    181         register_setting( $section_group , $setting_name );
    182         add_settings_field(
    183             $setting_name,
    184             'Company City',
    185             function(){
    186                 echo '<input type="text" id="sdp_company_city" name="sdp_company_city" value="'.get_option('sdp_company_city', null ).'"/>';
    187             },
    188             $page,
    189             $settings_section
    190         );
    191 
    192         $setting_name = 'sdp_company_state';
    193         register_setting( $section_group , $setting_name );
    194         add_settings_field(
    195             $setting_name,
    196             'Company State',
    197             function(){
    198                 echo '<input type="text" id="sdp_company_state" name="sdp_company_state" value="'.get_option('sdp_company_state', null ).'"/>';
    199             },
    200             $page,
    201             $settings_section
    202         );
    203 
    204         $setting_name = 'sdp_company_phone';
    205         register_setting( $section_group , $setting_name );
    206         add_settings_field(
    207             $setting_name,
    208             'Company Phone',
    209             function(){
    210                 echo '<input type="text" id="sdp_company_phone" name="sdp_company_phone" value="'.get_option('sdp_company_phone', null ).'"/>';
    211             },
    212             $page,
    213             $settings_section
    214         );
    215 
    216         $setting_name = 'sdp_company_logo';
    217         register_setting( $section_group , $setting_name );
    218         add_settings_field(
    219             $setting_name,
    220             'Company Logo URL',
    221             function(){
    222                 echo '<input type="text" id="sdp_company_logo" name="sdp_company_logo" value="'.get_option('sdp_company_logo', null ).'"/>';
    223             },
    224             $page,
    225             $settings_section
    226         );
    227 
    228         $setting_name = 'sdp_company_logo_alt';
    229         register_setting( $section_group , $setting_name );
    230         add_settings_field(
    231             $setting_name,
    232             'Company Logo Alt',
    233             function(){
    234                 echo '<input type="text" id="sdp_company_logo_alt" name="sdp_company_logo_alt" value="'.get_option('sdp_company_logo_alt', null ).'"/>';
    235             },
    236             $page,
    237             $settings_section
    238         );
    239         /*add_meta_box(
    240             'sdp_service_chatbot_meta_box',
    241             'SDP Service Details',
    242             array( $this, 'options_page' ),
    243             'sdp-service',
    244             'normal',
    245             'low'
    246166        );*/
    247167    }
     
    449369        foreach ($locations as $location ) {
    450370            $args['post_title'] = str_replace( '[location]', $location, $post->post_title );
    451             $args['post_content'] = str_replace( '[location]', $location, $post->post_content ) . PHP_EOL . $this->get_aggregate_rating();
     371            $args['post_content'] = str_replace( '[location]', $location, $post->post_content );
    452372            $wds_title =  str_replace( '[location]', $location,  $meta['_wds_title'][0] );
    453373            $wds_description =  str_replace( '[location]', $location,  $meta['_wds_metadesc'][0] );
     
    469389        return count($new_pages);
    470390    }
    471     public function get_aggregate_rating(){
     391    /*public function get_aggregate_rating(){
    472392        ob_start();
    473393        ?>
     
    489409        <?php
    490410        return ob_get_clean();
    491     }
     411    }*/
    492412}
  • seo-dynamic-pages/trunk/seo-dynamic-pages.php

    r2022055 r2023135  
    1717 * Plugin URI:        http://example.com/seo-dynamic-pages-uri/
    1818 * Description:       SEO Dynamic Pages allows a website owner to identify services their business offers as well as cities and towns. The plugin will dynamically create pages on your WordPress website with a combination of city and service without the need of physically creating each page.
    19  * Version:           1.0.24
     19 * Version:           1.0.25
    2020 * Author:            118GROUP Web Design
    2121 * Author URI:        http://118group.com
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'SEO_DYNAMIC_PAGES_VERSION', '1.0.24' );
     38define( 'SEO_DYNAMIC_PAGES_VERSION', '1.0.25' );
    3939
    4040/**
Note: See TracChangeset for help on using the changeset viewer.