--- a/wp/wp-content/plugins/portfolio/inc/class-prtfl-settings.php Mon Oct 14 18:35:50 2019 +0200
+++ b/wp/wp-content/plugins/portfolio/inc/class-prtfl-settings.php Tue Oct 15 11:56:20 2019 +0200
@@ -100,8 +100,11 @@
public function save_options() {
$this->options["custom_image_row_count"] = intval( $_POST['prtfl_custom_image_row_count'] );
+ $this->options["custom_portfolio_row_count"] = intval( $_POST['prtfl_portfolio_custom_row_count'] );
if ( 1 > $this->options["custom_image_row_count"] )
$this->options["custom_image_row_count"] = 1;
+ if ( 1 > $this->options["custom_portfolio_row_count"] )
+ $this->options["custom_portfolio_row_count"] = 1;
$new_image_size_photo = esc_attr( $_POST['prtfl_image_size_photo'] );
$custom_image_size_w_photo = intval( $_POST['prtfl_custom_image_size_w_photo'] );
@@ -256,6 +259,13 @@
<tr valign="top">
<th scope="row"><?php _e( 'Number of Columns', 'portfolio' ); ?> </th>
<td>
+ <input<?php echo $this->change_permission_attr; ?> type="number" name="prtfl_portfolio_custom_row_count" min="1" max="10000" value="<?php echo $this->options["custom_portfolio_row_count"]; ?>" /> <?php _e( 'columns', 'portfolio' ); ?>
+ <div class="bws_info"><?php printf( __( 'Number of portfolio columns (default is %s).', 'portfolio' ), '1' ); ?></div>
+ </td>
+ </tr>
+ <tr valign="top">
+ <th scope="row"><?php _e( 'Number of image Columns', 'portfolio' ); ?> </th>
+ <td>
<input type="number" name="prtfl_custom_image_row_count" min="1" max="10000" value="<?php echo $this->options["custom_image_row_count"]; ?>" /> <?php _e( 'columns', 'portfolio' ); ?>
<div class="bws_info"><?php printf( __( 'Number of image columns (default is %s).', 'portfolio' ), '3' ); ?></div>
</td>
@@ -302,6 +312,28 @@
<div class="bws_info"><?php _e( 'Maximum cover image size. Custom uses the Image Dimensions values.', 'portfolio' ); ?></div>
</td>
</tr>
+ </table>
+ <?php if ( ! $this->hide_pro_tabs ) { ?>
+ <div class="bws_pro_version_bloc">
+ <div class="bws_pro_version_table_bloc">
+ <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'portfolio' ); ?>"></button>
+ <div class="bws_table_bg"></div>
+ <table class="form-table bws_pro_version">
+ <tr valign="top">
+ <th scope="row"><?php _e( 'Slider Image Size', 'portfolio' ); ?> </th>
+ <td>
+ <select name="prtfl_image_size_slider">
+ <option value="large">Large (1024 × 1024)</option>
+ </select>
+ <div class="bws_info"><?php _e( 'Maximum slider image size. Custom uses the Image Dimensions values.', 'portfolio-pro' ); ?></div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <?php $this->bws_pro_block_links(); ?>
+ </div>
+ <?php } ?>
+ <table class="form-table">
<tr valign="top" class="prtfl_for_custom_image_size_album">
<th scope="row"><?php _e( 'Custom Cover Image Size', 'portfolio' ); ?> </th>
<td>