diff options
author | Fahad Israr | 2019-07-04 11:26:16 +0530 |
---|---|---|
committer | Fahad Israr | 2019-07-04 11:26:16 +0530 |
commit | 2208d6c4c515589207c8cb88d3ce156ff086d48b (patch) | |
tree | 3b1ccc63f818189e45617c8977ab7d84616db797 /modules | |
parent | 9f01af7880cf575cf7db322f5f7c1949e89fad0a (diff) | |
parent | 779f770a2022c3792d5e2dae95e0381093fb8989 (diff) | |
download | acadmix_distribution-2208d6c4c515589207c8cb88d3ce156ff086d48b.tar.gz acadmix_distribution-2208d6c4c515589207c8cb88d3ce156ff086d48b.tar.bz2 acadmix_distribution-2208d6c4c515589207c8cb88d3ce156ff086d48b.zip |
Merge branch 'stage' of https://github.com/FOSSEE/acadmix_distribution
Diffstat (limited to 'modules')
267 files changed, 11536 insertions, 266 deletions
diff --git a/modules/bhavika/admission_program/admission_program.info.yml b/modules/bhavika/admission_program/admission_program.info.yml index dcae984..44aeeef 100644 --- a/modules/bhavika/admission_program/admission_program.info.yml +++ b/modules/bhavika/admission_program/admission_program.info.yml @@ -13,4 +13,5 @@ dependencies: - drupal:path - ds:ds - pathauto:pathauto + - department:department diff --git a/modules/bhavika/clubs/clubs.info.yml b/modules/bhavika/clubs/clubs.info.yml index a705811..69d24cc 100644 --- a/modules/bhavika/clubs/clubs.info.yml +++ b/modules/bhavika/clubs/clubs.info.yml @@ -1,6 +1,6 @@ -name: 'welcome' +name: 'clubs' type: module -description: 'this module shows welcome message to logged in user.' +description: 'this module is for clubs content type.' core: 8.x package: 'Custom' # dependencies: diff --git a/modules/bhavika/company/config/install/image.style.thumbnail.yml b/modules/bhavika/company/config/install/compimage.style.compimg.yml index 946d0cd..46243fd 100644 --- a/modules/bhavika/company/config/install/image.style.thumbnail.yml +++ b/modules/bhavika/company/config/install/compimage.style.compimg.yml @@ -4,8 +4,8 @@ dependencies: enforced: module: - company -name: thumbnail -label: 'Thumbnail (100×100)' +name: compimg +label: 'CompanyImage (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 diff --git a/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml b/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml index d8dc6ea..ea038ad 100644 --- a/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml +++ b/modules/bhavika/company/config/install/core.entity_form_display.node.companies.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.node.companies.body - field.field.node.companies.field_company_link - field.field.node.companies.field_logo - - image.style.thumbnail + - image.style.compimg - node.type.companies module: - image @@ -47,7 +47,7 @@ content: weight: 8 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: compimg third_party_settings: { } type: image_image region: content diff --git a/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml b/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml index bfaccb6..e00e6f5 100644 --- a/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml +++ b/modules/bhavika/department/config/install/core.entity_form_display.node.department.default.yml @@ -7,7 +7,7 @@ dependencies: - field.field.node.department.field_dept_mission - field.field.node.department.field_facilities - field.field.node.department.field_placements - - image.style.thumbnail + - image.style.deptimg - node.type.department module: - image @@ -40,7 +40,7 @@ content: weight: 9 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: deptimg third_party_settings: { } type: image_image region: content diff --git a/modules/bhavika/department/config/install/image.style.thumbnail.yml b/modules/bhavika/department/config/install/deptimage.style.deptimg.yml index 2eda95b..bcf3210 100644 --- a/modules/bhavika/department/config/install/image.style.thumbnail.yml +++ b/modules/bhavika/department/config/install/deptimage.style.deptimg.yml @@ -4,8 +4,8 @@ dependencies: enforced: module: - department -name: thumbnail -label: 'Thumbnail (100×100)' +name: deptimg +label: 'DeptImg (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 diff --git a/modules/bhavika/department/department.info.yml b/modules/bhavika/department/department.info.yml index 50cb4df..54faa20 100644 --- a/modules/bhavika/department/department.info.yml +++ b/modules/bhavika/department/department.info.yml @@ -15,4 +15,5 @@ dependencies: - drupal:file - ds:ds - pathauto:pathauto + diff --git a/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 83ada37..0000000 --- a/modules/esha/achievements/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - achievements -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/achievements/config/install/views.view.achieve.yml b/modules/esha/achievements/config/install/views.view.achieve.yml new file mode 100644 index 0000000..2ce6513 --- /dev/null +++ b/modules/esha/achievements/config/install/views.view.achieve.yml @@ -0,0 +1,242 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.achievements + - taxonomy.vocabulary.achievement + module: + - node + - taxonomy + - user +id: achieve +label: achieve +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + achievements: achievements + entity_type: node + entity_field: type + plugin_id: bundle + field_achievement_type_target_id: + id: field_achievement_type_target_id + table: node__field_achievement_type + field: field_achievement_type_target_id + relationship: none + group_type: group + admin_label: '' + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_achievement_type_target_id_op + label: 'Achievement Type (field_achievement_type)' + description: '' + use_operator: false + operator: field_achievement_type_target_id_op + identifier: field_achievement_type_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + type: select + limit: true + vid: achievement + hierarchy: false + error_message: true + plugin_id: taxonomy_index_tid + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: achieve + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: achieve + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/esha/achievements/templates/achievements.html.twig b/modules/esha/achievements/templates/achievements.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/achievements/templates/achievements.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml b/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml index d36c401..e76e9b5 100644 --- a/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml +++ b/modules/esha/corporate/config/install/core.entity_form_display.node.corporate_advisory_board.default.yml @@ -6,7 +6,7 @@ dependencies: - field.field.node.corporate_advisory_board.field_company_website - field.field.node.corporate_advisory_board.field_designation - field.field.node.corporate_advisory_board.field_member_image - - image.style.thumbnail + - image.style.cabimg - node.type.corporate_advisory_board module: - image @@ -30,7 +30,7 @@ content: weight: 124 settings: progress_indicator: throbber - preview_image_style: thumbnail + preview_image_style: cabimg third_party_settings: { } type: image_image region: content diff --git a/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 4632edd..0000000 --- a/modules/esha/corporate/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - corporate -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/corporate/config/install/image.style.thumbnail.yml b/modules/esha/corporate/config/install/image.style.cabimg.yml index 7389c76..8657f2c 100644 --- a/modules/esha/corporate/config/install/image.style.thumbnail.yml +++ b/modules/esha/corporate/config/install/image.style.cabimg.yml @@ -1,4 +1,3 @@ -uuid: 253400b6-2e54-4c6a-92ba-9ccb091444e2 langcode: en status: true dependencies: @@ -7,8 +6,8 @@ dependencies: - corporate _core: default_config_hash: cCiWdBHgLwj5omG35lsKc4LkW4MBdmcctkVop4ol5x0 -name: thumbnail -label: 'Thumbnail (100×100)' +name: cabimg +label: 'CAB img (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 diff --git a/modules/esha/corporate/templates/corporate.html.twig b/modules/esha/corporate/templates/corporate.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/corporate/templates/corporate.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/lab/config/install/node.type.fac_page.yml b/modules/esha/lab/config/install/node.type.fac_page.yml deleted file mode 100644 index 47f8ffb..0000000 --- a/modules/esha/lab/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/lab/config/install/views.view.lab_view.yml b/modules/esha/lab/config/install/views.view.lab_view.yml new file mode 100644 index 0000000..d8de977 --- /dev/null +++ b/modules/esha/lab/config/install/views.view.lab_view.yml @@ -0,0 +1,308 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.lab + module: + - node + - text + - user +id: lab_view +label: 'Lab View' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h3 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: text_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + lab: lab + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab View' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-view + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' diff --git a/modules/esha/lab/lab.info.yml b/modules/esha/lab/lab.info.yml index 8507cd7..ada0648 100644 --- a/modules/esha/lab/lab.info.yml +++ b/modules/esha/lab/lab.info.yml @@ -10,3 +10,4 @@ dependencies: - drupal:user - drupal:node - drupal:menu_ui + - acadmix_faculty:acadmix_faculty diff --git a/modules/esha/lab/templates/lab.html.twig b/modules/esha/lab/templates/lab.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/lab/templates/lab.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/lab/views.view.lab_manual.yml b/modules/esha/lab/views.view.lab_manual.yml new file mode 100644 index 0000000..705a7cd --- /dev/null +++ b/modules/esha/lab/views.view.lab_manual.yml @@ -0,0 +1,320 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_description + - field.storage.node.field_manual + - node.type.lab_manual + module: + - file + - node + - user +id: lab_manual +label: 'Lab Manual' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 20 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_description: + id: field_description + table: node__field_description + field: field_description + relationship: none + group_type: group + admin_label: '' + label: Description + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_manual: + id: field_manual + table: node__field_manual + field: field_manual + relationship: none + group_type: group + admin_label: '' + label: Manual + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + lab_manual: lab_manual + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab Manual' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-manual + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' diff --git a/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index ce0398e..0000000 --- a/modules/esha/labmanual/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - labmanual -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_description.yml b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml index f272899..6efdf35 100644 --- a/modules/esha/labmanual/config/install/field.storage.node.field_description.yml +++ b/modules/esha/labmanual/config/install/field.storage.node.field_description.yml @@ -1,4 +1,3 @@ -uuid: 2607b4e4-518c-4aff-9b49-5f398e718487 langcode: en status: true dependencies: diff --git a/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml index 9070112..19b2ceb 100644 --- a/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml +++ b/modules/esha/labmanual/config/install/field.storage.node.field_manual.yml @@ -1,4 +1,3 @@ -uuid: 9772805f-ffb2-443f-afdd-0bc6dfd48416 langcode: en status: true dependencies: diff --git a/modules/esha/labmanual/config/install/views.view.lab_manual.yml b/modules/esha/labmanual/config/install/views.view.lab_manual.yml new file mode 100644 index 0000000..705a7cd --- /dev/null +++ b/modules/esha/labmanual/config/install/views.view.lab_manual.yml @@ -0,0 +1,320 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_description + - field.storage.node.field_manual + - node.type.lab_manual + module: + - file + - node + - user +id: lab_manual +label: 'Lab Manual' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 20 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_description: + id: field_description + table: node__field_description + field: field_description + relationship: none + group_type: group + admin_label: '' + label: Description + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_manual: + id: field_manual + table: node__field_manual + field: field_manual + relationship: none + group_type: group + admin_label: '' + label: Manual + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + lab_manual: lab_manual + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Lab Manual' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: lab-manual + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_description' + - 'config:field.storage.node.field_manual' diff --git a/modules/esha/labmanual/templates/labmanual.html.twig b/modules/esha/labmanual/templates/labmanual.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/labmanual/templates/labmanual.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/onlinecourse/composer.json b/modules/esha/onlinecourse/composer.json index 9d4a149..c7aa5b1 100644 --- a/modules/esha/onlinecourse/composer.json +++ b/modules/esha/onlinecourse/composer.json @@ -1,7 +1,7 @@ { "name": "drupal/onlinecourse", "type": "drupal-module", - "description": "My Awesome Module", + "description": "Module for Content Type online_course", "keywords": ["Drupal"], "license": "GPL-2.0+", "homepage": "https://www.drupal.org/project/onlinecourse", diff --git a/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml b/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml index 86b561a..ef8ff26 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_form_display.node.online_course.default.yml @@ -9,6 +9,9 @@ dependencies: module: - link - path + enforced: + module: + online_course id: node.online_course.default targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml index a774ce8..659d2b2 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.default.yml @@ -9,6 +9,9 @@ dependencies: module: - link - user + enforced: + module: + online_course id: node.online_course.default targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml index 79dc5ec..4f1d50a 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml +++ b/modules/esha/onlinecourse/config/install/core.entity_view_display.node.online_course.teaser.yml @@ -8,6 +8,9 @@ dependencies: - node.type.online_course module: - user + enforced: + module: + online_course id: node.online_course.teaser targetEntityType: node bundle: online_course diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml index c5ea1a1..c1d3513 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_faculty_name.yml @@ -5,6 +5,9 @@ dependencies: - field.storage.node.field_faculty_name - node.type.fac_page - node.type.online_course + enforced: + module: + online_course id: node.online_course.field_faculty_name field_name: field_faculty_name entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml index fddd4ed..74e3531 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_link_to_cour.yml @@ -6,6 +6,9 @@ dependencies: - node.type.online_course module: - link + enforced: + module: + online_course id: node.online_course.field_link_to_cour field_name: field_link_to_cour entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml index 973b204..08fac16 100644 --- a/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml +++ b/modules/esha/onlinecourse/config/install/field.field.node.online_course.field_offered_by.yml @@ -4,6 +4,9 @@ dependencies: config: - field.storage.node.field_offered_by - node.type.online_course + enforced: + module: + online_course id: node.online_course.field_offered_by field_name: field_offered_by entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml index d7653f8..5cd1b7a 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_faculty_name.yml @@ -4,6 +4,9 @@ status: true dependencies: module: - node + enforced: + module: + online_course id: node.field_faculty_name field_name: field_faculty_name entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml index 86d2592..58eb169 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_link_to_cour.yml @@ -5,6 +5,9 @@ dependencies: module: - link - node + enforced: + module: + online_course id: node.field_link_to_cour field_name: field_link_to_cour entity_type: node diff --git a/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml b/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml index 6cf5567..83d4cac 100644 --- a/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml +++ b/modules/esha/onlinecourse/config/install/field.storage.node.field_offered_by.yml @@ -4,6 +4,9 @@ status: true dependencies: module: - node + enforced: + module: + online_course id: node.field_offered_by field_name: field_offered_by entity_type: node diff --git a/modules/esha/onlinecourse/config/install/node.type.fac_page.yml b/modules/esha/onlinecourse/config/install/node.type.fac_page.yml deleted file mode 100644 index 47f8ffb..0000000 --- a/modules/esha/onlinecourse/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/onlinecourse/config/install/node.type.online_course.yml b/modules/esha/onlinecourse/config/install/node.type.online_course.yml index 4f492e6..9811a1b 100644 --- a/modules/esha/onlinecourse/config/install/node.type.online_course.yml +++ b/modules/esha/onlinecourse/config/install/node.type.online_course.yml @@ -3,6 +3,9 @@ status: true dependencies: module: - menu_ui + enforced: + module: + online_course third_party_settings: menu_ui: available_menus: diff --git a/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml b/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml new file mode 100644 index 0000000..75fe5d4 --- /dev/null +++ b/modules/esha/onlinecourse/config/install/views.view.faculty_online_courses.yml @@ -0,0 +1,298 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_faculty_name + - field.storage.node.field_link_to_cour + - field.storage.node.field_offered_by + - node.type.online_course + module: + - link + - node + - user +id: faculty_online_courses +label: 'Faculty Online Courses' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 15 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_faculty_name: + id: field_faculty_name + table: node__field_faculty_name + field: field_faculty_name + relationship: none + group_type: group + admin_label: '' + label: 'Faculty name' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_link_to_cour: + id: field_link_to_cour + table: node__field_link_to_cour + field: field_link_to_cour + plugin_id: field + field_offered_by: + id: field_offered_by + table: node__field_offered_by + field: field_offered_by + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + online_course: online_course + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Faculty Online Courses' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_name' + - 'config:field.storage.node.field_link_to_cour' + - 'config:field.storage.node.field_offered_by' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: faculty-online-courses + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_name' + - 'config:field.storage.node.field_link_to_cour' + - 'config:field.storage.node.field_offered_by' diff --git a/modules/esha/onlinecourse/onlinecourse.info.yml b/modules/esha/onlinecourse/onlinecourse.info.yml index 91191b6..2074bbe 100644 --- a/modules/esha/onlinecourse/onlinecourse.info.yml +++ b/modules/esha/onlinecourse/onlinecourse.info.yml @@ -1,6 +1,6 @@ name: 'onlineCourse' type: module -description: 'My Awesome Module' +description: 'Module for Content Type online_course' core: 8.x package: 'Custom' dependencies: @@ -9,4 +9,5 @@ dependencies: - drupal:path - drupal:user - drupal:node - - drupal:menu_ui
\ No newline at end of file + - drupal:menu_ui + - acadmix_faculty:acadmix_faculty
\ No newline at end of file diff --git a/modules/esha/onlinecourse/templates/onlinecourse.html.twig b/modules/esha/onlinecourse/templates/onlinecourse.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/onlinecourse/templates/onlinecourse.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php b/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php deleted file mode 100644 index a25c263..0000000 --- a/modules/esha/onlinecourse/tests/src/Functional/LoadTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -namespace Drupal\Tests\onlinecourse\Functional; - -use Drupal\Core\Url; -use Drupal\Tests\BrowserTestBase; - -/** - * Simple test to ensure that main page loads with module enabled. - * - * @group onlinecourse - */ -class LoadTest extends BrowserTestBase { - - /** - * Modules to enable. - * - * @var array - */ - public static $modules = ['onlinecourse']; - - /** - * A user with permission to administer site configuration. - * - * @var \Drupal\user\UserInterface - */ - protected $user; - - /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - $this->user = $this->drupalCreateUser(['administer site configuration']); - $this->drupalLogin($this->user); - } - - /** - * Tests that the home page loads with a 200 response. - */ - public function testLoad() { - $this->drupalGet(Url::fromRoute('<front>')); - $this->assertSession()->statusCodeEquals(200); - } - -} diff --git a/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index f09eef8..0000000 --- a/modules/esha/placements/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - placements -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/placements/config/install/views.view.placement_details.yml b/modules/esha/placements/config/install/views.view.placement_details.yml new file mode 100644 index 0000000..d7bca8a --- /dev/null +++ b/modules/esha/placements/config/install/views.view.placement_details.yml @@ -0,0 +1,351 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_total_students_placed + - node.type.placements + - taxonomy.vocabulary.placement_year + content: + - 'taxonomy_term:placement_year:1d31f310-a1a3-41dc-9e57-f84689e615c1' + - 'taxonomy_term:placement_year:2d7f60dc-ca0d-4a03-b18b-fc8d0b061ab9' + - 'taxonomy_term:placement_year:4d8e9a66-e43e-4e97-b658-f1c701fc7716' + - 'taxonomy_term:placement_year:6b8cefa4-a0da-437a-8d63-28283f798011' + module: + - node + - taxonomy + - user +id: placement_details +label: 'Placement Details' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 25 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_total_students_placed: + id: field_total_students_placed + table: node__field_total_students_placed + field: field_total_students_placed + relationship: none + group_type: group + admin_label: '' + label: 'Total Students Placed' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_integer + settings: + thousand_separator: '' + prefix_suffix: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + placements: placements + entity_type: node + entity_field: type + plugin_id: bundle + field_year_target_id: + id: field_year_target_id + table: node__field_year + field: field_year_target_id + relationship: none + group_type: group + admin_label: '' + operator: or + value: + 39: 39 + 40: 40 + 41: 41 + 42: 42 + group: 1 + exposed: true + expose: + operator_id: field_year_target_id_op + label: 'Year (field_year)' + description: '' + use_operator: false + operator: field_year_target_id_op + identifier: field_year_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + type: select + limit: true + vid: placement_year + hierarchy: false + error_message: true + plugin_id: taxonomy_index_tid + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Placement Details' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + field_year_target_id: + id: field_year_target_id + table: node__field_year + field: field_year_target_id + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: true + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: true + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + plugin_id: numeric + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_total_students_placed' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: placement-details + exposed_block: false + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_total_students_placed' diff --git a/modules/esha/placements/templates/placements.html.twig b/modules/esha/placements/templates/placements.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/placements/templates/placements.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/programs/composer.json b/modules/esha/programs/composer.json index 9889ab7..c701dcc 100644 --- a/modules/esha/programs/composer.json +++ b/modules/esha/programs/composer.json @@ -1,7 +1,7 @@ { "name": "drupal/programs", "type": "drupal-module", - "description": "Module for Content Type Programs Offered", + "description": "Module for Content Type programs_offered", "keywords": ["Drupal"], "license": "GPL-2.0+", "homepage": "https://www.drupal.org/project/programs", diff --git a/modules/esha/programs/config/install/views.view.programs_offered_.yml b/modules/esha/programs/config/install/views.view.programs_offered_.yml new file mode 100644 index 0000000..0ab632d --- /dev/null +++ b/modules/esha/programs/config/install/views.view.programs_offered_.yml @@ -0,0 +1,191 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - node.type.p + module: + - node + - user +id: programs_offered_ +label: 'Programs offered' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: default + row: + type: 'entity:node' + options: + view_mode: full + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + p: p + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Programs offered' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: programs-offered + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/esha/programs/programs.info.yml b/modules/esha/programs/programs.info.yml index 284cbaa..850830f 100644 --- a/modules/esha/programs/programs.info.yml +++ b/modules/esha/programs/programs.info.yml @@ -1,6 +1,6 @@ name: 'programs' type: module -description: 'Module for Content Type Programs Offered' +description: 'Module for Content Type programs_offered' core: 8.x package: 'Custom' dependencies: diff --git a/modules/esha/programs/templates/programs.html.twig b/modules/esha/programs/templates/programs.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/programs/templates/programs.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml b/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml deleted file mode 100644 index 138bd3c..0000000 --- a/modules/esha/sig/config/install/core.entity_view_mode.node.teaser.yml +++ /dev/null @@ -1,15 +0,0 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 -langcode: en -status: true -dependencies: - module: - - node - enforced: - module: - - sig -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 -id: node.teaser -label: Teaser -targetEntityType: node -cache: true diff --git a/modules/esha/sig/config/install/node.type.fac_page.yml b/modules/esha/sig/config/install/node.type.fac_page.yml deleted file mode 100644 index 5fd2e1e..0000000 --- a/modules/esha/sig/config/install/node.type.fac_page.yml +++ /dev/null @@ -1,26 +0,0 @@ -uuid: b7471e78-83f0-4359-9512-d4a8f02c2218 -langcode: en -status: true -dependencies: - enforced: - module: - - acadmix_faculty - module: - - menu_ui - enforced: - module: - - sig -third_party_settings: - menu_ui: - available_menus: - - main - parent: 'main:' -_core: - default_config_hash: yZnGgm-oTEuH3Qz8VcW49f94qFn-pYOYZdrX601an0U -name: 'Faculty Page' -type: fac_page -description: 'Content template for opening Faculty Page' -help: '' -new_revision: true -preview_mode: 1 -display_submitted: false diff --git a/modules/esha/sig/config/install/views.view.sig.yml b/modules/esha/sig/config/install/views.view.sig.yml new file mode 100644 index 0000000..dfcfa11 --- /dev/null +++ b/modules/esha/sig/config/install/views.view.sig.yml @@ -0,0 +1,289 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_faculty_head + - field.storage.node.field_sig_members + - node.type.special_interest_groups + module: + - node + - user +id: sig +label: SIG +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: table + row: + type: fields + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + label: Title + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_faculty_head: + id: field_faculty_head + table: node__field_faculty_head + field: field_faculty_head + relationship: none + group_type: group + admin_label: '' + label: 'Faculty Head' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: true + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_sig_members: + id: field_sig_members + table: node__field_sig_members + field: field_sig_members + plugin_id: field + filters: + status: + id: status + table: node_field_data + field: status + relationship: none + group_type: group + admin_label: '' + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + plugin_id: boolean + entity_type: node + entity_field: status + type: + id: type + table: node_field_data + field: type + value: + special_interest_groups: special_interest_groups + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: SIG + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_head' + - 'config:field.storage.node.field_sig_members' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: sig + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_faculty_head' + - 'config:field.storage.node.field_sig_members' diff --git a/modules/esha/sig/sig.info.yml b/modules/esha/sig/sig.info.yml index 94c6b38..386ebed 100644 --- a/modules/esha/sig/sig.info.yml +++ b/modules/esha/sig/sig.info.yml @@ -8,3 +8,4 @@ dependencies: - drupal:node - drupal:user - drupal:menu_ui + - acadmix_faculty:acadmix_faculty
\ No newline at end of file diff --git a/modules/esha/sig/templates/sig.html.twig b/modules/esha/sig/templates/sig.html.twig deleted file mode 100644 index 91e43c8..0000000 --- a/modules/esha/sig/templates/sig.html.twig +++ /dev/null @@ -1 +0,0 @@ -<!-- Add you custom twig html here -->
\ No newline at end of file diff --git a/modules/kalpesh/achivements/achivements.info.yml b/modules/kalpesh/achivements/achivements.info.yml new file mode 100644 index 0000000..39762be --- /dev/null +++ b/modules/kalpesh/achivements/achivements.info.yml @@ -0,0 +1,16 @@ +name: Achivements +type: module +description: 'This module store student achivements' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + + diff --git a/modules/kalpesh/achivements/achivements.install b/modules/kalpesh/achivements/achivements.install new file mode 100644 index 0000000..9ea9eb6 --- /dev/null +++ b/modules/kalpesh/achivements/achivements.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function achivements_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'achivements'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/achivements/achivements.module b/modules/kalpesh/achivements/achivements.module new file mode 100644 index 0000000..0a48707 --- /dev/null +++ b/modules/kalpesh/achivements/achivements.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains achivements.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function achivements_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the achivements module. + case 'help.page.achivements': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store student achivements') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function achivements_theme() { + return [ + 'achivements' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/achivements/composer.json b/modules/kalpesh/achivements/composer.json new file mode 100644 index 0000000..dc44524 --- /dev/null +++ b/modules/kalpesh/achivements/composer.json @@ -0,0 +1,13 @@ +{ + "name": "achivements", + "type": "drupal-module", + "description": "This module store student achivements", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/achivements", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/achivements", + "source": "http://cgit.drupalcode.org/achivements", + }, +} diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml.yml new file mode 100644 index 0000000..999a3f7 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements +id: node.achivements.promote +field_name: promote +entity_type: node +bundle: achivements +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml.yml b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml.yml new file mode 100644 index 0000000..eb1b34a --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.base_field_override.node.achivements.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements +id: node.achivements.title +field_name: title +entity_type: node +bundle: achivements +label: Title +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml new file mode 100644 index 0000000..80d28d0 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_form_display.node.achivements.default.yml @@ -0,0 +1,110 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.achivements.body + - field.field.node.achivements.field_acadmic_year + - field.field.node.achivements.field_achivement_files + - field.field.node.achivements.field_achivement_image + - image.style.thumbnail + - node.type.achivements + module: + - file + - image + - path + - text +id: node.achivements.default +targetEntityType: node +bundle: achivements +mode: default +content: + body: + type: text_textarea_with_summary + weight: 10 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_acadmic_year: + weight: 0 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_achivement_files: + weight: 27 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_achivement_image: + weight: 26 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 8 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 9 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 4 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml new file mode 100644 index 0000000..7afdf41 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.default.yml @@ -0,0 +1,164 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.achivements.body + - field.field.node.achivements.field_acadmic_year + - field.field.node.achivements.field_achivement_files + - field.field.node.achivements.field_achivement_image + - image.style.acad_fac_thumbnail_400_300_ + - node.type.achivements + module: + - ds + - file + - image + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_acadmic_year + - body + - field_achivement_image + - field_achivement_files +id: node.achivements.default +targetEntityType: node +bundle: achivements +mode: default +content: + body: + label: hidden + type: text_default + weight: 102 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: 'div ' + lbw-cl: col-10 + lbw-at: '' + ow: true + ow-el: div + ow-cl: ' mt-20 col-sm-12' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_acadmic_year: + weight: 101 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Acadmic year' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-20 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-10 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_achivement_files: + weight: 104 + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + type: file_default + region: ds_content + field_achivement_image: + weight: 103 + label: above + settings: + image_style: acad_fac_thumbnail_400_300_ + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row col-sm-4' + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-4 center-block' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-4 center-block' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: image + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml new file mode 100644 index 0000000..6b54758 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/core.entity_view_display.node.achivements.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.achivements.body + - node.type.achivements + module: + - text + - user +id: node.achivements.teaser +targetEntityType: node +bundle: achivements +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/bhavika/company/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/achivements/config/install/core.entity_view_mode.node.teaser.yml index 6114f1f..dcde72c 100644 --- a/modules/bhavika/company/config/install/core.entity_view_mode.node.teaser.yml +++ b/modules/kalpesh/achivements/config/install/core.entity_view_mode.node.teaser.yml @@ -3,9 +3,6 @@ status: true dependencies: module: - node - enforced: - module: - - company id: node.teaser label: Teaser targetEntityType: node diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml new file mode 100644 index 0000000..ef3fec2 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.achivements + module: + - text +id: node.achivements.body +field_name: body +entity_type: node +bundle: achivements +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml new file mode 100644 index 0000000..f73401b --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_acadmic_year.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_acadmic_year + - node.type.achivements +id: node.achivements.field_acadmic_year +field_name: field_acadmic_year +entity_type: node +bundle: achivements +label: 'Acadmic year' +description: 'ex 2019-2020' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml new file mode 100644 index 0000000..de5b775 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_files.yml @@ -0,0 +1,26 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_achivement_files + - node.type.achivements + module: + - file +id: node.achivements.field_achivement_files +field_name: field_achivement_files +entity_type: node +bundle: achivements +label: Files +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml new file mode 100644 index 0000000..ea6114a --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.field.node.achivements.field_achivement_image.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_achivement_image + - node.type.achivements + module: + - image +id: node.achivements.field_achivement_image +field_name: field_achivement_image +entity_type: node +bundle: achivements +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/bhavika/company/config/install/field.storage.node.body.yml b/modules/kalpesh/achivements/config/install/field.storage.node.body.yml index e9f95b6..73edd16 100644 --- a/modules/bhavika/company/config/install/field.storage.node.body.yml +++ b/modules/kalpesh/achivements/config/install/field.storage.node.body.yml @@ -2,15 +2,8 @@ langcode: en status: true dependencies: module: - # - field_permissions - node - text - enforced: - module: - - company -# third_party_settings: -# field_permissions: -# permission_type: public id: node.body field_name: body entity_type: node diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml new file mode 100644 index 0000000..0a69e97 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_acadmic_year.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_acadmic_year +field_name: field_acadmic_year +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml new file mode 100644 index 0000000..00958da --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_files.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - file + - node +id: node.field_achivement_files +field_name: field_achivement_files +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml new file mode 100644 index 0000000..ae8f1d3 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/field.storage.node.field_achivement_image.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_achivement_image +field_name: field_achivement_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/achivements/config/install/image.style.acad_fac_thumbnail_400_300_.yml b/modules/kalpesh/achivements/config/install/image.style.acad_fac_thumbnail_400_300_.yml new file mode 100644 index 0000000..f59da7a --- /dev/null +++ b/modules/kalpesh/achivements/config/install/image.style.acad_fac_thumbnail_400_300_.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - acadmix_faculty +name: acad_fac_thumbnail_400_300_ +label: 'Acad Fac Thumbnail (400×300)' +effects: + 4b4423ca-bdf9-403c-80bc-171eb78024ac: + uuid: 4b4423ca-bdf9-403c-80bc-171eb78024ac + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/achivements/config/install/image.style.thumbnail.yml b/modules/kalpesh/achivements/config/install/image.style.thumbnail.yml new file mode 100644 index 0000000..73dc9b8 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/image.style.thumbnail.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: thumbnail +label: 'Thumbnail (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/kalpesh/achivements/config/install/node.type.achivements.yml b/modules/kalpesh/achivements/config/install/node.type.achivements.yml new file mode 100644 index 0000000..bddae75 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/node.type.achivements.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Achivements +type: achivements +description: 'Achivements details of department' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/achivements/config/install/views.view.achivements.yml b/modules/kalpesh/achivements/config/install/views.view.achivements.yml new file mode 100644 index 0000000..dcb0a15 --- /dev/null +++ b/modules/kalpesh/achivements/config/install/views.view.achivements.yml @@ -0,0 +1,208 @@ +langcode: en +status: true +dependencies: + config: + - node.type.achivements + - system.menu.main + module: + - node + - user + - views_bootstrap +id: achivements +label: Achivements +module: views +description: 'students Achivements' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_list_group + options: + grouping: { } + row_class: centar + default_row_class: true + title_field: '' + row: + type: fields + options: + default_field_elements: true + inline: + title: title + field_acadmic_year: field_acadmic_year + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + achivements: achivements + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + field_acadmic_year_value: + id: field_acadmic_year_value + table: node__field_acadmic_year + field: field_acadmic_year_value + relationship: none + group_type: group + admin_label: '' + order: DESC + exposed: false + expose: + label: '' + plugin_id: standard + title: Achivements + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: achivements + menu: + type: normal + title: Achivements + description: '' + expanded: false + parent: '' + weight: -46 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/kalpesh/achivements/templates/achivements.html.twig b/modules/kalpesh/achivements/templates/achivements.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/achivements/templates/achivements.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/labmanual/tests/src/Functional/LoadTest.php b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php index e548812..e50c1f8 100644 --- a/modules/esha/labmanual/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/achivements/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\labmanual\Functional; +namespace Drupal\Tests\achivements\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group labmanual + * @group achivements */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['labmanual']; + public static $modules = ['achivements']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/club/club.info.yml b/modules/kalpesh/club/club.info.yml new file mode 100644 index 0000000..d7edd94 --- /dev/null +++ b/modules/kalpesh/club/club.info.yml @@ -0,0 +1,13 @@ +name: Club +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + diff --git a/modules/kalpesh/club/club.install b/modules/kalpesh/club/club.install new file mode 100644 index 0000000..c96c3a0 --- /dev/null +++ b/modules/kalpesh/club/club.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function club_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'club'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/club/club.module b/modules/kalpesh/club/club.module new file mode 100644 index 0000000..152525d --- /dev/null +++ b/modules/kalpesh/club/club.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains club.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function club_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the club module. + case 'help.page.club': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function club_theme() { + return [ + 'club' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/club/composer.json b/modules/kalpesh/club/composer.json new file mode 100644 index 0000000..aa17c3e --- /dev/null +++ b/modules/kalpesh/club/composer.json @@ -0,0 +1,13 @@ +{ + "name": "club", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/club", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/club", + "source": "http://cgit.drupalcode.org/club", + }, +} diff --git a/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml new file mode 100644 index 0000000..31c7f88 --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club +id: node.club.promote +field_name: promote +entity_type: node +bundle: club +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml.yml b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml.yml new file mode 100644 index 0000000..1e905ac --- /dev/null +++ b/modules/kalpesh/club/config/install/core.base_field_override.node.club.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club +id: node.club.title +field_name: title +entity_type: node +bundle: club +label: 'Academic Year' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml new file mode 100644 index 0000000..debfaeb --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_form_display.node.club.default.yml @@ -0,0 +1,126 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - path + - text +id: node.club.default +targetEntityType: node +bundle: club +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_committee_member: + weight: 126 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_president: + weight: 122 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_secretary: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_treasurer: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_vice_president: + weight: 123 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml new file mode 100644 index 0000000..ca57b7e --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.default.yml @@ -0,0 +1,228 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.club.body + - field.field.node.club.field_committee_member + - field.field.node.club.field_president + - field.field.node.club.field_secretary + - field.field.node.club.field_treasurer + - field.field.node.club.field_vice_president + - node.type.club + module: + - ds + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_president + - field_vice_president + - field_secretary + - field_treasurer + - field_committee_member +id: node.club.default +targetEntityType: node +bundle: club +mode: default +content: + field_committee_member: + weight: 106 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: "Committee members\t" + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 mb-10 mt-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_president: + weight: 102 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: President + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: 'div ' + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_secretary: + weight: 104 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Secretary + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: ' mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_treasurer: + weight: 105 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Treasurer + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_vice_president: + weight: 103 + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Vice president' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml new file mode 100644 index 0000000..d581a0c --- /dev/null +++ b/modules/kalpesh/club/config/install/core.entity_view_display.node.club.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.club.body + - node.type.club + module: + - text + - user +id: node.club.teaser +targetEntityType: node +bundle: club +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/bhavika/department/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/club/config/install/core.entity_view_mode.node.teaser.yml index 22f411b..dcde72c 100644 --- a/modules/bhavika/department/config/install/core.entity_view_mode.node.teaser.yml +++ b/modules/kalpesh/club/config/install/core.entity_view_mode.node.teaser.yml @@ -3,9 +3,6 @@ status: true dependencies: module: - node - enforced: - module: - - department id: node.teaser label: Teaser targetEntityType: node diff --git a/modules/kalpesh/club/config/install/field.field.node.club.body.yml b/modules/kalpesh/club/config/install/field.field.node.club.body.yml new file mode 100644 index 0000000..6d987bc --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.club + module: + - text +id: node.club.body +field_name: body +entity_type: node +bundle: club +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml new file mode 100644 index 0000000..6493e88 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_committee_member.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_committee_member + - node.type.club +id: node.club.field_committee_member +field_name: field_committee_member +entity_type: node +bundle: club +label: 'Committee members' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml new file mode 100644 index 0000000..10fbcfc --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_president.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_president + - node.type.club +id: node.club.field_president +field_name: field_president +entity_type: node +bundle: club +label: President +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml new file mode 100644 index 0000000..cfa2fd6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_secretary.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_secretary + - node.type.club +id: node.club.field_secretary +field_name: field_secretary +entity_type: node +bundle: club +label: Secretary +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml new file mode 100644 index 0000000..a83e8d6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_treasurer.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_treasurer + - node.type.club +id: node.club.field_treasurer +field_name: field_treasurer +entity_type: node +bundle: club +label: Treasurer +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml new file mode 100644 index 0000000..58e9697 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.field.node.club.field_vice_president.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_vice_president + - node.type.club +id: node.club.field_vice_president +field_name: field_vice_president +entity_type: node +bundle: club +label: 'Vice president' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/esha/placements/config/install/field.storage.node.body.yml b/modules/kalpesh/club/config/install/field.storage.node.body.yml index 821a97a..73edd16 100644 --- a/modules/esha/placements/config/install/field.storage.node.body.yml +++ b/modules/kalpesh/club/config/install/field.storage.node.body.yml @@ -1,15 +1,9 @@ -uuid: d15ccb4d-ffc3-42ae-abaa-012960942a15 langcode: en status: true dependencies: module: - node - text - enforced: - module: - - placements -_core: - default_config_hash: EBUo7qOWqaiZaQ_RC9sLY5IoDKphS34v77VIHSACmVY id: node.body field_name: body entity_type: node diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml new file mode 100644 index 0000000..34d9be6 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_committee_member.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_committee_member +field_name: field_committee_member +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml new file mode 100644 index 0000000..b87da9b --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_president.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_president +field_name: field_president +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml new file mode 100644 index 0000000..768b065 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_secretary.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_secretary +field_name: field_secretary +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml new file mode 100644 index 0000000..fec69e2 --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_treasurer.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_treasurer +field_name: field_treasurer +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml new file mode 100644 index 0000000..7c6e00d --- /dev/null +++ b/modules/kalpesh/club/config/install/field.storage.node.field_vice_president.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_vice_president +field_name: field_vice_president +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/club/config/install/node.type.club.yml b/modules/kalpesh/club/config/install/node.type.club.yml new file mode 100644 index 0000000..2718f5d --- /dev/null +++ b/modules/kalpesh/club/config/install/node.type.club.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Club +type: club +description: 'Student club committee and the activities arranged by club' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/club/config/install/views.view.club.yml b/modules/kalpesh/club/config/install/views.view.club.yml new file mode 100644 index 0000000..7bcee0e --- /dev/null +++ b/modules/kalpesh/club/config/install/views.view.club.yml @@ -0,0 +1,294 @@ +langcode: en +status: true +dependencies: + config: + - node.type.club + - system.menu.main + module: + - node + - user + - views_bootstrap +id: club +label: Club +module: views +description: 'About club' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: center-block + default_row_class: true + alignment: horizontal + columns: '2' + col_xs: col-xs-6 + col_sm: col-sm-6 + col_md: col-md-6 + col_lg: col-lg-6 + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + nothing: + id: nothing + table: views + field: nothing + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '<center><h3> Iteron club core commitee <h3></center>' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: false + plugin_id: custom + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: true + entity_type: node + entity_field: title + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + club: club + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Iteron Club' + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + empty: false + tokenize: false + content: + value: " <blockquote> The department has formed a student’s club named “ITERON” in the academic year 2002-2003. Activities such as seminars, workshops, industrial visits etc. are conducted by the ITERON club for the students. One of the most popular annual event conducted by ITeron club is the Technical Symposium “ITiazza”.\r\nThe student representation for the core team is in the form of President, Secretary, Treasurer and representatives from each class. This gives an opportunity to students to develop leadership and organizational skills. </blockquote>" + format: basic_html + plugin_id: text + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: club + menu: + type: normal + title: 'Iteron Club' + menu_name: main + description: '' + parent: 'menu_link_content:967e1206-74f4-466a-9ec8-62a46f7ecadb' + weight: -50 + expanded: true + enabled: true + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/modules/kalpesh/club/templates/club.html.twig b/modules/kalpesh/club/templates/club.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/club/templates/club.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/sig/tests/src/Functional/LoadTest.php b/modules/kalpesh/club/tests/src/Functional/LoadTest.php index 8b87e58..e1c2530 100644 --- a/modules/esha/sig/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/club/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\sig\Functional; +namespace Drupal\Tests\club\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group sig + * @group club */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['sig']; + public static $modules = ['club']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/iteron_activities/composer.json b/modules/kalpesh/iteron_activities/composer.json new file mode 100644 index 0000000..6de3f29 --- /dev/null +++ b/modules/kalpesh/iteron_activities/composer.json @@ -0,0 +1,13 @@ +{ + "name": "iteron_activities", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/iteron_activities", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/iteron_activities", + "source": "http://cgit.drupalcode.org/iteron_activities", + }, +} diff --git a/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml.yml b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml.yml new file mode 100644 index 0000000..d52ef54 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.iteron_activities +id: node.iteron_activities.promote +field_name: promote +entity_type: node +bundle: iteron_activities +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml.yml b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml.yml new file mode 100644 index 0000000..9fb94de --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.base_field_override.node.iteron_activities.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.iteron_activities +id: node.iteron_activities.title +field_name: title +entity_type: node +bundle: iteron_activities +label: Topic +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml new file mode 100644 index 0000000..80ebabc --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_form_display.node.iteron_activities.default.yml @@ -0,0 +1,136 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.iteron_activities.body + - field.field.node.iteron_activities.field_activity_images + - field.field.node.iteron_activities.field_activity_report + - field.field.node.iteron_activities.field_date + - field.field.node.iteron_activities.field_nature_of_activity + - field.field.node.iteron_activities.field_remark + - field.field.node.iteron_activities.field_resource_person + - image.style.thumbnail + - node.type.iteron_activities + module: + - datetime + - file + - image + - path + - text +id: node.iteron_activities.default +targetEntityType: node +bundle: iteron_activities +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + region: content + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + created: + type: datetime_timestamp + weight: 3 + region: content + settings: { } + third_party_settings: { } + field_activity_images: + weight: 12 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_activity_report: + weight: 13 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_date: + weight: 8 + settings: { } + third_party_settings: { } + type: datetime_default + region: content + field_nature_of_activity: + weight: 9 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_remark: + weight: 14 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_resource_person: + weight: 10 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 1 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 6 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 4 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 5 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 2 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml new file mode 100644 index 0000000..d059561 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.default.yml @@ -0,0 +1,141 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.iteron_activities.body + - field.field.node.iteron_activities.field_activity_images + - field.field.node.iteron_activities.field_activity_report + - field.field.node.iteron_activities.field_date + - field.field.node.iteron_activities.field_nature_of_activity + - field.field.node.iteron_activities.field_remark + - field.field.node.iteron_activities.field_resource_person + - node.type.iteron_activities + module: + - datetime + - ds + - file + - image + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_date + - body + - field_activity_images + - field_activity_report +id: node.iteron_activities.default +targetEntityType: node +bundle: iteron_activities +mode: default +content: + body: + type: text_summary_or_trimmed + weight: 2 + region: ds_content + label: above + settings: + trim_length: 600 + third_party_settings: { } + field_activity_images: + weight: 3 + label: above + settings: + image_style: '' + image_link: '' + third_party_settings: { } + type: image + region: ds_content + field_activity_report: + weight: 4 + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + type: file_default + region: ds_content + field_date: + weight: 1 + label: above + settings: + timezone_override: '' + date_format: Y-m-d + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: datetime_custom + region: ds_content + field_nature_of_activity: + weight: 5 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_remark: + weight: 7 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + field_resource_person: + weight: 6 + label: above + settings: + link_to_entity: false + third_party_settings: { } + type: string + region: content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml new file mode 100644 index 0000000..1b7d238 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_view_display.node.iteron_activities.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.iteron_activities.body + - node.type.iteron_activities + module: + - text + - user +id: node.iteron_activities.teaser +targetEntityType: node +bundle: iteron_activities +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/esha/onlinecourse/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/iteron_activities/config/install/core.entity_view_mode.node.teaser.yml index fb7a35a..dcde72c 100644 --- a/modules/esha/onlinecourse/config/install/core.entity_view_mode.node.teaser.yml +++ b/modules/kalpesh/iteron_activities/config/install/core.entity_view_mode.node.teaser.yml @@ -1,11 +1,8 @@ -uuid: eae4e8eb-df75-49ff-b350-c4bd59679b36 langcode: en status: true dependencies: module: - node -_core: - default_config_hash: Mz9qWr1kUYK0mjRAGDsr5XS6PvtZ24en_7ndt-pyWe4 id: node.teaser label: Teaser targetEntityType: node diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml new file mode 100644 index 0000000..fe0edb3 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.iteron_activities + module: + - text +id: node.iteron_activities.body +field_name: body +entity_type: node +bundle: iteron_activities +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml new file mode 100644 index 0000000..5d92c28 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_images.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_activity_images + - node.type.iteron_activities + module: + - image +id: node.iteron_activities.field_activity_images +field_name: field_activity_images +entity_type: node +bundle: iteron_activities +label: 'Activity Images' +description: 'images of Activity' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml new file mode 100644 index 0000000..6c092d7 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_activity_report.yml @@ -0,0 +1,26 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_activity_report + - node.type.iteron_activities + module: + - file +id: node.iteron_activities.field_activity_report +field_name: field_activity_report +entity_type: node +bundle: iteron_activities +label: 'Activity Report' +description: 'Report of activity' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml new file mode 100644 index 0000000..ea91ce1 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_date.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_date + - node.type.iteron_activities + module: + - datetime +id: node.iteron_activities.field_date +field_name: field_date +entity_type: node +bundle: iteron_activities +label: Date +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml new file mode 100644 index 0000000..fdfce7f --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_nature_of_activity.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_nature_of_activity + - node.type.iteron_activities +id: node.iteron_activities.field_nature_of_activity +field_name: field_nature_of_activity +entity_type: node +bundle: iteron_activities +label: 'Nature of activity' +description: 'ex meeting ,workshop ' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml new file mode 100644 index 0000000..c3ffbe7 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_remark.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_remark + - node.type.iteron_activities +id: node.iteron_activities.field_remark +field_name: field_remark +entity_type: node +bundle: iteron_activities +label: Remark +description: 'no of participant' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml new file mode 100644 index 0000000..fe12069 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.field.node.iteron_activities.field_resource_person.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_resource_person + - node.type.iteron_activities +id: node.iteron_activities.field_resource_person +field_name: field_resource_person +entity_type: node +bundle: iteron_activities +label: 'Resource person' +description: 'name of speaker' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.body.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml new file mode 100644 index 0000000..996e0c3 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_images.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_activity_images +field_name: field_activity_images +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml new file mode 100644 index 0000000..a7f3e41 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_activity_report.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - file + - node +id: node.field_activity_report +field_name: field_activity_report +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml new file mode 100644 index 0000000..248ed35 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_date.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - datetime + - node +id: node.field_date +field_name: field_date +entity_type: node +type: datetime +settings: + datetime_type: date +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml new file mode 100644 index 0000000..cc632b9 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_nature_of_activity.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_nature_of_activity +field_name: field_nature_of_activity +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml new file mode 100644 index 0000000..3bdb8aa --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_remark.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_remark +field_name: field_remark +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml new file mode 100644 index 0000000..c944fa5 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/field.storage.node.field_resource_person.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_resource_person +field_name: field_resource_person +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/iteron_activities/config/install/image.style.thumbnail.yml b/modules/kalpesh/iteron_activities/config/install/image.style.thumbnail.yml new file mode 100644 index 0000000..73dc9b8 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/image.style.thumbnail.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: thumbnail +label: 'Thumbnail (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml b/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml new file mode 100644 index 0000000..4fab339 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/node.type.iteron_activities.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Iteron Activities' +type: iteron_activities +description: 'activities conducted by iteron club' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml b/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml new file mode 100644 index 0000000..f8a85e5 --- /dev/null +++ b/modules/kalpesh/iteron_activities/config/install/views.view.activities.yml @@ -0,0 +1,389 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - field.storage.node.field_date + - node.type.iteron_activities + - system.menu.main + module: + - datetime + - node + - text + - user + - views_bootstrap +id: activities +label: Activities +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + row_class: mb-30 + default_row_class: true + uses_fields: false + alignment: horizontal + columns: '4' + col_xs: col-xs-12 + col_sm: col-sm-6 + col_md: col-md-3 + col_lg: col-lg-3 + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + entity_type: node + entity_field: title + label: '' + alter: + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + settings: + link_to_entity: true + plugin_id: field + relationship: none + group_type: group + admin_label: '' + exclude: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_alter_empty: true + click_sort_column: value + type: string + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: text_default + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + field_date: + id: field_date + table: node__field_date + field: field_date + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: datetime_default + settings: + timezone_override: '' + format_type: medium + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + iteron_activities: iteron_activities + entity_type: node + entity_field: type + plugin_id: bundle + group: 1 + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: Activities + header: { } + footer: { } + empty: { } + relationships: { } + arguments: + created_year: + id: created_year + table: node_field_data + field: created_year + relationship: none + group_type: group + admin_label: '' + default_action: ignore + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: fixed + default_argument_options: + argument: '' + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + entity_type: node + plugin_id: date_year + display_extenders: { } + filter_groups: + operator: AND + groups: + 1: AND + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_date' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: activities + menu: + type: normal + title: Activities + menu_name: main + weight: -49 + parent: 'menu_link_content:967e1206-74f4-466a-9ec8-62a46f7ecadb' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_date' diff --git a/modules/kalpesh/iteron_activities/iteron_activities.info.yml b/modules/kalpesh/iteron_activities/iteron_activities.info.yml new file mode 100644 index 0000000..882858d --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.info.yml @@ -0,0 +1,16 @@ +name: Iteron_Activities +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:datetime + - drupal:file + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + diff --git a/modules/kalpesh/iteron_activities/iteron_activities.install b/modules/kalpesh/iteron_activities/iteron_activities.install new file mode 100644 index 0000000..eea1ece --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function iteron_activities_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'iteron_activities'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/iteron_activities/iteron_activities.module b/modules/kalpesh/iteron_activities/iteron_activities.module new file mode 100644 index 0000000..8328800 --- /dev/null +++ b/modules/kalpesh/iteron_activities/iteron_activities.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains iteron_activities.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function iteron_activities_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the iteron_activities module. + case 'help.page.iteron_activities': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function iteron_activities_theme() { + return [ + 'iteron_activities' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig b/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/iteron_activities/templates/iteron-activities.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php b/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..e506f28 --- /dev/null +++ b/modules/kalpesh/iteron_activities/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\iteron_activities\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group iteron_activities + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['iteron_activities']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} diff --git a/modules/kalpesh/laboratory/composer.json b/modules/kalpesh/laboratory/composer.json new file mode 100644 index 0000000..59103d2 --- /dev/null +++ b/modules/kalpesh/laboratory/composer.json @@ -0,0 +1,13 @@ +{ + "name": "laboratory", + "type": "drupal-module", + "description": "This module store laboratories details", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/laboratory", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/laboratory", + "source": "http://cgit.drupalcode.org/laboratory", + }, +} diff --git a/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml.yml b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml.yml new file mode 100644 index 0000000..4f19a9c --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.laboratories +id: node.laboratories.promote +field_name: promote +entity_type: node +bundle: laboratories +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml.yml b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml.yml new file mode 100644 index 0000000..f330136 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.base_field_override.node.laboratories.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.laboratories +id: node.laboratories.title +field_name: title +entity_type: node +bundle: laboratories +label: Laboratory +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml b/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml new file mode 100644 index 0000000..4fbebd3 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_form_display.node.laboratories.default.yml @@ -0,0 +1,119 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.laboratories.body + - field.field.node.laboratories.field_area + - field.field.node.laboratories.field_lab_equipment_cost + - field.field.node.laboratories.field_lab_image + - field.field.node.laboratories.field_utilisation_of_lab + - image.style.thumbnail + - node.type.laboratories + module: + - image + - path + - text +id: node.laboratories.default +targetEntityType: node +bundle: laboratories +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 6 + region: content + settings: { } + third_party_settings: { } + field_area: + weight: 1 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_lab_equipment_cost: + weight: 2 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_lab_image: + weight: 13 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_utilisation_of_lab: + weight: 3 + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + type: text_textarea + region: content + langcode: + type: language_select + weight: 4 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 9 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 10 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 8 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml new file mode 100644 index 0000000..46a115d --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.default.yml @@ -0,0 +1,199 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.laboratories.body + - field.field.node.laboratories.field_area + - field.field.node.laboratories.field_lab_equipment_cost + - field.field.node.laboratories.field_lab_image + - field.field.node.laboratories.field_utilisation_of_lab + - node.type.laboratories + module: + - ds + - image + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - node_title + - field_lab_image + - field_area + - field_lab_equipment_cost + - field_utilisation_of_lab + fields: + node_title: + plugin_id: node_title + weight: 0 + label: hidden + formatter: default +id: node.laboratories.default +targetEntityType: node +bundle: laboratories +mode: default +content: + field_area: + type: string + weight: 2 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Area ' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'fw-bold col-sm-3' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_equipment_cost: + type: string + weight: 3 + region: ds_content + label: above + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: 'Equipment cost' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_lab_image: + type: image + weight: 1 + region: ds_content + label: hidden + settings: + image_style: '' + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: ' fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'center-block mt-10 mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: 'div ' + fi-cl: ' center-block' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + field_utilisation_of_lab: + type: text_default + weight: 4 + region: ds_content + label: above + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: Utilisation + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold ' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row mb-10' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-5 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false +hidden: + body: true + langcode: true + links: true diff --git a/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml new file mode 100644 index 0000000..fc8a10f --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_view_display.node.laboratories.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.laboratories.body + - node.type.laboratories + module: + - text + - user +id: node.laboratories.teaser +targetEntityType: node +bundle: laboratories +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/laboratory/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/laboratory/config/install/core.entity_view_mode.node.teaser.yml new file mode 100644 index 0000000..dcde72c --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/core.entity_view_mode.node.teaser.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.teaser +label: Teaser +targetEntityType: node +cache: true diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml new file mode 100644 index 0000000..abf6034 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.laboratories + module: + - text +id: node.laboratories.body +field_name: body +entity_type: node +bundle: laboratories +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml new file mode 100644 index 0000000..5b99a65 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_area.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_area + - node.type.laboratories +id: node.laboratories.field_area +field_name: field_area +entity_type: node +bundle: laboratories +label: Area +description: 'Area of lab' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml new file mode 100644 index 0000000..781af14 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_equipment_cost.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_lab_equipment_cost + - node.type.laboratories +id: node.laboratories.field_lab_equipment_cost +field_name: field_lab_equipment_cost +entity_type: node +bundle: laboratories +label: 'Lab Equipment cost' +description: 'cost of software and machines' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml new file mode 100644 index 0000000..18b6487 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_lab_image.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_lab_image + - node.type.laboratories + module: + - image +id: node.laboratories.field_lab_image +field_name: field_lab_image +entity_type: node +bundle: laboratories +label: 'Lab Image' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml new file mode 100644 index 0000000..a9a8ec9 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.field.node.laboratories.field_utilisation_of_lab.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_utilisation_of_lab + - node.type.laboratories + module: + - text +id: node.laboratories.field_utilisation_of_lab +field_name: field_utilisation_of_lab +entity_type: node +bundle: laboratories +label: 'Utilisation of lab' +description: 'Semiser wise use of lab in hours/week' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: text_long diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.body.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml new file mode 100644 index 0000000..84078c4 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_area.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_area +field_name: field_area +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml new file mode 100644 index 0000000..11fd9d4 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_equipment_cost.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_lab_equipment_cost +field_name: field_lab_equipment_cost +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml new file mode 100644 index 0000000..0f442a3 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_lab_image.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_lab_image +field_name: field_lab_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/field.storage.node.field_utilisation_of_lab.yml b/modules/kalpesh/laboratory/config/install/field.storage.node.field_utilisation_of_lab.yml new file mode 100644 index 0000000..b4b49b6 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/field.storage.node.field_utilisation_of_lab.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.field_utilisation_of_lab +field_name: field_utilisation_of_lab +entity_type: node +type: text_long +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/laboratory/config/install/image.style.thumbnail.yml b/modules/kalpesh/laboratory/config/install/image.style.thumbnail.yml new file mode 100644 index 0000000..73dc9b8 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/image.style.thumbnail.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: thumbnail +label: 'Thumbnail (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml b/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml new file mode 100644 index 0000000..893d977 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/node.type.laboratories.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Laboratories +type: laboratories +description: 'Detail information about laboratories' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml b/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml new file mode 100644 index 0000000..9c76627 --- /dev/null +++ b/modules/kalpesh/laboratory/config/install/views.view.laboratories.yml @@ -0,0 +1,332 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_lab_image + - image.style.acad_fac_thumbnail_400_300_ + - node.type.laboratories + - system.menu.main + module: + - image + - node + - user +id: laboratories +label: laboratories +module: views +description: 'Details of lab' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h3 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + field_lab_image: + id: field_lab_image + table: node__field_lab_image + field: field_lab_image + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: image + settings: + image_style: acad_fac_thumbnail_400_300_ + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type_1: + id: type_1 + table: node_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: + laboratories: laboratories + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: laboratories + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + filter_groups: + operator: AND + groups: + 1: AND + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_lab_image' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: laboratories + menu: + type: normal + title: laboratories + description: '' + expanded: false + parent: '' + weight: -48 + context: '0' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_lab_image' diff --git a/modules/kalpesh/laboratory/laboratory.info.yml b/modules/kalpesh/laboratory/laboratory.info.yml new file mode 100644 index 0000000..1db207c --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.info.yml @@ -0,0 +1,14 @@ +name: laboratory +type: module +description: 'This module store laboratories details' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - drupal:file diff --git a/modules/kalpesh/laboratory/laboratory.install b/modules/kalpesh/laboratory/laboratory.install new file mode 100644 index 0000000..68dfe55 --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.install @@ -0,0 +1,64 @@ +<?php + + +/** + + +* Implements hook_uninstall(). + + +*/ + + +function laboratory_uninstall() { //<-- replace “welcome” with your module machine name + + + // Load services. + + + $queryFactory = \Drupal::service('entity.query'); + + + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + + + + + // Query all entity. + + + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + + + ->condition('type', 'laboratories'); + + + $nids = $query->execute(); + + + + + + + + // Delete entities. + + + if (!empty($nids)) { + + + $entities = $nodeStorage->loadMultiple($nids); + + + $nodeStorage->delete($entities); + + + } + + +} + diff --git a/modules/kalpesh/laboratory/laboratory.module b/modules/kalpesh/laboratory/laboratory.module new file mode 100644 index 0000000..5a9801f --- /dev/null +++ b/modules/kalpesh/laboratory/laboratory.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains laboratory.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function laboratory_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the laboratory module. + case 'help.page.laboratory': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store laboratories details') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function laboratory_theme() { + return [ + 'laboratory' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/laboratory/templates/laboratory.html.twig b/modules/kalpesh/laboratory/templates/laboratory.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/laboratory/templates/laboratory.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/placements/tests/src/Functional/LoadTest.php b/modules/kalpesh/laboratory/tests/src/Functional/LoadTest.php index fd19fb6..431de13 100644 --- a/modules/esha/placements/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/laboratory/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\placements\Functional; +namespace Drupal\Tests\laboratory\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group placements + * @group laboratory */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['placements']; + public static $modules = ['laboratory']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/members/composer.json b/modules/kalpesh/members/composer.json new file mode 100644 index 0000000..95e4284 --- /dev/null +++ b/modules/kalpesh/members/composer.json @@ -0,0 +1,13 @@ +{ + "name": "members", + "type": "drupal-module", + "description": "This modole store members details", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/members", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/members", + "source": "http://cgit.drupalcode.org/members", + }, +} diff --git a/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml.yml b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml.yml new file mode 100644 index 0000000..266013a --- /dev/null +++ b/modules/kalpesh/members/config/install/core.base_field_override.node.members.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.members +id: node.members.promote +field_name: promote +entity_type: node +bundle: members +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml new file mode 100644 index 0000000..94883f3 --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_form_display.node.members.default.yml @@ -0,0 +1,155 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.thumbnail + - node.type.members + module: + - file + - image + - name + - path + - text +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_category: + weight: 123 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_designation: + weight: 124 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_email_members: + weight: 125 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: email_default + region: content + field_file_uploads_members: + weight: 127 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + field_full_name_members: + weight: 122 + settings: { } + third_party_settings: { } + type: name_default + region: content + field_image_members: + weight: 126 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_location_members: + weight: 128 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + field_phone_no_members: + weight: 129 + settings: + size: 60 + placeholder: '' + third_party_settings: { } + type: string_textfield + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml new file mode 100644 index 0000000..f47b19f --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.default.yml @@ -0,0 +1,368 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.members.body + - field.field.node.members.field_category + - field.field.node.members.field_designation + - field.field.node.members.field_email_members + - field.field.node.members.field_file_uploads_members + - field.field.node.members.field_full_name_members + - field.field.node.members.field_image_members + - field.field.node.members.field_location_members + - field.field.node.members.field_phone_no_members + - image.style.group_research_area_image + - node.type.members + module: + - ds + - file + - image + - name + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_members + - body + - field_full_name_members + - field_email_members + - field_category + - field_designation + - field_location_members + - field_phone_no_members + - field_file_uploads_members +id: node.members.default +targetEntityType: node +bundle: members +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: { } + region: ds_content + field_category: + weight: 5 + label: inline + settings: + link: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_designation: + weight: 6 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_email_members: + weight: 4 + label: inline + settings: { } + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: basic_string + region: ds_content + field_file_uploads_members: + weight: 9 + label: inline + settings: + use_description_as_link_text: true + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: file_default + region: ds_content + field_full_name_members: + weight: 3 + label: inline + settings: + format: default + output: default + multiple: default + multiple_delimiter: ', ' + multiple_and: text + multiple_delimiter_precedes_last: never + multiple_el_al_min: '3' + multiple_el_al_first: '1' + markup: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: 'div ' + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: name_default + region: ds_content + field_image_members: + weight: 1 + label: hidden + settings: + image_style: group_research_area_image + image_link: '' + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: image + region: ds_content + field_location_members: + weight: 7 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + field_phone_no_members: + weight: 8 + label: inline + settings: + link_to_entity: false + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mb-10 mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: string + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml new file mode 100644 index 0000000..d8df68b --- /dev/null +++ b/modules/kalpesh/members/config/install/core.entity_view_display.node.members.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.members.body + - node.type.members + module: + - text + - user +id: node.members.teaser +targetEntityType: node +bundle: members +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/members/config/install/field.field.node.members.body.yml b/modules/kalpesh/members/config/install/field.field.node.members.body.yml new file mode 100644 index 0000000..894429a --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.members + module: + - text +id: node.members.body +field_name: body +entity_type: node +bundle: members +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml new file mode 100644 index 0000000..dcfd854 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_category.yml @@ -0,0 +1,28 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category + - node.type.members + - taxonomy.vocabulary.category +id: node.members.field_category +field_name: field_category +entity_type: node +bundle: members +label: Category +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + category: category + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml new file mode 100644 index 0000000..5161891 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_designation.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_designation + - node.type.members +id: node.members.field_designation +field_name: field_designation +entity_type: node +bundle: members +label: Designation +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml new file mode 100644 index 0000000..61be715 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_email_members.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_email_members + - node.type.members +id: node.members.field_email_members +field_name: field_email_members +entity_type: node +bundle: members +label: Email +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: email diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml new file mode 100644 index 0000000..8fc3f17 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_file_uploads_members.yml @@ -0,0 +1,26 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_file_uploads_members + - node.type.members + module: + - file +id: node.members.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +bundle: members +label: 'File uploads' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'txt pdf' + max_filesize: '' + description_field: false + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml new file mode 100644 index 0000000..42266a7 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_full_name_members.yml @@ -0,0 +1,53 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_full_name_members + - node.type.members + module: + - name +id: node.members.field_full_name_members +field_name: field_full_name_members +entity_type: node +bundle: members +label: 'Full Name' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + size: + title: 6 + given: 20 + middle: 20 + family: 20 + generational: 5 + credentials: 35 + title_display: + title: description + given: description + middle: description + family: description + generational: description + credentials: description + field_type: + title: select + given: text + middle: text + family: text + generational: select + credentials: text + inline_css: + title: '' + given: '' + middle: '' + family: '' + generational: '' + credentials: '' + component_css: '' + component_layout: default + show_component_required_marker: false + credentials_inline: false + override_format: default +field_type: name diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml new file mode 100644 index 0000000..8c08edd --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_image_members.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_members + - node.type.members + module: + - image +id: node.members.field_image_members +field_name: field_image_members +entity_type: node +bundle: members +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: members + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml new file mode 100644 index 0000000..7e9f46f --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_location_members.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_location_members + - node.type.members +id: node.members.field_location_members +field_name: field_location_members +entity_type: node +bundle: members +label: Location +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml new file mode 100644 index 0000000..c9cda10 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.field.node.members.field_phone_no_members.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_phone_no_members + - node.type.members +id: node.members.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +bundle: members +label: 'Phone No ' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_category.yml b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml new file mode 100644 index 0000000..0af8ae6 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_category.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - node + - taxonomy +id: node.field_category +field_name: field_category +entity_type: node +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml new file mode 100644 index 0000000..646ec5f --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_designation.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_designation +field_name: field_designation +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml new file mode 100644 index 0000000..059ac68 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_email_members.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_email_members +field_name: field_email_members +entity_type: node +type: email +settings: { } +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml new file mode 100644 index 0000000..aacc7cd --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_file_uploads_members.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - file + - node +id: node.field_file_uploads_members +field_name: field_file_uploads_members +entity_type: node +type: file +settings: + display_field: false + display_default: false + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml new file mode 100644 index 0000000..6f816a5 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_full_name_members.yml @@ -0,0 +1,88 @@ +langcode: en +status: true +dependencies: + module: + - name + - node +id: node.field_full_name_members +field_name: field_full_name_members +entity_type: node +type: name +settings: + components: + title: true + given: true + middle: true + family: true + generational: true + credentials: true + minimum_components: + given: true + family: true + title: false + middle: false + generational: false + credentials: false + labels: + title: Title + given: Given + middle: 'Middle name(s)' + family: Family + generational: Generational + credentials: Credentials + max_length: + title: 31 + given: 63 + middle: 127 + family: 63 + generational: 15 + credentials: 255 + autocomplete_source: + title: + title: title + given: { } + middle: { } + family: { } + generational: + generational: '0' + credentials: { } + autocomplete_separator: + title: ' ' + given: ' -' + middle: ' -' + family: ' -' + generational: ' ' + credentials: ', ' + allow_family_or_given: false + title_options: + - '-- --' + - Mr. + - Mrs. + - Miss + - Ms. + - Dr. + - Prof. + generational_options: + - '-- --' + - Jr. + - Sr. + - I + - II + - III + - IV + - V + - VI + - VII + - VIII + - IX + - X + sort_options: + title: false + generational: false +module: name +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml new file mode 100644 index 0000000..c1e9e4b --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_image_members.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_image_members +field_name: field_image_members +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml new file mode 100644 index 0000000..493d340 --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_location_members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_location_members +field_name: field_location_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml new file mode 100644 index 0000000..2d37edb --- /dev/null +++ b/modules/kalpesh/members/config/install/field.storage.node.field_phone_no_members.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_phone_no_members +field_name: field_phone_no_members +entity_type: node +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml new file mode 100644 index 0000000..b4c0f1f --- /dev/null +++ b/modules/kalpesh/members/config/install/image.style.group_research_area_image.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: group_research_area_image +label: 'Group Research area image' +effects: + 366cac20-7b38-410e-b508-129e23608539: + uuid: 366cac20-7b38-410e-b508-129e23608539 + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/members/config/install/node.type.members.yml b/modules/kalpesh/members/config/install/node.type.members.yml new file mode 100644 index 0000000..f3e4e66 --- /dev/null +++ b/modules/kalpesh/members/config/install/node.type.members.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Members +type: members +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml new file mode 100644 index 0000000..4eca366 --- /dev/null +++ b/modules/kalpesh/members/config/install/taxonomy.vocabulary.category.yml @@ -0,0 +1,8 @@ +langcode: en +status: true +dependencies: { } +name: Category +vid: category +description: '' +hierarchy: 0 +weight: 0 diff --git a/modules/kalpesh/members/members.info.yml b/modules/kalpesh/members/members.info.yml new file mode 100644 index 0000000..a66ee20 --- /dev/null +++ b/modules/kalpesh/members/members.info.yml @@ -0,0 +1,19 @@ +name: Members +type: module +description: 'This modole store members details' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:image + - drupal:name + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + - drupal:taxonomy + + + diff --git a/modules/kalpesh/members/members.install b/modules/kalpesh/members/members.install new file mode 100644 index 0000000..bb3a6cf --- /dev/null +++ b/modules/kalpesh/members/members.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function members_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'members'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/members/members.module b/modules/kalpesh/members/members.module new file mode 100644 index 0000000..035d5c0 --- /dev/null +++ b/modules/kalpesh/members/members.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains members.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function members_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the members module. + case 'help.page.members': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This modole store members details') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function members_theme() { + return [ + 'members' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/members/templates/members.html.twig b/modules/kalpesh/members/templates/members.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/members/templates/members.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/lab/tests/src/Functional/LoadTest.php b/modules/kalpesh/members/tests/src/Functional/LoadTest.php index 918be07..4a4ce20 100644 --- a/modules/esha/lab/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/members/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\lab\Functional; +namespace Drupal\Tests\members\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group lab + * @group members */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['lab']; + public static $modules = ['members']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/photo_gallery/composer.json b/modules/kalpesh/photo_gallery/composer.json new file mode 100644 index 0000000..fc234e8 --- /dev/null +++ b/modules/kalpesh/photo_gallery/composer.json @@ -0,0 +1,13 @@ +{ + "name": "photo_gallery", + "type": "drupal-module", + "description": "This module is use for stylish photo gallery", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/photo_gallery", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/photo_gallery", + "source": "http://cgit.drupalcode.org/photo_gallery", + }, +} diff --git a/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml.yml b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml.yml new file mode 100644 index 0000000..bfccb16 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.photograpy +id: node.photograpy.promote +field_name: promote +entity_type: node +bundle: photograpy +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml.yml b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml.yml new file mode 100644 index 0000000..ed738e8 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.base_field_override.node.photograpy.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.photograpy +id: node.photograpy.title +field_name: title +entity_type: node +bundle: photograpy +label: Title +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml new file mode 100644 index 0000000..78d187c --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_form_display.node.photograpy.default.yml @@ -0,0 +1,92 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - image.style.acad_fac_thumbnail_400_300_ + - node.type.photograpy + module: + - image + - path + - text +id: node.photograpy.default +targetEntityType: node +bundle: photograpy +mode: default +content: + body: + type: text_textarea_with_summary + weight: 7 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 2 + region: content + settings: { } + third_party_settings: { } + field_photo_gallery: + weight: 8 + settings: + preview_image_style: acad_fac_thumbnail_400_300_ + progress_indicator: throbber + third_party_settings: { } + type: image_image + region: content + langcode: + type: language_select + weight: 0 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 5 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 3 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 4 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 1 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml new file mode 100644 index 0000000..2abd173 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.default.yml @@ -0,0 +1,93 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - image.style.acad_fac_thumbnail_400_300_ + - image.style.large + - node.type.photograpy + module: + - colorbox + - ds + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - body + - field_photo_gallery +id: node.photograpy.default +targetEntityType: node +bundle: photograpy +mode: default +content: + body: + label: hidden + type: text_default + weight: 0 + settings: { } + third_party_settings: { } + region: ds_content + field_photo_gallery: + weight: 1 + label: above + settings: + colorbox_node_style: acad_fac_thumbnail_400_300_ + colorbox_node_style_first: '' + colorbox_image_style: large + colorbox_gallery: post + colorbox_gallery_custom: '' + colorbox_caption: auto + colorbox_caption_custom: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: Photos + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-12 text-center mt-10 mb-10 fw-bold' + lbw-at: '' + ow-el: '' + ow-cl: '' + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'row col-sm-4 center-block mt-5 mb-5' + fi-at: '' + suffix: '' + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: colorbox + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml new file mode 100644 index 0000000..e767d9a --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_view_display.node.photograpy.teaser.yml @@ -0,0 +1,32 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.photograpy.body + - field.field.node.photograpy.field_photo_gallery + - node.type.photograpy + module: + - text + - user +id: node.photograpy.teaser +targetEntityType: node +bundle: photograpy +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + region: content + settings: { } + third_party_settings: { } +hidden: + field_photo_gallery: true + langcode: true diff --git a/modules/kalpesh/photo_gallery/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/photo_gallery/config/install/core.entity_view_mode.node.teaser.yml new file mode 100644 index 0000000..dcde72c --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/core.entity_view_mode.node.teaser.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.teaser +label: Teaser +targetEntityType: node +cache: true diff --git a/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml new file mode 100644 index 0000000..14ccf05 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.photograpy + module: + - text +id: node.photograpy.body +field_name: body +entity_type: node +bundle: photograpy +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml new file mode 100644 index 0000000..895cda0 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.field.node.photograpy.field_photo_gallery.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_photo_gallery + - node.type.photograpy + module: + - image +id: node.photograpy.field_photo_gallery +field_name: field_photo_gallery +entity_type: node +bundle: photograpy +label: images +description: 'photos of department ,activities' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: 'Photo Gallery' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: false + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/photo_gallery/config/install/field.storage.node.body.yml b/modules/kalpesh/photo_gallery/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml new file mode 100644 index 0000000..c33090e --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/field.storage.node.field_photo_gallery.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_photo_gallery +field_name: field_photo_gallery +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/photo_gallery/config/install/image.style.acad_fac_thumbnail_400_300_.yml b/modules/kalpesh/photo_gallery/config/install/image.style.acad_fac_thumbnail_400_300_.yml new file mode 100644 index 0000000..f59da7a --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/image.style.acad_fac_thumbnail_400_300_.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - acadmix_faculty +name: acad_fac_thumbnail_400_300_ +label: 'Acad Fac Thumbnail (400×300)' +effects: + 4b4423ca-bdf9-403c-80bc-171eb78024ac: + uuid: 4b4423ca-bdf9-403c-80bc-171eb78024ac + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/photo_gallery/config/install/image.style.large.yml b/modules/kalpesh/photo_gallery/config/install/image.style.large.yml new file mode 100644 index 0000000..c793584 --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/image.style.large.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: large +label: 'Large (480×480)' +effects: + ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d: + uuid: ddd73aa7-4bd6-4c85-b600-bdf2b1628d1d + id: image_scale + weight: 0 + data: + width: 480 + height: 480 + upscale: false diff --git a/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml b/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml new file mode 100644 index 0000000..e64d6ad --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/node.type.photograpy.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Photo Gallery' +type: photograpy +description: 'Images of department and department activities' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml b/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml new file mode 100644 index 0000000..34d07cf --- /dev/null +++ b/modules/kalpesh/photo_gallery/config/install/views.view.photo_gallery.yml @@ -0,0 +1,403 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_photo_gallery + - image.style.acad_fac_thumbnail_400_300_ + - node.type.photograpy + - responsive_image.styles.acad_fac_narrow + - system.menu.main + module: + - image + - node + - responsive_image + - user + - views_bootstrap +id: photo_gallery +label: 'Photo Gallery' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: '' + default_row_class: false + alignment: horizontal + columns: '3' + col_xs: col-xs-12 + col_sm: col-sm-6 + col_md: col-md-4 + col_lg: col-lg-4 + row: + type: fields + options: + default_field_elements: true + inline: + field_photo_gallery: field_photo_gallery + separator: '' + hide_empty: false + fields: + field_photo_gallery: + id: field_photo_gallery + table: node__field_photo_gallery + field: field_photo_gallery + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: responsive_image + settings: + responsive_image_style: acad_fac_narrow + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + photograpy: photograpy + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Photo Gallery' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' + block_1: + display_plugin: block + id: block_1 + display_title: Block + position: 2 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: photo-gallery + menu: + type: normal + title: 'Photo Gallery' + menu_name: main + weight: -44 + fields: + field_photo_gallery: + id: field_photo_gallery + table: node__field_photo_gallery + field: field_photo_gallery + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: true + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: div + element_class: image + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: image + settings: + image_style: acad_fac_thumbnail_400_300_ + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: div + element_class: text + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: div + element_wrapper_class: overlay + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + defaults: + fields: false + style: false + row: false + style: + type: default + options: + grouping: { } + row_class: '' + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: + field_photo_gallery: field_photo_gallery + separator: '' + hide_empty: false + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_photo_gallery' diff --git a/modules/kalpesh/photo_gallery/photo_gallery.info.yml b/modules/kalpesh/photo_gallery/photo_gallery.info.yml new file mode 100644 index 0000000..bf2290e --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.info.yml @@ -0,0 +1,17 @@ +name: photo_gallery +type: module +description: 'This module is use for stylish photo gallery' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:path + - drupal:text + - colorbox + - ds:ds + - drupal:text + - drupal:user + - drupal:node + - drupal:file + diff --git a/modules/kalpesh/photo_gallery/photo_gallery.install b/modules/kalpesh/photo_gallery/photo_gallery.install new file mode 100644 index 0000000..216a83e --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function photo_gallery_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'photograpy'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/photo_gallery/photo_gallery.module b/modules/kalpesh/photo_gallery/photo_gallery.module new file mode 100644 index 0000000..ed6ed11 --- /dev/null +++ b/modules/kalpesh/photo_gallery/photo_gallery.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains photo_gallery.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function photo_gallery_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the photo_gallery module. + case 'help.page.photo_gallery': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module is use for stylish photo gallery') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function photo_gallery_theme() { + return [ + 'photo_gallery' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/photo_gallery/responsive_image.styles.photo_gallery.yml b/modules/kalpesh/photo_gallery/responsive_image.styles.photo_gallery.yml new file mode 100644 index 0000000..8a7addf --- /dev/null +++ b/modules/kalpesh/photo_gallery/responsive_image.styles.photo_gallery.yml @@ -0,0 +1,28 @@ +langcode: en +status: true +dependencies: + config: + - image.style.acad_fac_max_1300x1300 + - image.style.acad_fac_max_325x325 + - image.style.acad_fac_max_650x650 + - image.style.acad_fac_thumbnail_400_300_ + enforced: + module: + - acadmix_faculty +_core: + default_config_hash: Umj5KTYrfwM79WjP6IJpQHZGv0GEmu70WZarLM3BfTs +id: photo_gallery +label: 'Photo Gallery' +image_style_mappings: + - + breakpoint_id: responsive_image.viewport_sizing + multiplier: 1x + image_mapping_type: sizes + image_mapping: + sizes: '(min-width: 1290px) 325px, (min-width: 851px) 25vw, (min-width: 560px) 50vw, 100vw' + sizes_image_styles: + - acad_fac_max_1300x1300 + - acad_fac_max_325x325 + - acad_fac_max_650x650 +breakpoint_group: responsive_image +fallback_image_style: acad_fac_thumbnail_400_300_ diff --git a/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig b/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/photo_gallery/templates/photo-gallery.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/achievements/tests/src/Functional/LoadTest.php b/modules/kalpesh/photo_gallery/tests/src/Functional/LoadTest.php index 0d54e64..dfe0211 100644 --- a/modules/esha/achievements/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/photo_gallery/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\achievements\Functional; +namespace Drupal\Tests\photo_gallery\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group achievements + * @group photo_gallery */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['achievements']; + public static $modules = ['photo_gallery']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/recruiters/composer.json b/modules/kalpesh/recruiters/composer.json new file mode 100644 index 0000000..4215cbe --- /dev/null +++ b/modules/kalpesh/recruiters/composer.json @@ -0,0 +1,13 @@ +{ + "name": "recruiters", + "type": "drupal-module", + "description": "This module store details of companies", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/recruiters", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/recruiters", + "source": "http://cgit.drupalcode.org/recruiters", + }, +} diff --git a/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml.yml new file mode 100644 index 0000000..7b8db77 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.recruiters +id: node.recruiters.promote +field_name: promote +entity_type: node +bundle: recruiters +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml new file mode 100644 index 0000000..6b4f512 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.base_field_override.node.recruiters.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.recruiters +id: node.recruiters.title +field_name: title +entity_type: node +bundle: recruiters +label: Recruiters +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml new file mode 100644 index 0000000..e123c47 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_form_display.node.recruiters.default.yml @@ -0,0 +1,102 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.recruiters.body + - field.field.node.recruiters.field_company_image + - field.field.node.recruiters.field_link + - image.style.thumbnail + - node.type.recruiters + module: + - image + - link + - path + - text +id: node.recruiters.default +targetEntityType: node +bundle: recruiters +mode: default +content: + body: + type: text_textarea_with_summary + weight: 10 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_company_image: + weight: 2 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content + field_link: + weight: 11 + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + type: link_default + region: content + langcode: + type: language_select + weight: 3 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 8 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 6 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 9 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 4 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml new file mode 100644 index 0000000..741e497 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.default.yml @@ -0,0 +1,159 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.recruiters.body + - field.field.node.recruiters.field_company_image + - field.field.node.recruiters.field_link + - image.style.acad_fac_thumbnail_400_300_ + - node.type.recruiters + module: + - ds + - image + - link + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - field_company_image + - body + - field_link +id: node.recruiters.default +targetEntityType: node +bundle: recruiters +mode: default +content: + body: + label: hidden + type: text_default + weight: 3 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: 'div ' + ow-cl: 'col-sm-11 ' + ow-at: '' + fis-el: div + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_company_image: + weight: 1 + label: hidden + settings: + image_style: acad_fac_thumbnail_400_300_ + image_link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: Logo + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mb-10 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: image + region: ds_content + field_link: + weight: 5 + label: inline + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '0' + target: '0' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: 'Company official site' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-3 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mt-5 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi: true + fi-el: 'div ' + fi-cl: 'col-sm-8 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + type: link + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml new file mode 100644 index 0000000..5875c69 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_view_display.node.recruiters.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.recruiters.body + - node.type.recruiters + module: + - text + - user +id: node.recruiters.teaser +targetEntityType: node +bundle: recruiters +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/recruiters/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/recruiters/config/install/core.entity_view_mode.node.teaser.yml new file mode 100644 index 0000000..dcde72c --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/core.entity_view_mode.node.teaser.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.teaser +label: Teaser +targetEntityType: node +cache: true diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml new file mode 100644 index 0000000..7fdfe3a --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.recruiters + module: + - text +id: node.recruiters.body +field_name: body +entity_type: node +bundle: recruiters +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml new file mode 100644 index 0000000..d48be50 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_company_image.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_company_image + - node.type.recruiters + module: + - image +id: node.recruiters.field_company_image +field_name: field_company_image +entity_type: node +bundle: recruiters +label: 'Company logo' +description: 'Images of company ,activities' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml new file mode 100644 index 0000000..8ddabbd --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.field.node.recruiters.field_link.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_link + - node.type.recruiters + module: + - link +id: node.recruiters.field_link +field_name: field_link +entity_type: node +bundle: recruiters +label: Link +description: 'Link of company' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + link_type: 17 + title: 1 +field_type: link diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.body.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml new file mode 100644 index 0000000..9920536 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_company_image.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_company_image +field_name: field_company_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml new file mode 100644 index 0000000..2fa9029 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/field.storage.node.field_link.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - link + - node +id: node.field_link +field_name: field_link +entity_type: node +type: link +settings: { } +module: link +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/recruiters/config/install/image.style.acad_fac_thumbnail_400_300_.yml b/modules/kalpesh/recruiters/config/install/image.style.acad_fac_thumbnail_400_300_.yml new file mode 100644 index 0000000..f59da7a --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/image.style.acad_fac_thumbnail_400_300_.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + enforced: + module: + - acadmix_faculty +name: acad_fac_thumbnail_400_300_ +label: 'Acad Fac Thumbnail (400×300)' +effects: + 4b4423ca-bdf9-403c-80bc-171eb78024ac: + uuid: 4b4423ca-bdf9-403c-80bc-171eb78024ac + id: image_scale_and_crop + weight: 1 + data: + width: 400 + height: 300 + anchor: center-center diff --git a/modules/kalpesh/recruiters/config/install/image.style.thumbnail.yml b/modules/kalpesh/recruiters/config/install/image.style.thumbnail.yml new file mode 100644 index 0000000..73dc9b8 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/image.style.thumbnail.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: thumbnail +label: 'Thumbnail (100×100)' +effects: + 1cfec298-8620-4749-b100-ccb6c4500779: + uuid: 1cfec298-8620-4749-b100-ccb6c4500779 + id: image_scale + weight: 0 + data: + width: 100 + height: 100 + upscale: false diff --git a/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml new file mode 100644 index 0000000..8899da3 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/node.type.recruiters.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Recruiters +type: recruiters +description: 'Companies details which come for placements' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml new file mode 100644 index 0000000..b1ff775 --- /dev/null +++ b/modules/kalpesh/recruiters/config/install/views.view.major_recruiters_.yml @@ -0,0 +1,258 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_company_image + - node.type.recruiters + - responsive_image.styles.acad_fac_narrow + - system.menu.main + module: + - node + - responsive_image + - slick_views + - user +id: major_recruiters_ +label: 'Major Recruiters ' +module: views +description: 'companies which come for placements' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: mini + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + tags: + previous: ‹‹ + next: ›› + style: + type: slick + options: + vanilla: true + optionset: default + skin: '' + layout: '' + caption: + field_company_image: '0' + optionset_thumbnail: '' + skin_thumbnail: '' + thumbnail_position: '' + grid_header: '' + grid: 3 + grid_medium: 3 + grid_small: 2 + visible_items: 3 + preserve_keys: false + image: '' + thumbnail: '' + overlay: '' + title: '' + link: '' + class: '' + id: '' + override: true + overridables: + arrows: arrows + autoplay: autoplay + infinite: infinite + dots: '0' + draggable: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + cache: 0 + current_view_mode: page_1 + thumbnail_effect: hover + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + field_company_image: + id: field_company_image + table: node__field_company_image + field: field_company_image + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: responsive_image + settings: + responsive_image_style: acad_fac_narrow + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + recruiters: recruiters + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Major Recruiters ' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_company_image' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: major-recruiters- + menu: + type: normal + title: 'Major Recruiters ' + menu_name: main + weight: -43 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_company_image' diff --git a/modules/kalpesh/recruiters/recruiters.info.yml b/modules/kalpesh/recruiters/recruiters.info.yml new file mode 100644 index 0000000..841f39e --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.info.yml @@ -0,0 +1,17 @@ +name: Recruiters +type: module +description: 'This module store details of companies' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:image + - drupal:link + - drupal:path + - drupal:text + - ds:ds + - drupal:node + - drupal:user + - drupal:file + + diff --git a/modules/kalpesh/recruiters/recruiters.install b/modules/kalpesh/recruiters/recruiters.install new file mode 100644 index 0000000..06b49ac --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function recruiters_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'recruiters'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/recruiters/recruiters.module b/modules/kalpesh/recruiters/recruiters.module new file mode 100644 index 0000000..b438440 --- /dev/null +++ b/modules/kalpesh/recruiters/recruiters.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains recruiters.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function recruiters_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the recruiters module. + case 'help.page.recruiters': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module store details of companies') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function recruiters_theme() { + return [ + 'recruiters' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/recruiters/templates/recruiters.html.twig b/modules/kalpesh/recruiters/templates/recruiters.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/recruiters/templates/recruiters.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/corporate/tests/src/Functional/LoadTest.php b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php index 8e09521..9764cfb 100644 --- a/modules/esha/corporate/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/recruiters/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\corporate\Functional; +namespace Drupal\Tests\recruiters\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group corporate + * @group recruiters */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['corporate']; + public static $modules = ['recruiters']; /** * A user with permission to administer site configuration. diff --git a/modules/kalpesh/research_area1_/composer.json b/modules/kalpesh/research_area1_/composer.json new file mode 100644 index 0000000..c4858f4 --- /dev/null +++ b/modules/kalpesh/research_area1_/composer.json @@ -0,0 +1,13 @@ +{ + "name": "research_area1_", + "type": "drupal-module", + "description": "My Awesome Module", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/research_area1_", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/research_area1_", + "source": "http://cgit.drupalcode.org/research_area1_", + }, +} diff --git a/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml.yml b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml.yml new file mode 100644 index 0000000..5a806c7 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.base_field_override.node.research_area1_.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.research_area1_ +id: node.research_area1_.promote +field_name: promote +entity_type: node +bundle: research_area1_ +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml new file mode 100644 index 0000000..81bb6c4 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_form_display.node.research_area1_.default.yml @@ -0,0 +1,116 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - image.style.acad_fac_max_650x650 + - node.type.research_area1_ + module: + - image + - paragraphs + - path + - text +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + type: text_textarea_with_summary + weight: 121 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_image_research_area: + weight: 122 + settings: + preview_image_style: acad_fac_max_650x650 + progress_indicator: throbber + third_party_settings: { } + type: image_image + region: content + field_members: + weight: 125 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content + field_publication_research_area: + type: entity_reference_paragraphs + weight: 124 + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: open + add_mode: dropdown + form_display_mode: default + default_paragraph_type: '' + third_party_settings: { } + region: content + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml new file mode 100644 index 0000000..522a6de --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.default.yml @@ -0,0 +1,264 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.research_area1_.body + - field.field.node.research_area1_.field_image_research_area + - field.field.node.research_area1_.field_members + - field.field.node.research_area1_.field_publication_research_area + - node.type.research_area1_ + module: + - ds + - entity_reference_revisions + - slick + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - links + - field_image_research_area + - body + - field_members + - field_publication_research_area +id: node.research_area1_.default +targetEntityType: node +bundle: research_area1_ +mode: default +content: + body: + label: hidden + type: text_default + weight: 2 + settings: { } + third_party_settings: + ds: + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow: true + ow-el: div + ow-cl: col-sm-12 + ow-at: '' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + region: ds_content + field_image_research_area: + weight: 1 + label: hidden + settings: + style: '' + optionset: node_img_slider + optionset_thumbnail: '' + skin: default + skin_thumbnail: '' + image_style: image_h_400_w_600_ + thumbnail_style: '' + responsive_image_style: '' + thumbnail_effect: '' + thumbnail_position: '' + media_switch: '' + ratio: '' + grid: null + grid_medium: null + grid_small: null + visible_items: null + layout: '' + thumbnail_caption: '' + cache: 0 + sizes: '' + breakpoints: + xs: + image_style: '' + width: '' + breakpoint: '' + sm: + image_style: '' + width: '' + breakpoint: '' + md: + image_style: '' + width: '' + breakpoint: '' + lg: + image_style: '' + width: '' + breakpoint: '' + xl: + image_style: '' + width: '' + breakpoint: '' + current_view_mode: default + background: false + caption: + title: '0' + alt: '0' + grid_header: '' + preserve_keys: false + override: false + overridables: + arrows: '0' + autoplay: '0' + dots: '0' + draggable: '0' + infinite: '0' + mouseWheel: '0' + randomize: '0' + variableWidth: '0' + skin_arrows: '' + skin_dots: '' + iframe_lazy: true + icon: '' + view_mode: '' + box_caption: '' + box_caption_custom: '' + box_style: '' + box_media_style: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw-el: '' + lbw-cl: '' + lbw-at: '' + ow-el: div + ow-cl: '' + ow-at: 'style="margin:auto"' + fis-el: '' + fis-cl: '' + fis-at: '' + fi-el: '' + fi-cl: '' + fi-at: '' + suffix: '' + lbw: false + lb-col: false + ow: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi: false + fi-def-at: false + type: slick_image + region: ds_content + field_members: + weight: 3 + label: inline + settings: + link: true + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10 mb-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: row + ow-at: '' + fis: true + fis-el: div + fis-cl: 'col-sm-10 ' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-10 mt-10 mb-10 mt-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: entity_reference_label + region: ds_content + field_publication_research_area: + type: entity_reference_revisions_entity_view + weight: 4 + label: inline + settings: + view_mode: default + link: '' + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: '' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-12 fw-bold text-center' + lbw-at: '' + ow: true + ow-el: div + ow-cl: 'row ' + ow-at: '' + fis-el: div + fis-cl: ' col-sm-5 mt-10 mb-10' + fis-at: '' + fi: true + fi-el: div + fi-cl: 'col-sm-6 mt-10 mb-10' + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis: false + fis-def-at: false + fi-def-at: false + region: ds_content + links: + weight: 0 + region: ds_content + settings: { } + third_party_settings: { } +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml new file mode 100644 index 0000000..b4bfa64 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/core.entity_view_display.node.research_area1_.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.research_area1_.body + - node.type.research_area1_ + module: + - text + - user +id: node.research_area1_.teaser +targetEntityType: node +bundle: research_area1_ +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml new file mode 100644 index 0000000..5c59cd8 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.research_area1_ + module: + - text +id: node.research_area1_.body +field_name: body +entity_type: node +bundle: research_area1_ +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml new file mode 100644 index 0000000..25fc8ec --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_image_research_area.yml @@ -0,0 +1,37 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image_research_area + - node.type.research_area1_ + module: + - image +id: node.research_area1_.field_image_research_area +field_name: field_image_research_area +entity_type: node +bundle: research_area1_ +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: research + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml new file mode 100644 index 0000000..80d0532 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_members.yml @@ -0,0 +1,28 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_members + - node.type.members + - node.type.research_area1_ +id: node.research_area1_.field_members +field_name: field_members +entity_type: node +bundle: research_area1_ +label: Members +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + members: members + research_area1_: research_area1_ + sort: + field: _none + auto_create: false + auto_create_bundle: members +field_type: entity_reference diff --git a/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml new file mode 100644 index 0000000..005db75 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.field.node.research_area1_.field_publication_research_area.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_publication_research_area + - node.type.research_area1_ + - paragraphs.paragraphs_type.publication + module: + - entity_reference_revisions +id: node.research_area1_.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +bundle: research_area1_ +label: Publication +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + negate: 0 + target_bundles: + publication: publication + target_bundles_drag_drop: + publication: + enabled: true + weight: 2 +field_type: entity_reference_revisions diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml new file mode 100644 index 0000000..5c87306 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_image_research_area.yml @@ -0,0 +1,29 @@ +langcode: en +status: true +dependencies: + module: + - file + - image + - node +id: node.field_image_research_area +field_name: field_image_research_area +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + target_type: file + display_field: false + display_default: false +module: image +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml new file mode 100644 index 0000000..02e4510 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_members.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_members +field_name: field_members +entity_type: node +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml new file mode 100644 index 0000000..fe13a91 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/field.storage.node.field_publication_research_area.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - node + - paragraphs +id: node.field_publication_research_area +field_name: field_publication_research_area +entity_type: node +type: entity_reference_revisions +settings: + target_type: paragraph +module: entity_reference_revisions +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml new file mode 100644 index 0000000..f928e58 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/node.type.research_area1_.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: 'Research Area' +type: research_area1_ +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml new file mode 100644 index 0000000..8c74e55 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/paragraphs.paragraphs_type.publication.yml @@ -0,0 +1,8 @@ +langcode: en +status: true +dependencies: { } +id: publication +label: Publication +icon_uuid: null +description: '' +behavior_plugins: { } diff --git a/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml new file mode 100644 index 0000000..76ec9a6 --- /dev/null +++ b/modules/kalpesh/research_area1_/config/install/views.view.research_area.yml @@ -0,0 +1,413 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - field.storage.node.field_image_research_area + - image.style.group_research_area_image + - node.type.research_area1_ + - system.menu.main + module: + - image + - node + - text + - user +id: research_area +label: 'Research Area' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: default + options: + grouping: { } + row_class: mb-30 + default_row_class: true + row: + type: fields + options: + default_field_elements: true + inline: { } + separator: '' + hide_empty: false + fields: + field_image_research_area: + id: field_image_research_area + table: node__field_image_research_area + field: field_image_research_area + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: image + settings: + image_style: group_research_area_image + image_link: content + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 1 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: h4 + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: true + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + body: + id: body + table: node__body + field: body + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: mb-20 + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: summary + type: text_trimmed + settings: + trim_length: 500 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + view_node: + id: view_node + table: node + field: view_node + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: btn + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: false + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: 'read more' + output_url_as_text: false + absolute: false + entity_type: node + plugin_id: entity_link + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + research_area1_: research_area1_ + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + order: DESC + entity_type: node + entity_field: created + plugin_id: date + relationship: none + group_type: group + admin_label: '' + exposed: false + expose: + label: '' + granularity: second + title: 'Research Area' + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + css_class: '' + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: research-area + menu: + type: normal + title: 'Research Area' + menu_name: main + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.body' + - 'config:field.storage.node.field_image_research_area' diff --git a/modules/kalpesh/research_area1_/research_area1_.info.yml b/modules/kalpesh/research_area1_/research_area1_.info.yml new file mode 100644 index 0000000..13e65d4 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.info.yml @@ -0,0 +1,18 @@ +name: research_group +type: module +description: 'My Awesome Module' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:user + - drupal:node + - drupal:image + - paragraphs:paragraphs + - drupal:path + - drupal:text + - ds:ds + - entity_reference_revisions:entity_reference_revisions + - slick:slick + - drupal:file + diff --git a/modules/kalpesh/research_area1_/research_area1_.install b/modules/kalpesh/research_area1_/research_area1_.install new file mode 100644 index 0000000..65b64ff --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function research_area1__uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'research_area1_'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/research_area1_/research_area1_.module b/modules/kalpesh/research_area1_/research_area1_.module new file mode 100644 index 0000000..17b1175 --- /dev/null +++ b/modules/kalpesh/research_area1_/research_area1_.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains research_area1_.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function research_area1__help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the research_area1_ module. + case 'help.page.research_area1_': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('My Awesome Module') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function research_area1__theme() { + return [ + 'research_area1_' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/research_area1_/templates/research-area1-.html.twig b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/research_area1_/templates/research-area1-.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php new file mode 100644 index 0000000..b68de6f --- /dev/null +++ b/modules/kalpesh/research_area1_/tests/src/Functional/LoadTest.php @@ -0,0 +1,46 @@ +<?php + +namespace Drupal\Tests\research_area1_\Functional; + +use Drupal\Core\Url; +use Drupal\Tests\BrowserTestBase; + +/** + * Simple test to ensure that main page loads with module enabled. + * + * @group research_area1_ + */ +class LoadTest extends BrowserTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['research_area1_']; + + /** + * A user with permission to administer site configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $user; + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->user = $this->drupalCreateUser(['administer site configuration']); + $this->drupalLogin($this->user); + } + + /** + * Tests that the home page loads with a 200 response. + */ + public function testLoad() { + $this->drupalGet(Url::fromRoute('<front>')); + $this->assertSession()->statusCodeEquals(200); + } + +} diff --git a/modules/kalpesh/syllbus/composer.json b/modules/kalpesh/syllbus/composer.json new file mode 100644 index 0000000..f7fc777 --- /dev/null +++ b/modules/kalpesh/syllbus/composer.json @@ -0,0 +1,13 @@ +{ + "name": "syllbus", + "type": "drupal-module", + "description": "This module is store the university syllbus", + "keywords": [ + ], + "homepage": "https://www.drupal.org/project/syllbus", + "minimum-stability": "dev", + "support": { + "issues": "https://www.drupal.org/project/issues/syllbus", + "source": "http://cgit.drupalcode.org/syllbus", + }, +} diff --git a/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml.yml b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml.yml new file mode 100644 index 0000000..67fdf2d --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.promote.yml.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - node.type.syllbus +id: node.syllbus.promote +field_name: promote +entity_type: node +bundle: syllbus +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml.yml b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml.yml new file mode 100644 index 0000000..3f9791b --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.base_field_override.node.syllbus.title.yml.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + config: + - node.type.syllbus +id: node.syllbus.title +field_name: title +entity_type: node +bundle: syllbus +label: Syllbus +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml b/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml new file mode 100644 index 0000000..af5f9ee --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_form_display.node.syllbus.default.yml @@ -0,0 +1,90 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.syllbus.body + - field.field.node.syllbus.field_pdf + - node.type.syllbus + module: + - file + - path + - text +id: node.syllbus.default +targetEntityType: node +bundle: syllbus +mode: default +content: + body: + type: text_textarea_with_summary + weight: 11 + settings: + rows: 9 + summary_rows: 3 + placeholder: '' + third_party_settings: { } + region: content + created: + type: datetime_timestamp + weight: 6 + region: content + settings: { } + third_party_settings: { } + field_pdf: + weight: 26 + settings: + progress_indicator: throbber + third_party_settings: { } + type: file_generic + region: content + langcode: + type: language_select + weight: 4 + region: content + settings: + include_locked: true + third_party_settings: { } + path: + type: path + weight: 9 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 7 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 10 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 8 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: 'Enter year ex FE,SE,TE,BE etc ' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + region: content + third_party_settings: { } +hidden: { } diff --git a/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml new file mode 100644 index 0000000..ff4c083 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.default.yml @@ -0,0 +1,85 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.syllbus.body + - field.field.node.syllbus.field_pdf + - node.type.syllbus + module: + - ds + - file + - text + - user +third_party_settings: + ds: + layout: + id: ds_1col + library: null + disable_css: false + entity_classes: all_classes + settings: + wrappers: + ds_content: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + ds_content: { } + regions: + ds_content: + - body + - field_pdf +id: node.syllbus.default +targetEntityType: node +bundle: syllbus +mode: default +content: + body: + label: hidden + type: text_default + weight: 101 + settings: { } + third_party_settings: { } + region: ds_content + field_pdf: + weight: 102 + label: above + settings: + use_description_as_link_text: true + third_party_settings: + ds: + ds_limit: '' + ft: + id: expert + settings: + lb: 'PDF File' + prefix: '' + lbw: true + lbw-el: div + lbw-cl: 'col-sm-2 fw-bold mt-10' + lbw-at: '' + ow: true + ow-el: div + ow-cl: mb-10 + ow-at: '' + fis: true + fis-el: 'div ' + fis-cl: col-sm-10 + fis-at: '' + fi: true + fi-el: div + fi-cl: col-sm-10 + fi-at: '' + suffix: '' + lb-col: false + ow-def-at: false + ow-def-cl: false + fis-def-at: false + fi-def-at: false + type: file_default + region: ds_content +hidden: + langcode: true + links: true diff --git a/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml new file mode 100644 index 0000000..7d2d54a --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_view_display.node.syllbus.teaser.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.syllbus.body + - node.type.syllbus + module: + - text + - user +id: node.syllbus.teaser +targetEntityType: node +bundle: syllbus +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: 101 + settings: + trim_length: 600 + third_party_settings: { } + region: content + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + langcode: true diff --git a/modules/kalpesh/syllbus/config/install/core.entity_view_mode.node.teaser.yml b/modules/kalpesh/syllbus/config/install/core.entity_view_mode.node.teaser.yml new file mode 100644 index 0000000..dcde72c --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/core.entity_view_mode.node.teaser.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.teaser +label: Teaser +targetEntityType: node +cache: true diff --git a/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml new file mode 100644 index 0000000..8ab91fc --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.body.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.body + - node.type.syllbus + module: + - text +id: node.syllbus.body +field_name: body +entity_type: node +bundle: syllbus +label: Body +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + display_summary: true +field_type: text_with_summary diff --git a/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml new file mode 100644 index 0000000..d0c0a94 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.field.node.syllbus.field_pdf.yml @@ -0,0 +1,26 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_pdf + - node.type.syllbus + module: + - file +id: node.syllbus.field_pdf +field_name: field_pdf +entity_type: node +bundle: syllbus +label: PDF +description: 'PDF of syllbus' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: pdf + max_filesize: '10 MB' + description_field: true + handler: 'default:file' + handler_settings: { } +field_type: file diff --git a/modules/kalpesh/syllbus/config/install/field.storage.node.body.yml b/modules/kalpesh/syllbus/config/install/field.storage.node.body.yml new file mode 100644 index 0000000..73edd16 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.storage.node.body.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - text +id: node.body +field_name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml b/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml new file mode 100644 index 0000000..58b5023 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/field.storage.node.field_pdf.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + module: + - file + - node +id: node.field_pdf +field_name: field_pdf +entity_type: node +type: file +settings: + display_field: false + display_default: true + uri_scheme: public + target_type: file +module: file +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml b/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml new file mode 100644 index 0000000..5249241 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/node.type.syllbus.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Syllbus +type: syllbus +description: 'Syllbus of FE ,SE, TE, BE' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml b/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml new file mode 100644 index 0000000..adcd393 --- /dev/null +++ b/modules/kalpesh/syllbus/config/install/views.view.syllabus.yml @@ -0,0 +1,300 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_pdf + - node.type.syllbus + - system.menu.main + module: + - file + - node + - user + - views_bootstrap +id: syllabus +label: syllabus +module: views +description: 'year wise syllabus' +tag: '' +base_table: node_field_data +base_field: nid +core: 8.x +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + query: + type: views_query + options: + disable_sql_rewrite: false + distinct: false + replica: false + query_comment: '' + query_tags: { } + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + pager: + type: full + options: + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + style: + type: views_bootstrap_grid + options: + grouping: { } + row_class: 'mb-30 ' + default_row_class: true + alignment: horizontal + columns: '2' + col_xs: col-xs-12 + col_sm: col-sm-12 + col_md: col-md-12 + col_lg: col-lg-6 + row: + type: fields + options: + default_field_elements: true + inline: + title: title + field_pdf: field_pdf + separator: '' + hide_empty: false + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + entity_type: node + entity_field: title + plugin_id: field + field_pdf: + id: field_pdf + table: node__field_pdf + field: field_pdf + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + plugin_id: field + filters: + status: + value: '1' + table: node_field_data + field: status + plugin_id: boolean + entity_type: node + entity_field: status + id: status + expose: + operator: '' + group: 1 + type: + id: type + table: node_field_data + field: type + value: + syllbus: syllbus + entity_type: node + entity_field: type + plugin_id: bundle + sorts: + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + granularity: second + entity_type: node + entity_field: created + plugin_id: date + title: syllabus + header: { } + footer: { } + empty: { } + relationships: { } + arguments: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_pdf' + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + display_extenders: { } + path: syllabus + menu: + type: normal + title: syllabus + menu_name: main + weight: -45 + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.field_pdf' diff --git a/modules/kalpesh/syllbus/syllbus.info.yml b/modules/kalpesh/syllbus/syllbus.info.yml new file mode 100644 index 0000000..e710aa6 --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.info.yml @@ -0,0 +1,14 @@ +name: Syllbus +type: module +description: 'This module is store the university syllbus' +core: 8.x +package: Custom +dependencies: + - drupal:menu_ui + - drupal:file + - drupal:path + - drupal:text + - ds:ds + - drupal:user + - drupal:node + diff --git a/modules/kalpesh/syllbus/syllbus.install b/modules/kalpesh/syllbus/syllbus.install new file mode 100644 index 0000000..7a97fab --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.install @@ -0,0 +1,26 @@ + +<?php +/** +* Implements hook_uninstall(). +*/ +function syllbus_uninstall() { //<-- replace “welcome” with your module machine name + // Load services. + $queryFactory = \Drupal::service('entity.query'); + $nodeStorage = \Drupal::entityManager()->getStorage('node'); + + + + // Query all entity. + $query = $queryFactory->get('node') +// <-- replace event in below line with your content type machine name + ->condition('type', 'syllbus'); + $nids = $query->execute(); + + + + // Delete entities. + if (!empty($nids)) { + $entities = $nodeStorage->loadMultiple($nids); + $nodeStorage->delete($entities); + } +} diff --git a/modules/kalpesh/syllbus/syllbus.module b/modules/kalpesh/syllbus/syllbus.module new file mode 100644 index 0000000..d06006c --- /dev/null +++ b/modules/kalpesh/syllbus/syllbus.module @@ -0,0 +1,35 @@ +<?php + +/** + * @file + * Contains syllbus.module. + */ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). + */ +function syllbus_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the syllbus module. + case 'help.page.syllbus': + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('This module is store the university syllbus') . '</p>'; + return $output; + + default: + } +} + +/** + * Implements hook_theme(). + */ +function syllbus_theme() { + return [ + 'syllbus' => [ + 'render element' => 'children', + ], + ]; +} diff --git a/modules/kalpesh/syllbus/templates/syllbus.html.twig b/modules/kalpesh/syllbus/templates/syllbus.html.twig new file mode 100644 index 0000000..95722bd --- /dev/null +++ b/modules/kalpesh/syllbus/templates/syllbus.html.twig @@ -0,0 +1 @@ +<!-- Add you custom twig html here --> diff --git a/modules/esha/programs/tests/src/Functional/LoadTest.php b/modules/kalpesh/syllbus/tests/src/Functional/LoadTest.php index 8d3d7ab..d47884f 100644 --- a/modules/esha/programs/tests/src/Functional/LoadTest.php +++ b/modules/kalpesh/syllbus/tests/src/Functional/LoadTest.php @@ -1,6 +1,6 @@ <?php -namespace Drupal\Tests\programs\Functional; +namespace Drupal\Tests\syllbus\Functional; use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; @@ -8,7 +8,7 @@ use Drupal\Tests\BrowserTestBase; /** * Simple test to ensure that main page loads with module enabled. * - * @group programs + * @group syllbus */ class LoadTest extends BrowserTestBase { @@ -17,7 +17,7 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['programs']; + public static $modules = ['syllbus']; /** * A user with permission to administer site configuration. |