Skip to content

Commit

Permalink
The New Dropplets Admin Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jptksc committed Aug 5, 2013
1 parent 51b3949 commit e197251
Show file tree
Hide file tree
Showing 6 changed files with 549 additions and 543 deletions.
12 changes: 10 additions & 2 deletions dropplets/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function get_installed_templates() {
<div class="shadow"></div>
<form method="POST" action="./dropplets/save.php">
<img src="<?php echo $template_screenshot; ?>">
<input class="hidden" type="text" name="template" id="template" required readonly value="<?php echo $template_dir_name ?>">
<input type="hidden" name="template" id="template" required readonly value="<?php echo $template_dir_name ?>">
<button class="<?php if ($active_template == $template_dir_name) :?>active<?php else : ?>activate<?php endif; ?>" type="submit" name="submit" value="submit"><?php if ($active_template == $template_dir_name) :?>t<?php else : ?>k<?php endif; ?></button>
</form>
</li>
Expand All @@ -259,7 +259,7 @@ function get_premium_templates($type = 'all') {
$template_price=$template->price;

{ ?>
<li>
<li class="premium">
<div class="shadow"></div>
<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="_blank"><?php echo $template_price; ?></a>
Expand All @@ -272,6 +272,14 @@ function get_premium_templates($type = 'all') {

}

function count_premium_templates($type = 'all') {

$templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml');
$templates_count = $templates->children();
echo count($templates_count);

}

/*-----------------------------------------------------------------------------------*/
/* If is Home (Could use "is_single", "is_category" as well.)
/*-----------------------------------------------------------------------------------*/
Expand Down
18 changes: 18 additions & 0 deletions dropplets/includes/js/cookies.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dropplets/includes/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
}

echo '<span class="success">k</span>';
echo '<span class="success"></span>';
}

?>
Loading

0 comments on commit e197251

Please sign in to comment.