Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HirotakaDango authored Jul 5, 2024
1 parent 963ad71 commit 6f733a2
Show file tree
Hide file tree
Showing 23 changed files with 1,042 additions and 30 deletions.
3 changes: 2 additions & 1 deletion image_card_myworks.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@
<li><button type="submit" class="dropdown-item fw-bold" name="favorite"><i class="bi bi-heart"></i> <small>favorite</small></button></li>
</form>
<?php } ?>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $image['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $image['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $image['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_myworks.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_asc.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageA['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageA['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageA['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_asc.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_desc.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageD['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageD['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageD['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_desc.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_least.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageL['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageL['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageL['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_least.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_like.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageL['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageL['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageL['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_like.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_order_asc.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageA['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageA['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageA['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_order_asc.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_order_desc.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageD['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageD['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageD['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_order_desc.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_pop.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageP['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageP['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageP['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_pop.php'); ?>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion profile/image_card_pro_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@
</button>
</li>
</form>
<li><button class="dropdown-item fw-bold" onclick="shareImage(<?php echo $imageV['id']; ?>)"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#shareImage<?php echo $imageV['id']; ?>"><i class="bi bi-share-fill"></i> <small>share</small></button></li>
<li><button class="dropdown-item fw-bold" data-bs-toggle="modal" data-bs-target="#infoImage_<?php echo $imageV['id']; ?>"><i class="bi bi-info-circle-fill"></i> <small>info</small></button></li>
</ul>
<?php include('share_profile_view.php'); ?>
</div>
</div>
</div>
Expand Down
36 changes: 18 additions & 18 deletions profile/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,69 @@
<p class="text-start fw-bold">share to:</p>
<div class="btn-group w-100 mb-2" role="group" aria-label="Share Buttons">
<!-- Twitter -->
<a class="btn rounded-start-4" href="https://twitter.com/intent/tweet?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn rounded-start-4" href="https://twitter.com/intent/tweet?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-twitter"></i>
</a>

<!-- Line -->
<a class="btn" href="https://social-plugins.line.me/lineit/share?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://social-plugins.line.me/lineit/share?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-line"></i>
</a>

<!-- Email -->
<a class="btn" href="mailto:?body=<?php echo $url; ?>">
<a class="btn" href="mailto:?body=<?php echo urlencode($url); ?>">
<i class="bi bi-envelope-fill"></i>
</a>

<!-- Reddit -->
<a class="btn" href="https://www.reddit.com/submit?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://www.reddit.com/submit?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-reddit"></i>
</a>

<!-- Instagram -->
<a class="btn" href="https://www.instagram.com/?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://www.instagram.com/?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-instagram"></i>
</a>

<!-- Facebook -->
<a class="btn rounded-end-4" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn rounded-end-4" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-facebook"></i>
</a>
</div>
<div class="btn-group w-100 mb-2" role="group" aria-label="Share Buttons">
<!-- WhatsApp -->
<a class="btn rounded-start-4" href="https://wa.me/?text=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn rounded-start-4" href="https://wa.me/?text=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-whatsapp"></i>
</a>

<!-- Pinterest -->
<a class="btn" href="https://pinterest.com/pin/create/button/?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://pinterest.com/pin/create/button/?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-pinterest"></i>
</a>

<!-- LinkedIn -->
<a class="btn" href="https://www.linkedin.com/shareArticle?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://www.linkedin.com/shareArticle?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-linkedin"></i>
</a>

<!-- Messenger -->
<a class="btn" href="https://www.facebook.com/dialog/send?link=<?php echo $url; ?>&app_id=YOUR_FACEBOOK_APP_ID" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://www.facebook.com/dialog/send?link=<?php echo urlencode($url); ?>&app_id=YOUR_FACEBOOK_APP_ID" target="_blank" rel="noopener noreferrer">
<i class="bi bi-messenger"></i>
</a>

<!-- Telegram -->
<a class="btn" href="https://telegram.me/share/url?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn" href="https://telegram.me/share/url?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-telegram"></i>
</a>

<!-- Snapchat -->
<a class="btn rounded-end-4" href="https://www.snapchat.com/share?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<a class="btn rounded-end-4" href="https://www.snapchat.com/share?url=<?php echo urlencode($url); ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-snapchat"></i>
</a>
</div>
<div class="input-group">
<input type="text" id="urlInput1" value="<?php echo $url; ?>" class="form-control border-2 fw-bold" readonly>
<button class="btn btn-secondary opacity-50 fw-bold" onclick="copyToClipboard1()">
<input type="text" id="urlInputUser" value="<?php echo urlencode($url); ?>" class="form-control border-2 fw-bold" readonly>
<button class="btn btn-secondary opacity-50 fw-bold" onclick="copyToClipboardUser()">
<i class="bi bi-clipboard-fill"></i>
</button>
</div>
Expand All @@ -81,10 +81,10 @@
</div>
</div>
<script>
function copyToClipboard1() {
var urlInput1 = document.getElementById('urlInput1');
urlInput1.select();
urlInput1.setSelectionRange(0, 99999); // For mobile devices
function copyToClipboardUser() {
var urlInputUser = document.getElementById('urlInputUser');
urlInputUser.select();
urlInputUser.setSelectionRange(0, 99999); // For mobile devices

document.execCommand('copy');
}
Expand Down
91 changes: 91 additions & 0 deletions profile/share_profile_asc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?php
$domain = $_SERVER['HTTP_HOST'];
$imageId = $imageA['id'];
$url = "http://$domain/image.php?artworkid=$imageId";
?>
<div class="modal fade" id="shareImage<?php echo $imageId; ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content bg-transparent border-0 rounded-0">
<div class="card rounded-4 p-4">
<p class="text-start fw-bold">share to:</p>
<div class="btn-group w-100 mb-2" role="group" aria-label="Share Buttons">
<!-- Twitter -->
<a class="btn rounded-start-4" href="https://twitter.com/intent/tweet?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-twitter"></i>
</a>

<!-- Line -->
<a class="btn" href="https://social-plugins.line.me/lineit/share?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-line"></i>
</a>

<!-- Email -->
<a class="btn" href="mailto:?body=<?php echo $url; ?>">
<i class="bi bi-envelope-fill"></i>
</a>

<!-- Reddit -->
<a class="btn" href="https://www.reddit.com/submit?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-reddit"></i>
</a>

<!-- Instagram -->
<a class="btn" href="https://www.instagram.com/?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-instagram"></i>
</a>

<!-- Facebook -->
<a class="btn rounded-end-4" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-facebook"></i>
</a>
</div>
<div class="btn-group w-100 mb-2" role="group" aria-label="Share Buttons">
<!-- WhatsApp -->
<a class="btn rounded-start-4" href="https://wa.me/?text=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-whatsapp"></i>
</a>

<!-- Pinterest -->
<a class="btn" href="https://pinterest.com/pin/create/button/?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-pinterest"></i>
</a>

<!-- LinkedIn -->
<a class="btn" href="https://www.linkedin.com/shareArticle?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-linkedin"></i>
</a>

<!-- Messenger -->
<a class="btn" href="https://www.facebook.com/dialog/send?link=<?php echo $url; ?>&app_id=YOUR_FACEBOOK_APP_ID" target="_blank" rel="noopener noreferrer">
<i class="bi bi-messenger"></i>
</a>

<!-- Telegram -->
<a class="btn" href="https://telegram.me/share/url?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-telegram"></i>
</a>

<!-- Snapchat -->
<a class="btn rounded-end-4" href="https://www.snapchat.com/share?url=<?php echo $url; ?>" target="_blank" rel="noopener noreferrer">
<i class="bi bi-snapchat"></i>
</a>
</div>
<div class="input-group">
<input type="text" id="urlInput1" value="<?php echo $url; ?>" class="form-control border-2 fw-bold" readonly>
<button class="btn btn-secondary opacity-50 fw-bold" onclick="copyToClipboard1()">
<i class="bi bi-clipboard-fill"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
function copyToClipboard1() {
var urlInput1 = document.getElementById('urlInput1');
urlInput1.select();
urlInput1.setSelectionRange(0, 99999); // For mobile devices

document.execCommand('copy');
}
</script>
Loading

0 comments on commit 6f733a2

Please sign in to comment.