-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from tomatophp/develop
add sponsering feature
- Loading branch information
Showing
11 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
14 changes: 14 additions & 0 deletions
14
Modules/CircleXO/resources/views/profile/edit/sponsoring.blade.php
This file contains 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,14 @@ | ||
<x-splade-modal> | ||
<x-slot:title> | ||
{{ __('Sponsoring Link') }} | ||
</x-slot> | ||
<x-splade-form :default="[ | ||
'sponsoring_link' => auth('accounts')->user()->meta('sponsoring_link'), | ||
'sponsoring_message' => auth('accounts')->user()->meta('sponsoring_message'), | ||
]" class="flex flex-col gap-4" method="POST" action="{{route('profile.meta.update')}}"> | ||
<x-splade-input name="sponsoring_link" :label="__('Sponsoring Link')" /> | ||
<x-tomato-markdown-editor name="sponsoring_message" :label="__('Sponsoring Message')" /> | ||
|
||
<x-splade-submit spinner :label="__('Save')" class="bg-main-600 border-main-400 text-zinc-900" /> | ||
</x-splade-form> | ||
</x-splade-modal> |
This file contains 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,38 @@ | ||
@php | ||
SEO::openGraphType('WebPage'); | ||
SEO::openGraphSiteName('Sponsoring '. $account->username .' | '. setting('site_name')); | ||
SEO::openGraphTitle('Sponsoring '. $account->username .' | '. setting('site_name')); | ||
SEO::openGraphUrl(url()->current()); | ||
SEO::openGraphImage($account->avatar ?? setting('site_profile')); | ||
SEO::metaByProperty('og:description',setting('site_description')); | ||
SEO::twitterCard('summary_large_image'); | ||
SEO::twitterTitle('Sponsoring '. $account->username .' | '. setting('site_name')); | ||
SEO::twitterDescription(setting('site_description')); | ||
SEO::twitterImage($account->avatar ?? setting('site_profile')); | ||
SEO::canonical(url()->current()); | ||
@endphp | ||
@seoTitle('Sponsoring '. $account->username .' | '. setting('site_name')) | ||
@seoDescription(setting('site_description')) | ||
@seoKeywords(setting('site_keywords')) | ||
|
||
<x-circle-xo-public-profile-layout :account="$account"> | ||
<div class="bg-zinc-800 border border-zinc-700 mx-16 my-4 rounded-lg shadow-sm"> | ||
<div class="flex flex-col gap-4"> | ||
<div class="mx-4"> | ||
<x-tomato-markdown-viewer style="background-color: rgb(39 39 42 / var(--tw-bg-opacity)) !important;" :content="$account->meta('sponsoring_message')" /> | ||
</div> | ||
<a class="mx-8 mb-6 bg-danger-600 hover:bg-danger-400 text-white border border-zinc-700 rounded-md shadow-md font-bold text-sm px-4 py-2" href="{{$account->meta('sponsoring_link')}}" target="_blank" > | ||
<div class="flex justify-center gap-2"> | ||
<div class="flex flex-col justify-center items-center"> | ||
<i class="bx bxs-heart"></i> | ||
</div> | ||
<div> | ||
{{ __('Buy me a Coffee') }} | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</x-circle-xo-public-profile-layout> |
This file contains 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
2 changes: 1 addition & 1 deletion
2
resources/views/vendor/tomato-admin/components/markdown-editor.blade.php
This file contains 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
2 changes: 1 addition & 1 deletion
2
resources/views/vendor/tomato-admin/components/markdown-viewer.blade.php
This file contains 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,3 +1,3 @@ | ||
<div class="font-main"> | ||
<MdPreview editorId="preview-only" modelValue="{{$content}}" language="en-US" class="font-main" /> | ||
<MdPreview editorId="preview-only" modelValue="{{$content}}" language="en-US" {{ $attributes }} previewTheme="github" theme="dark" /> | ||
</div> |