Permalink
Browse files

More version-bump related changes

  • Loading branch information...
1 parent b32fa28 commit ac6a83b0be198eed41cd0287c67cadec97a8bdbf @romaninsh romaninsh committed Sep 19, 2011
Showing with 23 additions and 16 deletions.
  1. +2 −0 .gitignore
  2. +16 −0 lib/Controller/SocialAuth.php
  3. +0 −16 page/download/success.php
  4. +5 −0 page/index.php
View
@@ -9,3 +9,5 @@ config.php
upload
distfiles
.DS_Store
+
+page/parsetest.php
@@ -0,0 +1,16 @@
+<?php
+class Controller_SocialAuth extends BasicAuth {
+ public $auth_agents=array();
+
+ function init(){
+ parent::init();
+ }
+
+ function enable($services=array()){
+ foreach($services as $service){
+ $this->auth_agents[$service]=
+ $this->add('Controller_OAuth_'.ucfirst($service));
+ }
+ return $this;
+ }
+}
View
@@ -4,22 +4,6 @@ function init(){
parent::init();
$this->add('Controller_JSProxy')->proxy('http://platform.twitter.com/widgets.js');
$this->template->trySet('file',addslashes(htmlspecialchars($_GET['file'])));
- $this->js(true)->univ()->setTimeout($this->js()->_enclose()->univ()->location('/distfiles/'.$_GET['file']),1000);
- /*
- $f=$this->add('Form',null,null,array('form_empty'));
- //$f->js(true)->addClass('tweet_this_form');
- $f->setFormClass('form-twitter');
- $f->setLayout("download_success_form_layout");
-
-
- $f->addField('text','t','Tweet This')
- ->set('I just downloaded Agile Toolkit (PHP UI Framework). Check out their interactive introduction http://agiletoolkit.org/intro. #atk4');
- $f->addSubmit('Tweet');
- if($f->isSubmitted()){
- $f->js()->univ()->location('http://twitter.com?status='.rawurlencode($f->get('t')))->execute();
- exit;
- }
- */
}
function defaultTemplate(){
return array('page/download/success');
View
@@ -3,8 +3,10 @@ class page_index extends Page {
function init(){
parent::init();
+ /*
$this->js('click')->_selector('#index-download-button')->univ()->frameURL('<i class="icon-arrow-big"></i>Downloading...',
$this->js()->_selectorThis()->attr('href'),array('customClass'=>'popup-download', 'width' => 500, 'resizable' => false, 'draggable' => false));
+ */
$this->js('click')->_selector('.neon.mvc')->univ()->frameURL('Models in Agile Toolkit',
$this->api->getDestinationURL('./in/models'));
@@ -15,6 +17,9 @@ function init(){
$this->js('click')->_selector('.neon.ui')->univ()->frameURL('User Interface in Agile Toolkit',
$this->api->getDestinationURL('./in/ui'));
+ $this->js('click')->_selector('#index-download-button')
+ ->univ()->frameURL('Downloading Agile Toolkit',$this->api->getDestinationURL('/download/box'));
+
//$this->js(true)->univ()->successMessage("<i class=\"icon icon-success\"></i> Growl Test");
}
function defaultTemplate(){

0 comments on commit ac6a83b

Please sign in to comment.