forked from ymcatwincities/openy
-
Notifications
You must be signed in to change notification settings - Fork 0
[YGO-164]: Layout and component fixes #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dchubar-fj
wants to merge
1
commit into
fivejars:8.x-2.x
Choose a base branch
from
dchubar-fj:YGO-164
base: 8.x-2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
themes/openy_themes/openy_carnation/templates/paragraph/paragraph--code.html.twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| {# | ||
| /** | ||
| * @file | ||
| * Default theme implementation to display a paragraph. | ||
| * | ||
| * Available variables: | ||
| * - paragraph: Full paragraph entity. | ||
| * Only method names starting with "get", "has", or "is" and a few common | ||
| * methods such as "id", "label", and "bundle" are available. For example: | ||
| * - paragraph.getCreatedTime() will return the paragraph creation timestamp. | ||
| * - paragraph.id(): The paragraph ID. | ||
| * - paragraph.bundle(): The type of the paragraph, for example, "image" or "text". | ||
| * - paragraph.getOwnerId(): The user ID of the paragraph author. | ||
| * See Drupal\paragraphs\Entity\Paragraph for a full list of public properties | ||
| * and methods for the paragraph object. | ||
| * - content: All paragraph items. Use {{ content }} to print them all, | ||
| * or print a subset such as {{ content.field_example }}. Use | ||
| * {{ content|without('field_example') }} to temporarily suppress the printing | ||
| * of a given child element. | ||
| * - attributes: HTML attributes for the containing element. | ||
| * The attributes.class element may contain one or more of the following | ||
| * classes: | ||
| * - paragraphs: The current template type (also known as a "theming hook"). | ||
| * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an | ||
| * "Image" it would result in "paragraphs--type--image". Note that the machine | ||
| * name will often be in a short form of the human readable label. | ||
| * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a | ||
| * preview would result in: "paragraphs--view-mode--preview", and | ||
| * default: "paragraphs--view-mode--default". | ||
| * - view_mode: View mode; for example, "preview" or "full". | ||
| * - logged_in: Flag for authenticated user status. Will be true when the | ||
| * current user is a logged-in member. | ||
| * - is_admin: Flag for admin user status. Will be true when the current user | ||
| * is an administrator. | ||
| * | ||
| * @see template_preprocess_paragraph() | ||
| * | ||
| * @ingroup themeable | ||
| */ | ||
| #} | ||
| {% | ||
| set classes = [ | ||
| 'paragraph', | ||
| 'paragraph--type--' ~ paragraph.bundle|clean_class, | ||
| view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, | ||
| not paragraph.isPublished() ? 'paragraph--unpublished' | ||
| ] | ||
| %} | ||
| {% block paragraph %} | ||
| <div class="container"> | ||
| <div{{ attributes.addClass(classes) }}> | ||
| {% block content %} | ||
| {{ content }} | ||
| {% endblock %} | ||
| </div> | ||
| </div> | ||
| {% endblock paragraph %} |
56 changes: 56 additions & 0 deletions
56
...openy_themes/openy_carnation/templates/paragraph/paragraph--event-posts-listing.html.twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| {# | ||
| /** | ||
| * @file | ||
| * Default theme implementation to display a paragraph. | ||
| * | ||
| * Available variables: | ||
| * - paragraph: Full paragraph entity. | ||
| * Only method names starting with "get", "has", or "is" and a few common | ||
| * methods such as "id", "label", and "bundle" are available. For example: | ||
| * - paragraph.getCreatedTime() will return the paragraph creation timestamp. | ||
| * - paragraph.id(): The paragraph ID. | ||
| * - paragraph.bundle(): The type of the paragraph, for example, "image" or "text". | ||
| * - paragraph.getOwnerId(): The user ID of the paragraph author. | ||
| * See Drupal\paragraphs\Entity\Paragraph for a full list of public properties | ||
| * and methods for the paragraph object. | ||
| * - content: All paragraph items. Use {{ content }} to print them all, | ||
| * or print a subset such as {{ content.field_example }}. Use | ||
| * {{ content|without('field_example') }} to temporarily suppress the printing | ||
| * of a given child element. | ||
| * - attributes: HTML attributes for the containing element. | ||
| * The attributes.class element may contain one or more of the following | ||
| * classes: | ||
| * - paragraphs: The current template type (also known as a "theming hook"). | ||
| * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an | ||
| * "Image" it would result in "paragraphs--type--image". Note that the machine | ||
| * name will often be in a short form of the human readable label. | ||
| * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a | ||
| * preview would result in: "paragraphs--view-mode--preview", and | ||
| * default: "paragraphs--view-mode--default". | ||
| * - view_mode: View mode; for example, "preview" or "full". | ||
| * - logged_in: Flag for authenticated user status. Will be true when the | ||
| * current user is a logged-in member. | ||
| * - is_admin: Flag for admin user status. Will be true when the current user | ||
| * is an administrator. | ||
| * | ||
| * @see template_preprocess_paragraph() | ||
| * | ||
| * @ingroup themeable | ||
| */ | ||
| #} | ||
| {% | ||
| set classes = [ | ||
| 'container', | ||
| 'paragraph', | ||
| 'paragraph--type--' ~ paragraph.bundle|clean_class, | ||
| view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, | ||
| not paragraph.isPublished() ? 'paragraph--unpublished' | ||
| ] | ||
| %} | ||
| {% block paragraph %} | ||
| <div{{ attributes.addClass(classes) }}> | ||
| {% block content %} | ||
| {{ content }} | ||
| {% endblock %} | ||
| </div> | ||
| {% endblock paragraph %} |
56 changes: 56 additions & 0 deletions
56
themes/openy_themes/openy_carnation/templates/paragraph/paragraph--faq.html.twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| {# | ||
| /** | ||
| * @file | ||
| * Default theme implementation to display a paragraph. | ||
| * | ||
| * Available variables: | ||
| * - paragraph: Full paragraph entity. | ||
| * Only method names starting with "get", "has", or "is" and a few common | ||
| * methods such as "id", "label", and "bundle" are available. For example: | ||
| * - paragraph.getCreatedTime() will return the paragraph creation timestamp. | ||
| * - paragraph.id(): The paragraph ID. | ||
| * - paragraph.bundle(): The type of the paragraph, for example, "image" or "text". | ||
| * - paragraph.getOwnerId(): The user ID of the paragraph author. | ||
| * See Drupal\paragraphs\Entity\Paragraph for a full list of public properties | ||
| * and methods for the paragraph object. | ||
| * - content: All paragraph items. Use {{ content }} to print them all, | ||
| * or print a subset such as {{ content.field_example }}. Use | ||
| * {{ content|without('field_example') }} to temporarily suppress the printing | ||
| * of a given child element. | ||
| * - attributes: HTML attributes for the containing element. | ||
| * The attributes.class element may contain one or more of the following | ||
| * classes: | ||
| * - paragraphs: The current template type (also known as a "theming hook"). | ||
| * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an | ||
| * "Image" it would result in "paragraphs--type--image". Note that the machine | ||
| * name will often be in a short form of the human readable label. | ||
| * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a | ||
| * preview would result in: "paragraphs--view-mode--preview", and | ||
| * default: "paragraphs--view-mode--default". | ||
| * - view_mode: View mode; for example, "preview" or "full". | ||
| * - logged_in: Flag for authenticated user status. Will be true when the | ||
| * current user is a logged-in member. | ||
| * - is_admin: Flag for admin user status. Will be true when the current user | ||
| * is an administrator. | ||
| * | ||
| * @see template_preprocess_paragraph() | ||
| * | ||
| * @ingroup themeable | ||
| */ | ||
| #} | ||
| {% | ||
| set classes = [ | ||
| 'paragraph', | ||
| 'paragraph--type--' ~ paragraph.bundle|clean_class, | ||
| view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, | ||
| not paragraph.isPublished() ? 'paragraph--unpublished', | ||
| 'container' | ||
| ] | ||
| %} | ||
| {% block paragraph %} | ||
| <div{{ attributes.addClass(classes) }}> | ||
| {% block content %} | ||
| {{ content }} | ||
| {% endblock %} | ||
| </div> | ||
| {% endblock paragraph %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...mes/openy_carnation/templates/paragraph/paragraph--featured-highlights--default.html.twig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,10 @@ | ||
| {% extends '@openy_prgf_featured_highlights/paragraph--featured-highlights--default.html.twig' %} | ||
| {% set classes = ['mb-4'] %} | ||
| {% set classes = [ | ||
| 'container', | ||
| 'mb-4', | ||
| 'paragraph', | ||
| 'featured-highlights', | ||
| 'paragraph--type--' ~ paragraph.bundle|clean_class, | ||
| view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, | ||
| ]|merge(classes|default([])) | ||
| %} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be a row inside a container, as in paragraph--2c.html.twig, /paragraph--3c.html.twig ?