Plugin Directory

Changeset 2674327

Timestamp:
02/07/2022 02:31:38 PM (2 years ago)
Author:
madalin.ungureanu
Message:

tagging new version

Location:
client-portal
Files:
11 added
2 edited

Legend:

Unmodified
Added
Removed
  • client-portal/trunk/index.php

    r2606117 r2674327  
    44 * Plugin URI: http://www.cozmoslabs.com/
    55 * 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.5
     6 * Version: 1.1.
    77 * Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian
    88 * Author URI: http://www.cozmoslabs.com
     
    6969        add_filter( 'template_include', array( $this, 'cp_set_page_template' ) );
    7070        /* 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);
    7272
    7373        /* add bulk action to create private user pages */
     
    345345
    346346    /**
    347      * Function that adds a link in the user listing in admin area to access the private page
     347     * Function that adds the private page
    348348     * @param $actions The actions available on the user listing in admin area
    349349     * @param $user_object The user object
    350350     * @return mixed
    351351     */
    352     function cp_add_link_to_private_page( $actions, $user_object ){
     352    function cp_add_link_to_private_page( $actions, $user_object ){
    353353        $private_page_id = $this->cp_get_private_page_for_user( $user_object->ID );
    354354        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>";
    356357        }
    357358
     
    544545                                <th scope="row"><label class="scp-form-field-label" for="above-page-content"><?php echo __( 'Above Page Content' , 'client-portal' ) ?></label></th>
    545546                                <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 ) ); ?>
    547548                                    <p class="description"><?php echo __( 'To be shown above the content on all private pages.', 'client-portal' ); ?></p>
    548549                                </td>
     
    552553                                <th scope="row"><label class="scp-form-field-label" for="default-page-content"><?php echo __( 'Default Page Content' , 'client-portal' ) ?></label></th>
    553554                                <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 ) ); ?>
    555556                                    <p class="description"><?php echo __( 'The default content on the private pages.', 'client-portal' ); ?></p>
    556557                                </td>
     
    560561                                <th scope="row"><label class="scp-form-field-label" for="below-page-content"><?php echo __( 'Below Page Content' , 'client-portal' ) ?></label></th>
    561562                                <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 ) ); ?>
    563564                                    <p class="description"><?php echo __( 'To be shown below the content on all private pages.', 'client-portal' ); ?></p>
    564565                                </td>
  • client-portal/trunk/readme.txt

    r2606117 r2674327  
    55Requires at least: 3.1
    66Tested up to: 5.8.1
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737
    3838== Changelog ==
     39
     40
     41
     42
    3943= 1.1.5 =
    4044* Added a permanent dismiss button to in plugin notifications
Note: See TracChangeset for help on using the changeset viewer.