-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-completionist.php
More file actions
98 lines (80 loc) · 4.06 KB
/
page-completionist.php
File metadata and controls
98 lines (80 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* Completionist plugin landing page.
*
* @package Purple_Turtle_Creative
*/
namespace PTC_Theme;
defined( 'ABSPATH' ) || die();
require_once \PTC_Resources_Server\PLUGIN_PATH . 'src/public/servers/class-plugins-server.php';
$free_download_url = 'https://downloads.wordpress.org/plugin/completionist.zip';
$latest_tag = '{{Error}}';
if ( class_exists( '\PTC_Resources_Server\Plugins\Server' ) ) {
$plugins_server = new \PTC_Resources_Server\Plugins\Server();
$plugins_server->generate_free_download_url( 'completionist', 'latest' );
if ( ! empty( $plugins_server->plugin_tag ) ) {
$latest_tag = $plugins_server->plugin_tag;
$free_download_url = "https://downloads.wordpress.org/plugin/completionist.{$latest_tag}.zip";
}
}
get_header();
?>
<main id="primary" <?php post_class( 'site-main' ); ?>>
<header class="wave-trim-bottom">
<div class="content-width-slim">
<div class="heading-info">
<div class="app-icon app-icon-asana">
<img class="animate-floating" src="<?php echo esc_url( IMAGES_URI . '/tool_icons_asana.jpg' ); ?>" alt="Asana" width="120" height="120" draggable="false" />
</div>
<div class="app-icon app-icon-wordpress">
<img class="animate-floating" src="<?php echo esc_url( IMAGES_URI . '/tool_icons_wordpress_grey.jpg' ); ?>" alt="WordPress" width="120" height="120" draggable="false" />
</div>
<h1>Enhance Your Asana + WordPress Workflow</h1>
<p><strong>Completionist</strong> is the leading WordPress plugin to connect your favorite task and content management systems.</p>
</div>
<div class="button-group center">
<div class="button">
<a class="icon-button has-primary-dark-background-color --is-icon-position-after ptc-completionist-free-download" href="<?php echo esc_url( $free_download_url ); ?>" target="_blank" rel="nofollow"><?php fa( 'download' ); ?>Download Now</a>
<span>
<a href="<?php the_permalink(); ?>plugin-info/#latest">
Current Release <strong>v<?php echo esc_html( $latest_tag ); ?></strong>
</a>
</span>
</div>
<div class="button">
<a class="icon-button has-primary-dark-background-color --is-icon-position-after ptc-completionist-see-docs" href="https://docs.purpleturtlecreative.com/completionist/" target="_blank"><?php fa( 'long-arrow-alt-right' ); ?>Documentation</a>
<span><a href="<?php the_permalink(); ?>plugin-info/#changelog">View Changelog</a></span>
</div>
</div>
</div>
</header>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
endwhile; // End of the loop.
?>
<footer class="wave-trim-top">
<div class="content-width-slim">
<h2 id="try-completionist">Ready to boost your productivity?</h2>
<p>Download the Completionist WordPress plugin now to integrate your Asana projects and tasks with your WordPress content.</p>
<div class="button-group center">
<div class="button">
<a class="icon-button has-primary-dark-background-color --is-icon-position-after ptc-completionist-free-download" href="<?php echo esc_url( $free_download_url ); ?>" target="_blank" rel="nofollow"><?php fa( 'download' ); ?>Download Now</a>
<span>
<a href="<?php the_permalink(); ?>plugin-info/#latest">
Current Release <strong>v<?php echo esc_html( $latest_tag ); ?></strong>
</a>
</span>
</div>
<div class="button">
<a class="icon-button has-primary-dark-background-color --is-icon-position-after ptc-completionist-see-docs" href="https://docs.purpleturtlecreative.com/completionist/" target="_blank"><?php fa( 'long-arrow-alt-right' ); ?>Documentation</a>
<span><a href="<?php the_permalink(); ?>plugin-info/#changelog">View Changelog</a></span>
</div>
</div>
<p class="asana-disclaimer">**Completionist by Purple Turtle Creative is not associated with Asana. Asana is a trademark and service mark of Asana, Inc., registered in the U.S. and in other countries. <a href="https://asana.com/">Learn more.</a></p>
</div>
</footer>
</main><!-- #main -->
<?php
get_footer();