function tma__resources__getGroupItemHtml(props) {
1016 html += '<div class="tlk-resources__item">'; 1017 html += '<div class="tlk-resources__title">'; 1019 if (props.homepage && props.index) { 1020 // TODO: удалить фолбэк после обновления tilda-members-init.min.js 1021 const groupPageUrl = 1022 typeof tma__getGroupPageUrl === 'function' 1023 ? tma__getGroupPageUrl(props.index) || '/members/' 1024 : `/${props.index}`; 1026 html += `<a href="${groupPageUrl}" class="tlk-resources__groups-title-link" data-field="tlk-link">`; 1029 '<svg version="1.1" class="tlk-resources__groups-title-link-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100.2 100.2" style="enable-background:new 0 0 100.2 100.2;" xml:space="preserve">'; 1032 '<path class="st0" d="M83,47.5c-0.8,0-1.5,0.7-1.5,1.5v17.5h-49v-49H50c0.8,0,1.5-0.7,1.5-1.5s-0.7-1.5-1.5-1.5H31 c-0.8,0-1.5,0.7-1.5,1.5v13.5H17c-0.8,0-1.5,0.7-1.5,1.5v52c0,0.8,0.7,1.5,1.5,1.5h52c0.8,0,1.5-0.7,1.5-1.5V69.5H83 c0.8,0,1.5-0.7,1.5-1.5V49C84.5,48.2,83.8,47.5,83,47.5z M67.5,81.5h-49v-49h11V68c0,0.8,0.7,1.5,1.5,1.5h36.5V81.5z" />'; 1034 '<path class="st0" d="M83,14.5H64c-0.8,0-1.5,0.7-1.5,1.5c0,0.8,0.7,1.5,1.5,1.5h15.4L54.9,41.9c-0.6,0.6-0.6,1.5,0,2.1 c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4l24.4-24.4V35c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V16C84.5,15.2,83.8,14.5,83,14.5z" />'; 1042 html += props.expired ? ` <span>({{resources_title_group_to}} ${tma__getformatDate(props.expired)})</span>` : ''; 1045 // TODO: есть пользователи у которых в homepage лежит строка 0 1047 (props.pages.length > 0 || props.docs.length > 0) && 1048 (!props.homepage || props.homepage === '0') && 1051 html += '<div class="tlk-resources__groups-pages">'; 1053 for (let i = 0; i < props.pages.length; i++) { 1054 const page = props.pages[i]; 1056 html += '<div class="tlk-resources__groups-pages-item">'; 1058 '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" fill="none" class="tlk-resources__groups-pages-item-icon">'; 1060 '<path d="M8.05 1H3C2.44772 1 2 1.44772 2 2V13C2 13.5523 2.44771 14 3 14H12C12.5523 14 13 13.5523 13 13V5.5M8.05 1L13 5.5M8.05 1V4.5C8.05 5.05228 8.49772 5.5 9.05 5.5H13" stroke="currentColor"/>'; 1062 html += `<a href="/${page.link}" class="tlk-resources__groups-pages-item-link" data-field="tlk-link">${page.title}</a>`; 1066 for (let i = 0; i < props.docs.length; i++) { 1067 const docs = props.docs[i]; 1069 html += '<div class="tlk-resources__groups-pages-item">'; 1071 '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" fill="none" class="tlk-resources__groups-pages-item-icon">'; 1073 '<path d="M5 8.5H10M5 10.5H10M5 6.5H10M4.5 2H3C2.44772 2 2 2.44772 2 3V13C2 13.5523 2.44771 14 3 14H12C12.5523 14 13 13.5523 13 13V3C13 2.44772 12.5523 2 12 2H10.5M4.5 2V2C4.5 1.44772 4.94772 1 5.5 1H9.5C10.0523 1 10.5 1.44772 10.5 2V2M4.5 2V2.5C4.5 3.05228 4.94772 3.5 5.5 3.5H9.5C10.0523 3.5 10.5 3.05228 10.5 2.5V2" stroke="currentColor"/>'; 1075 html += `<a href="/${docs.link}" class="tlk-resources__groups-pages-item-link" data-field="tlk-link">${docs.title}</a>`; 1088 * Получает ID проекта 1089 * @returns {string} - ID проекта 1091function tmst__main__getProjectId() { 1092 var allRecords = document.getElementById('allrecords'); 1093 return allRecords.getAttribute('data-tilda-project-id') || '';