Plugin Directory

Changeset 2938283


Ignore:
Timestamp:
07/13/2023 02:21:25 PM (3 years ago)
Author:
idresult
Message:

2.1.9

Location:
idcrm-contacts-companies/trunk
Files:
11 edited
6 copied

Legend:

Unmodified
Added
Removed
  • idcrm-contacts-companies/trunk/includes/actions/idcrm-action-scripts-remover.php

    r2933956 r2938283  
    8989    $exclude_scripts = array(
    9090        'jquery-core',
     91        'jquery',
    9192        'jquery-migrate',
    9293        'jquery-ui-sortable',
  • idcrm-contacts-companies/trunk/includes/idcrm-contacts-schedule-cpt.php

    r2933956 r2938283  
    115115                        'create_posts' => 'edit_user_contacts',
    116116                        'edit_others_posts' => 'edit_others_user_contacts',
    117                         'publish_posts' => 'publish_user_contacts'
     117                        'publish_posts' => 'publish_user_contacts',
     118                        'edit_post'   => 'edit_user_contact',
     119                        'read_post'   => 'edit_user_contact'
    118120                    ),
    119121                )
     
    143145                        'create_posts' => 'edit_user_contacts',
    144146                        'edit_others_posts' => 'edit_others_user_contacts',
    145                         'publish_posts' => 'publish_user_contacts'
     147                        'publish_posts' => 'publish_user_contacts',
     148                        'edit_post'   => 'edit_user_contact',
     149                        'read_post'   => 'edit_user_contact'
    146150                    ),
    147151                )
  • idcrm-contacts-companies/trunk/includes/idcrm-contacts-template-loader.php

    r2933956 r2938283  
    1818            $handler = new self();
    1919            add_filter( 'theme_page_templates', array($handler, 'plugin_page_templates' ) );
     20
    2021            add_filter( 'template_include', array($handler, 'load_plugin_template' ) );
    2122            add_filter( 'template_include', array($handler, 'idcrm_contacts_search' ) );
    2223            add_filter( 'template_include', array($handler, 'idcrm_contacts_templates' ) );
     24            add_filter( 'template_include', array($handler, 'unauthorized_redirect' ) );
     25
    2326        }
    2427
     
    6770                global $wp_query;
    6871
    69             if (!$wp_query->is_search || !isset($_GET["search_type"]) && empty($_GET["search_type"])) {
     72            if (!$wp_query->is_search || !isset($_GET["search_type"]) && empty($_GET["search_type"])) {
    7073                    return $template;
    7174                }
    7275
    73             return idCRM::$IDCRM_PATH . 'templates/search.php';
     76            return idCRM::$IDCRM_PATH . 'templates/search.php';
    7477        }
    7578
     
    126129            return $template;
    127130        }
     131
     132        public function kill_taxonomy_archive($taxonomy) {
     133
     134        add_action('pre_get_posts', function($qry) {
     135                if (is_admin()) return;
     136                if (is_tax($taxonomy)){
     137                    $qry->set_404();
     138                }
     139            }
     140        );
     141        }
     142
     143        public function unauthorized_redirect($template) {
     144
     145        //  $queried_object = get_queried_object();
     146     // print_r( $queried_object );
     147
     148            if ( is_singular( 'contact_event' )) {
     149                wp_safe_redirect( home_url() . '/crm/' );
     150                exit;
     151            }
     152
     153            if ( is_singular( 'idcrm_comments' )) {
     154                wp_safe_redirect( home_url() . '/crm/' );
     155                exit;
     156            }
     157
     158            if ( is_post_type_archive( 'contact_event' )) {
     159                wp_safe_redirect( home_url() . '/crm/' );
     160                exit;
     161            }
     162
     163            if ( is_post_type_archive( 'contact_events' )) {
     164                wp_safe_redirect( home_url() . '/crm/' );
     165                exit;
     166            }
     167
     168            if ( is_post_type_archive( 'idcrm_comments' )) {
     169                wp_safe_redirect( home_url() . '/crm/' );
     170                exit;
     171            }
     172
     173            if ( is_tax( 'contact_events' )) {
     174                wp_safe_redirect( home_url() . '/crm/' );
     175                exit;
     176            }
     177
     178            add_action('pre_get_posts', function($query) {
     179
     180            if (is_admin()) {
     181                            return;
     182                        }
     183
     184            if (is_tax('contact_events')){
     185                $query->set_404();
     186            }
     187
     188                        if ( $query->is_feed() ) {
     189                            $taxonomy = 'contact_events';
     190
     191                        $terms = get_terms([
     192                            'taxonomy' => $taxonomy,
     193                            'fields' => 'ids',
     194                        ]);
     195
     196                            $tax_query = array([
     197                            'taxonomy' => $taxonomy,
     198                            'field' => 'term_id',
     199                            'terms' => (array) $terms,
     200                            'operator' => 'NOT IN',
     201                        ]);
     202
     203                            $query->set( 'tax_query', $tax_query );
     204                        }
     205
     206        }
     207
     208    );
     209
     210            $user = wp_get_current_user();
     211
     212            if ( isset( $user->caps ) && !empty($user->caps) && !in_array(['crm_manager', 'administrator'], $user->caps) ) {
     213
     214                if ( is_singular( 'contact_event' )) {
     215                    wp_safe_redirect( home_url() . '/crm/' );
     216                    exit;
     217                }
     218
     219                if ( is_singular( 'idcrm_comments' )) {
     220                    wp_safe_redirect( home_url() . '/crm/' );
     221                    exit;
     222                }
     223
     224                if ( is_post_type_archive( 'contact_event' )) {
     225                    wp_safe_redirect( home_url() . '/crm/' );
     226                    exit;
     227                }
     228
     229                if ( is_post_type_archive( 'idcrm_comments' )) {
     230                    wp_safe_redirect( home_url() . '/crm/' );
     231                    exit;
     232                }
     233
     234            }
     235
     236            return $template;
     237        }
    128238    }
    129239}
  • idcrm-contacts-companies/trunk/languages/idcrm-contacts-companies-ru_RU.po

    r2933956 r2938283  
    33msgid ""
    44msgstr ""
    5 "PO-Revision-Date: 2023-06-14 08:10+0000\n"
     5"PO-Revision-Date: 2023-06-28 16:34+0000\n"
    66"MIME-Version: 1.0\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
     
    3636msgstr "Активно"
    3737
    38 #: templates/inc/add-company.php:173
     38#: templates/inc/add-company.php:179
    3939msgid "Add Company"
    4040msgstr "Добавить"
    4141
    42 #: includes/actions/idcrm-action-menu.php:73
    43 #: includes/actions/idcrm-action-menu.php:74 templates/inc/add-company.php:14
     42#: includes/actions/idcrm-action-menu.php:77
     43#: includes/actions/idcrm-action-menu.php:78 templates/inc/add-company.php:14
    4444msgid "Add company"
    4545msgstr "Добавить компанию"
    4646
    47 #: templates/inc/add-user-backup.php:415 templates/inc/add-user.php:352
     47#: templates/inc/add-user-backup.php:415 templates/inc/add-user.php:364
    4848msgid "Add Contact"
    4949msgstr "Добавить контакт"
    5050
    51 #: includes/actions/idcrm-action-menu.php:37
    52 #: includes/actions/idcrm-action-menu.php:38
     51#: includes/actions/idcrm-action-menu.php:41
     52#: includes/actions/idcrm-action-menu.php:42
    5353msgid "Add contact"
    5454msgstr "Добавить контакт"
    5555
    56 #: includes/actions/idcrm-action-menu.php:100
    57 #: includes/actions/idcrm-action-menu.php:101
     56#: includes/actions/idcrm-action-menu.php:104
     57#: includes/actions/idcrm-action-menu.php:105
    5858#: templates/inc/content-schedule-form.php:73
    5959msgid "Add Event"
     
    112112msgstr "Все статусы"
    113113
    114 #: templates/archive-companies.php:78 templates/archive-companies.php:100
    115 #: templates/archive-contacts.php:64 templates/archive-contacts.php:86
     114#: templates/archive-companies.php:69 templates/archive-companies.php:91
     115#: templates/archive-contacts.php:59 templates/archive-contacts.php:81
    116116msgid "All: "
    117117msgstr "Всего: "
     
    125125msgstr "Должность: "
    126126
    127 #: includes/idcrm-contacts-schedule-cpt.php:168
     127#: includes/idcrm-contacts-schedule-cpt.php:178
    128128msgid "Bill"
    129129msgstr "Счет"
     
    142142msgstr "Сузить"
    143143
    144 #: includes/idcrm-contacts-schedule-cpt.php:144
     144#: includes/idcrm-contacts-schedule-cpt.php:154
    145145msgid "Call"
    146146msgstr "Звонок"
     
    148148#: includes/admin/idcrm-admin-user-manage.php:43 includes/api/idcrm-api.php:59
    149149#: includes/integrations/idcrm-integration-datepicker.php:26
    150 #: templates/inc/add-company.php:175 templates/inc/add-user-backup.php:417
    151 #: templates/inc/add-user.php:354
     150#: templates/inc/add-company.php:181 templates/inc/add-user-backup.php:417
     151#: templates/inc/add-user.php:366
    152152msgid "Cancel"
    153153msgstr "Отмена"
     
    192192msgstr "Комментарии закрыты."
    193193
    194 #: includes/actions/idcrm-action-menu.php:64
    195 #: includes/actions/idcrm-action-menu.php:65
     194#: includes/actions/idcrm-action-menu.php:68
     195#: includes/actions/idcrm-action-menu.php:69
    196196#: includes/idcrm-contacts-company-cpt.php:171 templates/inc/sidebar.php:61
    197197msgid "Companies"
    198198msgstr "Компании"
    199199
    200 #: includes/actions/idcrm-action-menu.php:82
    201 #: includes/actions/idcrm-action-menu.php:83
     200#: includes/actions/idcrm-action-menu.php:86
     201#: includes/actions/idcrm-action-menu.php:87
    202202msgid "Companies Statuses"
    203203msgstr "Статусы компаний"
     
    207207#: includes/idcrm-contacts-user-cpt.php:79
    208208#: includes/integrations/idcrm-integration-datepicker.php:32
    209 #: templates/archive-contacts.php:146 templates/inc/add-user-backup.php:317
     209#: templates/archive-contacts.php:141 templates/inc/add-user-backup.php:317
    210210#: templates/inc/add-user.php:271 templates/search.php:136
    211211msgid "Company"
     
    253253msgstr "Контакты"
    254254
    255 #: includes/actions/idcrm-action-menu.php:55
    256 #: includes/actions/idcrm-action-menu.php:56
     255#: includes/actions/idcrm-action-menu.php:59
     256#: includes/actions/idcrm-action-menu.php:60
    257257msgid "Contacts Sources"
    258258msgstr "Источники контактов"
    259259
    260 #: includes/actions/idcrm-action-menu.php:46
    261 #: includes/actions/idcrm-action-menu.php:47
     260#: includes/actions/idcrm-action-menu.php:50
     261#: includes/actions/idcrm-action-menu.php:51
    262262msgid "Contacts Statuses"
    263263msgstr "Статусы контактов"
     
    290290
    291291#: includes/idcrm-contacts-schedule-cpt.php:32
    292 #: templates/archive-companies.php:142 templates/archive-contacts.php:142
     292#: templates/archive-companies.php:133 templates/archive-contacts.php:137
    293293#: templates/search.php:81
    294294msgid "Date"
     
    303303msgstr "Сделки"
    304304
    305 #: includes/api/idcrm-api.php:73 templates/archive-companies.php:248
    306 #: templates/archive-contacts.php:319 templates/inc/comments-loop.php:98
     305#: includes/api/idcrm-api.php:73 templates/archive-companies.php:239
     306#: templates/archive-contacts.php:314 templates/inc/comments-loop.php:119
    307307#: templates/search.php:178
    308308msgid "Delete"
     
    313313msgstr "Удалено"
    314314
    315 #: templates/inc/comments-loop.php:73
     315#: templates/inc/comments-loop.php:88
    316316msgid "Deleted user"
    317317msgstr "Удаленный пользователь"
     
    321321msgstr "Документ"
    322322
    323 #: includes/idcrm-contacts-user-cpt.php:66 templates/archive-contacts.php:149
     323#: includes/idcrm-contacts-user-cpt.php:66 templates/archive-contacts.php:144
    324324#: templates/comments.php:30 templates/inc/add-user.php:267
    325325#: templates/single-contact.php:287
     
    327327msgstr "E-mail"
    328328
    329 #: templates/archive-companies.php:243 templates/archive-contacts.php:314
    330 #: templates/comments.php:67 templates/inc/comments-loop.php:93
     329#: templates/archive-companies.php:234 templates/archive-contacts.php:309
     330#: templates/comments.php:67 templates/inc/comments-loop.php:114
    331331#: templates/inc/content-schedule.php:30 templates/inc/events-loop.php:69
    332332#: templates/search.php:173 templates/single-company.php:35
     
    401401msgstr "Тип дела"
    402402
    403 #: includes/actions/idcrm-action-menu.php:109
    404 #: includes/actions/idcrm-action-menu.php:110
     403#: includes/actions/idcrm-action-menu.php:113
     404#: includes/actions/idcrm-action-menu.php:114
    405405msgid "Event Types"
    406406msgstr "Типы дел"
    407407
    408 #: templates/archive-contacts.php:144
     408#: templates/archive-contacts.php:139
    409409msgid "Events"
    410410msgstr "Дела"
     
    448448msgstr "Забыли пароль?"
    449449
     450#: templates/inc/comments-loop.php:161
     451msgid "Forward"
     452msgstr "Переслать"
     453
    450454#: templates/single-contact.php:117
    451455msgid "From: "
     
    521525msgstr "Фон под логотипом"
    522526
    523 #: templates/inc/add-company.php:165
     527#: templates/inc/add-company.php:171
    524528msgid "Logo Upload"
    525529msgstr "Загрузить логотип"
    526530
    527 #: templates/inc/header.php:185
     531#: templates/inc/header.php:210
    528532msgid "Logout"
    529533msgstr "Выход"
    530534
    531 #: includes/idcrm-contacts-schedule-cpt.php:160
     535#: includes/idcrm-contacts-schedule-cpt.php:170
    532536msgid "Mail"
    533537msgstr "Письмо"
     
    542546msgstr "Мужской"
    543547
    544 #: templates/archive-companies.php:145 templates/archive-contacts.php:150
     548#: templates/archive-companies.php:136 templates/archive-contacts.php:145
    545549#: templates/search.php:83
    546550msgid "Manager"
     
    555559msgstr "Отметить как Важное"
    556560
    557 #: includes/idcrm-contacts-schedule-cpt.php:152
     561#: includes/idcrm-contacts-schedule-cpt.php:162
    558562msgid "Meeting"
    559563msgstr "Встреча"
     
    571575msgstr "Перенести в Корзину"
    572576
    573 #: templates/inc/header.php:179
     577#: templates/inc/header.php:204
    574578msgid "My Profile"
    575579msgstr "Профиль"
     
    599603msgstr "Новый статус"
    600604
    601 #: templates/archive-companies.php:258
     605#: templates/archive-companies.php:249
    602606msgid "No companies"
    603607msgstr "Нет компаний"
    604608
    605 #: templates/archive-contacts.php:330
     609#: templates/archive-contacts.php:325
    606610msgid "No contacts"
    607611msgstr "Нет контактов"
     
    638642msgstr "Ок"
    639643
    640 #: includes/idcrm-contacts-schedule-cpt.php:176
     644#: includes/idcrm-contacts-schedule-cpt.php:186
    641645msgid "Other"
    642646msgstr "Другое"
     
    678682msgstr "Пароль"
    679683
    680 #: includes/idcrm-contacts-user-cpt.php:70 templates/archive-contacts.php:148
     684#: includes/idcrm-contacts-user-cpt.php:70 templates/archive-contacts.php:143
    681685#: templates/inc/add-user-backup.php:307 templates/inc/add-user.php:269
    682686#: templates/single-company.php:163
     
    684688msgstr "Телефон"
    685689
    686 #: templates/inc/add-user-backup.php:407 templates/inc/add-user.php:344
     690#: templates/inc/add-user-backup.php:407 templates/inc/add-user.php:356
    687691msgid "Photo Upload"
    688692msgstr "Загрузить фотографию"
     
    698702msgstr "Загрузите фото. Для удаления, очистите url и нажмите \"Обновить\"."
    699703
    700 #: includes/idcrm-contacts-user-cpt.php:83 templates/archive-contacts.php:147
     704#: includes/idcrm-contacts-user-cpt.php:83 templates/archive-contacts.php:142
    701705#: templates/inc/add-user-backup.php:333 templates/inc/add-user.php:291
    702706#: templates/single-company.php:162
     
    712716msgstr "Запомнить меня"
    713717
     718#: templates/inc/comments-loop.php:146
     719msgid "Reply"
     720msgstr "Ответить"
     721
    714722#: includes/api/idcrm-api.php:58
    715723msgid "Save"
    716724msgstr "Сохранить"
    717725
    718 #: includes/actions/idcrm-action-menu.php:91
    719 #: includes/actions/idcrm-action-menu.php:92
     726#: includes/actions/idcrm-action-menu.php:95
     727#: includes/actions/idcrm-action-menu.php:96
    720728#: includes/idcrm-contacts-schedule-cpt.php:102
    721729#: templates/inc/content-schedule.php:36 templates/single-company.php:304
     
    736744msgstr "Поиск дел"
    737745
    738 #: templates/inc/header.php:117
     746#: templates/inc/header.php:142
    739747msgid "Search Mail"
    740748msgstr "Поиск по почте"
     
    752760msgstr "Искать статусы"
    753761
    754 #: templates/inc/header.php:127
     762#: templates/inc/header.php:152
    755763msgid "Search …"
    756764msgstr "Поиск ..."
     
    782790#: includes/admin/idcrm-admin-event-manage-query.php:125
    783791#: includes/admin/idcrm-admin-event-manage-query.php:190
    784 #: templates/archive-companies.php:144 templates/archive-contacts.php:145
     792#: templates/archive-companies.php:135 templates/archive-contacts.php:140
    785793msgid "Status"
    786794msgstr "Статус"
     
    790798msgstr "Статусы"
    791799
    792 #: templates/inc/header.php:129
     800#: templates/inc/header.php:154
    793801msgctxt "submit button"
    794802msgid "Search"
     
    855863msgstr "ИНН: "
    856864
    857 #: templates/archive-companies.php:143 templates/archive-contacts.php:143
     865#: templates/archive-companies.php:134 templates/archive-contacts.php:138
    858866#: templates/search.php:80
    859867msgid "Title"
     
    897905msgstr "Имя контакта"
    898906
    899 #: templates/archive-companies.php:122 templates/archive-contacts.php:108
     907#: templates/archive-companies.php:113 templates/archive-contacts.php:103
    900908#: templates/search.php:47
    901909msgid "View by:"
  • idcrm-contacts-companies/trunk/languages/idcrm-contacts-companies.pot

    r2933956 r2938283  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: id:СRM Contacts & Companies 2.1.6\n"
     5"Project-Id-Version: id:СRM Contacts & Companies 2.1.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/idcrm-contacts-companies\n"
    7 "POT-Creation-Date: 2023-06-14 08:07:54+00:00\n"
     7"POT-Creation-Date: 2023-06-28 16:31:41+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=UTF-8\n"
     
    1313"Language-Team: LANGUAGE <LL@li.org>\n"
    1414
    15 #: includes/actions/idcrm-action-menu.php:37
    16 #: includes/actions/idcrm-action-menu.php:38
     15#: includes/actions/idcrm-action-menu.php:41
     16#: includes/actions/idcrm-action-menu.php:42
    1717msgid "Add contact"
    1818msgstr ""
    1919
    20 #: includes/actions/idcrm-action-menu.php:46
    21 #: includes/actions/idcrm-action-menu.php:47
     20#: includes/actions/idcrm-action-menu.php:50
     21#: includes/actions/idcrm-action-menu.php:51
    2222msgid "Contacts Statuses"
    2323msgstr ""
    2424
    25 #: includes/actions/idcrm-action-menu.php:55
    26 #: includes/actions/idcrm-action-menu.php:56
     25#: includes/actions/idcrm-action-menu.php:59
     26#: includes/actions/idcrm-action-menu.php:60
    2727msgid "Contacts Sources"
    2828msgstr ""
    2929
    30 #: includes/actions/idcrm-action-menu.php:64
    31 #: includes/actions/idcrm-action-menu.php:65
     30#: includes/actions/idcrm-action-menu.php:68
     31#: includes/actions/idcrm-action-menu.php:69
    3232#: includes/idcrm-contacts-company-cpt.php:171 templates/inc/sidebar.php:61
    3333msgid "Companies"
    3434msgstr ""
    3535
    36 #: includes/actions/idcrm-action-menu.php:73
    37 #: includes/actions/idcrm-action-menu.php:74 templates/inc/add-company.php:14
     36#: includes/actions/idcrm-action-menu.php:77
     37#: includes/actions/idcrm-action-menu.php:78 templates/inc/add-company.php:14
    3838msgid "Add company"
    3939msgstr ""
    4040
    41 #: includes/actions/idcrm-action-menu.php:82
    42 #: includes/actions/idcrm-action-menu.php:83
     41#: includes/actions/idcrm-action-menu.php:86
     42#: includes/actions/idcrm-action-menu.php:87
    4343msgid "Companies Statuses"
    4444msgstr ""
    4545
    46 #: includes/actions/idcrm-action-menu.php:91
    47 #: includes/actions/idcrm-action-menu.php:92
     46#: includes/actions/idcrm-action-menu.php:95
     47#: includes/actions/idcrm-action-menu.php:96
    4848#: includes/idcrm-contacts-schedule-cpt.php:102
    4949#: templates/inc/content-schedule.php:36 templates/single-company.php:304
     
    5252msgstr ""
    5353
    54 #: includes/actions/idcrm-action-menu.php:100
    55 #: includes/actions/idcrm-action-menu.php:101
     54#: includes/actions/idcrm-action-menu.php:104
     55#: includes/actions/idcrm-action-menu.php:105
    5656#: templates/inc/content-schedule-form.php:73
    5757msgid "Add Event"
    5858msgstr ""
    5959
    60 #: includes/actions/idcrm-action-menu.php:109
    61 #: includes/actions/idcrm-action-menu.php:110
     60#: includes/actions/idcrm-action-menu.php:113
     61#: includes/actions/idcrm-action-menu.php:114
    6262msgid "Event Types"
    6363msgstr ""
     
    6767#: includes/idcrm-contacts-user-cpt.php:79
    6868#: includes/integrations/idcrm-integration-datepicker.php:32
    69 #: templates/archive-contacts.php:146 templates/inc/add-user-backup.php:317
     69#: templates/archive-contacts.php:141 templates/inc/add-user-backup.php:317
    7070#: templates/inc/add-user.php:271 templates/search.php:136
    7171msgid "Company"
     
    100100#: includes/admin/idcrm-admin-event-manage-query.php:125
    101101#: includes/admin/idcrm-admin-event-manage-query.php:190
    102 #: templates/archive-companies.php:144 templates/archive-contacts.php:145
     102#: templates/archive-companies.php:135 templates/archive-contacts.php:140
    103103msgid "Status"
    104104msgstr ""
     
    157157#: includes/admin/idcrm-admin-user-manage.php:43 includes/api/idcrm-api.php:59
    158158#: includes/integrations/idcrm-integration-datepicker.php:26
    159 #: templates/inc/add-company.php:175 templates/inc/add-user-backup.php:417
    160 #: templates/inc/add-user.php:354
     159#: templates/inc/add-company.php:181 templates/inc/add-user-backup.php:417
     160#: templates/inc/add-user.php:366
    161161msgid "Cancel"
    162162msgstr ""
     
    254254msgstr ""
    255255
    256 #: includes/api/idcrm-api.php:73 templates/archive-companies.php:248
    257 #: templates/archive-contacts.php:319 templates/inc/comments-loop.php:98
     256#: includes/api/idcrm-api.php:73 templates/archive-companies.php:239
     257#: templates/archive-contacts.php:314 templates/inc/comments-loop.php:119
    258258#: templates/search.php:178
    259259msgid "Delete"
     
    374374
    375375#: includes/idcrm-contacts-schedule-cpt.php:32
    376 #: templates/archive-companies.php:142 templates/archive-contacts.php:142
     376#: templates/archive-companies.php:133 templates/archive-contacts.php:137
    377377#: templates/search.php:81
    378378msgid "Date"
     
    433433msgstr ""
    434434
    435 #: includes/idcrm-contacts-schedule-cpt.php:144
     435#: includes/idcrm-contacts-schedule-cpt.php:154
    436436msgid "Call"
    437437msgstr ""
    438438
    439 #: includes/idcrm-contacts-schedule-cpt.php:152
     439#: includes/idcrm-contacts-schedule-cpt.php:162
    440440msgid "Meeting"
    441441msgstr ""
    442442
    443 #: includes/idcrm-contacts-schedule-cpt.php:160
     443#: includes/idcrm-contacts-schedule-cpt.php:170
    444444msgid "Mail"
    445445msgstr ""
    446446
    447 #: includes/idcrm-contacts-schedule-cpt.php:168
     447#: includes/idcrm-contacts-schedule-cpt.php:178
    448448msgid "Bill"
    449449msgstr ""
    450450
    451 #: includes/idcrm-contacts-schedule-cpt.php:176
     451#: includes/idcrm-contacts-schedule-cpt.php:186
    452452msgid "Other"
    453453msgstr ""
     
    457457msgstr ""
    458458
    459 #: includes/idcrm-contacts-user-cpt.php:66 templates/archive-contacts.php:149
     459#: includes/idcrm-contacts-user-cpt.php:66 templates/archive-contacts.php:144
    460460#: templates/comments.php:30 templates/inc/add-user.php:267
    461461#: templates/single-contact.php:287
     
    463463msgstr ""
    464464
    465 #: includes/idcrm-contacts-user-cpt.php:70 templates/archive-contacts.php:148
     465#: includes/idcrm-contacts-user-cpt.php:70 templates/archive-contacts.php:143
    466466#: templates/inc/add-user-backup.php:307 templates/inc/add-user.php:269
    467467#: templates/single-company.php:163
     
    473473msgstr ""
    474474
    475 #: includes/idcrm-contacts-user-cpt.php:83 templates/archive-contacts.php:147
     475#: includes/idcrm-contacts-user-cpt.php:83 templates/archive-contacts.php:142
    476476#: templates/inc/add-user-backup.php:333 templates/inc/add-user.php:291
    477477#: templates/single-company.php:162
     
    605605msgstr ""
    606606
    607 #: templates/archive-companies.php:78 templates/archive-companies.php:100
    608 #: templates/archive-contacts.php:64 templates/archive-contacts.php:86
     607#: templates/archive-companies.php:69 templates/archive-companies.php:91
     608#: templates/archive-contacts.php:59 templates/archive-contacts.php:81
    609609msgid "All: "
    610610msgstr ""
    611611
    612 #: templates/archive-companies.php:122 templates/archive-contacts.php:108
     612#: templates/archive-companies.php:113 templates/archive-contacts.php:103
    613613#: templates/search.php:47
    614614msgid "View by:"
    615615msgstr ""
    616616
    617 #: templates/archive-companies.php:143 templates/archive-contacts.php:143
     617#: templates/archive-companies.php:134 templates/archive-contacts.php:138
    618618#: templates/search.php:80
    619619msgid "Title"
    620620msgstr ""
    621621
    622 #: templates/archive-companies.php:145 templates/archive-contacts.php:150
     622#: templates/archive-companies.php:136 templates/archive-contacts.php:145
    623623#: templates/search.php:83
    624624msgid "Manager"
    625625msgstr ""
    626626
    627 #: templates/archive-companies.php:243 templates/archive-contacts.php:314
    628 #: templates/comments.php:67 templates/inc/comments-loop.php:93
     627#: templates/archive-companies.php:234 templates/archive-contacts.php:309
     628#: templates/comments.php:67 templates/inc/comments-loop.php:114
    629629#: templates/inc/content-schedule.php:30 templates/inc/events-loop.php:69
    630630#: templates/search.php:173 templates/single-company.php:35
     
    634634msgstr ""
    635635
    636 #: templates/archive-companies.php:258
     636#: templates/archive-companies.php:249
    637637msgid "No companies"
    638638msgstr ""
    639639
    640 #: templates/archive-contacts.php:144
     640#: templates/archive-contacts.php:139
    641641msgid "Events"
    642642msgstr ""
    643643
    644 #: templates/archive-contacts.php:330
     644#: templates/archive-contacts.php:325
    645645msgid "No contacts"
    646646msgstr ""
     
    700700msgstr ""
    701701
    702 #: templates/inc/add-company.php:165
     702#: templates/inc/add-company.php:171
    703703msgid "Logo Upload"
    704704msgstr ""
    705705
    706 #: templates/inc/add-company.php:173
     706#: templates/inc/add-company.php:179
    707707msgid "Add Company"
    708708msgstr ""
     
    732732msgstr ""
    733733
    734 #: templates/inc/add-user-backup.php:407 templates/inc/add-user.php:344
     734#: templates/inc/add-user-backup.php:407 templates/inc/add-user.php:356
    735735msgid "Photo Upload"
    736736msgstr ""
    737737
    738 #: templates/inc/add-user-backup.php:415 templates/inc/add-user.php:352
     738#: templates/inc/add-user-backup.php:415 templates/inc/add-user.php:364
    739739msgid "Add Contact"
    740740msgstr ""
    741741
    742 #: templates/inc/comments-loop.php:73
     742#: templates/inc/comments-loop.php:88
    743743msgid "Deleted user"
     744msgstr ""
     745
     746#: templates/inc/comments-loop.php:146
     747msgid "Reply"
     748msgstr ""
     749
     750#: templates/inc/comments-loop.php:161
     751msgid "Forward"
    744752msgstr ""
    745753
     
    815823msgstr ""
    816824
    817 #: templates/inc/header.php:117
     825#: templates/inc/header.php:142
    818826msgid "Search Mail"
    819827msgstr ""
    820828
    821 #: templates/inc/header.php:127
     829#: templates/inc/header.php:152
    822830msgid "Search …"
    823831msgstr ""
    824832
    825 #: templates/inc/header.php:129
     833#: templates/inc/header.php:154
    826834msgctxt "submit button"
    827835msgid "Search"
    828836msgstr ""
    829837
    830 #: templates/inc/header.php:179
     838#: templates/inc/header.php:204
    831839msgid "My Profile"
    832840msgstr ""
    833841
    834 #: templates/inc/header.php:185
     842#: templates/inc/header.php:210
    835843msgid "Logout"
    836844msgstr ""
  • idcrm-contacts-companies/trunk/public/css/idcrm-contacts-public.css

    r2933956 r2938283  
    891891
    892892.show-more-text {
    893   display: block;
    894   text-align: center;
    895   cursor: pointer;
    896   color: #90a3ae;
     893    display: block;
     894    position: absolute;
     895    bottom: 0;
     896    left: 0;
     897    right: 0;
     898    text-align: center;
     899    cursor: pointer;
     900    padding: 20px 0 0px 0;
     901    color: #90a3ae;
     902    margin-top: 0px;
     903    background: #fff;
     904    background: linear-gradient(180deg,rgba(255,255,255,0) 0,rgb(255 255 255 / 92%) 49%,rgba(255,255,255,1) 100%);
    897905}
    898906
     
    907915  margin-bottom:0;
    908916}
     917
     918.cut-comment-text {
     919  max-height: 250px;
     920  overflow: hidden;
     921  position: relative;
     922}
     923
     924/* .cut-comment-text:after {
     925  position: absolute;
     926  content: "";
     927  bottom: 0;
     928  left: 0;
     929  right: 0;
     930  height: 30px;
     931  background: rgb(255,255,255);
     932  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 49%, rgba(255,255,255,1) 100%);
     933} */
    909934
    910935.half-size {
  • idcrm-contacts-companies/trunk/public/css/idcrm-contacts-public.min.css

    r2933956 r2938283  
    1 #schedule,.timeline-panel,.note-panel,#comments-container-id,#schedule-container,#profile2,#respond,.timeline-mail-short,.timeline-mail-full,#folder-mail-list{position:relative;transition:height .6s ease-in-out}#calendar{min-height:173px}#calendar .no-content{position:absolute;display:flex;align-items:center;justify-content:center;align-self:center;top:0;bottom:0;left:0;right:0;position:absolute}.logo-icon img,.logo-text img{height:45px}.logo-text .height-60{height:60px}nav.pagination{position:relative;display:block}.nav-links{position:relative}.nav-links ul{margin:0;padding:0;display:flex}.nav-links ul li{list-style:none;padding:0}.nav-links ul li span.current{padding:10px 12px;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color);display:block;line-height:1}.nav-links ul li a{padding:10px 12px;background:#fff;color:#009efb;text-decoration:none;border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);display:block;line-height:1}.nav-links ul li span{padding:10px 12px;border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);display:block}.nav-links ul li a:hover{color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.nav-links ul li:not(:first-child) a{margin-left:-1px}.nav-links ul li:last-child a{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.nav-links ul li:first-child a{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.fc .fc-button,.fc-toolbar .fc-button-group{border:0!important}.ps-container{-ms-touch-action:auto;touch-action:auto;overflow:hidden!important;-ms-overflow-style:none}@supports(-ms-overflow-style:none){.ps-container{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps-container{overflow:auto!important}}.ps-container.ps-active-x>.ps-scrollbar-x-rail,.ps-container.ps-active-y>.ps-scrollbar-y-rail{display:block;background-color:transparent}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:transparent;opacity:.9}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2);height:11px}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:transparent;opacity:.9}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2);width:11px}.ps-container>.ps-scrollbar-x-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear,opacity .2s linear;-o-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear;bottom:0;height:15px}.ps-container>.ps-scrollbar-x-rail>.ps-scrollbar-x{position:absolute;background-color:rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;-moz-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-webkit-border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;bottom:2px;height:6px}.ps-container>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x,.ps-container>.ps-scrollbar-x-rail:active>.ps-scrollbar-x{height:6px}.ps-container>.ps-scrollbar-y-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear,opacity .2s linear;-o-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear;right:0;width:15px}.ps-container>.ps-scrollbar-y-rail>.ps-scrollbar-y{position:absolute;background-color:rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;-moz-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-webkit-border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;right:2px;width:6px}.ps-container>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y,.ps-container>.ps-scrollbar-y-rail:active>.ps-scrollbar-y{width:6px}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:transparent;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2);height:6px}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:transparent;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2);width:6px}.ps-container:hover>.ps-scrollbar-x-rail,.ps-container:hover>.ps-scrollbar-y-rail{opacity:.6}.ps-container:hover>.ps-scrollbar-x-rail:hover{background-color:transparent;opacity:.9}.ps-container:hover>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2)}.ps-container:hover>.ps-scrollbar-y-rail:hover{background-color:transparent;opacity:.9}.ps-container:hover>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2)}.ps-container .ps-scrollbar-y-rail{position:absolute;right:3px;width:8px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;opacity:0;filter:alpha(opacity=0);-o-transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear}.note-editor.note-frame,.dropzone{border-color:#e9ecef}.dropzone{border-style:dashed;border-width:3px}#folder-mail-list{overflow:visible}.min-width-100{min-width:100px}.show-mail-more,.show-mail-less{position:absolute;right:0;bottom:0}#message-holder{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none}.progress{display:flex;height:5px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:4px;box-shadow:none}.table-50{width:50px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:0!important}.table-bordered>:not(caption)>*>*{border-width:0}.file-name{background-color:#f8f9fa}.display-none,.dz-success-mark,.dz-error-mark{display:none}.dz-image{float:left;margin-right:10px;margin-top:10px}.dz-preview{padding-bottom:10px}.dz-image img{width:50px}.visibility-hidden{visibility:hidden}.dz-button{border:0;background:0}.is_checked{background:rgb(255 193 7 / 17%)!important}.mail-folder-icon{width:18px}.fc .fc-toolbar-title{font-size:1em!important}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:0!important}.fc-toolbar{padding-top:0!important}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1.0)}}@keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1.0);transform:scale(1.0)}}#ajax-loader,#ajax-small-loader{display:flex;position:absolute;top:0;bottom:0;left:0;right:0;background:#fff;transition:.5s;z-index:40;text-align:center;align-items:center;justify-content:center}#comments-placeholder,#email-list-placeholder{position:absolute;top:0;bottom:0;left:0;right:0;background:#fff;transition:.5s;z-index:40;padding:40px 20px}#email-list-placeholder{padding:5px 25px;z-index:999}.mail-compose,.mail-compose-low{z-index:99999}#comments-placeholder .timeline:before{display:none}#comments-placeholder .rounded-circle{margin-right:10px;width:50px;height:50px;background:#cfd4da}#replaced-compose-textarea{max-height:400px;border-color:#e9ecef!important}.mail-flagged:hover .icon-star{opacity:1!important;color:#0d6efd!important}.mail-details .is-flagged{color:#0d6efd!important}.mail-table-row:hover .mail-seen-round{background:rgb(0 0 0 / 10%)}.mail-seen:hover .mail-seen-round{background:#ffbc34}.is-flagged .icon-star{opacity:1!important}.spinner>div:nth-of-type(0n+1){background-color:#009efb}.spinner .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.spinner>div{width:8px;height:8px;background-color:#b0b6bf;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}spinner>div:nth-of-type(0n+2){background-color:#41b3e2}.spinner .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.spinner>div:nth-of-type(0n+3){background-color:#6c6c6c}.spinner>div{width:8px;height:8px;background-color:#8d949e;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.wrapper{max-width:1200px;margin:0 auto}.mt-3-1{margin-top:1.2rem!important}.sidebar-item-ul{margin-left:40px!important;line-height:1.7!important}.sidebar-item-ul a{color:#54667a}.sidebar-item-ul a.active{color:#009efb}.sidebar-item-ul ul{margin-left:10px!important}.manager{margin-top:0}.dropdown-menu.show{padding:15px}.count_companies{display:block;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#54667a;background-color:#fff;background-clip:padding-box;border:1px solid #e9ecef;border-radius:4px;box-shadow:unset;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;margin-right:20px;margin-left:-4px;float:right;border-top-left-radius:0;border-bottom-left-radius:0}.sl-left p{padding-left:50px}.profiletimeline{margin-top:-25px!important}#comments{margin-top:15px;min-height:100px}.btn1{font-weight:400;line-height:1.5;color:#54667a;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;border-radius:4px;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.table.customize-table td,table.customize-table th{padding:15px 10px!important}.mdi-dots-horizontal:before{content:"\e005"}.mt-n1-ird{margin-top:-0.5rem!important;margin-right:1rem!important}.srh-btn{right:15px!important}.fileinput .form-control{padding-left:10px!important}.icon-social-facebook{color:#fff!important}.icon-social-twitter{color:#fff!important}.icon-social-youtube{color:#fff!important}.edit{text-align:right;margin-top:-10px;float:right}.modal-dialog form label{color:#868e96}.modal-dialog form select{color:#868e96}.modal-dialog form .fileinput input{color:#868e96}.modal-dialog form input[type="file"]{color:#868e96}.modal-dialog .form-control::file-selector-button{color:#868e96;border-inline-end-width:0}.fix_sm_butt{border:1px solid #009efb}.card-body .nav.nav-tabs .nav-link:not(.active){color:#009efb}#schedule .btn-sml.btn-info,#commentform .btn1.btn-outline-info,#add-documents-form .btn1.btn-outline-info,#contactForm .btn1.btn-outline-info,.btn1.btn-outline-info.btn-comment{color:#009efb;background-color:white;border:1px solid #009efb;border-radius:60px;display:inline-block;width:fit-content;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}#schedule .btn-sml.btn-info:hover,#commentform .btn1.btn-outline-info:hover,#add-documents-form .btn1.btn-outline-info:hover,#contactForm .btn1.btn-outline-info:hover,.btn1.btn-outline-info.btn-comment:hover{color:white;background-color:#009efb;border:1px solid #009efb}#schedule.tab-pane .form-group label h4{margin-right:10px}#schedule .form-check-input.check-outline.outline-success{border:1px solid #009efb!important}#schedule.tab-pane .form-group .form-check.form-check-inline .form-check-label{vertical-align:middle}#schedule.tab-pane .form-group .my_flex__block{display:flex;flex-wrap:wrap}#schedule .form-check-input.success:checked{background-color:#009efb!important;border-color:#009efb!important}.dtp div.dtp-date,.dtp div.dtp-time{background:#009efb!important}.dtp table.dtp-picker-days tr>td>a.selected{background:#009efb!important}.dtp-buttons .btn-success{background-color:#009efb!important;border-color:#009efb!important}.dtp-buttons .btn-success:hover{background-color:#00b4fb!important;border-color:#00b4fb!important}.dtp>.dtp-content>.dtp-date-view>header.dtp-header{background:#009efb!important;border-bottom:1px solid white}.my_flex__block .date_time__picker{display:flex;justify-content:space-between}.my_flex__block .date_time__picker .input-group{margin:0 10px;align-items:baseline}.my_flex__block .date_time__picker .input-group .input-group-text{padding:.75rem .75rem!important}@media(max-width:1400px){.my_flex__block .date_time__picker{flex-wrap:wrap}}.col-lg-4.col-xlg-3.col-md-5 .d-flex button{border:1px solid #009efb;color:#009efb;background:#fff}.col-lg-4.col-xlg-3.col-md-5 .d-flex button:hover{color:#fff;background:#009efb}.assign-button{border-radius:50px;border:1px solid #009efb;background:#fff;color:#009efb;cursor:pointer;font-weight:400}.assign-button:hover{background:#009efb;color:#fff}.assign-button.disabled,.assign-button.disabled:hover{color:#bdbcbc;border:1px solid #bdbcbc;background:#fff;cursor:default}.form-control:not(.rounded-pill){padding:5px 0}.auth-box .form-control{padding:5px 10px}.form-control:not(.rounded-pill){background-image:linear-gradient(#009efb,#009efb),linear-gradient(#e9ecef,#e9ecef);border:0 none;border-radius:0;box-shadow:none!important;float:none;background-color:rgba(0,0,0,0);background-position:bottom;background-repeat:no-repeat;background-size:0 2px,100% 1px;transition:background 0s ease-out 0s;border-bottom:1px solid #e9ecef!important;overflow:hidden auto}.form-control:not(.rounded-pill):focus{background-size:100% 2px,100% 1px;outline:0 none;transition-duration:.3s}textarea.form-control{height:35px;padding-top:10px;margin-top:25px;margin-bottom:10px;-webkit-transition:height .3s,background 0s ease-out 0s,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important;transition:height .3s,background 0s ease-out 0s,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important;transition-duration:.3s!important}.show-attachment{margin-top:0;float:none;display:inline-block;margin-left:5px}.show-more-text{display:block;text-align:center;cursor:pointer;color:#90a3ae}textarea.form-control:not(.current-comment-textarea).active,#current-note-textarea:focus,#replaced-compose-textarea{height:130px}.comment-text p:last-of-type{margin-bottom:0}.half-size{width:50%}.fixed-table-toolbar{position:absolute;right:10px;width:50px;z-index:111}.fixed-table-toolbar .dropdown-toggle{opacity:0}.last-column-width th:last-of-type{max-width:60px;width:60px}@media(min-width:768px){#add_event .form-group .col-md-6,#add_event .form-group .col-md-3{width:100%}}#add_event .form-group .col-md-3 .input-group{width:180px;float:left;margin-top:10px;margin-bottom:10px}#add_event .form-group .col-md-3 .input-group:first-of-type{margin-right:10px}.event_date{position:relative;z-index:2;padding-right:45px}.event_date-span{position:relative;left:-40px;z-index:1}#mdate,#timepicker{cursor:pointer}.events-item{display:flex;justify-content:flex-start;align-content:center;align-items:flex-start;gap:10px;padding:5px 0;position:relative}.events-item.deleted span{text-decoration:line-through}.events-item.deleted .events-item-inner{opacity:.45}.event-time{padding:3px 5px;background-color:rgb(0 0 0 / 3%);border-radius:.25rem;margin-right:5px;display:inline-block}.event-icon{padding:2px 0}.w100{width:auto}.mail-searchbox{width:100%}.ti-angle-up,.ti-angle-down,.ti-angle-left,.ti-angle-right{border:solid white;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(-45deg)}.dtp-select-month-after:hover .ti-angle-right,.dtp-select-month-after:hover .ti-angle-left,.dtp-select-year-after:hover .ti-angle-right,.dtp-select-year-after:hover .ti-angle-left,.dtp-select-year-range:hover .ti-angle-up,.dtp-select-year-range:hover .ti-angle-down,.ti-angle-up:hover,.ti-angle-down:hover,.ti-angle-left:hover,.ti-angle-right:hover{box-shadow:2px 2px 0 0 #00000070}.ti-angle-left{transform:rotate(135deg)}.ti-angle-up{transform:rotate(-135deg)}.ti-angle-down{transform:rotate(45deg)}@media only screen and (max-width:767px){.mail-searchbox,.w100{width:100%}#folder-mail-list{overflow:scroll}.fc-header-toolbar .btn-group{flex-direction:column}.fc-header-toolbar .btn-group>.btn-group:not(:last-child)>.btn,.fc-header-toolbar .btn-group>.btn.dropdown-toggle-split:first-child,.fc-header-toolbar .btn-group>.btn:not(:last-child):not(.dropdown-toggle),.fc-header-toolbar .btn-group>.btn-group:not(:first-child)>.btn,.fc-header-toolbar .btn-group>.btn:nth-child(n+3),.fc-header-toolbar .btn-group>:not(.btn-check)+.btn{border-radius:5px!important}.fc-header-toolbar .btn-group>.btn-group:not(:last-child)>.btn,.fc-header-toolbar .btn-group>.btn.dropdown-toggle-split:first-child,.fc-header-toolbar .btn-group>.btn:not(:last-child):not(.dropdown-toggle),.fc-header-toolbar .btn-group>.btn-group:not(:first-child)>.btn{margin-bottom:5px}}
     1#schedule,.timeline-panel,.note-panel,#comments-container-id,#schedule-container,#profile2,#respond,.timeline-mail-short,.timeline-mail-full,#folder-mail-list{position:relative;transition:height .6s ease-in-out}#calendar{min-height:173px}#calendar .no-content{position:absolute;display:flex;align-items:center;justify-content:center;align-self:center;top:0;bottom:0;left:0;right:0;position:absolute}.logo-icon img,.logo-text img{height:45px}.logo-text .height-60{height:60px}nav.pagination{position:relative;display:block}.nav-links{position:relative}.nav-links ul{margin:0;padding:0;display:flex}.nav-links ul li{list-style:none;padding:0}.nav-links ul li span.current{padding:10px 12px;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color);display:block;line-height:1}.nav-links ul li a{padding:10px 12px;background:#fff;color:#009efb;text-decoration:none;border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);display:block;line-height:1}.nav-links ul li span{padding:10px 12px;border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);display:block}.nav-links ul li a:hover{color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.nav-links ul li:not(:first-child) a{margin-left:-1px}.nav-links ul li:last-child a{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.nav-links ul li:first-child a{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.fc .fc-button,.fc-toolbar .fc-button-group{border:0!important}.ps-container{-ms-touch-action:auto;touch-action:auto;overflow:hidden!important;-ms-overflow-style:none}@supports(-ms-overflow-style:none){.ps-container{overflow:auto!important}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps-container{overflow:auto!important}}.ps-container.ps-active-x>.ps-scrollbar-x-rail,.ps-container.ps-active-y>.ps-scrollbar-y-rail{display:block;background-color:transparent}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:transparent;opacity:.9}.ps-container.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2);height:11px}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:transparent;opacity:.9}.ps-container.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2);width:11px}.ps-container>.ps-scrollbar-x-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear,opacity .2s linear;-o-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear;bottom:0;height:15px}.ps-container>.ps-scrollbar-x-rail>.ps-scrollbar-x{position:absolute;background-color:rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;-moz-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-webkit-border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;bottom:2px;height:6px}.ps-container>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x,.ps-container>.ps-scrollbar-x-rail:active>.ps-scrollbar-x{height:6px}.ps-container>.ps-scrollbar-y-rail{display:none;position:absolute;opacity:0;-webkit-transition:background-color .2s linear,opacity .2s linear;-o-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear;right:0;width:15px}.ps-container>.ps-scrollbar-y-rail>.ps-scrollbar-y{position:absolute;background-color:rgba(0,0,0,0.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,-webkit-border-radius .2s ease-in-out;-o-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;-moz-transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out;transition:background-color .2s linear,height .2s linear,width .2s ease-in-out,border-radius .2s ease-in-out,-webkit-border-radius .2s ease-in-out,-moz-border-radius .2s ease-in-out;right:2px;width:6px}.ps-container>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y,.ps-container>.ps-scrollbar-y-rail:active>.ps-scrollbar-y{width:6px}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail{background-color:transparent;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-x>.ps-scrollbar-x-rail>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2);height:6px}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail{background-color:transparent;opacity:.9}.ps-container:hover.ps-in-scrolling.ps-y>.ps-scrollbar-y-rail>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2);width:6px}.ps-container:hover>.ps-scrollbar-x-rail,.ps-container:hover>.ps-scrollbar-y-rail{opacity:.6}.ps-container:hover>.ps-scrollbar-x-rail:hover{background-color:transparent;opacity:.9}.ps-container:hover>.ps-scrollbar-x-rail:hover>.ps-scrollbar-x{background-color:rgba(0,0,0,0.2)}.ps-container:hover>.ps-scrollbar-y-rail:hover{background-color:transparent;opacity:.9}.ps-container:hover>.ps-scrollbar-y-rail:hover>.ps-scrollbar-y{background-color:rgba(0,0,0,0.2)}.ps-container .ps-scrollbar-y-rail{position:absolute;right:3px;width:8px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;opacity:0;filter:alpha(opacity=0);-o-transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;transition:background-color .2s linear,opacity .2s linear}.note-editor.note-frame,.dropzone{border-color:#e9ecef}.dropzone{border-style:dashed;border-width:3px}#folder-mail-list{overflow:visible}.min-width-100{min-width:100px}.show-mail-more,.show-mail-less{position:absolute;right:0;bottom:0}#message-holder{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none}.progress{display:flex;height:5px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:4px;box-shadow:none}.table-50{width:50px}.bootstrap-table .fixed-table-container .table thead th .th-inner{padding:0!important}.table-bordered>:not(caption)>*>*{border-width:0}.file-name{background-color:#f8f9fa}.display-none,.dz-success-mark,.dz-error-mark{display:none}.dz-image{float:left;margin-right:10px;margin-top:10px}.dz-preview{padding-bottom:10px}.dz-image img{width:50px}.visibility-hidden{visibility:hidden}.dz-button{border:0;background:0}.is_checked{background:rgb(255 193 7 / 17%)!important}.mail-folder-icon{width:18px}.fc .fc-toolbar-title{font-size:1em!important}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:0!important}.fc-toolbar{padding-top:0!important}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1.0)}}@keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1.0);transform:scale(1.0)}}#ajax-loader,#ajax-small-loader{display:flex;position:absolute;top:0;bottom:0;left:0;right:0;background:#fff;transition:.5s;z-index:40;text-align:center;align-items:center;justify-content:center}#comments-placeholder,#email-list-placeholder{position:absolute;top:0;bottom:0;left:0;right:0;background:#fff;transition:.5s;z-index:40;padding:40px 20px}#email-list-placeholder{padding:5px 25px;z-index:999}.mail-compose,.mail-compose-low{z-index:99999}#comments-placeholder .timeline:before{display:none}#comments-placeholder .rounded-circle{margin-right:10px;width:50px;height:50px;background:#cfd4da}#replaced-compose-textarea{max-height:400px;border-color:#e9ecef!important}.mail-flagged:hover .icon-star{opacity:1!important;color:#0d6efd!important}.mail-details .is-flagged{color:#0d6efd!important}.mail-table-row:hover .mail-seen-round{background:rgb(0 0 0 / 10%)}.mail-seen:hover .mail-seen-round{background:#ffbc34}.is-flagged .icon-star{opacity:1!important}.spinner>div:nth-of-type(0n+1){background-color:#009efb}.spinner .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.spinner>div{width:8px;height:8px;background-color:#b0b6bf;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}spinner>div:nth-of-type(0n+2){background-color:#41b3e2}.spinner .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.spinner>div:nth-of-type(0n+3){background-color:#6c6c6c}.spinner>div{width:8px;height:8px;background-color:#8d949e;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.wrapper{max-width:1200px;margin:0 auto}.mt-3-1{margin-top:1.2rem!important}.sidebar-item-ul{margin-left:40px!important;line-height:1.7!important}.sidebar-item-ul a{color:#54667a}.sidebar-item-ul a.active{color:#009efb}.sidebar-item-ul ul{margin-left:10px!important}.manager{margin-top:0}.dropdown-menu.show{padding:15px}.count_companies{display:block;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#54667a;background-color:#fff;background-clip:padding-box;border:1px solid #e9ecef;border-radius:4px;box-shadow:unset;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;margin-right:20px;margin-left:-4px;float:right;border-top-left-radius:0;border-bottom-left-radius:0}.sl-left p{padding-left:50px}.profiletimeline{margin-top:-25px!important}#comments{margin-top:15px;min-height:100px}.btn1{font-weight:400;line-height:1.5;color:#54667a;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;border-radius:4px;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.table.customize-table td,table.customize-table th{padding:15px 10px!important}.mdi-dots-horizontal:before{content:"\e005"}.mt-n1-ird{margin-top:-0.5rem!important;margin-right:1rem!important}.srh-btn{right:15px!important}.fileinput .form-control{padding-left:10px!important}.icon-social-facebook{color:#fff!important}.icon-social-twitter{color:#fff!important}.icon-social-youtube{color:#fff!important}.edit{text-align:right;margin-top:-10px;float:right}.modal-dialog form label{color:#868e96}.modal-dialog form select{color:#868e96}.modal-dialog form .fileinput input{color:#868e96}.modal-dialog form input[type="file"]{color:#868e96}.modal-dialog .form-control::file-selector-button{color:#868e96;border-inline-end-width:0}.fix_sm_butt{border:1px solid #009efb}.card-body .nav.nav-tabs .nav-link:not(.active){color:#009efb}#schedule .btn-sml.btn-info,#commentform .btn1.btn-outline-info,#add-documents-form .btn1.btn-outline-info,#contactForm .btn1.btn-outline-info,.btn1.btn-outline-info.btn-comment{color:#009efb;background-color:white;border:1px solid #009efb;border-radius:60px;display:inline-block;width:fit-content;padding:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}#schedule .btn-sml.btn-info:hover,#commentform .btn1.btn-outline-info:hover,#add-documents-form .btn1.btn-outline-info:hover,#contactForm .btn1.btn-outline-info:hover,.btn1.btn-outline-info.btn-comment:hover{color:white;background-color:#009efb;border:1px solid #009efb}#schedule.tab-pane .form-group label h4{margin-right:10px}#schedule .form-check-input.check-outline.outline-success{border:1px solid #009efb!important}#schedule.tab-pane .form-group .form-check.form-check-inline .form-check-label{vertical-align:middle}#schedule.tab-pane .form-group .my_flex__block{display:flex;flex-wrap:wrap}#schedule .form-check-input.success:checked{background-color:#009efb!important;border-color:#009efb!important}.dtp div.dtp-date,.dtp div.dtp-time{background:#009efb!important}.dtp table.dtp-picker-days tr>td>a.selected{background:#009efb!important}.dtp-buttons .btn-success{background-color:#009efb!important;border-color:#009efb!important}.dtp-buttons .btn-success:hover{background-color:#00b4fb!important;border-color:#00b4fb!important}.dtp>.dtp-content>.dtp-date-view>header.dtp-header{background:#009efb!important;border-bottom:1px solid white}.my_flex__block .date_time__picker{display:flex;justify-content:space-between}.my_flex__block .date_time__picker .input-group{margin:0 10px;align-items:baseline}.my_flex__block .date_time__picker .input-group .input-group-text{padding:.75rem .75rem!important}@media(max-width:1400px){.my_flex__block .date_time__picker{flex-wrap:wrap}}.col-lg-4.col-xlg-3.col-md-5 .d-flex button{border:1px solid #009efb;color:#009efb;background:#fff}.col-lg-4.col-xlg-3.col-md-5 .d-flex button:hover{color:#fff;background:#009efb}.assign-button{border-radius:50px;border:1px solid #009efb;background:#fff;color:#009efb;cursor:pointer;font-weight:400}.assign-button:hover{background:#009efb;color:#fff}.assign-button.disabled,.assign-button.disabled:hover{color:#bdbcbc;border:1px solid #bdbcbc;background:#fff;cursor:default}.form-control:not(.rounded-pill){padding:5px 0}.auth-box .form-control{padding:5px 10px}.form-control:not(.rounded-pill){background-image:linear-gradient(#009efb,#009efb),linear-gradient(#e9ecef,#e9ecef);border:0 none;border-radius:0;box-shadow:none!important;float:none;background-color:rgba(0,0,0,0);background-position:bottom;background-repeat:no-repeat;background-size:0 2px,100% 1px;transition:background 0s ease-out 0s;border-bottom:1px solid #e9ecef!important;overflow:hidden auto}.form-control:not(.rounded-pill):focus{background-size:100% 2px,100% 1px;outline:0 none;transition-duration:.3s}textarea.form-control{height:35px;padding-top:10px;margin-top:25px;margin-bottom:10px;-webkit-transition:height .3s,background 0s ease-out 0s,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important;transition:height .3s,background 0s ease-out 0s,border-color .15s ease-in-out,box-shadow .15s ease-in-out!important;transition-duration:.3s!important}.show-attachment{margin-top:0;float:none;display:inline-block;margin-left:5px}.show-more-text{display:block;position:absolute;bottom:0;left:0;right:0;text-align:center;cursor:pointer;padding:20px 0 0 0;color:#90a3ae;margin-top:0;background:#fff;background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgb(255 255 255 / 92%) 49%,rgba(255,255,255,1) 100%)}textarea.form-control:not(.current-comment-textarea).active,#current-note-textarea:focus,#replaced-compose-textarea{height:130px}.comment-text p:last-of-type{margin-bottom:0}.cut-comment-text{max-height:250px;overflow:hidden;position:relative}.half-size{width:50%}.fixed-table-toolbar{position:absolute;right:10px;width:50px;z-index:111}.fixed-table-toolbar .dropdown-toggle{opacity:0}.last-column-width th:last-of-type{max-width:60px;width:60px}@media(min-width:768px){#add_event .form-group .col-md-6,#add_event .form-group .col-md-3{width:100%}}#add_event .form-group .col-md-3 .input-group{width:180px;float:left;margin-top:10px;margin-bottom:10px}#add_event .form-group .col-md-3 .input-group:first-of-type{margin-right:10px}.event_date{position:relative;z-index:2;padding-right:45px}.event_date-span{position:relative;left:-40px;z-index:1}#mdate,#timepicker{cursor:pointer}.events-item{display:flex;justify-content:flex-start;align-content:center;align-items:flex-start;gap:10px;padding:5px 0;position:relative}.events-item.deleted span{text-decoration:line-through}.events-item.deleted .events-item-inner{opacity:.45}.event-time{padding:3px 5px;background-color:rgb(0 0 0 / 3%);border-radius:.25rem;margin-right:5px;display:inline-block}.event-icon{padding:2px 0}.w100{width:auto}.mail-searchbox{width:100%}.ti-angle-up,.ti-angle-down,.ti-angle-left,.ti-angle-right{border:solid white;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(-45deg)}.dtp-select-month-after:hover .ti-angle-right,.dtp-select-month-after:hover .ti-angle-left,.dtp-select-year-after:hover .ti-angle-right,.dtp-select-year-after:hover .ti-angle-left,.dtp-select-year-range:hover .ti-angle-up,.dtp-select-year-range:hover .ti-angle-down,.ti-angle-up:hover,.ti-angle-down:hover,.ti-angle-left:hover,.ti-angle-right:hover{box-shadow:2px 2px 0 0 #00000070}.ti-angle-left{transform:rotate(135deg)}.ti-angle-up{transform:rotate(-135deg)}.ti-angle-down{transform:rotate(45deg)}@media only screen and (max-width:767px){.mail-searchbox,.w100{width:100%}#folder-mail-list{overflow:scroll}.fc-header-toolbar .btn-group{flex-direction:column}.fc-header-toolbar .btn-group>.btn-group:not(:last-child)>.btn,.fc-header-toolbar .btn-group>.btn.dropdown-toggle-split:first-child,.fc-header-toolbar .btn-group>.btn:not(:last-child):not(.dropdown-toggle),.fc-header-toolbar .btn-group>.btn-group:not(:first-child)>.btn,.fc-header-toolbar .btn-group>.btn:nth-child(n+3),.fc-header-toolbar .btn-group>:not(.btn-check)+.btn{border-radius:5px!important}.fc-header-toolbar .btn-group>.btn-group:not(:last-child)>.btn,.fc-header-toolbar .btn-group>.btn.dropdown-toggle-split:first-child,.fc-header-toolbar .btn-group>.btn:not(:last-child):not(.dropdown-toggle),.fc-header-toolbar .btn-group>.btn-group:not(:first-child)>.btn{margin-bottom:5px}}
  • idcrm-contacts-companies/trunk/public/js/api/ajax-comment-manage.js

    r2933956 r2938283  
    124124          $( '.show-more-text' ).on( 'click', function() {
    125125            const commentId = $(this).attr('data-id');
    126             const cutComment = $('.cut-comment-text[data-id=' + commentId + ']').html();
    127             const fullComment = $('.full-comment-text[data-id=' + commentId + ']').html();
     126            // $('.cut-comment-text[data-id=' + commentId + ']').css({'maxHeight': 'unset'});
    128127
    129             $('.cut-comment-text[data-id=' + commentId + ']').html(fullComment);
    130             $('.full-comment-text[data-id=' + commentId + ']').html(cutComment);
     128            const cutCommentText = $('.cut-comment-text[data-id="' + commentId + '"]');
     129
     130            if (!cutCommentText.hasClass('expanded')) {
     131              cutCommentText.css('maxHeight', 'unset');
     132              cutCommentText.addClass('expanded');
     133            } else {
     134              cutCommentText.css('maxHeight', '250px');
     135              cutCommentText.removeClass('expanded');
     136            }
     137
    131138          });
    132139        }
  • idcrm-contacts-companies/trunk/readme.txt

    r2933956 r2938283  
    66Tested up to: 6.2.2
    77Requires PHP: 7.4
    8 Stable tag: 2.1.7
     8Stable tag: 2.1.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 2.1.9 (11.07.2023) =
     45* Fixed: Unauthorized Schedule and Events access.
     46
     47= 2.1.8 (10.07.2023) =
     48* Fixed: New installation jQuery issue.
    4349
    4450= 2.1.7 (26.06.2023) =
  • idcrm-contacts-companies/trunk/templates/inc/check-user.php

    r2933956 r2938283  
    1717$user = wp_get_current_user();
    1818
    19 if ( is_user_role( 'crm_manager', $user->ID ) || is_user_role( 'administrator', $user->ID ) || is_user_role( 'shop_manager', $user->ID ) ) {
     19if ( is_user_role( 'crm_manager', $user->ID ) || is_user_role( 'administrator', $user->ID ) ) {
    2020
    2121} else {
  • idcrm-contacts-companies/trunk/templates/inc/comments-loop.php

    r2933956 r2938283  
    7474    $user_id = $contact_event->post_author;
    7575    $user_img  = get_user_meta($user_id, 'userimg', true);
     76
    7677    if ( empty( $user_img ) ) {
    77       $user_img= idCRM::$IDCRM_URL . 'templates/images/no-user.jpg';
    78     }
     78      $user_img = idCRM::$IDCRM_URL . 'templates/images/no-user.jpg';
     79    }
     80
     81    $current_user_id = get_current_user_id();
     82    $incoming_mail = $user_id == $current_user_id ? false : true;
     83    $idcrm_contact_email = get_post_meta( get_the_ID(), 'idcrm_contact_email', true );
     84
    7985    /* echo '$user_id: ' . print_r($user_id, true) . '^<br />'; */
    8086    $manager = get_userdata($user_id);
    8187    /* echo '$manager: ' . print_r($manager, true) . '^<br />'; */
    8288    $comment_author = esc_html__( 'Deleted user', idCRMActionLanguage::TEXTDOMAIN );
    83     if ( $manager !== false  ) {
    84       $comment_author = $manager->display_name;
     89
     90    $username = '';
     91
     92    if ( $manager !== false ) {
     93      $first_name = isset($manager->first_name) ? $manager->first_name : '';
     94      $last_name = isset($manager->last_name) ? $manager->last_name : '';
     95      $username = isset($manager->first_name) ? $manager->first_name : $manager->display_name;
     96      $comment_author = !$first_name && !$last_name ? $manager->display_name : $first_name . ' ' . $last_name;
    8597    }
    8698    echo '<ul class="timeline timeline-left ' . $hide_class . '" data-timestring="' . strtotime($contact_event->post_date)*1000 . '">
     
    113125        } else {
    114126
     127          if ($incoming_mail) { ?>
     128            <div class="edit">
     129              <div class="dropdown dropstart">
     130                <a href="#" class="link" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">
     131                  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal feather-sm"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>
     132                </a>
     133                <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
     134                  <li>
     135                    <span class="dropdown-item">
     136                      <a class="reply-from-timeline"
     137                        data-time="<?php echo esc_attr__(date("d.m.Y, H:i", strtotime($contact_event->post_date))); ?>"
     138                        data-fullname="<?php echo esc_attr__($comment_author); ?>"
     139                        data-mailbox="<?php echo esc_attr__($current_mailbox); ?>"
     140                        data-email="<?php echo esc_attr__($idcrm_contact_email); ?>"
     141                        data-subject="<?php echo esc_attr__($contact_event->post_title); ?>"
     142                        data-name="<?php echo esc_attr__($username); ?>"
     143                        data-id="<?php echo esc_attr__($contact_event->ID); ?>"
     144                        data-current-user-id="<?php echo esc_attr__($current_user_id); ?>"
     145                        href="#">
     146                          <?php echo esc_html__( 'Reply', idCRMActionLanguage::TEXTDOMAIN ); ?>
     147                      </a>
     148                    </span>
     149                  </li>
     150                  <li>
     151                    <span class="dropdown-item">
     152                      <a class="forward-from-timeline"
     153                        data-time="<?php echo esc_attr__(date("d.m.Y, H:i", strtotime($contact_event->post_date))); ?>"
     154                        data-fullname="<?php echo esc_attr__($comment_author); ?>"
     155                        data-mailbox="<?php echo esc_attr__($current_mailbox); ?>"
     156                        data-email="<?php echo esc_attr__($idcrm_contact_email); ?>"
     157                        data-subject="<?php echo esc_attr__($contact_event->post_title); ?>"
     158                        data-id="<?php echo esc_attr__($contact_event->ID); ?>"
     159                        data-current-user-id="<?php echo esc_attr__($current_user_id); ?>"
     160                        href="#">
     161                          <?php echo esc_html__( 'Forward', idCRMActionLanguage::TEXTDOMAIN ); ?>
     162                      </a>
     163                    </span>
     164                  </li>
     165                </ul>
     166              </div>
     167            </div>
     168          <?php }
     169
    115170          if ($has_attachment == 1) {
    116171
     
    155210          <div class="timeline-body">
    156211            <div class="timeline-title">
    157               <div data-id="' . $contact_event->ID . '" class="comment-text cut-comment-text" contenteditable="false">' . $cut_post_content . '</div>
     212              <div data-id="' . $contact_event->ID . '" class="comment-text cut-comment-text" contenteditable="false">' . $post_content . '</div>
    158213              <div data-id="' . $contact_event->ID . '" class="full-comment-text d-none">' . $post_content . '</div>' .
    159214              ($has_readmore ? $add_readmore : "") . '
     
    166221  }
    167222}
     223
     224include_once ABSPATH . 'wp-admin/includes/plugin.php';
     225
     226if ( is_plugin_active( 'idcrm-contacts-companies-pro/idcrm-contacts-pro.php' ) ) {
     227  // include WP_PLUGIN_DIR . '/idcrm-contacts-companies-pro/templates/inc/mail-compose-button.php';
     228  include WP_PLUGIN_DIR . '/idcrm-contacts-companies-pro/templates/inc/mail-compose-part.php';
     229}
Note: See TracChangeset for help on using the changeset viewer.