diff options
Diffstat (limited to 'themes/kalpesh/acadmix_subtheme')
24 files changed, 817 insertions, 0 deletions
diff --git a/themes/kalpesh/acadmix_subtheme/README.md b/themes/kalpesh/acadmix_subtheme/README.md new file mode 100644 index 0000000..86ae5db --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/README.md @@ -0,0 +1 @@ +# suntheme_template
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.info.yml b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.info.yml new file mode 100644 index 0000000..9768749 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.info.yml @@ -0,0 +1,39 @@ +core: 8.x +type: theme +base theme: acadmix + +name: 'acadmix_subtheme' +description: 'A sub-theme of acadmix.' +package: 'Custom' + +regions: + top_head_search: 'Top Head Search' + header: 'Header' + lang_switcher: 'language Switcher' + header_search: 'Header Search box' + navigation_collapsible: 'Navigation (Collapsible)' + slider: 'slider' + highlighted: 'Highlighted' + help: 'Help' + top_head: 'Top Head region' + top1: 'Top1' + top2: 'Top2' + top3: 'Top3' + top4: 'Top4' + content_top: 'Content Top' + breadcrumb: 'Breadcrumb' + content: 'Content' + sidebar_first: 'Sidebar first' + sidebar_second: 'Sidebar Second' + footer1: 'Footer1' + footer2: 'Footer2' + footer3: 'Footer3' + footer4: 'Footer4' + footer_bar_left: 'Footer bar Left' + footer_bar_right: 'Footer bar Right' + page_top: 'Page top' + page_bottom: 'Page bottom' + +libraries: + - 'acadmix_subtheme/global-styling' + - 'acadmix_subtheme/bootstrape' diff --git a/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.libraries.yml b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.libraries.yml new file mode 100644 index 0000000..8288296 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.libraries.yml @@ -0,0 +1,8 @@ +global-styling: + css: + theme: + css/style.css: {} + js: + js/custom_subtheme.js: {} + dependencies: + - core/jquery diff --git a/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.theme b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.theme new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/acadmix_subtheme.theme diff --git a/themes/kalpesh/acadmix_subtheme/config/install/acadmix_subtheme.settings.yml b/themes/kalpesh/acadmix_subtheme/config/install/acadmix_subtheme.settings.yml new file mode 100644 index 0000000..66b66b5 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/config/install/acadmix_subtheme.settings.yml @@ -0,0 +1 @@ +schemas: []
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/config/schema/acadmix_subtheme.schema.yml b/themes/kalpesh/acadmix_subtheme/config/schema/acadmix_subtheme.schema.yml new file mode 100644 index 0000000..25dc483 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/config/schema/acadmix_subtheme.schema.yml @@ -0,0 +1,5 @@ +# Schema for the theme setting configuration file of the THEMETITLE theme. + +THEMENAME.settings: + type: theme_settings + label: 'THEMETITLE settings' diff --git a/themes/kalpesh/acadmix_subtheme/css/style.css b/themes/kalpesh/acadmix_subtheme/css/style.css new file mode 100644 index 0000000..e208bbf --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/css/style.css @@ -0,0 +1,130 @@ + +.image { + display: block; + width: auto; + height: auto; + border: 5px double; +} +.image img { + width: 100%; +} + +.overlay { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + height: auto; + width: 100%; + opacity: 0; + transition: .5s ease; + background-color: rgba(35, 41, 49, 0.51); +} + +.con:hover .overlay { + opacity: 1; + +} + +.text { + color: white; + font-size: 20px; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + text-align: center; +} + +.text a{ + color: #ffffff; +} + +.text a:hover { + color: #ffffff; +} + + + + + +.images { + position: relative; + width: 100%; +} + + +/* +h3 .titlelab a{ + + position:relative; + top: 200px; + left: 0; + width: 100%; +text-align:center; +color: wheat; + +} + +*/ + +.view-id-laboratories h3 a{ + position: absolute; + left: 10px; + width: 100%; + bottom: 5em; + text-align: center; + color: #EFE5EC; + top:240px; + +} +.view-id-laboratories h3 img{ + border: 5px double; +} + + +.view-id-laboratories h3 a:hover { + color: #ffffff; + +} + + + +/*recruters node*/ + + .a{ + + padding: 0px; + float: none; + + + } + + + /*recruters view*/ + + /* override position and transform in 3.3.x */ +.carousel-inner .item.left.active { + transform: translateX(-33%); +} +.carousel-inner .item.right.active { + transform: translateX(33%); +} + +.carousel-inner .item.next { + transform: translateX(33%) +} +.carousel-inner .item.prev { + transform: translateX(-33%) +} + +.carousel-inner .item.right, +.carousel-inner .item.left { + transform: translateX(0); +} + + +.carousel-control.left,.carousel-control.right {background-image:none;}
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/favicon.ico b/themes/kalpesh/acadmix_subtheme/favicon.ico Binary files differnew file mode 100755 index 0000000..ee9e806 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/favicon.ico diff --git a/themes/kalpesh/acadmix_subtheme/js/custom_subtheme.js b/themes/kalpesh/acadmix_subtheme/js/custom_subtheme.js new file mode 100644 index 0000000..f8c176a --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/js/custom_subtheme.js @@ -0,0 +1,18 @@ +$('#myCarousel').carousel({ + interval: 10000 +}) + +$('.carousel .item').each(function(){ + var next = $(this).next(); + if (!next.length) { + next = $(this).siblings(':first'); + } + next.children(':first-child').clone().appendTo($(this)); + + if (next.next().length>0) { + next.next().children(':first-child').clone().appendTo($(this)); + } + else { + $(this).siblings(':first').children(':first-child').clone().appendTo($(this)); + } +});
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/logo.png b/themes/kalpesh/acadmix_subtheme/logo.png Binary files differnew file mode 100755 index 0000000..9142ed9 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/logo.png diff --git a/themes/kalpesh/acadmix_subtheme/screenshot.png b/themes/kalpesh/acadmix_subtheme/screenshot.png Binary files differnew file mode 100755 index 0000000..57c526a --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/screenshot.png diff --git a/themes/kalpesh/acadmix_subtheme/templates/README.md b/themes/kalpesh/acadmix_subtheme/templates/README.md new file mode 100644 index 0000000..2a662ca --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/README.md @@ -0,0 +1,4 @@ +This directory is used to implement various core, contrib, Bootstrap and custom +templates. + +Please refer to the [Templates](<!-- @url templates -->) topic for more info. diff --git a/themes/kalpesh/acadmix_subtheme/templates/ex.txt b/themes/kalpesh/acadmix_subtheme/templates/ex.txt new file mode 100644 index 0000000..b824c5d --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/ex.txt @@ -0,0 +1,104 @@ +<div class="row col-sm-4"> +<div class="img-round "> +{{ field_photo_gallery }} +</div> +</div> + + + +<div class="container"> +<div class="row"> +<div class="col-md-4 text-center fw-bold"> +{{ title }} +</div> + +</div> +</div> + + +<div class="container"> +<div class="row"> +<div class="col-md-4"> +{{ title }} +</div> + +</div> +</div> + + + + + +<!DOCTYPE html> +<html> +<head> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<style> +.container { + position: relative; + width: 50%; +} + +.image { + display: block; + width: 100%; + height: auto; +} + +.overlay { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + height: 100%; + width: 100%; + opacity: 0; + transition: .5s ease; + background-color: #008CBA; +} + +.container:hover .overlay { + opacity: 1; +} + +.text { + color: white; + font-size: 20px; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + -ms-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + text-align: center; +} +</style> +</head> +<body> + +<h2>Fade in Overlay</h2> +<p>Hover over the image to see the effect.</p> + +<div class="container"> + <img src="img_avatar.png" alt="Avatar" class="image"> + <div class="overlay"> + <div class="text">Hello World</div> + </div> +</div> + +</body> +</html> + + + + + + +<div class="con"> +{{ field_photo_gallery }} + + <div class="overlay"> + <div class="text">{{ title }}</div> + </div> +</div>
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/templates/image.html.twig b/themes/kalpesh/acadmix_subtheme/templates/image.html.twig new file mode 100755 index 0000000..aac916c --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/image.html.twig @@ -0,0 +1,19 @@ +{# +/** + * @file + * Default theme implementation of an image. + * + * Available variables: + * - attributes: HTML attributes for the img tag. + * - style_name: (optional) The name of the image style applied. + * + * @ingroup templates + * + * @see template_preprocess_image() + */ +#} +{% set classes = [ + theme.settings.image_shape ? theme.settings.image_shape, + theme.settings.image_responsive ? 'img-responsive', +] %} +<img{{ attributes.addClass(classes) }} /> diff --git a/themes/kalpesh/acadmix_subtheme/templates/laboratory/ds-1col--node-laboratories.html.twig b/themes/kalpesh/acadmix_subtheme/templates/laboratory/ds-1col--node-laboratories.html.twig new file mode 100755 index 0000000..9c67a09 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/laboratory/ds-1col--node-laboratories.html.twig @@ -0,0 +1,30 @@ +{# +/** + * @file + * Display Suite 1 column template. + * + * Available variables: + * - ds_content_wrapper: wrapper around content + * - attributes: content region attributes + * - ds_content: content region + */ +#} +<{{ ds_content_wrapper }}{{ attributes.addClass('ds-1col', 'clearfix') }}> + + {{ title_suffix.contextual_links }} +<div class="row "> + <div class="col-sm-4 " style="border:5px double;"> + {{ ds_content.field_lab_image }} + </div> + <div class="col-sm-8 ml-5" style="padding-left:50px;"> + {# {{ ds_content.field_area }} + {{ ds_content.field_lab_equipment_cost }} + {{ ds_content. field_utilisation_of_lab }} + {{ ds_content.body }} +#} +{{ ds_content|without('field_lab_image') }} + + + </div> + +</{{ ds_content_wrapper }}> diff --git a/themes/kalpesh/acadmix_subtheme/templates/laboratory/views-view-unformatted--laboratories--page_1.html.twig b/themes/kalpesh/acadmix_subtheme/templates/laboratory/views-view-unformatted--laboratories--page_1.html.twig new file mode 100644 index 0000000..35f7ee0 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/laboratory/views-view-unformatted--laboratories--page_1.html.twig @@ -0,0 +1,56 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * - view: The view object. + * - default_row_class: A flag indicating whether default classes should be + * used on rows. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} + <h3>{{ title }}</h3> +{% endif %} + + +{% for row in rows %} + {% + set row_classes = [ + default_row_class ? 'views-row','col-sm-4', ] + %} + + <div{{ row.attributes.addClass(row_classes) }}> + {{- row.content -}} + + + </div> + +{% endfor %} + + + + +{#<div class="row"> + <div class=" col-sm-6 col-md-4"> + <div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div> + </div> +</div> +#}
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/templates/photo gallary/views-view-unformatted--photo_gallery--page_1.html.twig b/themes/kalpesh/acadmix_subtheme/templates/photo gallary/views-view-unformatted--photo_gallery--page_1.html.twig new file mode 100755 index 0000000..f84f1a4 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/photo gallary/views-view-unformatted--photo_gallery--page_1.html.twig @@ -0,0 +1,70 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * - view: The view object. + * - default_row_class: A flag indicating whether default classes should be + * used on rows. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} + <h3>{{ title }}</h3> +{% endif %} + + +{% for row in rows %} + {% + set row_classes = [ + default_row_class ? 'views-row','col-sm-4','con' + ] + %} + + <div{{ row.attributes.addClass(row_classes) }}> + {{- row.content -}} + + + </div> + +{% endfor %} + + + + +{#<div class="row"> + <div class=" col-sm-6 col-md-4"> + <div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div> + </div> +</div> +#} + +<div class="row"> + <div class="col-sm-6 col-md-4"> + <div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + <div class="caption"> + <h3>Thumbnail label</h3> + <p>...</p> + <p><a href="#" class="btn btn-primary" role="button">Button</a> <a href="#" class="btn btn-default" role="button">Button</a></p> + </div> + </div> + </div> +</div>
\ No newline at end of file diff --git a/themes/kalpesh/acadmix_subtheme/templates/recruters/ds-1col--node-recruiters.html.twig b/themes/kalpesh/acadmix_subtheme/templates/recruters/ds-1col--node-recruiters.html.twig new file mode 100755 index 0000000..1d89434 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/recruters/ds-1col--node-recruiters.html.twig @@ -0,0 +1,39 @@ +{# +/** + * @file + * Display Suite 1 column template. + * + * Available variables: + * - ds_content_wrapper: wrapper around content + * - attributes: content region attributes + * - ds_content: content region + */ +#} +<{{ ds_content_wrapper }}{{ attributes.addClass('ds-1col', 'clearfix') }}> + + {{ title_suffix.contextual_links }} +<div class="row mt-10"> + <div class="col-sm-4 a"> + {{ ds_content.field_company_image}} + </div> + <div class="col-sm-8 " > + {# {{ ds_content.field_area }} + {{ ds_content.field_lab_equipment_cost }} + {{ ds_content. field_utilisation_of_lab }} + {{ ds_content.body }} +#} +{{ ds_content|without('field_company_image','field_link') }} + + + </div> + +<div class="row"> + +<div class="col-sm-12"> + {{ ds_content.field_link }} + + </div> +</div> + +</{{ ds_content_wrapper }}> + diff --git a/themes/kalpesh/acadmix_subtheme/templates/recruters/views-view-unformatted--recruiters--page_1.html.twig b/themes/kalpesh/acadmix_subtheme/templates/recruters/views-view-unformatted--recruiters--page_1.html.twig new file mode 100644 index 0000000..2a63680 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/recruters/views-view-unformatted--recruiters--page_1.html.twig @@ -0,0 +1,62 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * - view: The view object. + * - default_row_class: A flag indicating whether default classes should be + * used on rows. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} + <h3>{{ title }}</h3> +{% endif %} + + +{% for row in rows %} + {% + set row_classes = [ + default_row_class ? 'views-row','col-md-6' ] + %} + + <div{{ row.attributes.addClass(row_classes) }}> + {{- row.content -}} + + + </div> + +{% endfor %} + + + + +{#<div class="row"> + <div class=" col-sm-6 col-md-4"> + <div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div><div class="thumbnail"> + <img src="http://placehold.it/350x250" alt="..."> + + </div> + </div> +</div> +#} + + + + + + diff --git a/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig b/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig new file mode 100644 index 0000000..93caba8 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig @@ -0,0 +1,19 @@ +{# +/** + * @file + * Default theme implementation to display a formatted responsive image field. + * + * Available variables: + * - responsive_image: A collection of responsive image data. + * - url: An optional URL the image can be linked to. + * + * @see template_preprocess_responsive_image_formatter() + * + * @ingroup themeable + */ +#} +{% if url %} + <a href="{{ url }}">{{ responsive_image }}</a> +{% else %} + {{ responsive_image }} +{% endif %} diff --git a/themes/kalpesh/acadmix_subtheme/templates/responsive-image.html.twig b/themes/kalpesh/acadmix_subtheme/templates/responsive-image.html.twig new file mode 100644 index 0000000..99fca6b --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/responsive-image.html.twig @@ -0,0 +1,36 @@ +{# +/** + * @file + * Default theme implementation of a responsive image. + * + * Available variables: + * - sources: The attributes of the <source> tags for this <picture> tag. + * - img_element: The controlling image, with the fallback image in srcset. + * - output_image_tag: Whether or not to output an <img> tag instead of a + * <picture> tag. + * + * @see template_preprocess() + * @see template_preprocess_responsive_image() + * + * @ingroup themeable + */ +#} +{% if output_image_tag %} + {{ img_element }} +{% else %} + <picture> + {% if sources %} + {# + Internet Explorer 9 doesn't recognise source elements that are wrapped in + picture tags. See http://scottjehl.github.io/picturefill/#ie9 + #} + <!--[if IE 9]><video style="display: none;"><![endif]--> + {% for source_attributes in sources %} + <source{{ source_attributes }}/> + {% endfor %} + <!--[if IE 9]></video><![endif]--> + {% endif %} + {# The controlling image, with the fallback image in srcset. #} + {{ img_element }} + </picture> +{% endif %} diff --git a/themes/kalpesh/acadmix_subtheme/templates/views-view--photo_gallery--page_1.html.twig b/themes/kalpesh/acadmix_subtheme/templates/views-view--photo_gallery--page_1.html.twig new file mode 100755 index 0000000..4caf52c --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/views-view--photo_gallery--page_1.html.twig @@ -0,0 +1,98 @@ +{# +/** + * @file + * Default theme implementation for main view template. + * + * Available variables: + * - attributes: Remaining HTML attributes for the element. + * - css_name: A css-safe version of the view name. + * - css_class: The user-specified classes names, if any. + * - header: The optional header. + * - footer: The optional footer. + * - rows: The results of the view query, if any. + * - empty: The content to display if there are no rows. + * - pager: The optional pager next/prev links to display. + * - exposed: Exposed widget form/info to display. + * - feed_icons: Optional feed icons to display. + * - more: An optional link to the next page of results. + * - title: Title of the view, only used when displaying in the admin preview. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the view title. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the view title. + * - attachment_before: An optional attachment view to be displayed before the + * view content. + * - attachment_after: An optional attachment view to be displayed after the + * view content. + * - dom_id: Unique id for every view being printed to give unique class for + * JavaScript. + * + * @ingroup templates + * + * @see template_preprocess_views_view() + */ +#} +{% + set classes = [ + 'view', + 'view-' ~ id|clean_class, + 'view-id-' ~ id, + 'view-display-id-' ~ display_id, + dom_id ? 'js-view-dom-id-' ~ dom_id, + ] +%} +<div{{ attributes.addClass(classes) }}> + + {{ title_prefix }} + {% if title %} + {{ title }} + {% endif %} + {{ title_suffix }} + {% if header %} + <div class="view-header"> + {{ header }} + </div> + {% endif %} + {% if exposed %} + <div class="view-filters form-group"> + {{ exposed }} + </div> + {% endif %} + {% if attachment_before %} + <div class="attachment attachment-before"> + {{ attachment_before }} + </div> + {% endif %} + + {% if rows %} + <div class="view-content"> + {{ rows }} + </div> + {% elseif empty %} + <div class="view-empty"> + {{ empty }} + </div> + {% endif %} + + {% if pager %} + {{ pager }} + {% endif %} + {% if attachment_after %} + <div class="attachment attachment-after"> + {{ attachment_after }} + </div> + {% endif %} + {% if more %} + {{ more }} + {% endif %} + {% if footer %} + <div class="view-footer"> + {{ footer }} + </div> + {% endif %} + {% if feed_icons %} + <div class="feed-icons"> + {{ feed_icons }} + </div> + {% endif %} +</div> diff --git a/themes/kalpesh/acadmix_subtheme/templates/views-view-field.html.twig b/themes/kalpesh/acadmix_subtheme/templates/views-view-field.html.twig new file mode 100755 index 0000000..a70a55f --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/views-view-field.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation for a single field in a view. + * + * Available variables: + * - view: The view that the field belongs to. + * - field: The field handler that can process the input. + * - row: The raw result of the database query that generated this field. + * - output: The processed output that will normally be used. + * + * When fetching output from the row this construct should be used: + * data = row[field.field_alias] + * + * The above will guarantee that you'll always get the correct data, regardless + * of any changes in the aliasing that might happen if the view is modified. + * + * @see template_preprocess_views_view_field() + * + * @ingroup themeable + */ +#} + +{{ output -}} diff --git a/themes/kalpesh/acadmix_subtheme/templates/views-view-fields--photo_gallery--page_1.html.twig b/themes/kalpesh/acadmix_subtheme/templates/views-view-fields--photo_gallery--page_1.html.twig new file mode 100755 index 0000000..64bd791 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/views-view-fields--photo_gallery--page_1.html.twig @@ -0,0 +1,54 @@ +{# +/** + * @file + * Default view template to display all the fields in a row. + * + * Available variables: + * - view: The view in use. + * - fields: A list of fields, each one contains: + * - content: The output of the field. + * - raw: The raw data for the field, if it exists. This is NOT output safe. + * - class: The safe class ID to use. + * - handler: The Views field handler controlling this field. + * - inline: Whether or not the field should be inline. + * - wrapper_element: An HTML element for a wrapper. + * - wrapper_attributes: List of attributes for wrapper element. + * - separator: An optional separator that may appear before a field. + * - label: The field's label text. + * - label_element: An HTML element for a label wrapper. + * - label_attributes: List of attributes for label wrapper. + * - label_suffix: Colon after the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - has_label_colon: A boolean indicating whether to display a colon after + * the label. + * - element_type: An HTML element for the field content. + * - element_attributes: List of attributes for HTML element for field content. + * - row: The raw result from the query, with all data it fetched. + * + * @see template_preprocess_views_view_fields() + * + * @ingroup themeable + */ +#} +{% for field in fields -%} + {{ field.separator }} + {%- if field.wrapper_element -%} + <{{ field.wrapper_element }}{{ field.wrapper_attributes }}> + {%- endif %} + {%- if field.label -%} + {%- if field.label_element -%} + <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }}</{{ field.label_element }}> + {%- else -%} + {{ field.label }}{{ field.label_suffix }} + {%- endif %} + {%- endif %} + {%- if field.element_type -%} + <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }}</{{ field.element_type }}> + {%- else -%} + {{ field.content }} + {%- endif %} + {%- if field.wrapper_element -%} + </{{ field.wrapper_element }}> + {%- endif %} +{%- endfor %} |