Changeset 1447930
- Timestamp:
- 07/03/2016 03:20:13 AM (10 years ago)
- File:
-
- 1 edited
-
flirty-leads/tags/2.0/flirty-leads.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flirty-leads/tags/2.0/flirty-leads.php
r1447921 r1447930 51 51 function ecs_owp_flirtyleads_content($content) { 52 52 //single post and main query or Default homepage or static homepage or blog page 53 if ( (is_single() && is_main_query()) || (is_front_page() && is_home()) || is_front_page() || is_home() ) {53 if ( (is_single() && is_main_query()) || (is_front_page() && is_home()) || is_front_page() || is_home() || ! is_admin() ) { 54 54 //$content = str_replace('<img', '<div class="elizabethneedsanap_headdiv"><img', $content); 55 55 //$content = str_replace('<img', '<div class="elizabethneedsanap" style="width: ' . $clipimagewidth . ';"><img', $content); … … 189 189 $endimgpos = strpos( $content, '>' ); //where > is at 190 190 $firstcontent = substr( $content, 0, ($endimgpos + 1) ); //beg to >(w> 191 $finalstring .= ($firstcontent.$str2.$key_6_value.$str2a.$key_2_value.$str3.$str3a.$str3b.$key_3_value.$str4.$str4a.$str4b.$ key_4_value.$str5);191 $finalstring .= ($firstcontent.$str2.$key_6_value.$str2a.$key_2_value.$str3.$str3a.$str3b.$key_3_value.$str4.$str4a.$str4b.$str5); 192 192 193 193 … … 324 324 if((get_post_meta($post->ID, '_ecs_owp_cta_color', true)) == "") $ecs_owp_cta_color_value = ''; 325 325 else $ecs_owp_cta_color_value = get_post_meta( $post->ID, '_ecs_owp_cta_color', true ); 326 $form_fields['ecs_owp_cta_color_field'] = array( 'label' => __('optional: Call to Action text color, default your theme styling, takes hexidecimal like FFFFFF '), 'value' => $ecs_owp_cta_color_value, 'helps' => 'Set call to action text color' );326 $form_fields['ecs_owp_cta_color_field'] = array( 'label' => __('optional: Call to Action text color, default your theme styling, takes hexidecimal like FFFFFF , no # needed '), 'value' => $ecs_owp_cta_color_value, 'helps' => 'Set call to action font color' ); 327 327 return $form_fields; 328 328 } … … 345 345 if((get_post_meta($post->ID, '_ecs_owp_cta_size', true)) == "") $ecs_owp_cta_size_value = ''; 346 346 else $ecs_owp_cta_size_value = get_post_meta( $post->ID, '_ecs_owp_cta_size', true ); 347 $form_fields['ecs_owp_cta_size_field'] = array( 'label' => __('optional: Call to Action text size, default your theme styling, takes number like 12 '), 'value' => $ecs_owp_cta_size_value, 'helps' => 'Set call to action text size' );347 $form_fields['ecs_owp_cta_size_field'] = array( 'label' => __('optional: Call to Action font size, default your theme styling, takes number like 12 '), 'value' => $ecs_owp_cta_size_value, 'helps' => 'Set call to action font size' ); 348 348 return $form_fields; 349 349 } … … 366 366 if((get_post_meta($post->ID, '_ecs_owp_cta_weight', true)) == "") $ecs_owp_cta_weight_value = ''; 367 367 else $ecs_owp_cta_weight_value = get_post_meta( $post->ID, '_ecs_owp_cta_weight', true ); 368 $form_fields['ecs_owp_cta_weight_field'] = array( 'label' => __('optional: Call to Action text weight, default your theme styling, takes number like 700 '), 'value' => $ecs_owp_cta_weight_value, 'helps' => 'Set call to action text weight' );368 $form_fields['ecs_owp_cta_weight_field'] = array( 'label' => __('optional: Call to Action font weight, default your theme styling; options: light, normal, bold, or bolder '), 'value' => $ecs_owp_cta_weight_value, 'helps' => 'Set call to action to bolden text' ); 369 369 return $form_fields; 370 370 } … … 387 387 if((get_post_meta($post->ID, '_ecs_owp_cta_height', true)) == "") $ecs_owp_cta_height_value = ''; 388 388 else $ecs_owp_cta_height_value = get_post_meta( $post->ID, '_ecs_owp_cta_height', true ); 389 $form_fields['ecs_owp_cta_height_field'] = array( 'label' => __('optional: Call to Action text height space, default your theme styling, takes number like 70 '), 'value' => $ecs_owp_cta_height_value, 'helps' => 'Set call to action text space' );389 $form_fields['ecs_owp_cta_height_field'] = array( 'label' => __('optional: Call to Action bottom padding beneath lead capture form, default your theme styling, takes number like 70 '), 'value' => $ecs_owp_cta_height_value, 'helps' => 'Set call to action bottom padding, if needed' ); 390 390 return $form_fields; 391 391 } … … 407 407 if((get_post_meta($post->ID, '_ecs_owp_btn_color', true)) == "") $ecs_owp_btn_color_value =''; 408 408 else $ecs_owp_btn_color_value = get_post_meta( $post->ID, '_ecs_owp_btn_color', true ); 409 $form_fields['ecs_owp_btn_color_field'] = array( 'label' => __('optional: Button color '), 'value' => $ecs_owp_btn_color_value, 'helps' => 'Set color of the button' );409 $form_fields['ecs_owp_btn_color_field'] = array( 'label' => __('optional: Button color, takes hexidecimal like FFFFFF , no # needed '), 'value' => $ecs_owp_btn_color_value, 'helps' => 'Set color of the button' ); 410 410 return $form_fields; 411 411 } … … 427 427 if((get_post_meta($post->ID, '_ecs_owp_btn_text_color', true)) == "") $ecs_owp_btn_text_color_value =''; 428 428 else $ecs_owp_btn_text_color_value = get_post_meta( $post->ID, '_ecs_owp_btn_text_color', true ); 429 $form_fields['ecs_owp_btn_text_color_field'] = array( 'label' => __('optional: Button text color '), 'value' => $ecs_owp_btn_text_color_value, 'helps' => 'Set color of the button text' );429 $form_fields['ecs_owp_btn_text_color_field'] = array( 'label' => __('optional: Button text color, takes hexidecimal like FFFFFF , no # needed '), 'value' => $ecs_owp_btn_text_color_value, 'helps' => 'Set color of the button text' ); 430 430 return $form_fields; 431 431 }
Note: See TracChangeset
for help on using the changeset viewer.