diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-09 19:27:58 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-09 19:27:58 +0300 |
commit | af1044821c155221a316e0fe0ee9bdc5d4c5ac1d (patch) | |
tree | 3ed00ec89dcd13cf9e98a40e64508571eb4a9ee0 /skin/markdown.skin.php | |
parent | 198ecc0c847f42827db44e06252384cb48457ef8 (diff) | |
parent | 9dd2345ecfff4f7d65ec106a8aee8d866c972585 (diff) |
Diffstat (limited to 'skin/markdown.skin.php')
-rw-r--r-- | skin/markdown.skin.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/skin/markdown.skin.php b/skin/markdown.skin.php deleted file mode 100644 index 58801f5..0000000 --- a/skin/markdown.skin.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -namespace skin\markdown; - -function fileupload($ctx, $name, $direct_url, $note, $size) { -return <<<HTML -<div class="md-file-attach"> - <span class="md-file-attach-icon"></span><a href="{$direct_url}">{$name}</a> - {$ctx->if_true($note, '<span class="md-file-attach-note">'.$note.'</span>')} - <span class="md-file-attach-size">{$size}</span> -</div> -HTML; -} - -function image($ctx, - // options - $align, $nolabel, $w, $padding_top, $may_have_alpha, - // image data - $direct_url, $url, $note) { -return <<<HTML -<div class="md-image align-{$align}"> - <div class="md-image-wrap" data-alpha="{$ctx->if_then_else($may_have_alpha, '1', '0')}"> - <a href="{$direct_url}"> - <div style="background: url('{$url}') no-repeat; background-size: contain; width: {$w}px; padding-top: {$padding_top}%;"></div> - </a> - {$ctx->if_true( - $note != '' && !$nolabel, - '<div class="md-image-note">'.$note.'</div>' - )} - </div> -</div> -HTML; -} - -function video($ctx, $url, $w, $h) { -return <<<HTML -<div class="md-video"> - <div class="md-video-wrap"> - <video src="{$url}" controls{$ctx->if_true($w, ' width="'.$w.'"')}{$ctx->if_true($h, ' height="'.$h.'"')}></video> - </div> -</div> -HTML; -}
\ No newline at end of file |