diff options
author | Cash Costello <cash.costello@gmail.com> | 2010-10-30 14:14:18 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2010-10-30 14:14:18 +0000 |
commit | 22383071d02cea7aaaed09957fad2ccd0a4b1b04 (patch) | |
tree | a180e23f8bf7636e517529f1eac32ef5ec92d8a8 /views/default/tidypics/forms | |
parent | d6fcd6f942c8e882866f5404cb987aa3c6fde690 (diff) | |
download | elgg-22383071d02cea7aaaed09957fad2ccd0a4b1b04.tar.gz elgg-22383071d02cea7aaaed09957fad2ccd0a4b1b04.tar.bz2 |
cleaned up the CSS and text for the new uploader
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r-- | views/default/tidypics/forms/ajax_upload.php | 49 | ||||
-rw-r--r-- | views/default/tidypics/forms/upload.php | 4 |
2 files changed, 36 insertions, 17 deletions
diff --git a/views/default/tidypics/forms/ajax_upload.php b/views/default/tidypics/forms/ajax_upload.php index 313ca17f9..c906b7673 100644 --- a/views/default/tidypics/forms/ajax_upload.php +++ b/views/default/tidypics/forms/ajax_upload.php @@ -33,32 +33,40 @@ if ($quota) { } } +$basic_uploader_url = current_page_url() . '/basic'; + ?> <div class="contentWrapper"> - <p>Instructions here for uploading images using Ajax/Flash</p> + <p><?php echo sprintf(elgg_echo('tidypics:uploader:instructs'), $basic_uploader_url); ?></p> + <ul id="tidypics_uploader_steps"> + <li> <div id="tidypics_uploader"> - <a id="tidypics_choose_button">Choose images</a> + <a id="tidypics_choose_button" href="<?php echo $basic_uploader_url; ?>"> + 1. <?php echo elgg_echo('tidypics:uploader:choose'); ?> + </a> <div id="tidypics_flash_uploader"> <input type="file" id="uploadify" name="uploadify" /> </div> </div> - -<a href="javascript:$('#uploadify').uploadifyUpload();">Upload Files</a> -<!-- -<a href="javascript:$('#uploadify').uploadifyClearQueue();">Clear Queue</a> ---> -<br /> -<a href="<?php echo $vars['url']; ?>pg/photos/batch/<?php echo $batch; ?>">Add titles and descriptions</a> -<br /> -<a href="<?php echo current_page_url(); ?>/basic">Basic uploader</a> - - + </li> + <li> + <a href="javascript:$('#uploadify').uploadifyUpload();"> + 2. <?php echo elgg_echo('tidypics:uploader:upload'); ?> + </a> + </li> + <li> + <a href="<?php echo $vars['url']; ?>pg/photos/batch/<?php echo $batch; ?>"> + 3. <?php echo elgg_echo('tidypics:uploader:describe'); ?> + </a> + </li> + </ul> </div> <script type="text/javascript"> + $("#uploadify").uploadify({ 'uploader' : '<?php echo $vars['url']; ?>mod/tidypics/vendors/uploadify/uploadify.swf', 'script' : '<?php echo $vars['url']; ?>action/tidypics/ajax_upload/', @@ -73,10 +81,21 @@ $("#uploadify").uploadify({ 'cancelImg' : '<?php echo $vars['url']; ?>_graphics/icon_customise_remove.gif', 'multi' : true, 'auto' : false, - 'fileDesc' : '<?php echo elgg_echo('tidypics:upload:filedesc'); ?>', + 'fileDesc' : '<?php echo elgg_echo('tidypics:uploader:filedesc'); ?>', 'fileExt' : '*.jpg;*.jpeg;*.png;*.gif', 'wmode' : 'transparent', - 'buttonImg' : " " + 'buttonImg' : " ", + 'height' : 20, + 'onEmbedFlash' : function(event) { + $("#" + event.id).hover( + function(){ + $("#tidypics_choose_button").addClass('tidypics_choose_button_hover'); + }, + function(){ + $("#tidypics_choose_button").removeClass('tidypics_choose_button_hover'); + } + ); + } }); </script> diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php index 5a9703171..8bbda08b3 100644 --- a/views/default/tidypics/forms/upload.php +++ b/views/default/tidypics/forms/upload.php @@ -35,8 +35,8 @@ if ($quota) { ob_start(); ?> <p style="line-height:1.6em;"> - <label><?php echo elgg_echo("images:upload"); ?></label><br /> - <i><?php echo elgg_echo("tidypics:settings:maxfilesize") . ' ' . $maxfilesize; ?></i><br /> + <label><?php echo elgg_echo("tidypics:uploader:upload"); ?></label><br /> + <i><?php echo sprintf(elgg_echo('tidypics:uploader:basic'), $maxfilesize); ?></i><br /> <?php if ($quota) { ?> |