Skip to content

Commit

Permalink
The Marketplace Now Powered by Gumroad
Browse files Browse the repository at this point in the history
  • Loading branch information
jptksc committed Sep 8, 2013
1 parent 276b029 commit 5ed91ea
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions dropplets/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,22 +248,22 @@ function get_installed_templates() {

function get_premium_templates($type = 'all', $target = 'blank') {

$templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml');
$templates = simplexml_load_file('http://dropplets.com/templates-'. $type .'.xml');

if($templates===FALSE) {
// Feed not available.
} else {
foreach ($templates as $template):

// Define some variables
$template_name=$template->name;
$template_file_name=$template->file;
$template_price=$template->price;
$template_url=$template->url;

{ ?>
<li class="premium">
<img src="http://dropplets.com/demo/templates/<?php echo $template_file_name; ?>/screenshot.jpg" alt="<?php echo $template_name; ?>">
<a class="buy" href="http://dropplets.com/marketplace/?template=<?php echo $template_file_name; ?>" title="Purchase/Download" target="_<?php echo $target; ?>"><?php echo $template_price; ?></a>
<img src="http://dropplets.com/demo/templates/<?php echo $template_file_name; ?>/screenshot.jpg">
<a class="buy" href="http://gum.co/dp-<?php echo $template_file_name; ?>" title="Purchase/Download"><?php echo $template_price; ?></a>
<a class="preview" href="http://dropplets.com/demo/?template=<?php echo $template_file_name; ?>" title="Prview" target="_<?php echo $target; ?>">p</a>
</li>
<?php }
Expand All @@ -273,12 +273,12 @@ function get_premium_templates($type = 'all', $target = 'blank') {

function count_premium_templates($type = 'all') {

$templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml');
$templates = simplexml_load_file('http://dropplets.com/templates-'. $type .'.xml');

if($templates===FALSE) {
// Feed not available.
} else {
$templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml');
$templates = simplexml_load_file('http://dropplets.com/templates-'. $type .'.xml');
$templates_count = $templates->children();
echo count($templates_count);
}
Expand Down
8 changes: 4 additions & 4 deletions dropplets/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ body.dp-install form button:hover {
position: fixed;
top: 10px;
left: 10px;
z-index: 80000;
z-index: 1900;
}

#dp-dropplets-icon:hover {
Expand All @@ -238,7 +238,7 @@ body.dp-install form button:hover {
position: fixed;
top: 0;
left: -300px;
z-index: 100000;
z-index: 1950;
overflow: hidden;
box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
Expand Down Expand Up @@ -444,7 +444,7 @@ body.dp-install form button:hover {
right: 10px;
cursor: pointer;
-webkit-appearance: none;
z-index: 20;
z-index: 1000;
}

.dp-panel .dp-row .dp-button-submit {
Expand Down Expand Up @@ -571,7 +571,7 @@ body.dp-install form button:hover {
position: fixed;
top: 0;
left: 0;
z-index: 220000;
z-index: 1975;
-moz-transition-duration: 0.5s;
-webkit-transition-duration: 0.5s;
}
2 changes: 1 addition & 1 deletion dropplets/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
/*-----------------------------------------------------------------------------------*/

if (isset($_SESSION['user'])) { ?>

<script type="text/javascript" src="https://gumroad.com/js/gumroad.js"></script>
<script type="text/javascript" src="<?php echo(BLOG_URL); ?>dropplets/includes/js/uploader.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
// Start new buffer.
ob_start();

// Get the index template file.
// Get the index template file.
include_once $index_file;

// Cache the post on if caching is turned on.
Expand Down

0 comments on commit 5ed91ea

Please sign in to comment.