Changeset 3294206
- Timestamp:
- 05/15/2025 01:54:09 PM (7 months ago)
- Location:
- 404-page/trunk
- Files:
-
- 28 edited
-
404-page.php (modified) (3 diffs)
-
changelog.txt (modified) (1 diff)
-
framework/field-types/checkbox.php (modified) (1 diff)
-
framework/field-types/color.php (modified) (1 diff)
-
framework/field-types/customsocialfollow.php (modified) (1 diff)
-
framework/field-types/date.php (modified) (1 diff)
-
framework/field-types/daterange.php (modified) (1 diff)
-
framework/field-types/export.php (modified) (1 diff)
-
framework/field-types/import.php (modified) (1 diff)
-
framework/field-types/multiselect.php (modified) (1 diff)
-
framework/field-types/password.php (modified) (1 diff)
-
framework/field-types/radio.php (modified) (1 diff)
-
framework/field-types/select.php (modified) (1 diff)
-
framework/field-types/text.php (modified) (1 diff)
-
framework/field-types/textarea.php (modified) (1 diff)
-
framework/field-types/textbox.php (modified) (1 diff)
-
framework/field-types/upload.php (modified) (1 diff)
-
framework/framework.php (modified) (12 diffs)
-
framework/validations/color.php (modified) (1 diff)
-
framework/validations/email.php (modified) (1 diff)
-
framework/validations/escurlraw.php (modified) (1 diff)
-
framework/validations/number.php (modified) (1 diff)
-
framework/validations/required.php (modified) (1 diff)
-
includes/class-s404f.php (modified) (2 diffs)
-
includes/config-settings.php (modified) (30 diffs)
-
includes/template-tags.php (modified) (20 diffs)
-
lib/seed_s404f_lessc.inc.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
404-page/trunk/404-page.php
r1909873 r3294206 4 4 Plugin URI: http://www.seedprod.com/wordpress-404-page-plugin/ 5 5 Description: The Ultimate 404 Page Plugin 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: SeedProd 8 8 Author URI: http://www.seedprod.com 9 TextDomain: seedprod9 TextDomain: 404-page 10 10 License: GPLv2 11 11 */ … … 19 19 define( 'SEED_S404F_SHORTNAME', 'seed_s404f' ); // Used to reference namespace functions. 20 20 define( 'SEED_S404F_SLUG', '404-page-seedprod/404-page-seedprod.php' ); // Used for settings link. 21 define( 'SEED_S404F_TEXTDOMAIN', ' seedprod' ); // i18 for reference only22 define( 'SEED_S404F_PLUGIN_NAME', __( '404 Page by SeedProd', ' seedprod' ) ); // Plugin Name shows up on the admin settings screen.23 define( 'SEED_S404F_VERSION', '1.0. 1' ); // Plugin Version Number. Recommend you use Semantic Versioning http://semver.org/21 define( 'SEED_S404F_TEXTDOMAIN', '404-page' ); // i18 for reference only 22 define( 'SEED_S404F_PLUGIN_NAME', __( '404 Page by SeedProd', '404-page' ) ); // Plugin Name shows up on the admin settings screen. 23 define( 'SEED_S404F_VERSION', '1.0.2' ); // Plugin Version Number. Recommend you use Semantic Versioning http://semver.org/ 24 24 define( 'SEED_S404F_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); // Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seed_csp3/ 25 25 define( 'SEED_S404F_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); // Example output: http://localhost:8888/wordpress/wp-content/plugins/seed_csp3/ … … 30 30 */ 31 31 function seed_s404f_load_textdomain() { 32 load_plugin_textdomain( ' seedprod', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );32 load_plugin_textdomain( '404-page', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 33 33 } 34 34 add_action('plugins_loaded', 'seed_s404f_load_textdomain'); -
404-page/trunk/changelog.txt
r1909873 r3294206 1 1.0.1 1 1.0.3 2 * Fixed security bugs 3 4 1.0.2 2 5 * Fixed php warning notification errors 3 6 -
404-page/trunk/framework/field-types/checkbox.php
r1163541 r3294206 10 10 } 11 11 foreach ( $option_values as $k => $v ) { 12 echo "<input class=' $id' type='checkbox' name='{$setting_id}[$id][]' value='$k' " . ( in_array( $k, ( empty( $options[ $id ] ) ? array( ) : $options[ $id ] ) ) ? 'checked' : '' ) . " /> $v<br/>";12 echo "<input class='" . esc_attr($id) . "' type='checkbox' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][]' value='" . esc_attr($k) . "' " . ( in_array( $k, ( empty( $options[ $id ] ) ? array( ) : $options[ $id ] ) ) ? 'checked' : '' ) . " /> " . esc_html($v) . "<br/>"; 13 13 $c++; 14 14 } -
404-page/trunk/framework/field-types/color.php
r1163541 r3294206 8 8 } 9 9 10 echo "<input id='$id' class='pickcolor-field' type='text' name='{$setting_id}[$id]' value='" . esc_attr( $options[ $id ] ) . "' style='background-color:" . ( empty( $options[ $id ] ) ? $default_value : $options[ $id ] ) . ";' />"; 10 $style_value = empty( $options[ $id ] ) ? $default_value : $options[ $id ]; 11 echo "<input id='" . esc_attr($id) . "' class='pickcolor-field' type='text' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]' value='" . esc_attr( $options[ $id ] ) . "' style='background-color:" . esc_attr( $style_value ) . ";' />"; 11 12 12 13 wp_enqueue_script( 'seed_s404f-color-js', SEED_S404F_PLUGIN_URL . 'framework/field-types/js/color.js', array( -
404-page/trunk/framework/field-types/customsocialfollow.php
r1163541 r3294206 21 21 22 22 ?> 23 <small class='description'><?php _e("Enter your social profile url's. Drag & Drop the icons to reorder. Remember to save your changes. <a href='https://seedprod.zendesk.com/entries/21778652-adding-custom-icons' target='_blank'>Learn how to add your own custom icons</a>.",'seedprod'); ?></small>23 <small class='description'><?php esc_html_e("Enter your social profile url's. Drag & Drop the icons to reorder. Remember to save your changes. <a href='https://seedprod.zendesk.com/entries/21778652-adding-custom-icons' target='_blank'>Learn how to add your own custom icons</a>.",'404-page'); ?></small> 24 24 <ul id="seed-csp4-social-profiles"> 25 <?php foreach($profiles as $k=>$v){ ?> 26 <li class="ui-state-default"><img style="width:24px;vertical-align:middle;cursor:move" src="<?php echo SEED_S404F_PLUGIN_URL.'themes/default/images/icons1/'.strtolower($v).'.png'; ?>"> <?php echo "<input autocomplete='off' placeholder='$v' class='regular-text' name='{$setting_id}[$id][$v]' type='text' value='" . esc_attr( $options[ $id ][$v] ) . "' />"; ?></li> 25 <?php foreach($profiles as $k=>$v){ 26 $icon_url = SEED_S404F_PLUGIN_URL . 'themes/default/images/icons1/' . strtolower($v) . '.png'; 27 $input_name = $setting_id . "[" . esc_attr($id) . "][" . esc_attr($v) . "]"; 28 $input_value = isset($options[$id][$v]) ? $options[$id][$v] : ''; 29 ?> 30 <li class="ui-state-default"><img style="width:24px;vertical-align:middle;cursor:move" src="<?php echo esc_url($icon_url); ?>"> <?php echo "<input autocomplete='off' placeholder='" . esc_attr($v) . "' class='regular-text' name='" . esc_attr($input_name) . "' type='text' value='" . esc_attr($input_value) . "' />"; ?></li> 27 31 <?php } ?> 28 32 </ul> -
404-page/trunk/framework/field-types/date.php
r1163541 r3294206 5 5 // $options[$id] value from the db 6 6 7 $value = $options[$id]; 8 7 9 $option_values = array( 8 '01'=>__('01-Jan',' seedprod'),9 '02'=>__('02-Feb',' seedprod'),10 '03'=>__('03-Mar',' seedprod'),11 '04'=>__('04-Apr',' seedprod'),12 '05'=>__('05-May',' seedprod'),13 '06'=>__('06-Jun',' seedprod'),14 '07'=>__('07-Jul',' seedprod'),15 '08'=>__('08-Aug',' seedprod'),16 '09'=>__('09-Sep',' seedprod'),17 '10'=>__('10-Oct',' seedprod'),18 '11'=>__('11-Nov',' seedprod'),19 '12'=>__('12-Dec',' seedprod'),10 '01'=>__('01-Jan','404-page'), 11 '02'=>__('02-Feb','404-page'), 12 '03'=>__('03-Mar','404-page'), 13 '04'=>__('04-Apr','404-page'), 14 '05'=>__('05-May','404-page'), 15 '06'=>__('06-Jun','404-page'), 16 '07'=>__('07-Jul','404-page'), 17 '08'=>__('08-Aug','404-page'), 18 '09'=>__('09-Sep','404-page'), 19 '10'=>__('10-Oct','404-page'), 20 '11'=>__('11-Nov','404-page'), 21 '12'=>__('12-Dec','404-page'), 20 22 ); 21 23 24 $mm = substr($value,0,2); 22 25 23 echo "<select id='mm' name=' {$setting_id}[$id][month]'>";26 echo "<select id='mm' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][month]'>"; 24 27 foreach ( $option_values as $k => $v ) { 25 echo "<option value=' $k' " . selected( $options[ $id ]['month'], $k, false ) . ">$v</option>";28 echo "<option value='" . esc_attr($k) . "' " . selected( $options[ $id ]['month'], $k, false ) . ">" . esc_html($v) . "</option>"; 26 29 } 27 30 echo "</select>"; 28 31 29 echo "<input id='jj' class='small-text' name=' {$setting_id}[$id][day]' placeholder='".__('day','seedprod')."' type='text' value='" . esc_attr( $options[ $id ]['day'] ) . "' />";32 echo "<input id='jj' class='small-text' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][day]' placeholder='".esc_attr__('day','404-page')."' type='text' value='" . esc_attr( $options[ $id ]['day'] ) . "' />"; 30 33 31 34 echo ','; 32 echo "<input id='aa' class='small-text' name=' {$setting_id}[$id][year]' placeholder='".__('year','seedprod')."' type='text' value='" . esc_attr( $options[ $id ]['year'] ) . "' /><br>";35 echo "<input id='aa' class='small-text' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][year]' placeholder='".esc_attr__('year','404-page')."' type='text' value='" . esc_attr( $options[ $id ]['year'] ) . "' /><br>"; -
404-page/trunk/framework/field-types/daterange.php
r1163541 r3294206 6 6 7 7 $option_values = array( 8 '01'=>__('01-Jan',' seedprod'),9 '02'=>__('02-Feb',' seedprod'),10 '03'=>__('03-Mar',' seedprod'),11 '04'=>__('04-Apr',' seedprod'),12 '05'=>__('05-May',' seedprod'),13 '06'=>__('06-Jun',' seedprod'),14 '07'=>__('07-Jul',' seedprod'),15 '08'=>__('08-Aug',' seedprod'),16 '09'=>__('09-Sep',' seedprod'),17 '10'=>__('10-Oct',' seedprod'),18 '11'=>__('11-Nov',' seedprod'),19 '12'=>__('12-Dec',' seedprod'),8 '01'=>__('01-Jan','404-page'), 9 '02'=>__('02-Feb','404-page'), 10 '03'=>__('03-Mar','404-page'), 11 '04'=>__('04-Apr','404-page'), 12 '05'=>__('05-May','404-page'), 13 '06'=>__('06-Jun','404-page'), 14 '07'=>__('07-Jul','404-page'), 15 '08'=>__('08-Aug','404-page'), 16 '09'=>__('09-Sep','404-page'), 17 '10'=>__('10-Oct','404-page'), 18 '11'=>__('11-Nov','404-page'), 19 '12'=>__('12-Dec','404-page'), 20 20 ); 21 21 22 _e('Start Date', 'seedprod');23 echo "<select id='mm' name=' {$setting_id}[$id][start_month]'>";22 esc_html_e('Start Date', '404-page'); 23 echo "<select id='mm' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][start_month]'>"; 24 24 foreach ( $option_values as $k => $v ) { 25 echo "<option value=' $k' " . selected( $options[ $id ]['start_month'], $k, false ) . ">$v</option>";25 echo "<option value='" . esc_attr($k) . "' " . selected( $options[ $id ]['start_month'], $k, false ) . ">" . esc_html($v) . "</option>"; 26 26 } 27 27 echo "</select>"; 28 28 29 echo "<input id='jj' class='small-text' placeholder='". __('day','seedprod')."' name='{$setting_id}[$id][start_day]' type='text' value='" . esc_attr( $options[ $id ]['start_day'] ) . "' />";29 echo "<input id='jj' class='small-text' placeholder='".esc_attr__('day','404-page')."' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][start_day]' type='text' value='" . esc_attr( $options[ $id ]['start_day'] ) . "' />"; 30 30 31 31 echo ','; 32 echo "<input id='aa' class='small-text' placeholder='". __('year','seedprod')."' name='{$setting_id}[$id][start_year]' type='text' value='" . esc_attr( $options[ $id ]['start_year'] ) . "' />";32 echo "<input id='aa' class='small-text' placeholder='".esc_attr__('year','404-page')."' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][start_year]' type='text' value='" . esc_attr( $options[ $id ]['start_year'] ) . "' />"; 33 33 34 34 echo ' '; 35 _e('End Date', 'seedprod');36 echo "<select id='mm' name=' {$setting_id}[$id][end_month]'>";35 esc_html_e('End Date', '404-page'); 36 echo "<select id='mm' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][end_month]'>"; 37 37 foreach ( $option_values as $k => $v ) { 38 echo "<option value=' $k' " . selected( $options[ $id ]['end_month'], $k, false ) . ">$v</option>";38 echo "<option value='" . esc_attr($k) . "' " . selected( $options[ $id ]['end_month'], $k, false ) . ">" . esc_html($v) . "</option>"; 39 39 } 40 40 echo "</select>"; 41 41 42 echo "<input id='jj' class='small-text' placeholder='". __('day','seedprod')."' name='{$setting_id}[$id][end_day]' type='text' value='" . esc_attr( $options[ $id ]['end_day'] ) . "' />";42 echo "<input id='jj' class='small-text' placeholder='".esc_attr__('day','404-page')."' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][end_day]' type='text' value='" . esc_attr( $options[ $id ]['end_day'] ) . "' />"; 43 43 44 44 echo ','; 45 echo "<input id='aa' class='small-text' placeholder='". __('year','seedprod')."' name='{$setting_id}[$id][end_year]' type='text' value='" . esc_attr( $options[ $id ]['end_year'] ) . "' /><br>";45 echo "<input id='aa' class='small-text' placeholder='".esc_attr__('year','404-page')."' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][end_year]' type='text' value='" . esc_attr( $options[ $id ]['end_year'] ) . "' /><br>"; 46 46 -
404-page/trunk/framework/field-types/export.php
r1163541 r3294206 22 22 $export = json_encode($settings); 23 23 24 echo "<textarea id=' $id' class='large-text'>" . $export. "</textarea><br>";24 echo "<textarea id='" . esc_attr($id) . "' class='large-text'>" . esc_textarea($export) . "</textarea><br>"; 25 25 26 26 echo ' -
404-page/trunk/framework/field-types/import.php
r1163541 r3294206 14 14 if(confirm(seed_s404f_msgs.import_confirm)){ 15 15 var settings = $('#import_settings').val(); 16 $.post(' {$ajax_url}',{settings: settings}, function(data) {16 $.post('" . esc_url($ajax_url) . "',{settings: settings}, function(data) { 17 17 if(data == '1'){ 18 18 $('#import-settings-btn').html('Import Successful').attr('disabled','disabled'); -
404-page/trunk/framework/field-types/multiselect.php
r1163541 r3294206 9 9 } 10 10 11 echo "<select multiple='multiple' id=' $id' class='" . ( empty( $class ) ? 'all-options' : $class ) . "' name='{$setting_id}[$id][]'>";11 echo "<select multiple='multiple' id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? 'all-options' : $class) . "' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "][]'>"; 12 12 13 13 foreach ( $option_values as $k => $v ) { 14 14 15 15 16 echo "<option value=' $k' " . (in_array($k,$options[$id],true)?'selected':'') . ">$v</option>";16 echo "<option value='" . esc_attr($k) . "' " . (in_array($k,$options[$id],true)?'selected':'') . ">" . esc_html($v) . "</option>"; 17 17 } 18 18 echo "</select><br>"; -
404-page/trunk/framework/field-types/password.php
r1163541 r3294206 7 7 $options[ $id ] = ''; 8 8 } 9 echo "<input id=' $id' class='" . ( empty( $class ) ? 'regular-text' : $class ) . "' name='{$setting_id}[$id]' type='password' value='" . esc_attr( $options[ $id ] ) . "' /><br>";9 echo "<input id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? 'regular-text' : $class) . "' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]' type='password' value='" . esc_attr( $options[ $id ] ) . "' /><br>"; -
404-page/trunk/framework/field-types/radio.php
r1163541 r3294206 6 6 7 7 foreach ( $option_values as $k => $v ) { 8 echo "<input class=' $id' type='radio' name='{$setting_id}[$id]' value='$k' " . checked( $options[ $id ], $k, false ) . " /> $v<br/>";8 echo "<input class='" . esc_attr($id) . "' type='radio' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]' value='" . esc_attr($k) . "' " . checked( $options[ $id ], $k, false ) . " /> " . esc_html($v) . "<br/>"; 9 9 } -
404-page/trunk/framework/field-types/select.php
r1163541 r3294206 5 5 // $options[$id] value from the db 6 6 7 echo "<select id=' $id' class='" . ( empty( $class ) ? '' : $class ) . "' name='{$setting_id}[$id]'>";7 echo "<select id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? '' : $class) . "' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]'>"; 8 8 foreach ( $option_values as $k => $v ) { 9 9 if(is_array($v)){ 10 echo '<optgroup label="'. ucwords($k).'">';10 echo '<optgroup label="'.esc_attr(ucwords($k)).'">'; 11 11 foreach ( $v as $k1=>$v1 ) { 12 echo "<option value=' $k1' " . selected( $options[ $id ], $k1, false ) . ">$v1</option>";12 echo "<option value='" . esc_attr($k1) . "' " . selected( $options[ $id ], $k1, false ) . ">" . esc_html($v1) . "</option>"; 13 13 } 14 14 echo '</optgroup>'; 15 15 }else{ 16 if(!isset($options[ $id ])){17 $options[ $id ] = '';18 }19 echo "<option value=' $k' " . selected( $options[ $id ], $k, false ) . ">$v</option>";16 if(!isset($options[ $id ])){ 17 $options[ $id ] = ''; 18 } 19 echo "<option value='" . esc_attr($k) . "' " . selected( $options[ $id ], $k, false ) . ">" . esc_html($v) . "</option>"; 20 20 } 21 21 } -
404-page/trunk/framework/field-types/text.php
r1163541 r3294206 5 5 // $options[$id] value from the db 6 6 if(!empty($options[ $id ])) 7 echo "<p id=' $id' class='" . ( empty( $class ) ? '' : $class ) . "' >".$options[ $id ]."</p>";7 echo "<p id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? '' : $class) . "' >".esc_html($options[ $id ]) ."</p>"; -
404-page/trunk/framework/field-types/textarea.php
r1163541 r3294206 7 7 $options[ $id ] = ''; 8 8 } 9 echo "<textarea id=' $id' class='" . ( empty( $class ) ? '' : $class ) . "' name='{$setting_id}[$id]'>" . $options[ $id ]. "</textarea><br>";9 echo "<textarea id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? '' : $class) . "' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]'>" . esc_textarea( $options[ $id ] ) . "</textarea><br>"; -
404-page/trunk/framework/field-types/textbox.php
r1163541 r3294206 7 7 $options[ $id ] = ''; 8 8 } 9 echo "<input id=' $id' class='" . ( empty( $class ) ? 'regular-text' : $class ) . "' name='{$setting_id}[$id]' type='text' value='" . esc_attr( $options[ $id ] ) . "' /><br>";9 echo "<input id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? 'regular-text' : $class) . "' name='".esc_attr($setting_id) . "[" . esc_attr($id) . "]' type='text' value='" . esc_attr( $options[ $id ] ) . "' /><br>"; -
404-page/trunk/framework/field-types/upload.php
r1163541 r3294206 9 9 10 10 11 echo "<input id=' $id' class='" . ( empty( $class ) ? 'regular-text' : $class ) . "' name='{$setting_id}[$id]' type='text' value='" . esc_attr( $options[ $id ] ) . "' />";12 echo "<input id=' {$id}_upload_image_button' class='button-secondary upload-button' type='button' value='" . __( 'Media Image Library', 'seedprod' ) . "' /><br>";11 echo "<input id='" . esc_attr($id) . "' class='" . esc_attr(empty( $class ) ? 'regular-text' : $class) . "' name='" . esc_attr($setting_id) . "[" . esc_attr($id) . "]' type='text' value='" . esc_attr( $options[ $id ] ) . "' />"; 12 echo "<input id='" . esc_attr($id) . "_upload_image_button' class='button-secondary upload-button' type='button' value='" . esc_attr__( 'Media Image Library', '404-page' ) . "' /><br>"; 13 13 14 14 wp_enqueue_script( 'seed_s404f-upload-js', SEED_S404F_PLUGIN_URL . 'framework/field-types/js/upload.js', array() ); -
404-page/trunk/framework/framework.php
r1909873 r3294206 75 75 76 76 $_POST[ $_POST[ 'option_page' ] ] = $seed_s404f_settings_deafults[$_POST[ 'option_page' ]]; 77 add_settings_error( 'general', 'seed_s404f-settings-reset', __( "Settings reset." ), 'updated' );77 add_settings_error( 'general', 'seed_s404f-settings-reset', __( "Settings reset.", '404-page' ), 'updated' ); 78 78 } 79 79 } … … 114 114 { 115 115 $this->plugin_screen_hook_suffix = add_options_page( 116 __( "404 Page by SeedProd", ' seedprod' ),117 __( "404 Page by SeedProd", ' seedprod' ),116 __( "404 Page by SeedProd", '404-page' ), 117 __( "404 Page by SeedProd", '404-page' ), 118 118 'manage_options', 119 119 'seed_s404f', … … 171 171 $active = 'nav-tab-active'; 172 172 } 173 echo '<a class="nav-tab ' . $active . '" href="?page=' . $menu_slug . '&tab=' . $v[ 'id' ] . '">' . $v[ 'label' ]. '</a>';173 echo '<a class="nav-tab ' . esc_attr($active) . '" href="?page=' . esc_attr($menu_slug) . '&tab=' . esc_attr($v[ 'id' ]) . '">' . esc_html($v[ 'label' ]) . '</a>'; 174 174 $c++; 175 175 } 176 176 } 177 echo '<a class="nav-tab seed_s404f-preview thickbox-preview" href="'. home_url().'?seed_s404f_preview=true" title="'.__('← Close Window','seedprod').'">'.__('Live Preview','seedprod').'</a>';177 echo '<a class="nav-tab seed_s404f-preview thickbox-preview" href="'.esc_url(home_url('/?seed_s404f_preview=true')).'" title="'.esc_attr__('← Close Window','404-page').'">'.esc_html__('Live Preview','404-page').'</a>'; 178 178 if(defined('SEED_CSP_API_KEY') === false){ 179 echo '<a class="nav-tab seed_s404f-support" style="background-color: #fcf8e3;" href="http://www.seedprod.com/wordpress-404-page-pro/?utm_source=404-page-plugin&utm_medium=banner&utm_campaign=404-page-in-plugin" target="_blank"><i class="fa fa-star"></i> '. __('Upgrade to Pro for more Professional Features','seedprod').'</a>';179 echo '<a class="nav-tab seed_s404f-support" style="background-color: #fcf8e3;" href="http://www.seedprod.com/wordpress-404-page-pro/?utm_source=404-page-plugin&utm_medium=banner&utm_campaign=404-page-in-plugin" target="_blank"><i class="fa fa-star"></i> '.esc_html__('Upgrade to Pro for more Professional Features','404-page').'</a>'; 180 180 } 181 181 echo '</h2>'; … … 219 219 <div class="wrap columns-2 seed-csp4"> 220 220 221 <h2><?php echo $this->plugin_name; ?> <span class="seed_s404f-version"> <?php echo SEED_S404F_VERSION; ?></span></h2>221 <h2><?php echo esc_html($this->plugin_name); ?> <span class="seed_s404f-version"> <?php echo esc_html(SEED_S404F_VERSION); ?></span></h2> 222 222 <?php //settings_errors() ?> 223 223 <?php $this->plugin_options_tabs(); ?> … … 232 232 <form action="options.php" method="post"> 233 233 234 <!-- <input name="submit" type="submit" value="<?php _e( 'Save All Changes', 'seedprod' ); ?>" class="button-primary"/> -->234 <!-- <input name="submit" type="submit" value="<?php esc_html_e( 'Save All Changes', '404-page' ); ?>" class="button-primary"/> --> 235 235 <?php if(!empty($_GET['tab']) && $_GET['tab'] != 'seed_s404f_tab_3') { ?> 236 <!-- <input id="reset" name="reset" type="submit" value="<?php _e( 'Reset Settings', 'seedprod' ); ?>" class="button-secondary"/> -->236 <!-- <input id="reset" name="reset" type="submit" value="<?php esc_html_e( 'Reset Settings', '404-page' ); ?>" class="button-secondary"/> --> 237 237 <?php } ?> 238 238 … … 264 264 if ( $current_tab == $tab[ 'id' ] or $current_tab === false ) { 265 265 if ( $layout == '2-col' ) { 266 echo '<div id="'. $v[ 'id' ].'" class="postbox seedprod-postbox">';267 $this->do_settings_sections( $v[ 'id'],$show_submit );266 echo '<div id="'.esc_attr($v['id']).'" class="postbox seedprod-postbox">'; 267 $this->do_settings_sections( $v['id'],$show_submit ); 268 268 echo '</div>'; 269 269 } else { 270 do_settings_sections( $v[ 'id'] );270 do_settings_sections( $v['id'] ); 271 271 } 272 272 … … 281 281 <?php if($show_submit): ?> 282 282 <p> 283 <!-- <input name="submit" type="submit" value="<?php _e( 'Save All Changes', 'seedprod' ); ?>" class="button-primary"/> -->284 <!-- <input id="reset" name="reset" type="submit" value="<?php _e( 'Reset Settings', 'seedprod' ); ?>" class="button-secondary"/> -->283 <!-- <input name="submit" type="submit" value="<?php esc_html_e( 'Save All Changes', '404-page' ); ?>" class="button-primary"/> --> 284 <!-- <input id="reset" name="reset" type="submit" value="<?php esc_html_e( 'Reset Settings', '404-page' ); ?>" class="button-secondary"/> --> 285 285 </p> 286 286 <?php endif; ?> … … 294 294 jQuery(document).ready(function($) { 295 295 $('#reset').click(function(e){ 296 if(!confirm( '<?php _e( 'This tabs settings be deleted and reset to the defaults. Are you sure you want to reset?', 'seedprod' ); ?>')){296 if(!confirm( '<?php echo esc_js( __( 'This tabs settings be deleted and reset to the defaults. Are you sure you want to reset?', '404-page' ) ); ?>' )){ 297 297 e.preventDefault(); 298 298 } … … 398 398 // Show description 399 399 if ( !empty( $desc ) ) { 400 echo "<small class='description'> {$desc}</small>";400 echo "<small class='description'>".wp_kses_post($desc)."</small>"; 401 401 } 402 402 } … … 480 480 481 481 foreach ( (array) $wp_settings_sections[ $page ] as $section ) { 482 echo "<h3 class='hndle'> {$section['title']}</h3>\n";482 echo "<h3 class='hndle'>".esc_html($section['title'])."</h3>\n"; 483 483 echo '<div class="inside">'; 484 484 call_user_func( $section[ 'callback' ], $section ); … … 490 490 if($show_submit): ?> 491 491 <p> 492 <input name="submit" type="submit" value="<?php _e( 'Save All Changes', 'seedprod' ); ?>" class="button-primary"/>492 <input name="submit" type="submit" value="<?php esc_attr_e( 'Save All Changes', '404-page' ); ?>" class="button-primary"/> 493 493 </p> 494 494 <?php endif; … … 506 506 echo '<tr valign="top">'; 507 507 if ( !empty($field['args']['label_for']) ) 508 echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title']. '</label></th>';508 echo '<th scope="row"><label for="' . esc_attr($field['args']['label_for']) . '">' . esc_html($field['title']) . '</label></th>'; 509 509 else 510 echo '<th scope="row"><strong>' . $field['title'] . '</strong><!--<br>'.$field['args']['desc'].'--></th>';510 echo '<th scope="row"><strong>' . esc_html($field['title']) . '</strong><!--<br>'.esc_html($field['args']['desc']).'--></th>'; 511 511 echo '<td>'; 512 512 call_user_func($field['callback'], $field['args']); -
404-page/trunk/framework/validations/color.php
r1163541 r3294206 11 11 if ( !preg_match( '/^#[a-f0-9]{6}$/i', $input[ $k[ 'id' ] ] ) ) { 12 12 $is_valid = false; 13 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid color value.', ' seedprod' );13 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid color value.', '404-page' ); 14 14 } 15 15 } -
404-page/trunk/framework/validations/email.php
r1163541 r3294206 8 8 if ( !empty( $input[ $k[ 'id' ] ] ) ) { 9 9 $is_valid = is_email( $input[ $k[ 'id' ] ] ); 10 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid email.', ' seedprod' );10 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid email.', '404-page' ); 11 11 } -
404-page/trunk/framework/validations/escurlraw.php
r1163541 r3294206 9 9 $input[ $k[ 'id' ] ]= esc_url_raw($input[ $k[ 'id' ] ]); 10 10 $is_valid = true; 11 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid email.', ' seedprod' );11 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid email.', '404-page' ); 12 12 } -
404-page/trunk/framework/validations/number.php
r1163541 r3294206 9 9 if ( !is_numeric( $input[ $k[ 'id' ] ] ) ) { 10 10 $is_valid = false; 11 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid number.', ' seedprod' );11 $error_msg = $k[ 'label' ] . ': ' . __( 'Please enter a valid number.', '404-page' ); 12 12 } 13 13 } -
404-page/trunk/framework/validations/required.php
r1163541 r3294206 8 8 if ( empty( $input[ $k[ 'id' ] ] ) ) { 9 9 $is_valid = false; 10 $error_msg = $k[ 'label' ] . ' ' . __( 'is required.', ' seedprod' );10 $error_msg = $k[ 'label' ] . ' ' . __( 'is required.', '404-page' ); 11 11 } -
404-page/trunk/includes/class-s404f.php
r1163541 r3294206 75 75 } 76 76 77 echo $font_family;77 echo esc_attr($font_family); 78 78 } 79 79 … … 156 156 } 157 157 } else { 158 echo do_shortcode($template);158 echo wp_kses_post(do_shortcode($template)); 159 159 exit(); 160 160 } -
404-page/trunk/includes/config-settings.php
r1163541 r3294206 20 20 "type" => "menu", 21 21 "menu_type" => "add_options_page", 22 "page_name" => __( "404 Page by SeedProd", ' seedprod' ),22 "page_name" => __( "404 Page by SeedProd", '404-page' ), 23 23 "menu_slug" => "seed_s404f", 24 24 "layout" => "2-col" … … 31 31 "type" => "tab", 32 32 "id" => "seed_s404f_setting", 33 "label" => __( "Page Settings", ' seedprod' ),33 "label" => __( "Page Settings", '404-page' ), 34 34 ); 35 35 … … 42 42 "type" => "section", 43 43 "id" => "seed_s404f_section_general", 44 "label" => __( "General", ' seedprod' ),44 "label" => __( "General", '404-page' ), 45 45 ); 46 46 … … 48 48 "type" => "radio", 49 49 "id" => "status", 50 "label" => __( "Status", ' seedprod' ),51 "option_values" => array( 52 '0' => __( 'Disabled', ' seedprod' ),53 '1' => __( 'Enable 404 Page', ' seedprod' ),54 ), 55 "desc" => __( "This will replace your theme's 404 page with a custom 404 page.", ' seedprod' ),50 "label" => __( "Status", '404-page' ), 51 "option_values" => array( 52 '0' => __( 'Disabled', '404-page' ), 53 '1' => __( 'Enable 404 Page', '404-page' ), 54 ), 55 "desc" => __( "This will replace your theme's 404 page with a custom 404 page.", '404-page' ), 56 56 "default_value" => "0" 57 57 ); … … 61 61 "type" => "section", 62 62 "id" => "seed_s404f_section_page_settings", 63 "label" => __( "Page Settings", ' seedprod' )63 "label" => __( "Page Settings", '404-page' ) 64 64 ); 65 65 … … 67 67 "type" => "upload", 68 68 "id" => "logo", 69 "label" => __( "Logo", ' seedprod' ),70 "desc" => __('Upload a logo or other image.', ' seedprod'),69 "label" => __( "Logo", '404-page' ), 70 "desc" => __('Upload a logo or other image.', '404-page'), 71 71 ); 72 72 … … 75 75 "id" => "headline", 76 76 "class" => "large-text", 77 "label" => __( "Headline", ' seedprod' ),78 "desc" => __( "Enter a headline for your page.", ' seedprod' ),79 'default' => __( "404 Page by SeedProd", ' seedprod' ),77 "label" => __( "Headline", '404-page' ), 78 "desc" => __( "Enter a headline for your page.", '404-page' ), 79 'default' => __( "404 Page by SeedProd", '404-page' ), 80 80 ); 81 81 … … 83 83 "type" => "wpeditor", 84 84 "id" => "description", 85 "label" => __( "Message", ' seedprod' ),86 "desc" => __( "Enter your 404 page message.", ' seedprod' ),85 "label" => __( "Message", '404-page' ), 86 "desc" => __( "Enter your 404 page message.", '404-page' ), 87 87 "class" => "large-text" 88 88 ); … … 91 91 "type" => "checkbox", 92 92 "id" => "search_form", 93 "label" => __( "Enable WordPress Search Form", ' seedprod' ),94 "desc" => __("This will enable the WordPress Search Form", ' seedprod'),95 "option_values" => array( 96 '1' => __( 'Yes', ' seedprod' ),93 "label" => __( "Enable WordPress Search Form", '404-page' ), 94 "desc" => __("This will enable the WordPress Search Form", '404-page'), 95 "option_values" => array( 96 '1' => __( 'Yes', '404-page' ), 97 97 ), 98 98 "default" => "1", … … 103 103 "id" => "twitter_url", 104 104 "class" => "large-text", 105 "label" => __( "Twitter Social Profile", ' seedprod' ),106 "desc" => __( "Enter your Twitter url to display a social icon.", ' seedprod' ),105 "label" => __( "Twitter Social Profile", '404-page' ), 106 "desc" => __( "Enter your Twitter url to display a social icon.", '404-page' ), 107 107 ); 108 108 … … 111 111 "id" => "facebook_url", 112 112 "class" => "large-text", 113 "label" => __( "Facebook Social Profile", ' seedprod' ),114 "desc" => __( "Enter your Facebook url to display a social icon.", ' seedprod' ),113 "label" => __( "Facebook Social Profile", '404-page' ), 114 "desc" => __( "Enter your Facebook url to display a social icon.", '404-page' ), 115 115 ); 116 116 117 117 $seed_s404f_options[ ] = array( "type" => "radio", 118 118 "id" => "footer_credit", 119 "label" => __("Powered By SeedProd", ' seedprod'),120 "option_values" => array('0'=>__('Nope - Got No Love', ' seedprod'),'1'=>__('Yep - I Love You Man', 'seedprod')),121 "desc" => __("Can we show a <strong>cool stylish</strong> footer credit at the bottom the page.", ' seedprod'),119 "label" => __("Powered By SeedProd", '404-page'), 120 "option_values" => array('0'=>__('Nope - Got No Love', '404-page'),'1'=>__('Yep - I Love You Man', '404-page')), 121 "desc" => __("Can we show a <strong>cool stylish</strong> footer credit at the bottom the page.", '404-page'), 122 122 "default_value" => "0", 123 123 ); … … 131 131 "type" => "tab", 132 132 "id" => "seed_s404f_design", 133 "label" => __( "Design Settings", ' seedprod' )133 "label" => __( "Design Settings", '404-page' ) 134 134 ); 135 135 … … 144 144 "type" => "section", 145 145 "id" => "seed_s404f_section_background", 146 "label" => __( "Background", ' seedprod' )146 "label" => __( "Background", '404-page' ) 147 147 ); 148 148 … … 152 152 "type" => "checkbox", 153 153 "id" => "bg_screenshot", 154 "label" => __( "Background Screenshot", ' seedprod' ),155 "desc" => __("This will capture a screenshot of your home page and use it as the background. Note: It may take a few minutes for the initial screenshot to be generated.", ' seedprod'),156 "option_values" => array( 157 '1' => __( 'Yes', ' seedprod' ),154 "label" => __( "Background Screenshot", '404-page' ), 155 "desc" => __("This will capture a screenshot of your home page and use it as the background. Note: It may take a few minutes for the initial screenshot to be generated.", '404-page'), 156 "option_values" => array( 157 '1' => __( 'Yes', '404-page' ), 158 158 ), 159 159 ); … … 163 163 "type" => "upload", 164 164 "id" => "bg_image", 165 "desc" => __('This will override the screenshot image if set.', ' seedprod'),166 "label" => __( "Background Image", ' seedprod' ),165 "desc" => __('This will override the screenshot image if set.', '404-page'), 166 "label" => __( "Background Image", '404-page' ), 167 167 ); 168 168 … … 171 171 "type" => "color", 172 172 "id" => "bg_color", 173 "label" => __( "Background Color", ' seedprod' ),173 "label" => __( "Background Color", '404-page' ), 174 174 "default_value" => "#fafafa", 175 175 "validate" => 'color', … … 180 180 "type" => "checkbox", 181 181 "id" => "bg_cover", 182 "label" => __( "Responsive Background", ' seedprod' ),183 "desc" => __("Scale the background image to be as large as possible so that the background area is completely covered by the background image. Some parts of the background image may not be in view within the background positioning area.", ' seedprod'),184 "option_values" => array( 185 '1' => __( 'Yes', ' seedprod' ),182 "label" => __( "Responsive Background", '404-page' ), 183 "desc" => __("Scale the background image to be as large as possible so that the background area is completely covered by the background image. Some parts of the background image may not be in view within the background positioning area.", '404-page'), 184 "option_values" => array( 185 '1' => __( 'Yes', '404-page' ), 186 186 ), 187 187 "default" => "1", … … 191 191 "type" => "select", 192 192 "id" => "bg_repeat", 193 "desc" => __('This setting is not applied if Responsive Background is checked', ' seedprod' ),194 "label" => __( "Background Repeat", ' seedprod' ),195 "option_values" => array( 196 'no-repeat' => __( 'No-Repeat', ' seedprod' ),197 'repeat' => __( 'Tile', ' seedprod' ),198 'repeat-x' => __( 'Tile Horizontally', ' seedprod' ),199 'repeat-y' => __( 'Tile Vertically', ' seedprod' ),193 "desc" => __('This setting is not applied if Responsive Background is checked', '404-page' ), 194 "label" => __( "Background Repeat", '404-page' ), 195 "option_values" => array( 196 'no-repeat' => __( 'No-Repeat', '404-page' ), 197 'repeat' => __( 'Tile', '404-page' ), 198 'repeat-x' => __( 'Tile Horizontally', '404-page' ), 199 'repeat-y' => __( 'Tile Vertically', '404-page' ), 200 200 ) 201 201 ); … … 205 205 "type" => "select", 206 206 "id" => "bg_position", 207 "desc" => __('This setting is not applied if Responsive Background is checked', ' seedprod' ),208 "label" => __( "Background Position", ' seedprod' ),209 "option_values" => array( 210 'left top' => __( 'Left Top', ' seedprod' ),211 'left center' => __( 'Left Center', ' seedprod' ),212 'left bottom' => __( 'Left Bottom', ' seedprod' ),213 'right top' => __( 'Right Top', ' seedprod' ),214 'right center' => __( 'Right Center', ' seedprod' ),215 'right bottom' => __( 'Right Bottom', ' seedprod' ),216 'center top' => __( 'Center Top', ' seedprod' ),217 'center center' => __( 'Center Center', ' seedprod' ),218 'center bottom' => __( 'Center Bottom', ' seedprod' ),207 "desc" => __('This setting is not applied if Responsive Background is checked', '404-page' ), 208 "label" => __( "Background Position", '404-page' ), 209 "option_values" => array( 210 'left top' => __( 'Left Top', '404-page' ), 211 'left center' => __( 'Left Center', '404-page' ), 212 'left bottom' => __( 'Left Bottom', '404-page' ), 213 'right top' => __( 'Right Top', '404-page' ), 214 'right center' => __( 'Right Center', '404-page' ), 215 'right bottom' => __( 'Right Bottom', '404-page' ), 216 'center top' => __( 'Center Top', '404-page' ), 217 'center center' => __( 'Center Center', '404-page' ), 218 'center bottom' => __( 'Center Bottom', '404-page' ), 219 219 ) 220 220 ); … … 223 223 "type" => "select", 224 224 "id" => "bg_attahcment", 225 "desc" => __('This setting is not applied if Responsive Background is checked', ' seedprod' ),226 "label" => __( "Background Attachment", ' seedprod' ),227 "option_values" => array( 228 'fixed' => __( 'Fixed', ' seedprod' ),229 'scroll' => __( 'Scroll', ' seedprod' ),225 "desc" => __('This setting is not applied if Responsive Background is checked', '404-page' ), 226 "label" => __( "Background Attachment", '404-page' ), 227 "option_values" => array( 228 'fixed' => __( 'Fixed', '404-page' ), 229 'scroll' => __( 'Scroll', '404-page' ), 230 230 ) 231 231 ); … … 236 236 "type" => "section", 237 237 "id" => "seed_s404f_section_text", 238 "label" => __( "Text", ' seedprod' )238 "label" => __( "Text", '404-page' ) 239 239 ); 240 240 … … 243 243 "type" => "color", 244 244 "id" => "link_color", 245 "label" => __( "Link Color", ' seedprod' ),245 "label" => __( "Link Color", '404-page' ), 246 246 "default_value" => "#27AE60", 247 247 "validate" => 'required,color', … … 254 254 "type" => "select", 255 255 "id" => "text_font", 256 "label" => __( "Text Font", ' seedprod' ),256 "label" => __( "Text Font", '404-page' ), 257 257 "option_values" => apply_filters('seed_s404f_fonts',array( 258 258 '_arial' => 'Arial', … … 278 278 "type" => "section", 279 279 "id" => "seed_s404f_section_template", 280 "label" => __( "Template", ' seedprod' )280 "label" => __( "Template", '404-page' ) 281 281 ); 282 282 … … 286 286 "id" => "custom_css", 287 287 "class" => "large-text", 288 "label" => __( "Custom CSS", ' seedprod' ),289 "desc" => __('Need to tweaks the styles? Add your custom CSS here.',' seedprod'),288 "label" => __( "Custom CSS", '404-page' ), 289 "desc" => __('Need to tweaks the styles? Add your custom CSS here.','404-page'), 290 290 ); 291 291 … … 297 297 "type" => "tab", 298 298 "id" => "seed_s404f_advanced", 299 "label" => __( "Advanced", ' seedprod' )299 "label" => __( "Advanced", '404-page' ) 300 300 ); 301 301 … … 310 310 "type" => "section", 311 311 "id" => "seed_s404f_section_scripts", 312 "label" => __( "Scripts", ' seedprod' )312 "label" => __( "Scripts", '404-page' ) 313 313 ); 314 314 … … 316 316 "type" => "checkbox", 317 317 "id" => "enable_wp_head_footer", 318 "label" => __( "Enable 3rd Party Plugins", ' seedprod' ),319 "desc" => __("Turn off 3rd party plugins if you are having diplay issues on the 404 page. No other plugins will run on the 404 page when unchecked.", ' seedprod'),320 "option_values" => array( 321 '1' => __( 'Disable', ' seedprod' ),318 "label" => __( "Enable 3rd Party Plugins", '404-page' ), 319 "desc" => __("Turn off 3rd party plugins if you are having diplay issues on the 404 page. No other plugins will run on the 404 page when unchecked.", '404-page'), 320 "option_values" => array( 321 '1' => __( 'Disable', '404-page' ), 322 322 ), 323 323 "default" => "1", … … 327 327 "type" => "textarea", 328 328 "id" => "header_scripts", 329 "label" => __( "Header Scripts", ' seedprod' ),330 "desc" => __('Enter any custom scripts. You can enter Javascript or CSS. This will be rendered before the closing head tag.', ' seedprod'),329 "label" => __( "Header Scripts", '404-page' ), 330 "desc" => __('Enter any custom scripts. You can enter Javascript or CSS. This will be rendered before the closing head tag.', '404-page'), 331 331 "class" => "large-text" 332 332 ); … … 335 335 "type" => "textarea", 336 336 "id" => "footer_scripts", 337 "label" => __( "Footer Scripts", ' seedprod' ),338 "desc" => __('Enter any custom scripts. This will be rendered before the closing body tag.', ' seedprod'),337 "label" => __( "Footer Scripts", '404-page' ), 338 "desc" => __('Enter any custom scripts. This will be rendered before the closing body tag.', '404-page'), 339 339 "class" => "large-text" 340 340 ); -
404-page/trunk/includes/template-tags.php
r1909873 r3294206 53 53 $output = ''; 54 54 if(!empty($custom_css)){ 55 $output = '<style type="text/css">'. $custom_css.'</style>';55 $output = '<style type="text/css">'.wp_strip_all_tags($custom_css).'</style>'; 56 56 } 57 57 … … 124 124 <?php if ( !empty( $bg_image ) ): ;?> 125 125 <?php if ( isset( $bg_cover ) && in_array( '1', $bg_cover ) ) : ?> 126 background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') no-repeat top center fixed;126 background: <?php echo esc_attr($bg_color);?> url('<?php echo esc_url($bg_image); ?>') no-repeat top center fixed; 127 127 -webkit-background-size: cover; 128 128 -moz-background-size: cover; … … 130 130 background-size: cover; 131 131 <?php else: ?> 132 background: <?php echo $bg_color;?> url('<?php echo $bg_image; ?>') <?php echo $bg_repeat;?> <?php echo $bg_position;?> <?php echo $bg_attahcment;?>;132 background: <?php echo esc_attr($bg_color);?> url('<?php echo esc_url($bg_image); ?>') <?php echo esc_attr($bg_repeat);?> <?php echo esc_attr($bg_position);?> <?php echo esc_attr($bg_attahcment);?>; 133 133 <?php endif ?> 134 134 <?php else: 135 135 if(!empty($bg_color)): 136 136 ?> 137 background: <?php echo $bg_color;?>;137 background: <?php echo esc_attr($bg_color);?>; 138 138 <?php endif;endif; ?> 139 139 … … 141 141 <?php if(empty($bg_image) && !empty($bg_screenshot)): ;?> 142 142 <?php $mshot = 'http://s.wordpress.com/mshots/v1/'. urlencode(home_url()) .'?w=1600'; ?> 143 background: <?php echo $bg_color; ?> url('<?php echo $mshot ?>') <?php echo $bg_repeat ?> <?php echo $bg_position ?> <?php echo $bg_attahcment?> ;143 background: <?php echo esc_attr($bg_color); ?> url('<?php echo esc_url($mshot); ?>') <?php echo esc_attr($bg_repeat); ?> <?php echo esc_attr($bg_position); ?> <?php echo esc_attr($bg_attahcment); ?> ; 144 144 -webkit-background-size: cover; 145 145 -moz-background-size: cover; … … 156 156 <?php if ( !empty( $text_font ) ):?> 157 157 .seed-csp4 body{ 158 font-family: <?php echoSEED_S404F::get_font_family($text_font); ?>158 font-family: <?php SEED_S404F::get_font_family($text_font); ?> 159 159 } 160 160 161 161 .seed-csp4 h1, .seed-csp4 h2, .seed-csp4 h3, .seed-csp4 h4, .seed-csp4 h5, .seed-csp4 h6{ 162 font-family: <?php echoSEED_S404F::get_font_family($text_font); ?>162 font-family: <?php SEED_S404F::get_font_family($text_font); ?> 163 163 } 164 164 <?php endif;?> … … 166 166 <?php if ( !empty( $text_color ) ) { ?> 167 167 .seed-csp4 body{ 168 color:<?php echo $text_color;?>;168 color:<?php echo esc_attr($text_color);?>; 169 169 } 170 170 <?php } ?> … … 177 177 <?php if ( !empty( $headline_color ) ) { ?> 178 178 .seed-csp4 h1, .seed-csp4 h2, .seed-csp4 h3, .seed-csp4 h4, .seed-csp4 h5, .seed-csp4 h6{ 179 color:<?php echo $headline_color;?>;179 color:<?php echo esc_attr($headline_color);?>; 180 180 } 181 181 <?php }?> … … 184 184 <?php if ( !empty( $link_color ) ) { ?> 185 185 .seed-csp4 a, .seed-csp4 a:visited, .seed-csp4 a:hover, .seed-csp4 a:active{ 186 color:<?php echo $link_color;?>;186 color:<?php echo esc_attr($link_color);?>; 187 187 } 188 188 … … 194 194 <?php if(!empty($button_font['color'])){ ?> 195 195 .seed-csp4 a, .seed-csp4 a:visited, .seed-csp4 a:hover, .seed-csp4 a:active{ 196 color:<?php echo $button_font['color'];?>;196 color:<?php echo esc_attr($button_font['color']);?>; 197 197 } 198 198 199 199 #goog-wm-sb, #wp-search-btn{ 200 background: <?php echo $button_font['color'];?>;200 background: <?php echo esc_attr($button_font['color']);?>; 201 201 } 202 202 203 203 <?php 204 204 205 $css_button_color_val = esc_attr($button_font['color']); 206 205 207 $css = " 206 208 207 209 #s404f-socialprofiles a{ 208 color: {$ button_font['color']};210 color: {$css_button_color_val}; 209 211 } 210 212 … … 259 261 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); 260 262 } 261 @btnColor: {$ button_font['color']};263 @btnColor: {$css_button_color_val}; 262 264 @btnDarkColor: darken(@btnColor, 15%); 263 265 #wp-search-btn, #goog-wm-sb, .seed-csp4 .btn-primary, .seed-csp4 .btn-primary:focus, .gform_button, #mc-embedded-subscribe, .mymail-wrapper .submit-button { … … 296 298 297 299 } catch (Exception $e) { 298 _e('An error has occured. Please make sure you have entered the Text Color correctly.','seedprod');300 esc_html_e('An error has occured. Please make sure you have entered the Text Color correctly.','404-page'); 299 301 die(); 300 302 } … … 313 315 if(!empty($theme) && $theme != 'default' ){ 314 316 315 $output .= '<link rel="stylesheet" href="'. apply_filters('seed_s404f_themes_url',SEED_S404F_PLUGIN_URL).'style.css">'."\n";317 $output .= '<link rel="stylesheet" href="'.esc_url(apply_filters('seed_s404f_themes_url',SEED_S404F_PLUGIN_URL)).'style.css">'."\\n"; 316 318 } 317 319 … … 325 327 $output .= '<script src="'.$include_url.'js/jquery/jquery.js"></script>'."\n"; 326 328 } 327 $output .= '<script src="'. SEED_S404F_PLUGIN_URL.'themes/default/bootstrap/js/bootstrap.js"></script>'."\n";329 $output .= '<script src="'.esc_url(SEED_S404F_PLUGIN_URL.'themes/default/bootstrap/js/bootstrap.js').'"></script>'."\\n"; 328 330 329 331 // Scripts 330 $output .= "<!-- Scripts -->\ n";331 $output .= '<script src="'. SEED_S404F_PLUGIN_URL.'themes/default/js/script.js"></script>'."\n";332 $output .= "<!-- Scripts -->\\n"; 333 $output .= '<script src="'.esc_url(SEED_S404F_PLUGIN_URL.'themes/default/js/script.js').'"></script>'."\\n"; 332 334 333 335 // Header Scripts … … 337 339 } 338 340 339 $output .= "<!-- Modernizr -->\ n";340 $output .= '<script src="'. SEED_S404F_PLUGIN_URL.'themes/default/js/modernizr.min.js"></script>'."\n";341 $output .= "<!-- Modernizr -->\\n"; 342 $output .= '<script src="'.esc_url(SEED_S404F_PLUGIN_URL.'themes/default/js/modernizr.min.js').'"></script>'."\\n"; 341 343 342 344 $output = apply_filters('seed_s404f_head', $output); … … 422 424 $output = ''; 423 425 424 if(!empty($logo ['url'])){425 $output .= "<img id='s404f-logo' src='".esc_ attr($logo)."'>";426 if(!empty($logo)){ 427 $output .= "<img id='s404f-logo' src='".esc_url($logo)."'>"; 426 428 } 427 429 … … 444 446 445 447 if(!empty($headline)){ 446 $output .= '<h1 id="s404f-headline">'. $headline.'</h1>';448 $output .= '<h1 id="s404f-headline">'.esc_html($headline).'</h1>'; 447 449 } 448 450 … … 470 472 471 473 if(!empty($description) && $is_post === false){ 472 $content = $description;474 $content = wp_kses_post($description); 473 475 if(!empty($enable_wp_head_footer)){ 474 476 $content = apply_filters('the_content', $content); … … 510 512 <form role='search' method='get' id='searchform' class='searchform' action='$home_url'> 511 513 <div> 512 <input type='text' value='". get_search_query() ."' name='s' id='s' />514 <input type='text' value='".esc_attr(get_search_query()) ."' name='s' id='s' /> 513 515 <input type='submit' id='wp-search-btn' value='Search' /> 514 516 </div> … … 522 524 523 525 if ( $echo ) 524 echo $output;526 echo $output; 525 527 else { 526 528 return $output; … … 540 542 $output .= '<div id="s404f-socialprofiles">'; 541 543 if(!empty($twitter_url)){ 542 $output .= '<a href="'. $twitter_url.'" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>';544 $output .= '<a href="'.esc_url($twitter_url).'" target="_blank"><i class="fa fa-twitter fa-2x"></i></a>'; 543 545 } 544 546 if(!empty($facebook_url)){ 545 $output .= '<a href="'. $facebook_url.'" target="_blank"><i class="fa fa-facebook fa-2x"></i></a>';547 $output .= '<a href="'.esc_url($facebook_url).'" target="_blank"><i class="fa fa-facebook fa-2x"></i></a>'; 546 548 } 547 549 -
404-page/trunk/lib/seed_s404f_lessc.inc.php
r1163541 r3294206 652 652 $subProp[0] == "assign" && 653 653 is_string($subProp[1]) && 654 $subProp[1] {0}!= $this->vPrefix)654 $subProp[1][0] != $this->vPrefix) 655 655 { 656 656 $subProp[2] = array( … … 1546 1546 $parser = new seed_s404f_lessc_parser($this, __METHOD__); 1547 1547 foreach ($args as $name => $strValue) { 1548 if ($name {0}!= '@') $name = '@'.$name;1548 if ($name[0] != '@') $name = '@'.$name; 1549 1549 $parser->count = 0; 1550 1550 $parser->buffer = (string)$strValue; … … 2202 2202 if (!isset($block->args)) { 2203 2203 foreach ($block->tags as $tag) { 2204 if (!is_string($tag) || $tag {0}!= $this->seed_s404f_lessc->mPrefix) {2204 if (!is_string($tag) || $tag[0] != $this->seed_s404f_lessc->mPrefix) { 2205 2205 $hidden = false; 2206 2206 break; … … 2256 2256 // move @ tags out of variable namespace 2257 2257 foreach ($tags as &$tag) { 2258 if ($tag {0}== $this->seed_s404f_lessc->vPrefix)2258 if ($tag[0] == $this->seed_s404f_lessc->vPrefix) 2259 2259 $tag[0] = $this->seed_s404f_lessc->mPrefix; 2260 2260 } … … 2949 2949 if ($this->literal(';')) { 2950 2950 return true; 2951 } elseif ($this->count == strlen($this->buffer) || $this->buffer {$this->count}== '}') {2951 } elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') { 2952 2952 // if there is end of file or a closing block next then we don't need a ; 2953 2953 return true; -
404-page/trunk/readme.txt
r1671022 r3294206 5 5 Requires at least: 3 6 6 Tested up to: 4.8.0 7 Stable tag: 1.0. 17 Stable tag: 1.0.3 8 8 9 9 Creates a Custom 404 Page for your WordPress Site.
Note: See TracChangeset
for help on using the changeset viewer.