Skip to content

Commit 870c109

Browse files
committed
first commit
0 parents  commit 870c109

File tree

175 files changed

+4474
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+4474
-0
lines changed

README

Whitespace-only changes.

theme/404.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php get_header(); ?>
2+
<article>
3+
<?php get_template_part('elaborate', '404'); ?>
4+
</article><!-- end article -->
5+
<?php get_sidebar(); ?>
6+
<?php get_footer(); ?>

theme/README

Whitespace-only changes.

theme/acera-options/admin-helper.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
if (!function_exists('acera_admin_head')) {
3+
4+
function acera_admin_head() {
5+
?>
6+
<link href='http://fonts.googleapis.com/css?family=Rokkitt' rel='stylesheet' type='text/css'>
7+
8+
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>css/acera_css.css" />
9+
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>css/colorpicker.css" />
10+
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>css/custom_style.css" />
11+
12+
<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>js/colorpicker.js"></script>
13+
<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>js/ajaxupload.js"></script>
14+
<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri()."/acera-options/"; ?>js/mainJs.js"></script>
15+
<?php
16+
}
17+
18+
}
19+
?>

theme/acera-options/ajax-image.php

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
if (!function_exists('acera_ajax_image_upload') || !function_exists('acera_ajax_image_remove')) {
4+
//Save image via AJAX
5+
add_action('wp_ajax_acera_ajax_upload', 'acera_ajax_image_upload'); //Add support for AJAX save
6+
7+
function acera_ajax_image_upload() {
8+
global $wpdb; //Now WP database can be accessed
9+
10+
11+
$image_id = $_POST['data'];
12+
$image_filename = $_FILES[$image_id];
13+
$override['test_form'] = false; //see http://wordpress.org/support/topic/269518?replies=6
14+
$override['action'] = 'wp_handle_upload';
15+
16+
$uploaded_image = wp_handle_upload($image_filename, $override);
17+
18+
if (!empty($uploaded_image['error'])) {
19+
echo 'Error: ' . $uploaded_image['error'];
20+
} else {
21+
update_option($image_id, $uploaded_image['url']);
22+
echo $uploaded_image['url'];
23+
}
24+
25+
die();
26+
}
27+
28+
//Remove image via AJAX
29+
add_action('wp_ajax_acera_ajax_remove', 'acera_ajax_image_remove'); //Add support for AJAX save
30+
31+
function acera_ajax_image_remove() {
32+
global $wpdb; //Now WP database can be accessed
33+
34+
35+
$image_id = $_POST['data'];
36+
37+
$query = "DELETE FROM $wpdb->options WHERE option_name LIKE '$image_id'";
38+
$wpdb->query($query);
39+
40+
die();
41+
}
42+
43+
}
44+
?>

theme/acera-options/assets/arial.png

1.82 KB
Loading

theme/acera-options/assets/blue.png

971 Bytes
Loading
2.34 KB
Loading
2.51 KB
Loading

theme/acera-options/assets/gray.png

972 Bytes
Loading

theme/acera-options/assets/green.png

971 Bytes
Loading
2.65 KB
Loading

theme/acera-options/assets/orange.png

971 Bytes
Loading

theme/acera-options/assets/oswald.png

2.25 KB
Loading

theme/acera-options/assets/purple.png

971 Bytes
Loading
2.3 KB
Loading

theme/acera-options/assets/red.png

971 Bytes
Loading

theme/acera-options/assets/rokkit.png

1.88 KB
Loading
1.61 KB
Loading
1.77 KB
Loading
2.27 KB
Loading
1.86 KB
Loading
4.44 KB
Loading
5.1 KB
Loading
3.7 KB
Loading
3.97 KB
Loading
4.36 KB
Loading
3.85 KB
Loading
4.43 KB
Loading
4.37 KB
Loading
4.21 KB
Loading
4.3 KB
Loading

theme/acera-options/assets/test_1.png

15.3 KB
Loading

theme/acera-options/assets/test_2.png

15.3 KB
Loading

theme/acera-options/assets/times.png

2.09 KB
Loading

0 commit comments

Comments
 (0)