Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/portfoli.../includes
File: class-prtfl-settings.php
</fieldset>
[500] Fix | Delete
<?php } else { ?>
[501] Fix | Delete
<input disabled="disabled" type="checkbox" name="prtfl_sndr_mailout" />&nbsp
[502] Fix | Delete
<span class="bws_info"><?php esc_html_e( 'Enable to automatic mailout when publishing a new bws-portfolios and tips. Sender Pro plugin is required.', 'portfolio' ); ?> <a href="https://bestwebsoft.com/products/wordpress/plugins/sender/"><?php esc_html_e( 'Activate Now', 'portfolio' ); ?></a></span><br />
[503] Fix | Delete
<?php
[504] Fix | Delete
}
[505] Fix | Delete
} else {
[506] Fix | Delete
?>
[507] Fix | Delete
<input disabled="disabled" type="checkbox" name="prtfl_sndr_mailout" />&nbsp
[508] Fix | Delete
<span class="bws_info"><?php esc_html_e( 'Enable to automatic mailout when publishing a new bws-portfolios and tips. Sender Pro plugin is required.', 'portfolio' ); ?> <a href="https://bestwebsoft.com/products/wordpress/plugins/sender/"><?php esc_html_e( 'Install Now', 'portfolio' ); ?></a></span><br />
[509] Fix | Delete
<?php } ?>
[510] Fix | Delete
[511] Fix | Delete
</td>
[512] Fix | Delete
</tr>
[513] Fix | Delete
</table>
[514] Fix | Delete
<?php wp_nonce_field( 'prtfl_settings', 'prtfl_settings_nonce' ); ?>
[515] Fix | Delete
<?php
[516] Fix | Delete
}
[517] Fix | Delete
[518] Fix | Delete
/**
[519] Fix | Delete
* Display tab Project
[520] Fix | Delete
*/
[521] Fix | Delete
public function tab_project() {
[522] Fix | Delete
?>
[523] Fix | Delete
<h3 class="bws_tab_label"><?php esc_html_e( 'Single Project Settings', 'portfolio' ); ?></h3>
[524] Fix | Delete
<?php $this->help_phrase(); ?>
[525] Fix | Delete
<hr>
[526] Fix | Delete
<table class="form-table">
[527] Fix | Delete
<tr valign="top">
[528] Fix | Delete
<th scope="row" class="prtfl_table_project"><?php esc_html_e( 'Projects Fields', 'portfolio' ); ?> </th>
[529] Fix | Delete
<td>
[530] Fix | Delete
<fieldset>
[531] Fix | Delete
<?php foreach ( $this->fields as $field_key => $field_title ) { ?>
[532] Fix | Delete
<label class="prtfl_label_project">
[533] Fix | Delete
<input<?php echo esc_html( $this->change_permission_attr ); ?> type="checkbox" name="prtfl_<?php echo esc_attr( $field_key ); ?>_additional_field" value="1" <?php checked( 1, $this->options[ $field_key . '_additional_field' ] ); ?> /> <?php echo esc_html( $field_title ); ?>
[534] Fix | Delete
<br>
[535] Fix | Delete
<input<?php echo esc_html( $this->change_permission_attr ); ?> class="prtfl_input_project" type="text" name="prtfl_<?php echo esc_attr( $field_key ); ?>_text_field" maxlength="250" value="<?php echo esc_html( $this->options[ $field_key . '_text_field' ] ); ?>" />
[536] Fix | Delete
</label>
[537] Fix | Delete
<br />
[538] Fix | Delete
<?php } ?>
[539] Fix | Delete
<label class="prtfl_label_project">
[540] Fix | Delete
<input<?php echo esc_html( $this->change_permission_attr ); ?> type="checkbox" name="prtfl_svn_additional_field" value="1" <?php checked( 1, $this->options['svn_additional_field'] ); ?> /> <?php esc_html_e( 'Source Files, URL', 'portfolio' ); ?>
[541] Fix | Delete
</label>
[542] Fix | Delete
<label class="prtfl_label_project" id="prtfl_non_logged">
[543] Fix | Delete
<input<?php echo esc_html( $this->change_permission_attr ); ?> type="checkbox" name="prtfl_svn_additional_field_for_non_logged" value="1" <?php checked( 1, $this->options['svn_additional_field_for_non_logged'] ); ?> /> <?php esc_html_e( 'Display only for logged-in users', 'portfolio' ); ?>
[544] Fix | Delete
</label>
[545] Fix | Delete
<label class="prtfl_label_project">
[546] Fix | Delete
<input<?php echo esc_html( $this->change_permission_attr ); ?> class="prtfl_input_project" type="text" name="prtfl_svn_text_field" maxlength="250" value= "<?php echo esc_html( $this->options['svn_text_field'] ); ?>" />
[547] Fix | Delete
</label>
[548] Fix | Delete
<label class="prtfl_label_project">
[549] Fix | Delete
<?php esc_html_e( '"More screenshots" block', 'portfolio' ); ?>
[550] Fix | Delete
<br>
[551] Fix | Delete
<input class="prtfl_input_project" type="text" name="prtfl_screenshot_text_field" maxlength="250" value="<?php echo esc_html( $this->options['screenshot_text_field'] ); ?>" />
[552] Fix | Delete
</label>
[553] Fix | Delete
</fieldset>
[554] Fix | Delete
</td>
[555] Fix | Delete
</tr>
[556] Fix | Delete
</table>
[557] Fix | Delete
<?php if ( ! $this->hide_pro_tabs ) { ?>
[558] Fix | Delete
<div class="bws_pro_version_bloc">
[559] Fix | Delete
<div class="bws_pro_version_table_bloc">
[560] Fix | Delete
<button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php esc_html_e( 'Close', 'portfolio' ); ?>"></button>
[561] Fix | Delete
<div class="bws_table_bg"></div>
[562] Fix | Delete
<table class="form-table bws_pro_version">
[563] Fix | Delete
<tr>
[564] Fix | Delete
<th scope="row" class="prtfl_table_project"><?php esc_html_e( 'Projects Fields', 'portfolio' ); ?></th>
[565] Fix | Delete
<td>
[566] Fix | Delete
<fieldset>
[567] Fix | Delete
<label class="prtfl_label_project">
[568] Fix | Delete
<input type="checkbox" name="prtfl_categories_additional_field" value="1" disabled="disabled" /> <?php esc_html_e( 'Categories', 'portfolio' ); ?><br />
[569] Fix | Delete
<input class="prtfl_input_project" type="text" name="prtfl_categories_text_field" value="<?php esc_html_e( 'Categories', 'portfolio' ); ?>:" disabled="disabled" />
[570] Fix | Delete
</label><br />
[571] Fix | Delete
<label class="prtfl_label_project">
[572] Fix | Delete
<input type="checkbox" name="prtfl_sectors_additional_field" value="1" disabled="disabled" /> <?php esc_html_e( 'Sectors', 'portfolio' ); ?><br />
[573] Fix | Delete
<input class="prtfl_input_project" type="text" name="prtfl_sectors_text_field" value="<?php esc_html_e( 'Sectors', 'portfolio' ); ?>:" disabled="disabled" />
[574] Fix | Delete
</label><br />
[575] Fix | Delete
<label class="prtfl_label_project">
[576] Fix | Delete
<input type="checkbox" name="prtfl_services_additional_field" value="1" disabled="disabled" /> <?php esc_html_e( 'Services', 'portfolio' ); ?><br />
[577] Fix | Delete
<input class="prtfl_input_project" type="text" name="prtfl_services_text_field" value="<?php esc_html_e( 'Services', 'portfolio' ); ?>:" disabled="disabled" />
[578] Fix | Delete
</label><br />
[579] Fix | Delete
<label class="prtfl_label_project">
[580] Fix | Delete
<input type="checkbox" name="prtfl_client_additional_field" value="1" disabled="disabled" /> <?php esc_html_e( 'Client', 'portfolio' ); ?><br />
[581] Fix | Delete
<input class="prtfl_input_project" type="text" name="prtfl_client_text_field" value="<?php esc_html_e( 'Client', 'portfolio' ); ?>:" disabled="disabled" />
[582] Fix | Delete
</label><br />
[583] Fix | Delete
<label><input type="checkbox" name="prtfl_disbable_screenshot_block" value="1" disabled="disabled" /> <?php esc_html_e( '"More screenshots" block', 'portfolio' ); ?></label><br />
[584] Fix | Delete
</fieldset>
[585] Fix | Delete
</td>
[586] Fix | Delete
</tr>
[587] Fix | Delete
</table>
[588] Fix | Delete
</div>
[589] Fix | Delete
<?php $this->bws_pro_block_links(); ?>
[590] Fix | Delete
</div>
[591] Fix | Delete
<?php
[592] Fix | Delete
}
[593] Fix | Delete
}
[594] Fix | Delete
[595] Fix | Delete
/**
[596] Fix | Delete
* Add Demo data
[597] Fix | Delete
*/
[598] Fix | Delete
public function additional_import_export_options() {
[599] Fix | Delete
?>
[600] Fix | Delete
<table class="form-table">
[601] Fix | Delete
<tr valign="top">
[602] Fix | Delete
<th scope="row"><?php esc_html_e( 'Demo Data', 'portfolio' ); ?></th>
[603] Fix | Delete
<td>
[604] Fix | Delete
<?php $this->demo_data->bws_show_demo_button( __( 'Install demo data to create portfolio projects with images, post with shortcodes and page with a list of all portfolio projects.', 'portfolio' ) ); ?>
[605] Fix | Delete
</td>
[606] Fix | Delete
</tr>
[607] Fix | Delete
</table>
[608] Fix | Delete
<?php
[609] Fix | Delete
}
[610] Fix | Delete
[611] Fix | Delete
/**
[612] Fix | Delete
* Display custom options on the 'misc' tab
[613] Fix | Delete
*
[614] Fix | Delete
* @access public
[615] Fix | Delete
*/
[616] Fix | Delete
public function additional_misc_options_affected() {
[617] Fix | Delete
global $wp_version;
[618] Fix | Delete
if ( ! $this->all_plugins ) {
[619] Fix | Delete
if ( ! function_exists( 'get_plugins' ) ) {
[620] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/plugin.php';
[621] Fix | Delete
}
[622] Fix | Delete
$this->all_plugins = get_plugins();
[623] Fix | Delete
}
[624] Fix | Delete
if ( $this->options['post_type_name'] !== $this->default_options['post_type_name'] ) {
[625] Fix | Delete
?>
[626] Fix | Delete
<tr valign="top">
[627] Fix | Delete
<th scope="row"><?php esc_html_e( 'Portfolio Post Type', 'portfolio' ); ?></th>
[628] Fix | Delete
<td>
[629] Fix | Delete
<input type="checkbox" name="prtfl_rename_post_type" value="1" />
[630] Fix | Delete
<span class="bws_info">
[631] Fix | Delete
<?php esc_html_e( 'Enable to avoid conflicts with other portfolio plugins installed. All portfolio created earlier will stay unchanged. However, after enabling we recommend to check settings of other plugins where "portfolio" post type is used.', 'portfolio' ); ?>
[632] Fix | Delete
</span>
[633] Fix | Delete
</td>
[634] Fix | Delete
</tr>
[635] Fix | Delete
<?php } ?>
[636] Fix | Delete
<tr valign="top">
[637] Fix | Delete
<th scope="row"><?php esc_html_e( 'Portfolio Slug', 'portfolio' ); ?></th>
[638] Fix | Delete
<td>
[639] Fix | Delete
<input type="text" name="prtfl_slug" maxlength="100" value="<?php echo esc_attr( $this->options['slug'] ); ?>" />
[640] Fix | Delete
<div class="bws_info"><?php esc_html_e( 'Enter the unique portfolio slug.', 'portfolio' ); ?></div>
[641] Fix | Delete
</td>
[642] Fix | Delete
</tr>
[643] Fix | Delete
<tr valign="top">
[644] Fix | Delete
<th scope="row"><?php esc_html_e( 'Search Portfolio Projects', 'portfolio' ); ?></th>
[645] Fix | Delete
<td>
[646] Fix | Delete
<?php
[647] Fix | Delete
$disabled = '';
[648] Fix | Delete
$checked = '';
[649] Fix | Delete
$link = '';
[650] Fix | Delete
if ( array_key_exists( 'custom-search-plugin/custom-search-plugin.php', $this->all_plugins ) || array_key_exists( 'custom-search-pro/custom-search-pro.php', $this->all_plugins ) ) {
[651] Fix | Delete
if ( ! is_plugin_active( 'custom-search-plugin/custom-search-plugin.php' ) && ! is_plugin_active( 'custom-search-pro/custom-search-pro.php' ) ) {
[652] Fix | Delete
$disabled = ' disabled="disabled"';
[653] Fix | Delete
$link = '<a href="' . admin_url( 'plugins.php' ) . '">' . __( 'Activate Now', 'portfolio' ) . '</a>';
[654] Fix | Delete
}
[655] Fix | Delete
if ( isset( $this->cstmsrch_options['output_order'] ) ) {
[656] Fix | Delete
foreach ( $this->cstmsrch_options['output_order'] as $key => $item ) {
[657] Fix | Delete
if ( $item['name'] === $this->options['post_type_name'] && 'post_type' === $item['type'] ) {
[658] Fix | Delete
if ( $item['enabled'] ) {
[659] Fix | Delete
$checked = ' checked="checked"';
[660] Fix | Delete
}
[661] Fix | Delete
break;
[662] Fix | Delete
}
[663] Fix | Delete
}
[664] Fix | Delete
} elseif ( ! empty( $this->cstmsrch_options['post_types'] ) && in_array( $this->options['post_type_name'], $this->cstmsrch_options['post_types'] ) ) {
[665] Fix | Delete
$checked = ' checked="checked"';
[666] Fix | Delete
}
[667] Fix | Delete
} else {
[668] Fix | Delete
$disabled = ' disabled="disabled"';
[669] Fix | Delete
$link = '<a href="https://bestwebsoft.com/products/wordpress/plugins/custom-search/?k=75e20470c8716645cf65febf9d30f269&amp;pn=' . $this->link_pn . '&amp;v=' . $this->plugins_info['Version'] . '&amp;wp_v=' . $wp_version . '" target="_blank">' . __( 'Install Now', 'portfolio' ) . '</a>';
[670] Fix | Delete
}
[671] Fix | Delete
?>
[672] Fix | Delete
<input type="checkbox" name="prtfl_add_to_search" value="1"<?php echo esc_html( $disabled . $checked ); ?> />
[673] Fix | Delete
<span class="bws_info"><?php esc_html_e( 'Enable to include portfolio projects to your website search.', 'portfolio' ); ?> <?php printf( esc_html__( '%s plugin is required.', 'portfolio' ), 'Custom Search' ); ?> <?php echo esc_url( $link ); ?></span>
[674] Fix | Delete
</td>
[675] Fix | Delete
</tr>
[676] Fix | Delete
<?php
[677] Fix | Delete
}
[678] Fix | Delete
[679] Fix | Delete
/**
[680] Fix | Delete
* Display custom metabox
[681] Fix | Delete
*
[682] Fix | Delete
* @access public
[683] Fix | Delete
*/
[684] Fix | Delete
public function display_metabox() {
[685] Fix | Delete
?>
[686] Fix | Delete
<div class="postbox">
[687] Fix | Delete
<h3 class="hndle">
[688] Fix | Delete
<?php esc_html_e( 'Portfolio Shortcode', 'portfolio' ); ?>
[689] Fix | Delete
</h3>
[690] Fix | Delete
<div class="inside">
[691] Fix | Delete
<?php esc_html_e( 'Add the latest portfolio projects using the following shortcode (where * is a number of projects to display):', 'portfolio' ); ?>
[692] Fix | Delete
<?php bws_shortcode_output( '[latest_portfolio_items count=*]' ); ?>
[693] Fix | Delete
</div>
[694] Fix | Delete
</div>
[695] Fix | Delete
<?php
[696] Fix | Delete
}
[697] Fix | Delete
}
[698] Fix | Delete
}
[699] Fix | Delete
[700] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function