diff options
author | Jos Poortvliet <jospoortvliet@gmail.com> | 2019-08-30 18:18:31 +0300 |
---|---|---|
committer | Jos Poortvliet <jospoortvliet@gmail.com> | 2019-08-30 18:18:31 +0300 |
commit | 11337f2d3e3adb28477bcc06fa18071a7f598f14 (patch) | |
tree | cf48e6af74d30801334365159f246903776f9a38 /page-appmarketing.php | |
parent | c8763d2fd263623897614c28a7951d574e45dbae (diff) |
add contact for for devs
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-appmarketing.php')
-rw-r--r-- | page-appmarketing.php | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/page-appmarketing.php b/page-appmarketing.php new file mode 100644 index 00000000..1768a1e5 --- /dev/null +++ b/page-appmarketing.php @@ -0,0 +1,80 @@ +<head> + <link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/appdev.css?v=2" rel="stylesheet"> + <meta itemprop="image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png"> + <meta name="twitter:image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png"> + <meta name="twitter:image:src" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png"> + <meta property="og:image" content="<?php bloginfo('template_directory'); ?>/assets/img/features/Nextcloudapps.png"> + <meta name=”Description” content="Develop for Nextcloud! Write a new app, extend Nextcloud or integrate other software."> + +<script> + require(["require.config"], function() { + require(["bootstrap"]) + }); +</script> +</head> + +<div class="background appdev-background"> + <div class="container"> + <div class="row"> + <div class="col-md-6 topheader"> + <h1><?php echo $l->t('Develop for Nextcloud');?></h1> + <h2><?php echo $l->t('<span class="avoidwrap">Write new applications</span>, <span class="avoidwrap">extend Nextcloud</span> <span class="avoidwrap">or integrate other software</span>');?></p> + </div> + </div> + </div> +</div> +<section class="content"> +<div class="container"> + <div class="row"> + <div class="col-md-8 col-md-offset-2"> + <p>If you'd like to promote your app with a post on our blog or even look for ways to monetize an app together with us, contact us now! + </div> + </div> + + <?php + + $int1 = random_int(0, 15); + $int2 = random_int(0, 50); + $salt = bin2hex(random_bytes(5)); + $hash = hash('sha256', $salt . ($int1 + $int2)); + $checksum = $salt . ':' . $hash; + + $image = imagecreate(100, 20); + $background_color = imagecolorallocate($image, 255, 255, 255); + $text_color = imagecolorallocate($image, 0, 0, 0); + imagestring($image, 5, 3, 2, $int1 . ' + ' . $int2, $text_color); + + ob_start(); + imagepng($image); + $imagestring = ob_get_contents(); + ob_end_clean(); + imagedestroy($image); + ?> + + <div class="row"> + <div class="col-md-8 col-md-offset-2"> + <form name="contact" method="post" action="appmarketingsubmit/"> + <div class="row"> + <div class="col-md-8"> + <p><label for="yourname">Your name<br> + <input type="text" name="yourname" maxlength="60" size="60"></label></p> + <p><label for="email">Email<br> + <input type="text" name="email" maxlength="80" size="60"></label></p> + <p><label for="organization">Organization <small>(say <em>private</em> if none)</small><br> + <input type="text" name="organization" maxlength="100" size="60" placeholder=""></label></p> + <p><label for="comments">Your message<br /> + <textarea name="comments" maxlength="2000" cols="80" rows="8" placeholder="Let us know what your plans are and how we can help or how you would like to collaborate!"></textarea></label></p> + <p><label for="captcha">Please calculate the following sum <span></span><br> + <img src="data:image/png;base64,<?php echo base64_encode($imagestring); ?>"><br> + <input type="text" name="captcha" maxlength="20" size="20" placeholder="13"></label></p> + <input type="hidden" name="checksum" value="<?php echo $checksum;?>"> + <td colspan="2" style="text-align:center"> + <div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_SITEKEY; ?>"></div> + <input type="submit" value=" Submit "> + </div> + </div> + </form> + </div> + </div> +</div> +</section> |