├── resources
├── views
│ ├── .gitkeep
│ ├── blade
│ │ ├── layouts
│ │ │ └── index.html
│ │ ├── _variables
│ │ │ ├── gv_sep.html
│ │ │ ├── gv_comment_ignore.html
│ │ │ ├── gv_comment_none.html
│ │ │ ├── gv_entries_none.html
│ │ │ ├── gv_comment_disabled.html
│ │ │ └── gv_comment_expired.html
│ │ ├── common
│ │ │ ├── index.html
│ │ │ ├── _layout.html
│ │ │ ├── _footer.html
│ │ │ └── _breadcrumb.blade.php
│ │ ├── _partials
│ │ │ ├── snp_main_nav.blade.php
│ │ │ ├── snp_blog_list.blade.php
│ │ │ └── snp_blog_list_paginate.blade.php
│ │ ├── home
│ │ │ └── 404.blade.php
│ │ └── blog
│ │ │ ├── no-results.blade.php
│ │ │ └── search.blade.php
│ └── twig
│ │ ├── layouts
│ │ └── index.html
│ │ ├── _variables
│ │ ├── gv_sep.html
│ │ ├── gv_comment_ignore.html
│ │ ├── gv_comment_none.html
│ │ ├── gv_entries_none.html
│ │ ├── gv_comment_disabled.html
│ │ └── gv_comment_expired.html
│ │ ├── common
│ │ ├── index.html
│ │ ├── _layout.html
│ │ ├── _footer.html
│ │ └── _breadcrumb.twig
│ │ ├── _partials
│ │ ├── snp_blog_list.twig
│ │ ├── snp_main_nav.twig
│ │ └── snp_blog_list_paginate.twig
│ │ ├── home
│ │ └── 404.twig
│ │ └── blog
│ │ ├── no-results.html
│ │ └── search.html
└── stubs
│ ├── fieldtypes
│ ├── rte
│ │ ├── field.blade.php
│ │ ├── field.twig.php
│ │ ├── field.feed.twig.php
│ │ ├── field.feed.blade.php
│ │ ├── field.html.blade.php
│ │ └── field.html.twig.php
│ ├── textarea
│ │ ├── field.html.blade.php
│ │ └── field.html.twig.php
│ ├── select.blade.php
│ ├── select.twig.php
│ ├── date
│ │ ├── field.twig.php
│ │ ├── field.blade.php
│ │ ├── field.html.twig.php
│ │ └── field.html.blade.php
│ ├── toggle
│ │ ├── field.blade.php
│ │ ├── field.twig.php
│ │ ├── field.html.blade.php
│ │ └── field.html.twig.php
│ ├── duration
│ │ ├── field.twig.php
│ │ ├── field.blade.php
│ │ ├── field.html.twig.php
│ │ └── field.html.blade.php
│ ├── multiselect.twig.php
│ ├── multiselect.blade.php
│ ├── member
│ │ ├── field.twig.php
│ │ ├── field.blade.php
│ │ ├── field.html.blade.php
│ │ └── field.html.twig.php
│ ├── relationship
│ │ ├── field.twig.php
│ │ ├── field.blade.php
│ │ ├── field.html.blade.php
│ │ └── field.html.twig.php
│ ├── email_address
│ │ ├── field.html.twig.php
│ │ └── field.html.blade.php
│ ├── select.html.twig.php
│ ├── multiselect.html.twig.php
│ ├── select.html.blade.php
│ ├── multiselect.html.blade.php
│ ├── slider
│ │ ├── slider.twig.php
│ │ ├── slider.blade.php
│ │ ├── range_slider.twig.php
│ │ └── range_slider.blade.php
│ ├── colorpicker
│ │ ├── field.blade.php
│ │ └── field.twig.php
│ ├── pro_variables
│ │ ├── field.twig.php
│ │ ├── field.html.twig.php
│ │ ├── field.blade.php
│ │ └── field.html.blade.php
│ ├── field.twig.php
│ ├── field.blade.php
│ ├── field.html.twig.php
│ ├── field.html.blade.php
│ ├── grid
│ │ ├── field.twig.php
│ │ └── field.blade.php
│ └── file
│ │ ├── field.twig.php
│ │ ├── field.blade.php
│ │ ├── field.html.twig.php
│ │ ├── field.html.blade.php
│ │ ├── field.feed.twig.php
│ │ └── field.feed.blade.php
│ └── templates
│ ├── member
│ └── management
│ │ ├── email-password-reset.html.blade.php
│ │ ├── email-password-reset.html.twig.php
│ │ ├── email-forgot-username.html.blade.php
│ │ ├── email-forgot-username.html.twig.php
│ │ ├── role-groups.html.blade.php
│ │ ├── roles.html.blade.php
│ │ ├── role-groups.html.twig.php
│ │ ├── roles.html.twig.php
│ │ ├── logout.html.blade.php
│ │ ├── logout.html.twig.php
│ │ ├── edit-avatar.html.blade.php
│ │ ├── edit-avatar.html.twig.php
│ │ ├── search.html.blade.php
│ │ └── search.html.twig.php
│ └── channel
│ ├── entries
│ ├── sitemap.xml.twig.php
│ ├── sitemap.xml.blade.php
│ ├── feed.feed.twig.php
│ ├── feed.feed.blade.php
│ ├── index.html.twig.php
│ └── index.html.blade.php
│ ├── fields
│ ├── index.twig.php
│ └── index.blade.php
│ ├── fieldGroups
│ ├── index.twig.php
│ └── index.blade.php
│ └── channels
│ ├── index.twig.php
│ └── index.blade.php
├── src
├── .DS_Store
├── Contracts
│ ├── Field.php
│ ├── ListsGraphType.php
│ ├── CompositeFieldtype.php
│ ├── ConvertsToGraphQL.php
│ └── GeneratesGraphType.php
├── Fieldtypes
│ ├── FileGrid.php
│ ├── Select.php
│ ├── Checkboxes.php
│ ├── MultiSelect.php
│ ├── SelectableButtons.php
│ ├── Presenters
│ │ ├── Presenter.php
│ │ └── MemberPresenter.php
│ ├── Radio.php
│ ├── Duration.php
│ ├── Number.php
│ ├── Modifiers
│ │ └── Generic.php
│ ├── Rte.php
│ ├── Member.php
│ └── Relationship.php
├── Models
│ ├── Content
│ │ ├── Content.php
│ │ ├── Structure.php
│ │ ├── Display
│ │ │ └── LayoutInterface.php
│ │ ├── StructureModel.php
│ │ ├── FieldGroup.php
│ │ ├── FieldData.php
│ │ └── VariableColumnGateway.php
│ ├── Addon
│ │ ├── Grid
│ │ │ └── Column.php
│ │ ├── Plugin.php
│ │ ├── Fieldtype.php
│ │ ├── Action.php
│ │ ├── Extension.php
│ │ └── Module.php
│ ├── Template
│ │ ├── Snippet.php
│ │ ├── GlobalVariable.php
│ │ ├── TemplateRoute.php
│ │ ├── SpecialtyTemplate.php
│ │ └── TemplateGroup.php
│ ├── Security
│ │ ├── SecurityHash.php
│ │ ├── ResetPassword.php
│ │ ├── Captcha.php
│ │ ├── Throttle.php
│ │ └── PasswordLockout.php
│ ├── Channel
│ │ ├── ChannelFormSettings.php
│ │ ├── Scopes
│ │ │ ├── HideFuture.php
│ │ │ └── HideExpired.php
│ │ ├── ChannelEntryAutosave.php
│ │ ├── ChannelEntryVersion.php
│ │ ├── ChannelFieldGroup.php
│ │ └── ChannelLayout.php
│ ├── Category
│ │ ├── CategoryGroup.php
│ │ └── CategoryField.php
│ ├── Role
│ │ ├── MemberRole.php
│ │ ├── RoleGroup.php
│ │ ├── RoleSetting.php
│ │ └── Role.php
│ ├── Session
│ │ ├── Session.php
│ │ └── RememberMe.php
│ ├── Site
│ │ ├── Stats.php
│ │ └── Column
│ │ │ ├── TemplatePreferences.php
│ │ │ └── ChannelPreferences.php
│ ├── Search
│ │ └── SearchLog.php
│ ├── Comment
│ │ ├── CommentSubscription.php
│ │ └── Comment.php
│ ├── Permission
│ │ └── Permission.php
│ ├── EntryManager
│ │ └── View.php
│ ├── Revision
│ │ └── RevisionTracker.php
│ ├── Message
│ │ ├── Folder.php
│ │ ├── ListedMember.php
│ │ ├── Attachment.php
│ │ ├── Copy.php
│ │ └── Message.php
│ ├── Consent
│ │ ├── ConsentAuditLog.php
│ │ ├── Consent.php
│ │ ├── ConsentRequest.php
│ │ └── ConsentRequestVersion.php
│ ├── Member
│ │ ├── Online.php
│ │ └── MemberField.php
│ ├── File
│ │ ├── FileDimension.php
│ │ ├── Watermark.php
│ │ ├── File.php
│ │ └── UploadDestination.php
│ ├── Config
│ │ └── Config.php
│ ├── Cookie
│ │ └── CookieSetting.php
│ └── Status
│ │ └── Status.php
├── View
│ ├── Exceptions
│ │ └── TagNotFoundException.php
│ ├── IterableTag.php
│ ├── Tags
│ │ ├── Channel.php
│ │ ├── Member
│ │ │ ├── LoginForm.php
│ │ │ ├── LogoutForm.php
│ │ │ ├── ForgotPasswordForm.php
│ │ │ ├── ForgotUsernameForm.php
│ │ │ ├── MemberSearch.php
│ │ │ ├── EditAvatar.php
│ │ │ ├── EditProfile.php
│ │ │ ├── RegistrationForm.php
│ │ │ ├── Memberlist.php
│ │ │ └── CustomProfileData.php
│ │ └── Channel
│ │ │ └── Form.php
│ ├── AddonTag.php
│ ├── MissingTag.php
│ ├── Extensions
│ │ └── TwigVite.php
│ ├── Tag.php
│ └── TagProxy.php
├── Model.php
├── Facades
│ ├── GraphQL.php
│ └── Coilpack.php
├── Support
│ └── Arguments
│ │ ├── EmptyTerm.php
│ │ ├── Argument.php
│ │ ├── TermFactory.php
│ │ ├── SearchArgument.php
│ │ ├── NumericTerm.php
│ │ └── ListArgument.php
├── Controllers
│ ├── AdminController.php
│ ├── FallbackController.php
│ └── Cp
│ │ └── Coilpack.php
├── Traits
│ ├── InteractsWithAddon.php
│ ├── ForwardsAttributes.php
│ └── CanAccessRestrictedClass.php
├── Api
│ └── Graph
│ │ ├── Queries
│ │ ├── MembersQuery.php
│ │ ├── VariablesQuery.php
│ │ ├── MemberCurrentQuery.php
│ │ ├── CategoryQuery.php
│ │ └── ChannelEntryQuery.php
│ │ ├── Support
│ │ ├── GeneratedType.php
│ │ ├── GeneratedInputType.php
│ │ └── GeneratedUnionType.php
│ │ ├── Schema.php
│ │ ├── Middleware
│ │ └── ResolvePage.php
│ │ └── Types
│ │ ├── KeyedValue.php
│ │ ├── Status.php
│ │ ├── NavItem.php
│ │ └── Channel.php
├── NavOutput.php
├── Events
│ └── HookTriggered.php
├── Dependency
│ ├── NavigationSidebar.php
│ ├── Container.php
│ └── StubFactory.php
├── Bootstrap
│ ├── ConfigureStorageDisk.php
│ ├── SetupCacheManager.php
│ └── LoadAddonFiles.php
├── Casts
│ ├── Serialize.php
│ ├── Base64Serialized.php
│ ├── UnixTimestamp.php
│ └── BooleanString.php
├── Middleware
│ ├── EncryptCookies.php
│ ├── MemberWithRole.php
│ └── MemberWithPermission.php
├── FieldtypeOutput.php
├── Commands
│ └── GraphQLCommand.php
└── Routing
│ └── CoilpackRoutes.php
├── addon
├── addon.setup.php
└── views
│ ├── overview.php
│ └── graphql.php
├── routes
└── web.php
├── README.md
└── LICENSE.md
/resources/views/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/blade/layouts/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/twig/layouts/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_sep.html:
--------------------------------------------------------------------------------
1 | /
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_sep.html:
--------------------------------------------------------------------------------
1 | /
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/rte/field.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/rte/field.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_comment_ignore.html:
--------------------------------------------------------------------------------
1 | You are ignoring
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_comment_ignore.html:
--------------------------------------------------------------------------------
1 | You are ignoring
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/textarea/field.html.blade.php:
--------------------------------------------------------------------------------
1 | {!! =$field_name?> !!}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/textarea/field.html.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?> | raw }}
--------------------------------------------------------------------------------
/src/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ExpressionEngine/Coilpack/HEAD/src/.DS_Store
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/select.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>->label }}: {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/select.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.label }}: {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_comment_none.html:
--------------------------------------------------------------------------------
1 | There are no comments on this entry.
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_entries_none.html:
--------------------------------------------------------------------------------
1 | There are no entries in this channel.
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_comment_none.html:
--------------------------------------------------------------------------------
1 | There are no comments on this entry.
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_entries_none.html:
--------------------------------------------------------------------------------
1 | There are no entries in this channel.
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/date/field.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.parameters({format: "%F %d %Y"}) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/rte/field.feed.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.parameters({text_only: "yes"}) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/toggle/field.blade.php:
--------------------------------------------------------------------------------
1 | @if(=$field_name?> == '1')On/Yes@elseOff/No@endif
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_comment_disabled.html:
--------------------------------------------------------------------------------
1 | Commenting for this entry is disabled .
--------------------------------------------------------------------------------
/resources/views/blade/_variables/gv_comment_expired.html:
--------------------------------------------------------------------------------
1 | Commenting for this entry has expired .
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_comment_disabled.html:
--------------------------------------------------------------------------------
1 | Commenting for this entry is disabled .
--------------------------------------------------------------------------------
/resources/views/twig/_variables/gv_comment_expired.html:
--------------------------------------------------------------------------------
1 | Commenting for this entry has expired .
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/date/field.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>->parameters(['format' => "%F %d %Y"]) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/duration/field.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.parameters({format: "%h hrs, %m min"}) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/rte/field.feed.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>->parameters(['text_only' => "yes"]) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/toggle/field.twig.php:
--------------------------------------------------------------------------------
1 | {% if =$field_name?> == '1' %}On/Yes{% else %}Off/No{% endif %}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/duration/field.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>->parameters(['format' => "%h hrs, %m min"]) }}
--------------------------------------------------------------------------------
/src/Contracts/Field.php:
--------------------------------------------------------------------------------
1 | .selected %}
2 | {{ label }}: {{ value }}
3 | {% endfor %}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/toggle/field.html.blade.php:
--------------------------------------------------------------------------------
1 | @if(=$field_name?> == '1')Yes @elseNo @endif
--------------------------------------------------------------------------------
/src/Fieldtypes/Checkboxes.php:
--------------------------------------------------------------------------------
1 | ->selected as $value => $label)
2 | {{ $label }}: {{ $value }}
3 | @endforeach
--------------------------------------------------------------------------------
/resources/views/blade/common/index.html:
--------------------------------------------------------------------------------
1 | {!-- nothing to see here, so we redirect the users if they land on http://example.com/common/ --}
2 | {redirect='/'}
--------------------------------------------------------------------------------
/resources/views/twig/common/index.html:
--------------------------------------------------------------------------------
1 | {!-- nothing to see here, so we redirect the users if they land on http://example.com/common/ --}
2 | {redirect='/'}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/toggle/field.html.twig.php:
--------------------------------------------------------------------------------
1 | {% if =$field_name?> == '1' %}Yes {% else %}No {% endif %}
--------------------------------------------------------------------------------
/src/Fieldtypes/SelectableButtons.php:
--------------------------------------------------------------------------------
1 | }}">{{ =$field_name?>.parameters({format: "%h hrs, %m min"}) }}
--------------------------------------------------------------------------------
/src/Models/Content/Content.php:
--------------------------------------------------------------------------------
1 | }}">{{ =$field_name?>->parameters(['format' => "%h hrs, %m min"]) }}
--------------------------------------------------------------------------------
/src/View/Exceptions/TagNotFoundException.php:
--------------------------------------------------------------------------------
1 | .parameters({format: '%c'}) }}">{{ =$field_name?>.parameters({format: "%F %d %Y"}) }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/member/field.twig.php:
--------------------------------------------------------------------------------
1 | {% for related_member in =$field_name?> %}
2 | {{ related_member.screen_name }} - {{ related_member.username }}
3 | {% endfor %}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/relationship/field.twig.php:
--------------------------------------------------------------------------------
1 | {% for related_entry in =$field_name?> %}
2 | {{ related_entry.title }} - {{ related_entry.url_title }}
3 | {% endfor %}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/member/field.blade.php:
--------------------------------------------------------------------------------
1 | @foreach(=$field_name?> as $related_member)
2 | {{ $related_member->screen_name }} - {{ $related_member->username }}
3 | @endforeach
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/relationship/field.blade.php:
--------------------------------------------------------------------------------
1 | @foreach(=$field_name?> as $related_entry)
2 | {{ $related_entry->title }} - {{ $related_entry->url_title }}
3 | @endforeach
--------------------------------------------------------------------------------
/src/Models/Content/Structure.php:
--------------------------------------------------------------------------------
1 | ->parameters(['format' => '%c']) }}">{{ =$field_name?>->parameters(['format' => "%F %d %Y"]) }}
--------------------------------------------------------------------------------
/src/Contracts/ConvertsToGraphQL.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.mailto({title:"Send e-mail", subject:"Question", encode:false}) | raw }} / {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/select.html.twig.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>.label }} : {{ =$field_name?> }} / {{ =$field_name?>.value }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/email_address/field.html.blade.php:
--------------------------------------------------------------------------------
1 | {!! =$field_name?>->mailto(['title' => "Send e-mail", 'subject' => "Question", 'encode' => false]) !!} / {{ =$field_name?> }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/multiselect.html.twig.php:
--------------------------------------------------------------------------------
1 |
2 | {% for value, label in =$field_name?>.selected %}
3 | {{ label }} ({{ value }})
4 | {% endfor %}
5 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/select.html.blade.php:
--------------------------------------------------------------------------------
1 | {{ =$field_name?>->label }} : {{ =$field_name?> }} / {{ =$field_name?>->value }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/multiselect.html.blade.php:
--------------------------------------------------------------------------------
1 |
2 | @foreach(=$field_name?>->selected as $value => $label)
3 | {{ $label }} ({{ $value }})
4 | @endforeach
5 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/slider/slider.twig.php:
--------------------------------------------------------------------------------
1 | Between {{ =$field_name?>.min }} and {{ =$field_name?>.max }} the selected value is {{ =$field_name?>.prefix }} {{ =$field_name?> }} {{ =$field_name?>.suffix }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/slider/slider.blade.php:
--------------------------------------------------------------------------------
1 | Between {{ =$field_name?>->min }} and {{ =$field_name?>->max }} the selected value is {{ =$field_name?>->prefix }} {{ =$field_name?> }} {{ =$field_name?>->suffix }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/slider/range_slider.twig.php:
--------------------------------------------------------------------------------
1 | Selected range is {{ =$field_name?>.prefix }}{{ =$field_name?>.from }}{{ =$field_name?>.suffix }} — {{ =$field_name?>.prefix }}{{ =$field_name?>.to }}{{ =$field_name?>.suffix }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/slider/range_slider.blade.php:
--------------------------------------------------------------------------------
1 | Selected range is {{ =$field_name?>->prefix }}{{ =$field_name?>->from }}{{ =$field_name?>->suffix }} — {{ =$field_name?>->prefix }}{{ =$field_name?>->to }}{{ =$field_name?>->suffix }}
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/colorpicker/field.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | This text will contrast with the background so it's always legible->
4 |
5 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/colorpicker/field.twig.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | This text will contrast with the background so it's always legible.
4 |
5 |
--------------------------------------------------------------------------------
/src/Models/Content/Display/LayoutInterface.php:
--------------------------------------------------------------------------------
1 | ->has_excerpt == 'y')
2 |
3 | {!! =$field_name?>->excerpt !!}
4 | {!! =$field_name?>->extended !!}
5 |
6 | @else
7 | {!! =$field_name?> !!}
8 | @endif
--------------------------------------------------------------------------------
/src/Contracts/GeneratesGraphType.php:
--------------------------------------------------------------------------------
1 |
2 | @foreach(=$field_name?> as $related_member)
3 | last) class="last" @endif>username) }}">{{ $related_member->screen_name }}
4 | @endforeach
5 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/member/field.html.twig.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/pro_variables/field.twig.php:
--------------------------------------------------------------------------------
1 |
2 | {{ exp.pro_variables.single({var: "=$field_name?>"}) }}
3 |
4 | {# Not Yet Supported
5 | {{ exp.pro_variables.pair({var: "=$field_name?>"}) }} #}
6 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/relationship/field.html.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/relationship/field.html.twig.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/Fieldtypes/Presenters/Presenter.php:
--------------------------------------------------------------------------------
1 |
2 | {{ exp.pro_variables.single({var: "=$field_name?>"}) }}
3 |
4 | {# Not Yet Supported
5 | {{ exp.pro_variables.pair({var: "=$field_name?>"}) }} #}
6 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/rte/field.html.twig.php:
--------------------------------------------------------------------------------
1 | {% if =$field_name?>.has_excerpt == 'y' %}
2 |
3 | {{ =$field_name?>.excerpt | raw }}
4 | {{ =$field_name?>.extended | raw }}
5 |
6 | {% else %}
7 | {{ =$field_name?> | raw }}
8 | {% endif %}
--------------------------------------------------------------------------------
/src/Model.php:
--------------------------------------------------------------------------------
1 |
2 | {{ $exp->pro_variables->single(['var' => "=$field_name?>"]) }}
3 |
4 | {{-- Not Yet Supported
5 | {{ $exp->pro_variables->pair(['var': "=$field_name?>"]) }} --}}
6 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/pro_variables/field.html.blade.php:
--------------------------------------------------------------------------------
1 |
2 | {{ $exp->pro_variables->single(['var' => "=$field_name?>"]) }}
3 |
4 | {{-- Not Yet Supported
5 | {{ $exp->pro_variables->pair(['var' => "=$field_name?>"]) }} --}}
6 |
--------------------------------------------------------------------------------
/src/View/IterableTag.php:
--------------------------------------------------------------------------------
1 | run();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/Models/Content/FieldGroup.php:
--------------------------------------------------------------------------------
1 | belongsTo(Field::class, 'field_id');
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Support/Arguments/EmptyTerm.php:
--------------------------------------------------------------------------------
1 | whereNull($column, $boolean, $not);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/Controllers/AdminController.php:
--------------------------------------------------------------------------------
1 | admin()
11 | ->bootstrap(app())
12 | ->runGlobal();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/email-forgot-username.html.blade.php:
--------------------------------------------------------------------------------
1 | Hello {name},
2 |
3 | We received a request to remind you of your username. Here it is:
4 |
5 | Username: {username}
6 |
7 | If you did not request this information, please contact our support team immediately to ensure the security of your account.
8 |
9 | Thank you,
10 |
11 | {site_name}
12 | {site_url}
13 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/email-forgot-username.html.twig.php:
--------------------------------------------------------------------------------
1 | Hello {name},
2 |
3 | We received a request to remind you of your username. Here it is:
4 |
5 | Username: {username}
6 |
7 | If you did not request this information, please contact our support team immediately to ensure the security of your account.
8 |
9 | Thank you,
10 |
11 | {site_name}
12 | {site_url}
13 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/field.twig.php:
--------------------------------------------------------------------------------
1 |
2 | {% for row in =$field_name?> %}
3 | {# This field is built to be used as tag pair #}
4 | {# But we could not determine the possible variables to use inside tag pair #}
5 | {# Please refer to the documentation link above #}
6 | {{ row }}
7 | {% endfor %}
8 |
9 | {{ =$field_name?> }}
10 |
--------------------------------------------------------------------------------
/src/Fieldtypes/Radio.php:
--------------------------------------------------------------------------------
1 |
2 | @foreach(=$field_name?> as $row)
3 | {{-- This field is built to be used as tag pair --}}
4 | {{-- But we could not determine the possible variables to use inside tag pair --}}
5 | {{-- Please refer to the documentation link above --}}
6 | {{ $row }}
7 | @endforeach
8 |
9 | {{ =$field_name?> }}
10 |
--------------------------------------------------------------------------------
/src/Support/Arguments/Argument.php:
--------------------------------------------------------------------------------
1 | value = $value;
12 | }
13 |
14 | public function __get($key)
15 | {
16 | if (isset($this->$key)) {
17 | return $this->$key;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Models/Addon/Plugin.php:
--------------------------------------------------------------------------------
1 | \Expressionengine\Coilpack\Casts\BooleanString::class,
18 | ];
19 | }
20 |
--------------------------------------------------------------------------------
/src/View/AddonTag.php:
--------------------------------------------------------------------------------
1 | signature);
14 | $this->addon = $pieces[0];
15 | $this->method = $pieces[1];
16 | $this->instance = ee('Addon')->get($this->addon);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Models/Template/Snippet.php:
--------------------------------------------------------------------------------
1 | [
18 | 'type' => 'BelongsTo',
19 | ],
20 | ];
21 | }
22 |
--------------------------------------------------------------------------------
/resources/stubs/templates/channel/entries/sitemap.xml.twig.php:
--------------------------------------------------------------------------------
1 | =''."\n"?>
2 |
3 |
4 | {% for entry in exp.channel.entries({channel: "= $channel ?>"}) %}
5 |
6 | {{ exp.path('=$template_group?>/entry', entry.url_title) }}
7 | {{ entry.edit_date.format('Y-m-d') }}
8 |
9 | {% endfor %}
10 |
11 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/field.html.twig.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | {% for row in =$field_name?> %}
4 | {# This field is built to be used as tag pair #}
5 | {# But we could not determine the possible variables to use inside tag pair #}
6 | {# Please refer to the documentation link above #}
7 | {{ row }}
8 | {% endfor %}
9 |
10 |
11 |
12 | {{ =$field_name?> }}
13 |
14 |
--------------------------------------------------------------------------------
/resources/stubs/templates/channel/entries/sitemap.xml.blade.php:
--------------------------------------------------------------------------------
1 | =''."\n"?>
2 |
3 |
4 | @foreach($exp->channel->entries(['channel' => "= $channel ?>"]) as $entry)
5 |
6 | {{ $exp->path('=$template_group?>/entry', $entry->url_title) }}
7 | {{ $entry->edit_date->format('Y-m-d') }}
8 |
9 | @endforeach
10 |
11 |
--------------------------------------------------------------------------------
/addon/addon.setup.php:
--------------------------------------------------------------------------------
1 | 'Packet Tide, LLC',
5 | 'author_url' => 'https://packettide.com/',
6 | 'name' => 'Coilpack',
7 | 'description' => 'Supercharge ExpressionEngine with more power, features, and flexibility!',
8 | 'version' => \Composer\InstalledVersions::getPrettyVersion('expressionengine/coilpack'),
9 | 'namespace' => 'ExpressionEngine\Addons\Coilpack',
10 | 'settings_exist' => false,
11 | 'built_in' => true,
12 | ];
13 |
--------------------------------------------------------------------------------
/src/Models/Security/SecurityHash.php:
--------------------------------------------------------------------------------
1 | [
18 | 'type' => 'belongsTo',
19 | ],
20 | ];
21 | }
22 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/field.html.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | @foreach(=$field_name?> as $row)
4 | {{-- This field is built to be used as tag pair --}}
5 | {{-- But we could not determine the possible variables to use inside tag pair --}}
6 | {{-- Please refer to the documentation link above --}}
7 | {{ $row }}
8 | @endforeach
9 |
10 |
11 |
12 | {{ =$field_name?> }}
13 |
14 |
--------------------------------------------------------------------------------
/src/View/MissingTag.php:
--------------------------------------------------------------------------------
1 | tags = $tags;
10 | }
11 |
12 | public function __get($key)
13 | {
14 | return $this;
15 | }
16 |
17 | public function __call($method, $args)
18 | {
19 | return $this;
20 | }
21 |
22 | public function __isset($key)
23 | {
24 | return true;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/resources/views/twig/_partials/snp_blog_list.twig:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/Models/Addon/Fieldtype.php:
--------------------------------------------------------------------------------
1 | \Expressionengine\Coilpack\Casts\BooleanString::class,
18 | 'settings' => 'base64Serialized',
19 | ];
20 | }
21 |
--------------------------------------------------------------------------------
/resources/views/blade/_partials/snp_main_nav.blade.php:
--------------------------------------------------------------------------------
1 |
2 | Home
3 | About
4 | Blog
5 | Contact
6 |
--------------------------------------------------------------------------------
/src/Models/Channel/ChannelFormSettings.php:
--------------------------------------------------------------------------------
1 | belongsTo(Channel::class, 'channel_id');
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/resources/views/twig/_partials/snp_main_nav.twig:
--------------------------------------------------------------------------------
1 |
2 | Home
3 | About
4 | Blog
5 | Contact
6 |
--------------------------------------------------------------------------------
/src/Support/Arguments/TermFactory.php:
--------------------------------------------------------------------------------
1 | belongsTo(Member::class, 'member_id');
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Traits/InteractsWithAddon.php:
--------------------------------------------------------------------------------
1 | get($addon)->getFrontendClass();
10 |
11 | return new $addonClass;
12 | }
13 |
14 | public function getAddonModuleInstance($addon)
15 | {
16 | $module = '\\'.ltrim(\ee('Addon')->get($addon)->getModuleClass(), '\\');
17 |
18 | return new $module;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/resources/stubs/templates/channel/fields/index.twig.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {# Field: =$field['field_label']?> #}
5 | {# Fieldtype: =$field['field_type']?> #}
6 | {# Docs: =$field['docs_url']?> #}
7 |
8 |
9 |
10 | =$this->embed($field['stub'], $field);?>
11 |
12 |
13 | {# End field: =$field['field_label']?> #}
14 |
15 |
--------------------------------------------------------------------------------
/resources/views/blade/home/404.blade.php:
--------------------------------------------------------------------------------
1 | @extends ('coilpack::blade/layouts/_html-wrapper')
2 |
3 | @section('contents')
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 404 — Page Not Found
12 | Super sorry about that, but the page you are trying to access is nowhere to be found.
13 | We searched our whole desk.
14 |
15 |
16 | @endsection
--------------------------------------------------------------------------------
/resources/views/twig/_partials/snp_blog_list_paginate.twig:
--------------------------------------------------------------------------------
1 | {# pagination #}
2 | {% if entries.hasPages() %}
3 |
20 | {% endif %}
21 |
--------------------------------------------------------------------------------
/resources/views/twig/home/404.twig:
--------------------------------------------------------------------------------
1 | {% extends 'coilpack::twig/layouts/_html-wrapper' %}
2 |
3 | {% block 'contents' %}
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 404 — Page Not Found
12 | Super sorry about that, but the page you are trying to access is nowhere to be found.
13 | We searched our whole desk.
14 |
15 |
16 | {% endblock %}
--------------------------------------------------------------------------------
/src/Models/Template/GlobalVariable.php:
--------------------------------------------------------------------------------
1 | [
20 | 'type' => 'belongsTo',
21 | ],
22 | ];
23 | }
24 |
--------------------------------------------------------------------------------
/resources/views/blade/common/_layout.html:
--------------------------------------------------------------------------------
1 | {!-- template vars --}
2 | {!-- used double quotes in this one file, as og_url required it :( --}
3 | {preload_replace:t_inc="common/"}
4 |
5 | {!-- embed the header --}
6 | {embed="{t_inc}_header"
7 | title="{layout:title}"
8 | desc="{layout:desc}"
9 | {if layout:ogtitle}
10 | ogtitle="{layout:ogtitle}"
11 | og_url="{layout:og_url}"
12 | og_description="{layout:og_description}"
13 | {/if}
14 | }
15 |
16 | {!-- cALL the content --}
17 | {layout:contents}
18 |
19 | {!-- embed the footer --}
20 | {embed="{t_inc}_footer"}
--------------------------------------------------------------------------------
/resources/views/twig/common/_layout.html:
--------------------------------------------------------------------------------
1 | {!-- template vars --}
2 | {!-- used double quotes in this one file, as og_url required it :( --}
3 | {preload_replace:t_inc="common/"}
4 |
5 | {!-- embed the header --}
6 | {embed="{t_inc}_header"
7 | title="{layout:title}"
8 | desc="{layout:desc}"
9 | {if layout:ogtitle}
10 | ogtitle="{layout:ogtitle}"
11 | og_url="{layout:og_url}"
12 | og_description="{layout:og_description}"
13 | {/if}
14 | }
15 |
16 | {!-- cALL the content --}
17 | {layout:contents}
18 |
19 | {!-- embed the footer --}
20 | {embed="{t_inc}_footer"}
--------------------------------------------------------------------------------
/resources/stubs/templates/channel/fields/index.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{-- Field: =$field['field_label']?> --}}
5 | {{-- Fieldtype: =$field['field_type']?> --}}
6 | {{-- Docs: =$field['docs_url']?> --}}
7 |
8 | {$field['field_name']}"; ?>
9 |
10 | =$this->embed($field['stub'], $field);?>
11 |
12 |
13 | {{-- End field: =$field['field_label']?> --}}
14 |
15 |
--------------------------------------------------------------------------------
/src/Api/Graph/Queries/MembersQuery.php:
--------------------------------------------------------------------------------
1 | 'members',
13 | ];
14 |
15 | public function type(): Type
16 | {
17 | return GraphQL::type('Member');
18 | }
19 |
20 | public function args(): array
21 | {
22 | return [];
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Models/Security/Captcha.php:
--------------------------------------------------------------------------------
1 | 'ip_address',
18 | ];
19 |
20 | protected $captcha_id;
21 |
22 | protected $date;
23 |
24 | protected $ip_address;
25 |
26 | protected $word;
27 | }
28 |
--------------------------------------------------------------------------------
/src/Models/Channel/Scopes/HideFuture.php:
--------------------------------------------------------------------------------
1 | where('entry_date', '<=', now()->timestamp);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/role-groups.html.blade.php:
--------------------------------------------------------------------------------
1 | @extends('ee::=$template_group?>._layout')
2 | @section('title', 'Role Groups')
3 |
4 | @section('contents')
5 |
6 | View Template
7 |
8 |
9 |
Your member role groups:
10 |
11 | @foreach($exp->member->role_groups() as $group)
12 | {{ $group->role_group_name }} ({{ $group->role_group_id }})
13 | @endforeach
14 |
15 |
16 |
17 | @endsection
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/roles.html.blade.php:
--------------------------------------------------------------------------------
1 | @extends('ee::=$template_group?>._layout')
2 | @section('title', 'Roles')
3 |
4 | @section('contents')
5 |
6 | View Template
7 |
8 |
9 |
Your member roles:
10 |
11 | @foreach($exp->member->roles() as $role)
12 | {{ $role->name }} ({{ $role->role_id }}@if($role->is_primary_role), Primary Role@endif)
13 | @endforeach
14 |
15 |
16 |
17 | @endsection
--------------------------------------------------------------------------------
/resources/views/blade/_partials/snp_blog_list.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/Models/Category/CategoryGroup.php:
--------------------------------------------------------------------------------
1 | hasMany(Category::class);
19 | }
20 |
21 | public function fields()
22 | {
23 | return $this->hasMany(CategoryField::class);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/role-groups.html.twig.php:
--------------------------------------------------------------------------------
1 | {% extends 'ee::=$template_group?>/_layout' %}
2 | {% block title %}Role Groups{% endblock %}
3 |
4 | {% block contents %}
5 |
6 | View Template
7 |
8 |
9 |
Your member role groups:
10 |
11 | {% for group in exp.member.role_groups() %}
12 | {{ group.role_group_name }} ({{ group.role_group_id }})
13 | {% endfor %}
14 |
15 |
16 |
17 | {% endblock %}
--------------------------------------------------------------------------------
/resources/views/blade/_partials/snp_blog_list_paginate.blade.php:
--------------------------------------------------------------------------------
1 | {{-- pagination --}}
2 | @if($entries->hasPages())
3 |
14 | @endif
--------------------------------------------------------------------------------
/src/NavOutput.php:
--------------------------------------------------------------------------------
1 | array : $entries;
11 |
12 | foreach ($entries as $item) {
13 | $output .= $callback(
14 | $item,
15 | $this->render($callback, $item['children']),
16 | $item['depth']
17 | );
18 | }
19 |
20 | return $output;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/roles.html.twig.php:
--------------------------------------------------------------------------------
1 | {% extends 'ee::=$template_group?>/_layout' %}
2 | {% block title %}Roles{% endblock %}
3 |
4 | {% block contents %}
5 |
6 | View Template
7 |
8 |
9 |
Your member roles:
10 |
11 | {% for role in exp.member.roles() %}
12 | {{ role.name }} ({{ role.role_id }}{% if role.is_primary_role %}, Primary Role{% endif %})
13 | {% endfor %}
14 |
15 |
16 |
17 | {% endblock %}
--------------------------------------------------------------------------------
/src/Api/Graph/Support/GeneratedType.php:
--------------------------------------------------------------------------------
1 | attributes = $attributes;
12 | }
13 |
14 | public function fields(): array
15 | {
16 | if (is_callable($this->attributes['fields'])) {
17 | return $this->attributes['fields']();
18 | }
19 |
20 | return $this->attributes['fields'] ?? [];
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Fieldtypes/Duration.php:
--------------------------------------------------------------------------------
1 | 'format',
15 | 'type' => 'string',
16 | 'description' => 'Specify the format for this duration. Ex: %h hrs, %m min',
17 | ]),
18 | ];
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Api/Graph/Support/GeneratedInputType.php:
--------------------------------------------------------------------------------
1 | attributes = $attributes;
12 | }
13 |
14 | public function fields(): array
15 | {
16 | if (is_callable($this->attributes['fields'])) {
17 | return $this->attributes['fields']();
18 | }
19 |
20 | return $this->attributes['fields'] ?? [];
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Api/Graph/Support/GeneratedUnionType.php:
--------------------------------------------------------------------------------
1 | attributes = $attributes;
12 | }
13 |
14 | public function types(): array
15 | {
16 | if (is_callable($this->attributes['types'])) {
17 | return $this->attributes['types']();
18 | }
19 |
20 | return $this->attributes['types'] ?? [];
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Fieldtypes/Number.php:
--------------------------------------------------------------------------------
1 | 'decimal_places',
15 | 'type' => 'integer',
16 | 'description' => 'The number of decimal digits to show after the number',
17 | ]),
18 | ];
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/View/Extensions/TwigVite.php:
--------------------------------------------------------------------------------
1 | __invoke($resource), 'UTF-8');
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Models/Security/Throttle.php:
--------------------------------------------------------------------------------
1 | 'ip_address',
18 | ];
19 |
20 | protected $throttle_id;
21 |
22 | protected $ip_address;
23 |
24 | protected $last_activity;
25 |
26 | protected $hits;
27 |
28 | protected $locked_out;
29 | }
30 |
--------------------------------------------------------------------------------
/src/Api/Graph/Schema.php:
--------------------------------------------------------------------------------
1 | GraphQL::getQueries(),
14 | 'mutation' => [
15 |
16 | ],
17 | 'middleware' => GraphQL::getMiddleware(),
18 | 'method' => ['GET', 'POST'],
19 | 'types' => GraphQL::getTypes(),
20 | ];
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Models/Role/MemberRole.php:
--------------------------------------------------------------------------------
1 | hasMany(Member::class, 'member_id');
20 | }
21 |
22 | public function roles()
23 | {
24 | return $this->hasMany(Role::class, 'role_id');
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Models/Session/Session.php:
--------------------------------------------------------------------------------
1 | \Expressionengine\Coilpack\Casts\BooleanString::class,
19 | ];
20 |
21 | public function member()
22 | {
23 | return $this->belongsTo(Member::class, 'member_id');
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/Fieldtypes/Presenters/MemberPresenter.php:
--------------------------------------------------------------------------------
1 | buildRelationshipQuery($content, new Member);
16 |
17 | return $query->get();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Api/Graph/Middleware/ResolvePage.php:
--------------------------------------------------------------------------------
1 | ._layout')
2 | @section('title', 'Logout')
3 |
4 | @section('contents')
5 |
6 | @if($global->logged_out)
7 | {{ $exp->redirect("=$template_group?>/login") }}
8 | @endif
9 |
10 | View Template
11 |
12 | @php $form = $exp->member->logout_form(['return' => "=$template_group?>/login"]) @endphp
13 | {!! $form->open() !!}
14 |
15 | {!! $form->close() !!}
16 |
17 | @endsection
--------------------------------------------------------------------------------
/src/Models/Security/PasswordLockout.php:
--------------------------------------------------------------------------------
1 | 'ip_address',
18 | ];
19 |
20 | protected $lockout_id;
21 |
22 | protected $login_date;
23 |
24 | protected $ip_address;
25 |
26 | protected $user_agent;
27 |
28 | protected $username;
29 | }
30 |
--------------------------------------------------------------------------------
/src/Models/Site/Stats.php:
--------------------------------------------------------------------------------
1 | [
18 | 'type' => 'BelongsTo',
19 | ],
20 | 'RecentMember' => [
21 | 'type' => 'BelongsTo',
22 | 'model' => 'Member',
23 | 'from_key' => 'recent_member_id',
24 | 'weak' => true,
25 | ],
26 | ];
27 | }
28 |
--------------------------------------------------------------------------------
/resources/stubs/templates/member/management/logout.html.twig.php:
--------------------------------------------------------------------------------
1 | {% extends 'ee::=$template_group?>/_layout' %}
2 | {% block title %}Logout{% endblock %}
3 |
4 | {% block contents %}
5 |
6 | {% if global.logged_out %}
7 | {{ exp.redirect("=$template_group?>/login") }}
8 | {% endif %}
9 |
10 | View Template
11 |
12 | {% set form = exp.member.logout_form({return: "=$template_group?>/login"}) %}
13 | {{ form.open() | raw }}
14 |
15 | {{ form.close() | raw }}
16 |
17 | {% endblock %}
--------------------------------------------------------------------------------
/src/Support/Arguments/SearchArgument.php:
--------------------------------------------------------------------------------
1 | value = (string) $value;
12 | $this->parse($value);
13 | }
14 |
15 | protected function parse($value)
16 | {
17 | // Check for exact match
18 | if (strncasecmp($value, '=', 1) == 0) {
19 | $this->exact = true;
20 | $value = substr($value, 1);
21 | }
22 |
23 | return parent::parse($value);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/grid/field.twig.php:
--------------------------------------------------------------------------------
1 | {% for row in =$field_name?> %}
2 |
3 |
4 |
5 |
6 |
7 | {# Grid column: = $column['field_label'] ?> #}
8 | {# Column type: = $column['field_type'] ?> #}
9 | {# Docs: = $column['docs_url'] ?> #}
10 |
11 |
12 | = $this->embed($column['stub'], $column) ?>
13 |
14 |
15 |
16 | {# End Grid column: = $column['field_label'] ?> #}
17 |
18 |
19 |
20 | {% endfor %}
--------------------------------------------------------------------------------
/src/Facades/Coilpack.php:
--------------------------------------------------------------------------------
1 | make('router')->coilpack($options);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/View/Tags/Member/LoginForm.php:
--------------------------------------------------------------------------------
1 | setFormAttributes(parent::run()->toArray());
21 |
22 | return $this;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/resources/stubs/fieldtypes/grid/field.blade.php:
--------------------------------------------------------------------------------
1 | @foreach(=$field_name?> as $row)
2 |
3 | {$column['col_name']}"; ?>
4 |
5 |
6 |
7 | {{-- Grid column: = $column['field_label'] ?> --}}
8 | {{-- Column type: = $column['field_type'] ?> --}}
9 | {{-- Docs: = $column['docs_url'] ?> --}}
10 |
11 |
12 | = $this->embed($column['stub'], $column) ?>
13 |
14 |
15 |
16 | {{-- End Grid column: = $column['field_label'] ?> --}}
17 |
18 |
19 |
20 | @endforeach
--------------------------------------------------------------------------------
/src/Models/Channel/Scopes/HideExpired.php:
--------------------------------------------------------------------------------
1 | where(function ($query) {
19 | $query->where('expiration_date', 0)
20 | ->orWhere('expiration_date', '>', now()->timestamp);
21 | });
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Models/Content/FieldData.php:
--------------------------------------------------------------------------------
1 | _table_name = $field->getDataTable();
25 |
26 | return $this;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/View/Tags/Member/LogoutForm.php:
--------------------------------------------------------------------------------
1 | setFormAttributes(parent::run()->toArray());
21 |
22 | return $this;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Models/Template/TemplateRoute.php:
--------------------------------------------------------------------------------
1 | 'integer',
20 | 'route_required' => \Expressionengine\Coilpack\Casts\BooleanString::class,
21 | ];
22 |
23 | protected static $_relationships = [
24 | 'Template' => [
25 | 'type' => 'BelongsTo',
26 | ],
27 | ];
28 | }
29 |
--------------------------------------------------------------------------------
/src/Models/Search/SearchLog.php:
--------------------------------------------------------------------------------
1 | [
19 | 'type' => 'BelongsTo',
20 | ],
21 | 'Member' => [
22 | 'type' => 'BelongsTo',
23 | ],
24 | ];
25 |
26 | public function member()
27 | {
28 | return $this->belongsTo(Member::class, 'member_id');
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/View/Tags/Member/ForgotPasswordForm.php:
--------------------------------------------------------------------------------
1 | setFormAttributes(parent::run()->toArray());
21 |
22 | return $this;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/View/Tags/Member/ForgotUsernameForm.php:
--------------------------------------------------------------------------------
1 | setFormAttributes(parent::run()->toArray());
21 |
22 | return $this;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Models/Comment/CommentSubscription.php:
--------------------------------------------------------------------------------
1 | belongsTo(ChannelEntry::class, 'entry_id');
22 | }
23 |
24 | public function member()
25 | {
26 | return $this->belongsTo(Member::class, 'member_id');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Models/Content/VariableColumnGateway.php:
--------------------------------------------------------------------------------
1 | _field_list_cache)) {
15 | return $this->_field_list_cache;
16 | }
17 |
18 | $all = ee('Database')
19 | ->newQuery()
20 | ->list_fields($this->getTableName());
21 |
22 | $known = parent::getFieldList();
23 |
24 | return $this->_field_list_cache = array_merge($known, $all);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Models/Session/RememberMe.php:
--------------------------------------------------------------------------------
1 | [
19 | 'type' => 'BelongsTo',
20 | ],
21 | 'Site' => [
22 | 'type' => 'BelongsTo',
23 | ],
24 | ];
25 |
26 | public function member()
27 | {
28 | return $this->belongsTo(Member::class, 'member_id');
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/addon/views/overview.php:
--------------------------------------------------------------------------------
1 | extend('ee:_templates/default-nav'); ?>
2 |
3 |
4 |
5 |
Version Information
6 |
7 | true]);
9 | $table->setColumns(['name', 'version']);
10 | $table->setData(array_map(function ($name) use ($versions) {
11 | return [$name, ltrim($versions[$name], 'v')];
12 | }, array_keys($versions)));
13 | $this->embed('ee:_shared/table', $table->viewData(ee('CP/URL', 'coilpack/overview')));
14 | ?>
15 |
18 |
--------------------------------------------------------------------------------
/src/Api/Graph/Types/KeyedValue.php:
--------------------------------------------------------------------------------
1 | 'KeyedValue',
12 | 'description' => 'Key and value',
13 | ];
14 |
15 | public function fields(): array
16 | {
17 | return [
18 | 'key' => [
19 | 'type' => Type::string(),
20 | 'description' => 'Key',
21 | ],
22 | 'value' => [
23 | 'type' => Type::string(),
24 | 'description' => 'Value',
25 | ],
26 | ];
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/View/Tags/Member/MemberSearch.php:
--------------------------------------------------------------------------------
1 | setArgument('tagdata', '{!-- coilpack:fake --}');
21 | $this->setFormAttributes(parent::run()->toArray());
22 |
23 | return $this;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/Models/Role/RoleGroup.php:
--------------------------------------------------------------------------------
1 | 'integer',
19 | ];
20 |
21 | public function roles()
22 | {
23 | return $this->belongsToMany(Role::class, 'roles_role_groups', 'group_id', 'role_id');
24 | }
25 |
26 | public function members()
27 | {
28 | return $this->belongsToMany(Member::class, 'members_role_groups', 'group_id', 'member_id');
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Models/Addon/Action.php:
--------------------------------------------------------------------------------
1 | functions->fetch_action_id
17 | public static function fetch_action_id($class, $method)
18 | {
19 | $action = static::select('action_id')->where('class', $class)->where('method', $method)->first();
20 |
21 | if (! $action) {
22 | throw new \Exception("Could not find action for '$class:$method', please make sure the module is installed.");
23 | }
24 |
25 | return $action->action_id;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/addon/views/graphql.php:
--------------------------------------------------------------------------------
1 | extend('ee:_templates/default-nav'); ?>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
GraphQL
12 |
13 |
14 |
GraphQL support is currently disabled.
15 |
Learn how to enable and use GraphQL through the Coilpack Documentation .
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/Events/HookTriggered.php:
--------------------------------------------------------------------------------
1 | name = $name;
35 | $this->isActive = $isActive;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/resources/stubs/templates/channel/fieldGroups/index.twig.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | {# Field Group: =$field_group?> #}
4 |
5 |
6 |
7 |
8 |
9 | {# Field: =$field['field_label']?> #}
10 | {# Fieldtype: =$field['field_type']?> #}
11 | {# Docs: =$field['docs_url']?> #}
12 |
13 |
14 |
15 | =$this->embed($field['stub'], $field);?>
16 |
17 |
18 |
19 | {# End field: =$field['field_label']?> #}
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | {# End Field Group: =$field_group?> #}
28 |
--------------------------------------------------------------------------------
/resources/views/blade/common/_footer.html:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |