mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-05 22:39:22 +01:00
38d6d64ecf
Enabled users to use custom HTML formatting for their personal page descriptions. Due to security reasons, this option is turned off by default. This setting can be enabled in the config.
53 lines
2.1 KiB
PHP
Executable File
53 lines
2.1 KiB
PHP
Executable File
@extends('layouts.sidebar')
|
|
|
|
@section('content')
|
|
|
|
@if(env('ALLOW_USER_HTML') === true) <script src="{{ asset('resources/ckeditor/ckeditor.js') }}"></script> @endif
|
|
|
|
<h2 class="mb-4"><i class="bi bi-file-earmark-break"> Page</i></h2>
|
|
|
|
<form action="{{ route('editPage') }}" enctype="multipart/form-data" method="post">
|
|
@csrf
|
|
<div class="form-group col-lg-8">
|
|
<label>Logo</label>
|
|
<input type="file" class="form-control-file" name="image">
|
|
</div>
|
|
@foreach($pages as $page)
|
|
|
|
<div class="form-group col-lg-8">
|
|
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))
|
|
<img src="{{ asset("img/$page->littlelink_name" . ".png") }}" style="width: 75px; border-radius: 50%;">
|
|
@else
|
|
<img src="{{ asset('littlelink/images/logo.svg') }}" style="width: 75px;">
|
|
@endif
|
|
</div>
|
|
|
|
<!--<div class="form-group col-lg-8">
|
|
<label>Path name</label>
|
|
@<input type="text" class="form-control" name="pageName" value="{{ $page->littlelink_name ?? '' }}">
|
|
</div>-->
|
|
|
|
<div class="form-group col-lg-8">
|
|
<?php
|
|
$url = $_SERVER['REQUEST_URI'];
|
|
if( strpos( $url, "no_page_name" ) == true ) echo '<span style="color:#FF0000; font-size:120%;">You do not have a Page URL</span>'; ?>
|
|
<br>
|
|
<label>Page URL</label>
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<div class="input-group-text">{{ url('') }}/@</div>
|
|
</div>
|
|
<input type="text" class="form-control" name="pageName" value="{{ $page->littlelink_name ?? '' }}">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-lg-8">
|
|
<label>Page Description</label>
|
|
<textarea class="form-control @if(env('ALLOW_USER_HTML') === true) ckeditor @endif" name="pageDescription" rows="3">{{ $page->littlelink_description ?? '' }}</textarea>
|
|
</div>
|
|
@endforeach
|
|
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
|
|
</form>
|
|
|
|
@endsection
|