Changeset 2023135
- Timestamp:
- 02/01/2019 05:00:11 AM (7 years ago)
- Location:
- seo-dynamic-pages/trunk
- Files:
-
- 2 edited
-
admin/class-seo-dynamic-pages-admin.php (modified) (5 diffs)
-
seo-dynamic-pages.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-dynamic-pages/trunk/admin/class-seo-dynamic-pages-admin.php
r2022053 r2023135 154 154 ); 155 155 156 $setting_name = 'sdp_company_name';156 /* $setting_name = 'sdp_company_name'; 157 157 register_setting( $section_group , $setting_name ); 158 158 add_settings_field( … … 164 164 $page, 165 165 $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_section178 );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_section190 );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_section202 );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_section214 );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_section226 );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_section238 );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'246 166 );*/ 247 167 } … … 449 369 foreach ($locations as $location ) { 450 370 $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 ); 452 372 $wds_title = str_replace( '[location]', $location, $meta['_wds_title'][0] ); 453 373 $wds_description = str_replace( '[location]', $location, $meta['_wds_metadesc'][0] ); … … 469 389 return count($new_pages); 470 390 } 471 public function get_aggregate_rating(){391 /*public function get_aggregate_rating(){ 472 392 ob_start(); 473 393 ?> … … 489 409 <?php 490 410 return ob_get_clean(); 491 } 411 }*/ 492 412 } -
seo-dynamic-pages/trunk/seo-dynamic-pages.php
r2022055 r2023135 17 17 * Plugin URI: http://example.com/seo-dynamic-pages-uri/ 18 18 * 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.2 419 * Version: 1.0.25 20 20 * Author: 118GROUP Web Design 21 21 * Author URI: http://118group.com … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'SEO_DYNAMIC_PAGES_VERSION', '1.0.2 4' );38 define( 'SEO_DYNAMIC_PAGES_VERSION', '1.0.25' ); 39 39 40 40 /**
Note: See TracChangeset
for help on using the changeset viewer.