Changeset 2674327
- Timestamp:
- 02/07/2022 02:31:38 PM (2 years ago)
- Location:
- client-portal
- Files:
-
- 11 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
client-portal/trunk/index.php
r2606117 r2674327 4 4 * Plugin URI: http://www.cozmoslabs.com/ 5 5 * Description: Build a company site with a client portal where clients login and see a restricted-access, personalized page of content with links and downloads. 6 * Version: 1.1. 56 * Version: 1.1. 7 7 * Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian 8 8 * Author URI: http://www.cozmoslabs.com … … 69 69 add_filter( 'template_include', array( $this, 'cp_set_page_template' ) ); 70 70 /* add a link in the Users List Table in admin area to access the page */ 71 add_filter( 'user_row_actions', array( $this, 'cp_add_link _to_private_page' ), 10, 2);71 add_filter( 'user_row_actions', array( $this, 'cp_add_link_to_private_page' ), 10, 2); 72 72 73 73 /* add bulk action to create private user pages */ … … 345 345 346 346 /** 347 * Function that adds a link in the user listing in admin area to accessthe private page347 * Function that adds the private page 348 348 * @param $actions The actions available on the user listing in admin area 349 349 * @param $user_object The user object 350 350 * @return mixed 351 351 */ 352 function cp_add_link _to_private_page( $actions, $user_object ){352 function cp_add_link_to_private_page( $actions, $user_object ){ 353 353 $private_page_id = $this->cp_get_private_page_for_user( $user_object->ID ); 354 354 if( !empty( $private_page_id ) ){ 355 $actions['private_page_link'] = "<a class='cp_private_page' href='" . admin_url( "post.php?post=$private_page_id&action=edit") . "'>" . __( 'Private Page', 'client-portal' ) . "</a>"; 355 $actions['private_page_edit_link'] = "<a class='cp_private_page' href='" . admin_url( "post.php?post=$private_page_id&action=edit") . "'>" . __( 'Edit Page', 'client-portal' ) . "</a>"; 356 $actions['private_page_view_link'] = "<a class='cp_private_page' href='" . get_permalink( $private_page_id ) . "'>" . __( 'View Page', 'client-portal' ) . "</a>"; 356 357 } 357 358 … … 544 545 <th scope="row"><label class="scp-form-field-label" for="above-page-content"><?php echo __( 'Above Page Content' , 'client-portal' ) ?></label></th> 545 546 <td> 546 <?php wp_editor( ( isset( $this->options['above-page-content'] ) ? esc_textarea( $this->options['above-page-content'] ): $this->defaults['above-page-content'] ), 'above-page-content', array( 'textarea_name' => 'cp-options[above-page-content]', 'editor_height' => 250 ) ); ?>547 <?php wp_editor( ( isset( $this->options['above-page-content'] ) ? : $this->defaults['above-page-content'] ), 'above-page-content', array( 'textarea_name' => 'cp-options[above-page-content]', 'editor_height' => 250 ) ); ?> 547 548 <p class="description"><?php echo __( 'To be shown above the content on all private pages.', 'client-portal' ); ?></p> 548 549 </td> … … 552 553 <th scope="row"><label class="scp-form-field-label" for="default-page-content"><?php echo __( 'Default Page Content' , 'client-portal' ) ?></label></th> 553 554 <td> 554 <?php wp_editor( ( isset( $this->options['default-page-content'] ) ? esc_textarea( $this->options['default-page-content'] ): $this->defaults['default-page-content'] ), 'default-page-content', array( 'textarea_name' => 'cp-options[default-page-content]', 'editor_height' => 250 ) ); ?>555 <?php wp_editor( ( isset( $this->options['default-page-content'] ) ? : $this->defaults['default-page-content'] ), 'default-page-content', array( 'textarea_name' => 'cp-options[default-page-content]', 'editor_height' => 250 ) ); ?> 555 556 <p class="description"><?php echo __( 'The default content on the private pages.', 'client-portal' ); ?></p> 556 557 </td> … … 560 561 <th scope="row"><label class="scp-form-field-label" for="below-page-content"><?php echo __( 'Below Page Content' , 'client-portal' ) ?></label></th> 561 562 <td> 562 <?php wp_editor( ( isset( $this->options['below-page-content'] ) ? esc_textarea( $this->options['below-page-content'] ): $this->defaults['below-page-content'] ), 'below-page-content', array( 'textarea_name' => 'cp-options[below-page-content]', 'editor_height' => 250 ) ); ?>563 <?php wp_editor( ( isset( $this->options['below-page-content'] ) ? : $this->defaults['below-page-content'] ), 'below-page-content', array( 'textarea_name' => 'cp-options[below-page-content]', 'editor_height' => 250 ) ); ?> 563 564 <p class="description"><?php echo __( 'To be shown below the content on all private pages.', 'client-portal' ); ?></p> 564 565 </td> -
client-portal/trunk/readme.txt
r2606117 r2674327 5 5 Requires at least: 3.1 6 6 Tested up to: 5.8.1 7 Stable tag: 1.1. 57 Stable tag: 1.1. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 40 41 42 39 43 = 1.1.5 = 40 44 * Added a permanent dismiss button to in plugin notifications
Note: See TracChangeset
for help on using the changeset viewer.