Plugin Directory

Changeset 3082049


Ignore:
Timestamp:
05/06/2024 05:06:15 PM (22 months ago)
Author:
arstudios
Message:

Release 1.8.4.

Location:
constellation-client-portal
Files:
131 added
1 deleted
12 edited

Legend:

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

    r3079876 r3082049  
    55Requires at least: 5.0.0
    66Tested up to: 6.5
    7 Stable tag: 1.8.3
     7Stable tag: 1.8.4
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    206206
    207207== Changelog ==
     208= 1.8.4 (Pro) - 2024-5-6 =
     209* Update: Code formatting updates.
     210
     211= 1.8.4 (Core) - 2024-5-6 =
     212* Update: Updated full file path composition method in the post reassign UI to work better with PHP versions prior to PHP 8, and on sites that may be installed in a sub dir.
     213* Update: Updated the client page access check for better clarity.
     214
    208215= 1.8.3 (Pro) - 2024-5-1 =
    209216* Update: Updated product meta field include functionality to clear preg_replace PHP 8.1+ deprecation warning.
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-admin.php

    r3079876 r3082049  
    11291129
    11301130            /**
    1131              * Check if the current user is logged in or if their user id
    1132              * is in the list of users assigned to the company - Admins are exempt.
     1131             * Exit early and grant access if this is a WP admin.
    11331132             */
    1134             if ( ! current_user_can( 'manage_options' ) && 0 === $current_user_id || ! current_user_can( 'manage_options' ) && ! in_array( $current_user_id, $user_id_array, true ) ) {
    1135 
    1136                 /**
    1137                  * If the current user id is 0 redirect to the home page.
    1138                  */
     1133            if ( current_user_can( 'manage_options' ) ) {
     1134                return;
     1135            }
     1136
     1137            /**
     1138             * Check if the current user is logged in and that
     1139             * they are assigned to a company that has access to the page.
     1140             */
     1141            if ( ! is_user_logged_in() || 0 === $current_user_id || ! in_array( $current_user_id, $user_id_array, true ) ) {
     1142
    11391143                wp_safe_redirect( '/' );
    11401144                exit;
     
    13501354             */
    13511355            if ( ! empty( $accp_file ) ) {
    1352 
    1353                 $accp_file_full_path = untrailingslashit( get_home_path() ) . $accp_file_path;
    13541356
    13551357                if ( file_exists( $accp_file_full_path ) ) {
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-company.php

    r3079876 r3082049  
    13991399                        echo esc_html( str_replace( '!', '.', $error[0] ?? '' ) );
    14001400                    }
    1401 
    14021401                }
    14031402
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-file.php

    r3079876 r3082049  
    716716    /**
    717717     * Save File quick edit fields.
    718      * 
     718     *
    719719     * @param int $post_id - The post ID.
    720720     */
  • constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-invoice.php

    r3079876 r3082049  
    539539    /**
    540540     * Add WP List Table Filter Fields
    541      * 
     541     *
    542542     * @param string $post_type - The post type.
    543543     */
     
    585585     * Update the invoice WP list filter query based on
    586586     * additional filters.
    587      * 
     587     *
    588588     * @param array $query - The query array.
    589589     */
  • constellation-client-portal/trunk/admin/css/ars-constellation-client-portal-admin.css

    r3079876 r3082049  
    11/**
    22 * Core Admin CSS.
    3  */ 
     3 */
    44#client-meta .select2{
    5     width: 100% !important;
     5    width: 100% !important;
    66}
    77
    88.inside .select2{
    9     width: 100% !important;   
     9    width: 100% !important;
    1010}
    1111
    1212ul.home-page-hov-nav.row-actions{
    13     margin-top: 0;
     13    margin-top: 0;
    1414}
    1515
    1616.home-page-hov-nav li{
    17     display: inline;
     17    display: inline;
    1818    font-size: 13px;
    1919}
    2020
    2121.home-page-hov-nav li:first-child::after{
    22     content: "|";
    23     color: #ddd;
    24     margin-right: 4px;
    25     margin-left: 4px;
    26     font-size: 12px;
     22    content: "|";
     23    color: #ddd;
     24    margin-right: 4px;
     25    margin-left: 4px;
     26    font-size: 12px;
    2727}
    2828
     
    3232
    3333.blue-text{
    34     color: #00a0d2;
     34    color: #00a0d2;
    3535}
    3636
    3737.accp-number-column{
    38     width: 40px;
    39     text-align: center;
     38    width: 40px;
     39    text-align: center;
    4040}
    4141
    4242.dir-explorer-icon{
    43     margin-right: 10px;
    44     cursor: pointer;
    45     color: #afafaf;
     43    margin-right: 10px;
     44    cursor: pointer;
     45    color: #afafaf;
    4646}
    4747
    4848.fa.fa-folder.dir-explorer-icon, .fa.fa-folder-open.dir-explorer-icon{
    49     font-size: 19px;
     49    font-size: 19px;
    5050}
    5151
    5252.file-detail-row{
    53     display: none;
     53    display: none;
    5454}
    5555
    5656.main-dir-row.even-row, .file-detail-row.even-row{
    57     background-color: #f9f9f9;
     57    background-color: #f9f9f9;
    5858}
    5959
    6060.main-dir-row.odd-row, .file-detail-row.odd-row{
    61     background-color: transparent !important;
     61    background-color: transparent !important;
    6262}
    6363
    6464.unassigned-text{
    65     color: #B1B1B1;
     65    color: #B1B1B1;
    6666}
    6767
    6868.file-controls{
    69     display: block;
    70     width: 100%;
    71     margin-bottom: 10px;
     69    display: block;
     70    width: 100%;
     71    margin-bottom: 10px;
    7272}
    7373
    7474.file-del-confirm-div, .dir-del-confirm-div{
    75     margin-bottom: 30px;
    76     padding-bottom: 30px;
    77     background: #e6e8ff50;
    78     width: 63%;
    79     padding-left: 15px;
    80     padding-top: 25px;
    81     display: none;
     75    margin-bottom: 30px;
     76    padding-bottom: 30px;
     77    background: #e6e8ff50;
     78    width: 63%;
     79    padding-left: 15px;
     80    padding-top: 25px;
     81    display: none;
    8282}
    8383
    8484.del-btn-container, .del-dir-btn-container{
    85     display: block;
    86     margin-top: 8px;
     85    display: block;
     86    margin-top: 8px;
    8787}
    8888
    8989.inactive-text{
    90     color: #B1B1B1;
     90    color: #B1B1B1;
    9191}
    9292
    9393.small-note{
    94     font-size: 11px;
    95     font-style: italic;
     94    font-size: 11px;
     95    font-style: italic;
    9696}
    9797
    9898.tax-role-exclude{
    99     margin-top: 15px;
    100     margin-bottom: 40px;
     99    margin-top: 15px;
     100    margin-bottom: 40px;
    101101}
    102102
    103103.tax-company-exclude{
    104     margin-bottom: 15px;
     104    margin-bottom: 15px;
    105105}
    106106
     
    109109.tax-company-exclude .select2,
    110110.tax-custom-select .select2{
    111     width: 95% !important;
     111    width: 95% !important;
    112112}
    113113
    114114.accp-settings-messages-and-errors-item.notice{
    115     padding-top: 20px;
    116     padding-bottom: 20px;
     115    padding-top: 20px;
     116    padding-bottom: 20px;
    117117}
    118118
    119119.accp-settings-note.small-note{
    120     display: block;
    121     margin-top: 7px;
     120    display: block;
     121    margin-top: 7px;
    122122}
    123123
    124124#accp-admin-main-content{
    125     max-width: 100%;
    126     background-color: #fff;
    127     padding: 20px 30px 30px 30px;
     125    max-width: 100%;
     126    background-color: #fff;
     127    padding: 20px 30px 30px 30px;
    128128}
    129129
    130130.accp-functioning-correctly{
    131     border: 1px solid green;
    132     padding: 7px;
    133     background-color: #cee8ce;
     131    border: 1px solid green;
     132    padding: 7px;
     133    background-color: #cee8ce;
    134134}
    135135
    136136.accp-function-error{
    137     border: 1px solid red;
    138     padding: 7px;
    139     background-color: #ffcece;
     137    border: 1px solid red;
     138    padding: 7px;
     139    background-color: #ffcece;
    140140}
    141141
    142142.company-assign-container .select2-selection__arrow{
    143     top: 10px !important;
    144     right: 3px !important;
     143    top: 10px !important;
     144    right: 3px !important;
    145145}
    146146
    147147.accp-upgrade-tab-banner{
    148     background-color: #005be0;
    149     color: #FFF;
    150     padding: 40px;
    151     margin-top: 17px;
    152     margin-bottom: 20px;
    153     border-radius: 10px;
     148    background-color: #005be0;
     149    color: #FFF;
     150    padding: 40px;
     151    margin-top: 17px;
     152    margin-bottom: 20px;
     153    border-radius: 10px;
    154154}
    155155
    156156.accp-upgrade-tab-banner h2{
    157     color: #fff;
    158     font-size: 40px;
    159     font-weight: normal;
     157    color: #fff;
     158    font-size: 40px;
     159    font-weight: normal;
    160160}
    161161
    162162.accp-upgrade-tab-banner p{
    163     font-size: 18px;
    164     font-style: italic;
     163    font-size: 18px;
     164    font-style: italic;
    165165}
    166166
    167167.accp-upgrade-feature-list-heading{
    168     color: #005be0;
    169     font-size: 24px;
    170     font-weight: normal;
    171     margin-left: 20px;
     168    color: #005be0;
     169    font-size: 24px;
     170    font-weight: normal;
     171    margin-left: 20px;
    172172}
    173173
    174174.accp-upgrade-tab-banner a{
    175     color: #fff;
    176     text-decoration: none;
    177     display: block;
    178     margin-bottom: 10px;
    179     text-align: right;
    180     font-size: 22px;
     175    color: #fff;
     176    text-decoration: none;
     177    display: block;
     178    margin-bottom: 10px;
     179    text-align: right;
     180    font-size: 22px;
    181181}
    182182
    183183.accp-upgrade-tab-banner a::after{
    184     content: '>';
    185     font-weight: bold;
    186     font-size: 22px;
    187     margin-left: 5px;
     184    content: '>';
     185    font-weight: bold;
     186    font-size: 22px;
     187    margin-left: 5px;
    188188}
    189189
    190190.accp-upgrade-button{
    191     background-color: orange;
    192     display: block;
    193     text-decoration: none;
    194     text-align: center;
    195     font-size: 26px;
    196     padding: 18px;
    197     width: 126px;
    198     margin-top: 15px;
    199     border-radius: 2px;
    200     color: #fff;
    201     border: 3px solid;
    202     margin-left: auto;
    203     margin-right: auto;
    204     text-transform: uppercase;
    205     border-radius: 5px;
    206     margin-bottom: 30px;
    207     margin-top: 35px;
     191    background-color: orange;
     192    display: block;
     193    text-decoration: none;
     194    text-align: center;
     195    font-size: 26px;
     196    padding: 18px;
     197    width: 126px;
     198    margin-top: 15px;
     199    border-radius: 2px;
     200    color: #fff;
     201    border: 3px solid;
     202    margin-left: auto;
     203    margin-right: auto;
     204    text-transform: uppercase;
     205    border-radius: 5px;
     206    margin-bottom: 30px;
     207    margin-top: 35px;
    208208}
    209209
    210210.accp-settings-page-container .accp-upgrade-button{
    211     border-radius: 8px;
     211    border-radius: 8px;
    212212}
    213213
    214214.accp-upgrade-button:hover{
    215     background-color: #ffa500e0;
     215    background-color: #ffa500e0;
    216216}
    217217
    218218.accp-upgrade-button:hover{
    219     color: #fff;
     219    color: #fff;
    220220}
    221221
    222222.accp-setting-logo-container{
    223     background-color: #fff;   
    224 }
    225 
    226 .accp-setting-logo-container img{   
    227     width: 80%;
    228     max-width: 300px;
     223    background-color: #fff;
     224}
     225
     226.accp-setting-logo-container img{
     227    width: 80%;
     228    max-width: 300px;
    229229}
    230230
    231231#accp-admin-sidebar{
    232     width: 27%;
    233     float: right;
     232    width: 27%;
     233    float: right;
    234234}
    235235
    236236.delete-screen-notice{
    237     display: inline-block;
    238     margin-top: 6px;
    239     color: orangered;
    240     font-size: 15px;
    241     background: #fff;
    242     padding: 20px;
    243     width: 95%;
     237    display: inline-block;
     238    margin-top: 6px;
     239    color: orangered;
     240    font-size: 15px;
     241    background: #fff;
     242    padding: 20px;
     243    width: 95%;
    244244}
    245245
    246246.accp-filemgmt-tablenav .pagination-links{
    247     display: inline-block;
    248     margin-left: 5px;
     247    display: inline-block;
     248    margin-left: 5px;
    249249}
    250250
    251251.accp-filemgmt-button .page-numbers{
    252     color: #23282d; 
     252    color: #23282d;
    253253}
    254254.accp-filemgmt-button .page-numbers .disabled{
    255     color: #a0a5aa !important;
     255    color: #a0a5aa !important;
    256256}
    257257
    258258.accp-filemgmt-button.button{
    259     margin-right: 5px !important;
     259    margin-right: 5px !important;
    260260}
    261261.accp-filemgmt-button.button:last-child{
    262     margin-right: 0px !important;
     262    margin-right: 0px !important;
    263263}
    264264
    265265.accp-filemgmt-button a{
    266     text-decoration: none;
     266    text-decoration: none;
    267267}
    268268
    269269.accp-filemgmt-button .page-numbers{
    270     font-size: 12px;
    271     display: flex;
    272     justify-content: center;
    273     align-items: center;
    274     height: 100%;
     270    font-size: 12px;
     271    display: flex;
     272    justify-content: center;
     273    align-items: center;
     274    height: 100%;
    275275}
    276276
    277277li.accp-filemgmt-button.button{
    278     padding: 0 !important;
    279     overflow: hidden;
    280     height: 30px;
     278    padding: 0 !important;
     279    overflow: hidden;
     280    height: 30px;
    281281}
    282282
    283283.shortcode-markup{
    284     border: 1px solid #ccc;
    285     background-color: #efefef;
    286     padding: 15px;
    287     margin-bottom: 20px;
     284    border: 1px solid #ccc;
     285    background-color: #efefef;
     286    padding: 15px;
     287    margin-bottom: 20px;
    288288}
    289289
    290290.accp-filemgmt-button .page-numbers.prev, .accp-filemgmt-button .page-numbers.next{
    291     font-size: 15px;
    292     top: -2px;
    293     position: relative;
     291    font-size: 15px;
     292    top: -2px;
     293    position: relative;
    294294}
    295295.accp-row-add, .accp-row-delete{
    296     cursor: pointer;
     296    cursor: pointer;
    297297}
    298298
    299299.accp-row-delete{
    300     margin-left: 15px;
     300    margin-left: 15px;
    301301}
    302302
    303303.accp-hide-assigment{
    304     display: none;
     304    display: none;
    305305}
    306306.accp-file-replace-hide{
    307     display: none;
     307    display: none;
    308308}
    309309
    310310.inline.accp-admin-notice.notice{
    311     margin-left: 0px;
     311    margin-left: 0px;
    312312}
    313313
    314314#curr_file_container{
    315     border-bottom: 1px solid #eee;
    316     padding-bottom: 25px;
    317     margin-bottom: 20px;
     315    border-bottom: 1px solid #eee;
     316    padding-bottom: 25px;
     317    margin-bottom: 20px;
    318318}
    319319
    320320.accp-hide-assigment .select2-container--default .select2-selection--single,
    321321.company-assign-container .select2-container--default .select2-selection--single{
    322     height: 45px;
    323     padding-top: 7px;
     322    height: 45px;
     323    padding-top: 7px;
    324324}
    325325
    326326.wp-admin input[type="file"].accp-upload-btn{
    327     padding-left: 7px;
    328     padding-right: 7px;
    329     min-height: 35px;
     327    padding-left: 7px;
     328    padding-right: 7px;
     329    min-height: 35px;
    330330}
    331331
    332332.accp-settings-section{
    333     background-color: #fff;
    334     padding-top: 10px;
    335     padding-left: 25px;
    336     padding-bottom: 25px;
    337     padding-right: 25px;
    338     margin-bottom: 25px;
    339     box-shadow: 2px 2px 7px rgba(0,0,0, 0.1);
    340     color: #5C5C5C;
     333    background-color: #fff;
     334    padding-top: 10px;
     335    padding-left: 25px;
     336    padding-bottom: 25px;
     337    padding-right: 25px;
     338    margin-bottom: 25px;
     339    box-shadow: 2px 2px 7px rgba(0,0,0, 0.1);
     340    color: #5C5C5C;
    341341}
    342342
    343343.accp-settings-section h3{
    344     color: #3A3A3A;
     344    color: #3A3A3A;
    345345}
    346346
    347347.accp-settings-section h2{
    348     color: #005be0;
    349     font-weight: normal;
    350     font-size: 22px;
     348    color: #005be0;
     349    font-weight: normal;
     350    font-size: 22px;
    351351}
    352352
    353353ul.theme-thumb-list{
    354     list-style: none;
     354    list-style: none;
    355355}
    356356
    357357ul.theme-thumb-list li{
    358     border: 1px solid #ccc;
    359     background: #efefef;
    360     padding: 5px;
    361     width: 47%;
     358    border: 1px solid #ccc;
     359    background: #efefef;
     360    padding: 5px;
     361    width: 47%;
    362362}
    363363
    364364/* Odd */
    365365ul.theme-thumb-list li:nth-child(2n+1){
    366     float: left;
     366    float: left;
    367367}
    368368
    369369/* Even */
    370370ul.theme-thumb-list li:nth-child(2n){
    371     float: right;
     371    float: right;
    372372}
    373373
    374374.floated-container{
    375     float: left;
     375    float: left;
    376376}
    377377
    378378.accp-license-display{
    379     border: 1px solid #ccc;
    380     background: #efefef;
    381     padding: 5px;
    382     margin-bottom: 10px;
     379    border: 1px solid #ccc;
     380    background: #efefef;
     381    padding: 5px;
     382    margin-bottom: 10px;
    383383}
    384384
    385385select[name="accp_login_redirect_select"]{
    386     margin-top: 7px;
     386    margin-top: 7px;
    387387}
    388388
    389389ul.accp-settings-tabs{
    390     border-bottom: 1px solid #ddd;
    391     margin-bottom: 25px;
     390    border-bottom: 1px solid #ddd;
     391    margin-bottom: 25px;
    392392}
    393393
    394394.accp-settings-tabs li{
    395     display: inline-block;
    396     background-color: #e0e0e0;
    397     padding-left: 10px;
    398     padding-right: 10px;
    399     padding-top: 10px;
    400     padding-bottom: 10px;
    401     margin-right: 5px;
    402     border-top: 1px solid #d3d3d3;
    403     border-left: 1px solid #d3d3d3;
    404     border-right: 1px solid #d3d3d3;
    405     border-top-left-radius: 3px;
    406     border-top-right-radius: 3px;
    407     margin-bottom: 0;
    408     cursor: pointer;
     395    display: inline-block;
     396    background-color: #e0e0e0;
     397    padding-left: 10px;
     398    padding-right: 10px;
     399    padding-top: 10px;
     400    padding-bottom: 10px;
     401    margin-right: 5px;
     402    border-top: 1px solid #d3d3d3;
     403    border-left: 1px solid #d3d3d3;
     404    border-right: 1px solid #d3d3d3;
     405    border-top-left-radius: 3px;
     406    border-top-right-radius: 3px;
     407    margin-bottom: 0;
     408    cursor: pointer;
    409409}
    410410
    411411#accp-shorcode-list-table-container{
    412     display: table;
    413     width: 100%;
    414     border-collapse: collapse;
    415 }
    416 
    417 .accp-shortcode-col-heading-row, 
     412    display: table;
     413    width: 100%;
     414    border-collapse: collapse;
     415}
     416
     417.accp-shortcode-col-heading-row,
    418418.accp-saved-shortcode-item-row{
    419     display: table-row;
    420     height: 60px;
    421     border-bottom: 1px solid #eee;
     419    display: table-row;
     420    height: 60px;
     421    border-bottom: 1px solid #eee;
    422422}
    423423
    424424.accp-shortcode-col-heading{
    425     font-weight: bold;
    426     color: #777;
     425    font-weight: bold;
     426    color: #777;
    427427}
    428428
    429429.accp-add-shortcode-btn-container{
    430     text-align: right;
    431     margin-top: 15px;
     430    text-align: right;
     431    margin-top: 15px;
    432432}
    433433
    434434.accp-row-action-col-heading{
    435     visibility: hidden;
     435    visibility: hidden;
    436436}
    437437
    438438.accp-shortcode-item-cell{
    439     display: table-cell;
    440     padding: 5px;
    441     vertical-align: middle;   
     439    display: table-cell;
     440    padding: 5px;
     441    vertical-align: middle;
    442442}
    443443
    444444.accp-shortcode-item-cell a{
    445     text-decoration: none;
     445    text-decoration: none;
    446446}
    447447
    448448input.accp-copy-text-enabled{
    449     cursor: pointer;
    450     background-color: #eee;
    451     padding: 5px 7px 7px 7px;
    452     border-radius: 3px;
    453     border: none;
    454     text-align: center;
     449    cursor: pointer;
     450    background-color: #eee;
     451    padding: 5px 7px 7px 7px;
     452    border-radius: 3px;
     453    border: none;
     454    text-align: center;
    455455}
    456456
    457457.accp-shortcode-input-container{
    458     position: relative;
     458    position: relative;
    459459}
    460460
    461461.accp-shortcode-input-container:hover::after{
    462     display: block;
     462    display: block;
    463463}
    464464
    465465.accp-shortcode-input-container::after{
    466     content: "\f0c5";
    467     font-family: "Font Awesome 5 Free";
    468     font-weight: 400;
    469     position: absolute;
    470     right: 5px;
    471     display: none;
     466    content: "\f0c5";
     467    font-family: "Font Awesome 5 Free";
     468    font-weight: 400;
     469    position: absolute;
     470    right: 5px;
     471    display: none;
    472472}
    473473
    474474.accp-shortcode-input-container.accp-element-copied::after{
    475     content: "\f00c";
    476     font-family: "Font Awesome 5 Free";
    477     font-weight: 600;
    478     position: absolute;
    479     right: 5px;
    480     top: 0;
    481     color: #259d25; 
     475    content: "\f00c";
     476    font-family: "Font Awesome 5 Free";
     477    font-weight: 600;
     478    position: absolute;
     479    right: 5px;
     480    top: 0;
     481    color: #259d25;
    482482}
    483483
    484484.accp-settings-tabs li:hover{
    485     background-color: #fff;   
     485    background-color: #fff;
    486486}
    487487
    488488.accp-settings-tabs li:hover a{
    489     color: #135e96;
     489    color: #135e96;
    490490}
    491491.accp-settings-tabs li a:focus{
    492     color: #135e96;
     492    color: #135e96;
    493493}
    494494
    495495.accp-settings-tabs li[data-tab-status="active"]{
    496     background-color: #fff;
    497     color: #135e96;   
     496    background-color: #fff;
     497    color: #135e96;
    498498}
    499499
    500500.accp-settings-tabs li[data-tab-status="active"] > a{
    501     color: #135e96;
     501    color: #135e96;
    502502}
    503503
    504504.accp-settings-tabs a{
    505     text-decoration: none;
    506     font-size: 11px;
    507     font-weight: bold;
    508     text-transform: uppercase;
    509     color: #8F8F8F;
     505    text-decoration: none;
     506    font-size: 11px;
     507    font-weight: bold;
     508    text-transform: uppercase;
     509    color: #8F8F8F;
    510510}
    511511
    512512.accp-settings-tabs a:focus{
    513     outline: none;
    514     -webkit-box-shadow: none;
    515     box-shadow: none;
     513    outline: none;
     514    -webkit-box-shadow: none;
     515    box-shadow: none;
    516516}
    517517
    518518.accp-settings-tab{
    519     display: none;
     519    display: none;
    520520}
    521521
    522522.accp-settings-tab[data-tab-content-status="active"]{
    523     display: block;
     523    display: block;
    524524}
    525525
    526526.accp-create-page-container{
    527     margin-top: 15px;
    528 }
    529 
    530 .accp-new-page-title{   
    531     margin-bottom: 10px;
     527    margin-top: 15px;
     528}
     529
     530.accp-new-page-title{
     531    margin-bottom: 10px;
    532532}
    533533
    534534.accp-generate-page-form .accp-create-new-page-instructions{
    535     margin-top: 25px;
    536     display: block;
     535    margin-top: 25px;
     536    display: block;
    537537}
    538538
    539539.accp-generate-page-form{
    540     display: none;
     540    display: none;
    541541}
    542542
    543543.tablenav .select2-selection.select2-selection--single{
    544     height: 100%;
    545     border-radius: 3px;
    546     border: 1px solid #8c8f94;
    547     background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
    548     background-size: auto;
    549     background-size: 16px 16px;
     544    height: 100%;
     545    border-radius: 3px;
     546    border: 1px solid #8c8f94;
     547    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
     548    background-size: auto;
     549    background-size: 16px 16px;
    550550}
    551551
    552552.tablenav .select2-selection.select2-selection--single b{
    553     display: none;
     553    display: none;
    554554}
    555555
    556556label .title.accp-quickedit-invoice-status-label{
    557     width: auto !important;
    558     margin-right: 5px !important;
     557    width: auto !important;
     558    margin-right: 5px !important;
    559559}
    560560
    561561.accp-admin-invoice-data-quickedit{
    562     margin-bottom: 0;
     562    margin-bottom: 0;
    563563}
    564564
    565565.accp-duplicate-dir-assignment-notice{
    566     padding: 15px;
    567     border: 2px solid #ff5e5e;
    568     background-color: #ffdbdb;
    569     margin-bottom: 15px;
     566    padding: 15px;
     567    border: 2px solid #ff5e5e;
     568    background-color: #ffdbdb;
     569    margin-bottom: 15px;
    570570}
    571571
    572572.accp-reassign-directory-button.button{
    573     margin-top: 15px;
    574     margin-bottom: 15px;
     573    margin-top: 15px;
     574    margin-bottom: 15px;
    575575}
    576576
    577577.accp-dir-reassign-option{
    578     background-color: #f6f7f7;
    579     padding-top: 10px;
    580     padding-bottom: 10px;
    581     padding-left: 20px;
    582     padding-right: 20px;
    583     margin-bottom: 25px;
    584     border: 1px solid #eeefef;
     578    background-color: #f6f7f7;
     579    padding-top: 10px;
     580    padding-bottom: 10px;
     581    padding-left: 20px;
     582    padding-right: 20px;
     583    margin-bottom: 25px;
     584    border: 1px solid #eeefef;
    585585}
    586586
    587587.accp-field-note{
    588     font-style: italic;
    589     color: #808080;
    590     font-size: 12px;
    591     display: block;
    592     margin-top: 5px;
    593     margin-bottom: 5px;
     588    font-style: italic;
     589    color: #808080;
     590    font-size: 12px;
     591    display: block;
     592    margin-top: 5px;
     593    margin-bottom: 5px;
    594594}
    595595
    596596.accp-boxed-container{
    597     background-color: #f6f7f7;
    598     border: 1px solid #eeefef;
    599     padding-left: 15px;
    600     padding-right: 15px;
     597    background-color: #f6f7f7;
     598    border: 1px solid #eeefef;
     599    padding-left: 15px;
     600    padding-right: 15px;
    601601}
    602602
    603603.accp-boxed-container.current-assigned-company-container{
    604     margin-bottom: 20px;
     604    margin-bottom: 20px;
    605605}
    606606
    607607.accp-boxed-container label{
    608     font-weight: 600;
    609     padding-top: 15px;
     608    font-weight: 600;
     609    padding-top: 15px;
    610610}
    611611
    612612.accp-or-sparator{
    613     font-weight: 600;
     613    font-weight: 600;
    614614}
    615615
    616616.accp-admin-tooltip-icon{
    617     content: 'i';
    618     color: #fff;
    619     background-color: #5A5A5A;
    620     border-radius: 50%;
    621     width: 12px;
    622     height: 12px;
    623     font-family: Georgia, 'Times New Roman', Times, serif;
    624     display: inline-block;
    625     text-align: center;
    626     font-size: 9px;
    627     padding-top: 1px;
    628     position: relative;
    629     top: -10px;
    630     cursor: pointer;
     617    content: 'i';
     618    color: #fff;
     619    background-color: #5A5A5A;
     620    border-radius: 50%;
     621    width: 12px;
     622    height: 12px;
     623    font-family: Georgia, 'Times New Roman', Times, serif;
     624    display: inline-block;
     625    text-align: center;
     626    font-size: 9px;
     627    padding-top: 1px;
     628    position: relative;
     629    top: -10px;
     630    cursor: pointer;
    631631}
    632632
    633633.accp-admin-tooltip-icon:hover + .accp-wp-admin-tooltip{
    634     visibility: visible;
     634    visibility: visible;
    635635}
    636636
    637637.accp-wp-admin-tooltip{
    638     position: absolute;
    639     z-index: 1;
    640     width: 150px;
    641     background-color: #fff;
    642     padding: 10px;
    643     border-radius: 5px;
    644     visibility: hidden;
    645     margin-top: -100px;
    646     font-weight: normal;
    647     font-size: 12px;
    648     color: #3c434a;
    649     line-height: 18px;
    650     pointer-events: none;
     638    position: absolute;
     639    z-index: 1;
     640    width: 150px;
     641    background-color: #fff;
     642    padding: 10px;
     643    border-radius: 5px;
     644    visibility: hidden;
     645    margin-top: -100px;
     646    font-weight: normal;
     647    font-size: 12px;
     648    color: #3c434a;
     649    line-height: 18px;
     650    pointer-events: none;
    651651}
    652652
    653653.accp-wp-admin-tooltip-dark{
    654     position: absolute;
    655     z-index: 1;
    656     width: 150px;
    657     background-color: #3c434a;
    658     padding: 10px;
    659     border-radius: 5px;
    660     visibility: hidden;
    661     margin-top: -100px;
    662     font-weight: normal;
    663     font-size: 12px;
    664     color: #fff;
    665     line-height: 18px;
    666     pointer-events: none;
     654    position: absolute;
     655    z-index: 1;
     656    width: 150px;
     657    background-color: #3c434a;
     658    padding: 10px;
     659    border-radius: 5px;
     660    visibility: hidden;
     661    margin-top: -100px;
     662    font-weight: normal;
     663    font-size: 12px;
     664    color: #fff;
     665    line-height: 18px;
     666    pointer-events: none;
    667667}
    668668
    669669.accp-wp-admin-tooltip.accp-user-status-tooltip{
    670     left: 0;
     670    left: 0;
    671671}
    672672
    673673.accp-wp-admin-tooltip::after{
    674     content:'';
    675     position: absolute;
    676     top: 100%;
    677     left: 50%;   
    678     border-top: solid 10px #ffffff;
    679     border-left: solid 10px transparent;
    680     border-right: solid 10px transparent;
    681     margin-left: -60px;
    682     width: 0;
    683     height: 0;
     674    content:'';
     675    position: absolute;
     676    top: 100%;
     677    left: 50%;
     678    border-top: solid 10px #ffffff;
     679    border-left: solid 10px transparent;
     680    border-right: solid 10px transparent;
     681    margin-left: -60px;
     682    width: 0;
     683    height: 0;
    684684}
    685685
    686686.accp-wp-admin-tooltip-dark::after{
    687     border-top: solid 10px #3c434a;
     687    border-top: solid 10px #3c434a;
    688688}
    689689
    690690.accp-wp-admin-has-tooltip-center{
    691     left: 12%;
    692     margin-top: -115px;
     691    left: 12%;
     692    margin-top: -115px;
    693693}
    694694
    695695.accp-company-global-page-tooltip{
    696     margin-top: -143px;
     696    margin-top: -143px;
    697697}
    698698
    699699.accp-generate-page-form p.accp-create-new-page-instructions{
    700     margin-top: 20px;
     700    margin-top: 20px;
    701701}
    702702
    703703.accp-generate-new-page-field-container{
    704     display: block;
    705     margin-bottom: 10px;
     704    display: block;
     705    margin-bottom: 10px;
    706706}
    707707
    708708.button.button-primary.accp-generate-new-page{
    709     margin-top: 15px;
     709    margin-top: 15px;
    710710}
    711711
    712712.accp-unpublished-company-item{
    713     padding: 10px;
    714     background-color: #fff;
    715     margin-right: 7px;
    716     border-radius: 3px;
     713    padding: 10px;
     714    background-color: #fff;
     715    margin-right: 7px;
     716    border-radius: 3px;
    717717}
    718718
    719719.accp-delete-unpublished-company-item{
    720     display: inline-block;
    721     background-color: #C3C3C3;
    722     width: 15px;
    723     text-align: center;
    724     padding-right: 1px;
    725     cursor: pointer;
     720    display: inline-block;
     721    background-color: #C3C3C3;
     722    width: 15px;
     723    text-align: center;
     724    padding-right: 1px;
     725    cursor: pointer;
    726726}
    727727
    728728.accp-column-pointer-item{
    729     cursor: pointer;
     729    cursor: pointer;
    730730}
    731731
    732732.accp-spinner.spinner{
    733     margin-top: 20px;
     733    margin-top: 20px;
    734734}
    735735
    736736.accp-spinner.spinner.accp-spinner-after-bulk-edit{
    737     margin-top: 0px;
     737    margin-top: 0px;
    738738}
    739739
    740740.accp-spinner.spinner.accp-reassign-company-button-spinner{
    741     margin-top: 0;
     741    margin-top: 0;
    742742}
    743743
    744744.accp-reassign-company-notice{
    745     color: #b32d2e;
     745    color: #b32d2e;
    746746}
    747747
    748748option.accp-non-published-post-option{
    749     color: #717171;
     749    color: #717171;
    750750}
    751751
    752752.accp-boxed-container label[for="accp_make_page_global"]{
    753     display: block;
    754     padding-bottom: 15px;
     753    display: block;
     754    padding-bottom: 15px;
    755755}
    756756
    757757.accp-boxed-container.accp-specify-company-field-container .select2-container{
    758     padding-bottom: 15px;
     758    padding-bottom: 15px;
    759759}
    760760
    761761.accp-boxed-container.current-assigned-company-container p{
    762     padding-top: 15px;
    763     padding-bottom: 15px;
     762    padding-top: 15px;
     763    padding-bottom: 15px;
    764764}
    765765
    766766.accp-directory-assigned{
    767     display: none;
     767    display: none;
    768768}
    769769
    770770.accp-reassign-btn-cancel{
    771     display: none;
     771    display: none;
    772772}
    773773
    774774.accp-dir-update-notice{
    775     border: 2px solid #c9d1de;
    776     background-color: #e0e8f5;
    777     padding: 10px;
     775    border: 2px solid #c9d1de;
     776    background-color: #e0e8f5;
     777    padding: 10px;
    778778}
    779779
    780780.accp-dir-update-check-label{
    781     display: block;
    782     margin-bottom: 10px;
     781    display: block;
     782    margin-bottom: 10px;
    783783}
    784784
    785785#accp-create-user-container{
    786     margin-top: 25px;
     786    margin-top: 25px;
    787787}
    788788
    789789.accp-new-user-field{
    790     display: block;
    791     margin-bottom: 20px;
     790    display: block;
     791    margin-bottom: 20px;
    792792}
    793793
    794794.accp-set-width-label-85{
    795     width: 85px;
    796     display: inline-block;
     795    width: 85px;
     796    display: inline-block;
    797797}
    798798
    799799#accp-autogenerate-password{
    800     margin-left: 10px;
     800    margin-left: 10px;
    801801}
    802802
    803803.accp-generate-user-message{
    804     display: block;
    805     margin-bottom: 7px;
    806     color: #b72a0a;
     804    display: block;
     805    margin-bottom: 7px;
     806    color: #b72a0a;
    807807}
    808808
    809809.accp-create-user-cancel-button-text{
    810     display: none;
     810    display: none;
    811811}
    812812
    813813#accp-create-user-container{
    814     display: none;
     814    display: none;
    815815}
    816816
    817817#accp-assign-primary-user-container{
    818     border: 1px solid #eeefef;
    819     margin-top: 25px;
    820     margin-bottom: 15px;
    821     background-color: #f6f7f7;
    822     padding-left: 15px;
    823     padding-right: 15px;
    824     padding-bottom: 25px;
     818    border: 1px solid #eeefef;
     819    margin-top: 25px;
     820    margin-bottom: 15px;
     821    background-color: #f6f7f7;
     822    padding-left: 15px;
     823    padding-right: 15px;
     824    padding-bottom: 25px;
    825825}
    826826
    827827.accp-assign-primary-user-heading{
    828     display: block;
    829     margin-top: 20px;
    830     font-weight: 600;
     828    display: block;
     829    margin-top: 20px;
     830    font-weight: 600;
    831831}
    832832
    833833.accp-upgrade-pro-feature-item-container{
    834     box-shadow: 2px 2px 7px rgba(0,0,0, 0.1);
    835     border-radius: 8px;
    836     padding: 25px;
    837     margin: 20px;   
     834    box-shadow: 2px 2px 7px rgba(0,0,0, 0.1);
     835    border-radius: 8px;
     836    padding: 25px;
     837    margin: 20px;
    838838}
    839839
    840840.accp-upgrade-pro-feature-item-container:hover{
    841     background-color: #005be0;
     841    background-color: #005be0;
    842842}
    843843
    844844.accp-upgrade-pro-feature-content-container{
    845     position: relative;   
     845    position: relative;
    846846}
    847847
    848848.accp-hover-upgrade-button{
    849     display: none;
    850     color: #fff;   
    851     font-size: 20px;
    852     text-transform: uppercase;
    853     border: 2px solid;
    854     text-align: center;
    855     max-width: 90%;   
    856     padding-top: 7px;
    857     padding-bottom: 9px;
    858     width: 220px;
    859     position: absolute;
    860     top: 40%;
     849    display: none;
     850    color: #fff;
     851    font-size: 20px;
     852    text-transform: uppercase;
     853    border: 2px solid;
     854    text-align: center;
     855    max-width: 90%;
     856    padding-top: 7px;
     857    padding-bottom: 9px;
     858    width: 220px;
     859    position: absolute;
     860    top: 40%;
    861861}
    862862
    863863.accp-upgrade-pro-feature-item-container:hover > a .accp-upgrade-pro-feature-content-container{
    864     display: flex;
    865     justify-content: center;
     864    display: flex;
     865    justify-content: center;
    866866}
    867867
    868868.accp-upgrade-pro-feature-item-container:hover > a .accp-upgrade-pro-feature-item-title{
    869     color: #fff;
     869    color: #fff;
    870870}
    871871
    872872.accp-upgrade-pro-feature-item-container:hover > a p{
    873     visibility: hidden;
     873    visibility: hidden;
    874874}
    875875
    876876.accp-upgrade-pro-feature-item-container:hover > a .accp-hover-upgrade-button{
    877     display: block;
     877    display: block;
    878878}
    879879
    880880.accp-upgrade-pro-feature-item-title{
    881     font-size: 21px;
    882     line-height: 27px;
    883     color: #005be0;
     881    font-size: 21px;
     882    line-height: 27px;
     883    color: #005be0;
    884884}
    885885
    886886.accp-upgrade-pro-feature-item-container p{
    887     color: #777;
    888     font-size: 14px;
     887    color: #777;
     888    font-size: 14px;
    889889}
    890890
    891891.accp-upgrade-pro-feature-item-container a{
    892     text-decoration: none;
    893     width: 100%;
    894     height: 100%;
    895     display: block;
     892    text-decoration: none;
     893    width: 100%;
     894    height: 100%;
     895    display: block;
    896896}
    897897
    898898.accp-settings-section-inner{
    899     border-bottom: 1px solid #eee;
    900     padding-bottom: 15px;
    901     margin-bottom: 30px;
     899    border-bottom: 1px solid #eee;
     900    padding-bottom: 15px;
     901    margin-bottom: 30px;
    902902}
    903903
    904904.company_status_row{
    905     margin-bottom: 15px;
     905    margin-bottom: 15px;
    906906}
    907907
     
    909909.company_status_row input,
    910910.company_status_row select{
    911     margin-right: 5px;
     911    margin-right: 5px;
    912912}
    913913
    914914.company_status_row .accp-row-add{
    915     margin-left: 5px;
    916     margin-right: 10px;
     915    margin-left: 5px;
     916    margin-right: 10px;
    917917}
    918918
    919919.company_status_row i{
    920     font-size: 15px;
    921     position: relative;
    922     top: 2px;
    923     color: #737373;
     920    font-size: 15px;
     921    position: relative;
     922    top: 2px;
     923    color: #737373;
    924924}
    925925
    926926.accp-add-status-row.button{
    927     cursor: pointer;   
     927    cursor: pointer;
    928928}
    929929
    930930.accp-action-pending{
    931     pointer-events: none;
     931    pointer-events: none;
    932932}
    933933
    934934#accp-settings-sidebar-container{
    935     padding-left: 20px;
    936     padding-top: 20px;
     935    padding-left: 20px;
     936    padding-top: 20px;
    937937}
    938938
    939939#accp-settings-sidebar-container a{
    940     text-decoration: none;
     940    text-decoration: none;
    941941}
    942942
    943943.accp-settings-page-container.wrap{
    944     background-color: #fff;
    945     min-height: 800px;
     944    background-color: #fff;
     945    min-height: 800px;
    946946}
    947947
    948948.accp-admin-main-content-header{
    949     margin-bottom: 15px;
     949    margin-bottom: 15px;
    950950}
    951951
    952952#accp-admin-main-content h1{
    953     color: #005be0;
    954     font-weight: normal;
    955     font-size: 28px;
    956     padding-left: 20px;
     953    color: #005be0;
     954    font-weight: normal;
     955    font-size: 28px;
     956    padding-left: 20px;
    957957}
    958958
    959959#accp-post-edit-nonce{
    960     display: none !important;
     960    display: none !important;
    961961}
    962962
    963963@media screen and (min-width: 980px){
    964964
    965     .accp-upgrade-pro-feature-short-list{
    966         display: grid;
    967         grid-template-columns: auto auto auto;
    968     }
    969 
    970     #accp-settings-sidebar-container{   
    971         width: 200px;
    972         float: left;   
    973     }
    974 
    975     #accp-admin-main-content{
    976         margin-left: 200px;
    977     }
    978 
    979 }
     965    .accp-upgrade-pro-feature-short-list{
     966        display: grid;
     967        grid-template-columns: auto auto auto;
     968    }
     969
     970    #accp-settings-sidebar-container{
     971        width: 200px;
     972        float: left;
     973    }
     974
     975    #accp-admin-main-content{
     976        margin-left: 200px;
     977    }
     978
     979}
  • constellation-client-portal/trunk/ars-constellation-client-portal.php

    r3079876 r3082049  
    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.3
     9 * Version:           1.8.4
    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.3'); // Change the version in the header as well.
     59    define('ACCP_PLUGIN_VERSION', '1.8.4'); // Change the version in the header as well.
    6060    define( ACCP_PLUGIN_NAME, ACCP_PLUGIN_VERSION );
    6161    define( 'ACCP_PLUGIN_FILE_NAME', __FILE__ );
  • constellation-client-portal/trunk/includes/ars-constellation-client-portal-install-uninstall.php

    r3079876 r3082049  
    8989     * check for the existence of each default value in the saved options.
    9090     */
    91     if ( is_array( $company_status_rows ) && ! empty( $company_status_rows ) && $company_status_rows != null ) {
     91    if ( is_array( $company_status_rows ) && ! empty( $company_status_rows ) && null !== $company_status_rows ) {
    9292
    9393        $new              = array();
  • constellation-client-portal/trunk/includes/class-ars-constellation-client-portal-activator.php

    r3079876 r3082049  
    4747            $enabled_options = $pro_emails->accp_get_enabled_automated_email_option_names();
    4848
    49             if ( ! empty( $enabled_options ) && $enabled_options !== false ) {
     49            if ( ! empty( $enabled_options ) && false !== $enabled_options ) {
    5050
    5151                if ( ! wp_next_scheduled( 'accp_automated_email_cron' ) ) {
  • constellation-client-portal/trunk/includes/class-ars-constellation-client-portal-loader.php

    r3079876 r3082049  
    3939     *
    4040     * @since    1.0.0
     41     * @var      array    $shortcodes The shortcodes registered with WordPress to fire when the plugin loads.
    4142     */
    4243    protected $shortcodes;
    4344
     45    /**
     46     * The class construct.
     47     */
    4448    public function __construct() {
    4549
     
    7175     * @param    string $callback         The name of the function definition on the $component.
    7276     * @param    int    $priority         Optional. The priority at which the function should be fired. Default is 10.
    73      * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1
     77     * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
    7478     */
    7579    public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {
     
    7882
    7983    /**
    80      * Add shortcode
     84     * Add shortcode.
    8185     *
    8286     * @since     1.0.0
    8387     * @param     string $tag           The name of the new shortcode.
    84      * @param     object $component      A reference to the instance of the object on which the shortcode is defined.
    85      * @param     string $callback       The name of the function that defines the shortcode.
     88     * @param     object $component     A reference to the instance of the object on which the shortcode is defined.
     89     * @param     string $callback      The name of the function that defines the shortcode.
     90     * @param     int    $priority      The hook priority.
     91     * @param    int    $accepted_args    Optional. The number of arguments that should be passed to the $callback. Default is 1.
    8692     */
    8793    public function add_shortcode( $tag, $component, $callback, $priority = 10, $accepted_args = 1 ) {
  • constellation-client-portal/trunk/includes/class-ars-constellation-client-portal-utility-functions.php

    r3079876 r3082049  
    22/**
    33 * ACCP Core Utility Functions.
     4 *
     5 * @package    ARS_Constellation_Client_Portal
    46 */
    57
     
    3537     *
    3638     * @since    1.0.0
    37      * @param      string $plugin_name The name of this plugin.
    38      * @param      string $version    The version of this plugin.
    3939     */
    4040    public function __construct() {
    41        
    42         if (  defined( 'ARS_CONSTELLATION_CLIENT_PORTAL_PRO' ) ) {
     41
     42        if ( defined( 'ARS_CONSTELLATION_CLIENT_PORTAL_PRO' ) ) {
    4343
    4444            // Check for Pro version.
     
    6363    /**
    6464     * Prep integers for use.
    65      * 
     65     *
    6666     * @param string $input_string - The string to sanitize.
    6767     */
    68     function accp_sanitize_integers( $input_string ) {
     68    public function accp_sanitize_integers( $input_string ) {
    6969
    7070        // Strip out non-numeric characters, except "-" that
     
    8080            $integer = filter_var( $prelim_int, FILTER_SANITIZE_NUMBER_INT );
    8181
    82         } else {   
     82        } else {
    8383
    8484            $integer = '';
     
    9595     * Example return: 'wp-content'.
    9696     */
    97     function accp_get_wp_content_dir_name() {
     97    public function accp_get_wp_content_dir_name() {
    9898
    9999        $wp_content_dir_name = basename( WP_CONTENT_DIR );
     
    112112     * Example return: 'uploads'.
    113113     */
    114     function accp_get_wp_uploads_dir_name() {
     114    public function accp_get_wp_uploads_dir_name() {
    115115
    116116        $wp_uploads_dir = wp_get_upload_dir();
     
    131131     * Example return: '/var/www/html/wp-content/uploads/accp-clientfiles'.
    132132     */
    133     function accp_get_clientfiles_path() {
     133    public function accp_get_clientfiles_path() {
    134134
    135135        $clientfiles_dir_name = '/accp-clientfiles';
     
    152152     * Example return: 'https://www.example.com/wp-content/uploads/accp-clientfiles'.
    153153     */
    154     function accp_get_clientfiles_upload_dir_url() {
     154    public function accp_get_clientfiles_upload_dir_url() {
    155155
    156156        $clientfiles_dir_name = '/accp-clientfiles';
     
    179179     * @return string $slug - The sanitized slug.
    180180     */
    181     function sanitize_url_slug_name( $slug ) {
     181    public function sanitize_url_slug_name( $slug ) {
    182182
    183183        if ( ! $slug ) {
     
    213213     * @return bool $is_unique - True if the slug is unique or false if not.
    214214     */
    215     function check_if_post_type_slug_is_unique( $slug ) {
     215    public function check_if_post_type_slug_is_unique( $slug ) {
    216216
    217217        $is_unique = true;
     
    282282     * @return bool $is_valid_post_type - True if the slug is a valid post type or false if not.
    283283     */
    284     function check_if_post_type_slug_is_valid_post_type( $slug ) {
     284    public function check_if_post_type_slug_is_valid_post_type( $slug ) {
    285285
    286286        if ( ! $slug ) {
     
    304304             * matches the slug being checked.
    305305             */
    306             if ( $name === sanitize_text_field( strtolower( $slug ) ) ) {
     306            if ( sanitize_text_field( strtolower( $slug ) ) === $name ) {
    307307
    308308                $is_valid_post_type = true;
     
    326326     * @return bool $is_unique - True if the slug is unique or false if not.
    327327     */
    328     function check_if_taxonomy_slug_is_unique( $slug ) {
     328    public function check_if_taxonomy_slug_is_unique( $slug ) {
    329329
    330330        $is_unique = true;
     
    395395     * @return bool $is_pro - True if this is the pro plugin, false if not.
    396396     */
    397     function is_pro_plugin( $plugin_name ) {
     397    public function is_pro_plugin( $plugin_name ) {
    398398
    399399        $is_pro = false;
  • constellation-client-portal/trunk/includes/class-ars-constellation-client-portal.php

    r3079876 r3082049  
    125125         * Pro tier Admin functions.
    126126         */
    127         if ( $this->plugin_name == 'ars-constellation-client-portal-pro' ) {
    128 
    129             // Include the Pro functions
     127        if ( 'ars-constellation-client-portal-pro' === $this->plugin_name ) {
     128
     129            // Include the Pro functions.
    130130            require_once dirname( __DIR__ ) . '/pro/admin/ars-constellation-client-portal-pro-admin-functions.php';
    131131
    132             // Pro Email Class
     132            // Pro Email Class.
    133133            require_once dirname( __DIR__ ) . '/pro/admin/class-ars-constellation-client-portal-pro-emails.php';
    134134
    135             // Pro Authorization Class
     135            // Pro Authorization Class.
    136136            require_once dirname( __DIR__ ) . '/pro/admin/class-ars-constellation-client-portal-pro-authorization.php';
    137137
     
    141141         * Pro tier Public functions.
    142142         */
    143         if ( $this->plugin_name == 'ars-constellation-client-portal-pro' ) {
    144 
    145             // Include the Pro functions
     143        if ( 'ars-constellation-client-portal-pro' === $this->plugin_name ) {
     144
     145            // Include the Pro functions.
    146146            require_once dirname( __DIR__ ) . '/pro/public/class-ars-constellation-client-portal-pro-public.php';
    147147
     
    528528         * Add an upgrade link to the plugin menu in the WP plugin list - base plugin only.
    529529         */
    530         if ( $this->plugin_name !== 'ars-constellation-client-portal-pro' ) {
     530        if ( 'ars-constellation-client-portal-pro' !== $this->plugin_name ) {
    531531
    532532            $this->loader->add_filter( 'plugin_action_links_' . plugin_basename( dirname( __DIR__ ) ) . '/ars-constellation-client-portal.php', $plugin_admin, 'accp_add_upgrade_link_to_plugin_row_actions_menu', 10, 1 );
     
    542542         * Pro tier hooks
    543543         */
    544         if ( $this->plugin_name == 'ars-constellation-client-portal-pro' ) {
     544        if ( 'ars-constellation-client-portal-pro' === $this->plugin_name ) {
    545545
    546546            $plugin_pro_admin = new ARS_Constellation_Client_Portal_Pro_Admin( $this->get_plugin_name(), $this->get_version() );
     
    585585         * Pro tier hooks
    586586         */
    587         if ( $this->plugin_name == 'ars-constellation-client-portal-pro' ) {
     587        if ( 'ars-constellation-client-portal-pro' === $this->plugin_name ) {
    588588
    589589            $plugin_pro_public = new ARS_Constellation_Client_Portal_Pro_Public( $this->get_plugin_name(), $this->get_version() );
Note: See TracChangeset for help on using the changeset viewer.