Structural changes to the results page
This commit is contained in:
39
result.php
39
result.php
@@ -6,7 +6,7 @@ $recaptcha_json = json_decode($recaptcha_data, TRUE);
|
||||
|
||||
// What happens when the CAPTCHA was completed incorrectly
|
||||
if ($recaptcha_json['success'] != 'true') {
|
||||
echo '<p class="error">' . yourls__( 'Are you a bot? Google thinks so. Go back and try again.', 'isq_translation' ) . '</p>';
|
||||
echo '<div class="content"><p class="error">' . yourls__( 'Are you a bot? Google certainly thinks so. Please go back and try again.', 'isq_translation' ) . '</p></div>';
|
||||
include('footer.php');
|
||||
die();
|
||||
}
|
||||
@@ -35,21 +35,38 @@ if ( ISQ::$general['qr'] ) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="content">
|
||||
<!-- Error reporting -->
|
||||
<?php isset( $error ) ? $error : ''; ?>
|
||||
|
||||
<!-- Default output -->
|
||||
<h2><?php yourls_e( 'Results', 'isq_translation'); ?></h2>
|
||||
<p><?php yourls_e( 'View your short URL', 'isq_translation'); ?></p>
|
||||
<h2><?php yourls_e( 'Your short URL', 'isq_translation'); ?></h2>
|
||||
|
||||
<div class="output">
|
||||
<p><label for="longurl"><?php yourls_e( 'Original URL:', 'isq_translation'); ?></label> <input type="text" name="longurl" onclick="this.select();" onload="this.select();" value="<?php echo $url; ?>" id="long-copy"> <?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="long-copy" data-clipboard-target="long-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?> </p>
|
||||
<p><label for="shorturl"><?php yourls_e( 'Short URL:', 'isq_translation'); ?></label> <input type="text" name="shorturl" onclick="this.select();" onload="this.select();" value="<?php echo $shorturl; ?>" id="short-copy"> <?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="short-copy" data-clipboard-target="short-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?> </p>
|
||||
<p><label for="stats"><?php /* translators: This is short for statistics */ yourls_e( 'Stats:', 'isq_translation'); ?></label> <input type="text" name="stats" onclick="this.select();" onload="this.select();" value="<?php echo $shorturl . '+'; ?>" id="stats-copy"> <?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="stats-copy" data-clipboard-target="stats-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?> </p>
|
||||
<p class="desktop-only"><?php yourls_e( 'Click on a link and press Ctrl+C to quickly copy it.', 'isq_translation'); ?></p>
|
||||
<div class="form-item full-width">
|
||||
<label for="longurl"><?php yourls_e( 'Original URL:', 'isq_translation'); ?></label>
|
||||
<input type="text" name="longurl" onclick="this.select();" onload="this.select();" value="<?php echo $url; ?>" id="long-copy">
|
||||
<?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="long-copy" data-clipboard-target="long-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?>
|
||||
</div>
|
||||
|
||||
<!-- QR code -->
|
||||
<?php if ( ISQ::$general['qr'] ) { echo '<h2>' . yourls__( 'QR code', 'isq-translation' ) . '</h2><p>' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '</p>' . $qrCode; } ?>
|
||||
<div class="halves">
|
||||
|
||||
<div class="form-item half-width left">
|
||||
<label for="shorturl"><?php yourls_e( 'Short URL:', 'isq_translation'); ?></label>
|
||||
<input type="text" name="shorturl" onclick="this.select();" onload="this.select();" value="<?php echo $shorturl; ?>" id="short-copy">
|
||||
<?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="short-copy" data-clipboard-target="short-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?>
|
||||
</div>
|
||||
|
||||
<div class="form-item half-width right">
|
||||
<label for="stats"><?php /* translators: This is short for statistics */ yourls_e( 'Stats:', 'isq_translation'); ?></label>
|
||||
<input type="text" name="stats" onclick="this.select();" onload="this.select();" value="<?php echo $shorturl . '+'; ?>" id="stats-copy">
|
||||
<?php if (!empty(ISQ::$general['clipboard'])) { echo '<button id="stats-copy" data-clipboard-target="stats-copy" class="desktop-only">' . yourls__( 'Copy to Clipboard', 'isq-translation' ) . '</button>'; } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="desktop-only"><?php yourls_e( 'Click on a link and press Ctrl+C to quickly copy it.', 'isq_translation'); ?></p>
|
||||
</div>
|
||||
|
||||
<!-- Social sharers -->
|
||||
<h2><?php yourls_e( 'Share', 'isq_translation'); ?></h2>
|
||||
@@ -60,4 +77,8 @@ if ( ISQ::$general['qr'] ) {
|
||||
<?php if ( ISQ::$social['linkedin'] ) { echo '<div class="social-sharer"><script src="http://platform.linkedin.com/in.js"></script><script type="IN/Share" data-url="' . $shorturl . '" data-counter="top"></script></div>'; } ?>
|
||||
<?php if ( ISQ::$social['tumblr'] ) { echo '<a href="http://www.tumblr.com/share/link?url='. urlencode($shorturl) .'&name='. urlencode($title) .'" title="Share on Tumblr"><img src="public/img/tumblr.png" alt="Share on Tumblr" width="55px" height="62px" /></a>'; } ?>
|
||||
|
||||
<!-- QR code -->
|
||||
<?php if ( ISQ::$general['qr'] ) { echo '<h2>' . yourls__( 'QR code', 'isq-translation' ) . '</h2><p>' . yourls__( 'Share your link with external devices', 'isq-translation' ) . '</p>' . $qrCode; } ?>
|
||||
</div>
|
||||
|
||||
<?php include('footer.php'); ?>
|
||||
|
||||
Reference in New Issue
Block a user