Plugin Directory

Changeset 3145386


Ignore:
Timestamp:
09/02/2024 01:25:19 PM (18 months ago)
Author:
arstudios
Message:

Release 1.8.11.

Location:
constellation-client-portal
Files:
132 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • constellation-client-portal/trunk/README.txt

    r3129432 r3145386  
    55Requires at least: 6.0.0
    66Tested up to: 6.6
    7 Stable tag: 1.8.10
     7Stable tag: 1.8.11
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    210210
    211211== Changelog ==
     212
     213= 1.8.11 (Pro) - 2024-9-2 =
     214* Update: Made the company status row settings responsive.
     215* Update: Updated the company status row settings to make the default status rows read only.
     216* Update: Updated the company status functionality to restore the default statuses (active, pending, and inactive) on option save.
     217
     218= 1.8.11 (Core) - 2024-9-2 =
     219* Update: Created new method for generating admin tooltips.
     220* Update: Code formatting updates.
     221* Improvement: Improved validation and checks in the assign-existing and generate-new company primary user AJAX functions.
    212222
    213223= 1.8.10 (Pro) - 2024-8-1 =
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-admin.php

    r3110365 r3145386  
    40594059        return $new_columns;
    40604060    }
     4061
     4062    /**
     4063     * Generate an admin tooltip.
     4064     *
     4065     * @param array $args - Array of args for the tooltip.
     4066     * $args = array(
     4067     *     'message' => $message, - the tooltip message - can contain HTML.
     4068     *     'position => $message_position - the tooltip position - left, right, center.
     4069     * ).
     4070     *
     4071     * @retrun string $html - The tooltip html.
     4072     */
     4073    public function generate_wp_admin_tooltip( $args = array() ) {
     4074
     4075        $message            = array_key_exists( 'message', $args ) ? $args['message'] : ' ';
     4076        $message_position   = array_key_exists( 'position', $args ) ? $args['position'] : 'center';
     4077        $position_class     = 'accp-wp-admin-has-tooltip-' . esc_html( strtolower( trim( $message_position ) ) );
     4078        $additional_classes = array_key_exists( 'classes', $args ) ? ' ' . esc_html( strtolower( trim( $args['classes'] ) ) ) : '';
     4079
     4080        $html = '';
     4081
     4082        $html .= '<span class="accp-admin-tooltip-icon">i</span>';
     4083
     4084        $html .= '<span class="accp-wp-admin-tooltip accp-wp-admin-tooltip-dark ' . esc_attr( $position_class ) . $additional_classes . '">' . wp_kses_post( $message ) . '</span>';
     4085
     4086        return wp_kses_post( $html );
     4087    }
    40614088} //End ARS_Constellation_Client_Portal_Admin Class
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-company.php

    r3088740 r3145386  
    814814
    815815                ?>
    816             </select>
     816            </select>           
    817817            <?php
     818
     819            $args = array(
     820                'message'  => 'Not seeing a user? Assign the user to this company in their WP user profile to display the user here.',
     821                'position' => 'right',
     822            );
     823            $user_select_tooltip = $this->admin->generate_wp_admin_tooltip( $args );
     824
     825            echo wp_kses_post( $user_select_tooltip );
    818826
    819827        } else {
     
    12161224        }
    12171225
    1218         if ( ! is_admin() && ! current_user_can( 'manage_options' ) ) {
     1226        if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) {
    12191227            die();
    12201228        }
     
    12361244     */
    12371245    public function accp_assign_existing_primary_user() {
     1246
     1247        if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) {
     1248            die();
     1249        }
     1250
     1251        if ( ! is_admin() ) {
     1252            die();
     1253        }
    12381254
    12391255        if ( ! isset( $_POST['nonce'] ) ) {
     
    13111327     */
    13121328    public function accp_create_and_assign_primary_user() {
     1329
     1330        if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) {
     1331            die();
     1332        }
     1333
     1334        if ( ! is_admin() ) {
     1335            die();
     1336        }
    13131337
    13141338        if ( ! isset( $_POST['nonce'] ) ) {
  • constellation-client-portal/trunk/admin/js/ars-constellation-client-portal-admin.js

    r3088740 r3145386  
    835835
    836836
    837     function accp_assign_existing_primary_user_on_click(){
    838 
    839         $('#accp-assign-existing-primary-user-btn').click(function (e) {
     837    function accp_assign_existing_primary_user_on_click() {
     838
     839        $( '#accp-assign-existing-primary-user-btn' ).click( function (e) {
    840840           
    841841            e.preventDefault();
    842842           
    843             if($('#accp_assign_new_primary_user_select').val() && $('#accp_assign_new_primary_user_select').val() != 0){
     843            if( $( '#accp_assign_new_primary_user_select' ).val() && $( '#accp_assign_new_primary_user_select' ).val() != 0 ) {
    844844           
    845845                var nonce = $(this).attr('data-nonce');
  • constellation-client-portal/trunk/ars-constellation-client-portal.php

    r3129432 r3145386  
    77 * Plugin URI:        https://adrianrodriguezstudios.com/constellation-client-portal/
    88 * Description:       Create private pages for each of your clients, post private files, and protect your client files from unauthorized users and search engines.  <strong>Important:</strong> All Site-level File Protection features will cease to function if the plugin is disabled or uninstalled.
    9  * Version:           1.8.10
     9 * Version:           1.8.11
    1010 * Author:            ARS
    1111 * Author URI:        https://adrianrodriguezstudios.com
     
    5757     */
    5858    define('ACCP_PLUGIN_NAME', 'ARS_CONSTELLATION_CLIENT_PORTAL');
    59     define('ACCP_PLUGIN_VERSION', '1.8.10'); // Change the version in the header as well.
     59    define('ACCP_PLUGIN_VERSION', '1.8.11'); // Change the version in the header as well.
    6060    define( ACCP_PLUGIN_NAME, ACCP_PLUGIN_VERSION );
    6161    define( 'ACCP_PLUGIN_FILE_NAME', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.