diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-26 00:51:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-26 00:51:28 +0000 |
commit | 16539579880fbdc0136b815ea5d26c57f2399cb1 (patch) | |
tree | 7ed00311c0c31835377c73076f10e17671c1c1a1 /mod/twitterservice/views/default/settings | |
parent | 2a81ce2acb9548220d02d47394158712d395ad34 (diff) | |
download | elgg-16539579880fbdc0136b815ea5d26c57f2399cb1.tar.gz elgg-16539579880fbdc0136b815ea5d26c57f2399cb1.tar.bz2 |
moved twitterservice into core
git-svn-id: http://code.elgg.org/elgg/trunk@7930 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/twitterservice/views/default/settings')
-rw-r--r-- | mod/twitterservice/views/default/settings/twitterservice/edit.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mod/twitterservice/views/default/settings/twitterservice/edit.php b/mod/twitterservice/views/default/settings/twitterservice/edit.php new file mode 100644 index 000000000..01897db23 --- /dev/null +++ b/mod/twitterservice/views/default/settings/twitterservice/edit.php @@ -0,0 +1,40 @@ +<?php +/** + * + */ +$insert_view = elgg_view('twittersettings/extend'); + +$consumer_key_string = elgg_echo('twitterservice:consumer_key'); +$consumer_key_view = elgg_view('input/text', array( + 'internalname' => 'params[consumer_key]', + 'value' => $vars['entity']->consumer_key, + 'class' => 'text_input', +)); + +$consumer_secret_string = elgg_echo('twitterservice:consumer_secret'); +$consumer_secret_view = elgg_view('input/text', array( + 'internalname' => 'params[consumer_secret]', + 'value' => $vars['entity']->consumer_secret, + 'class' => 'text_input', +)); + +$sign_on_with_twitter_string = elgg_echo('twitterservice:login'); +$sign_on_with_twitter_view = elgg_view('input/pulldown', array( + 'internalname' => 'params[sign_on]', + 'options_values' => array( + 'yes' => elgg_echo('option:yes'), + 'no' => elgg_echo('option:no'), + ), + 'value' => $vars['entity']->sign_on ? $vars['entity']->sign_on : 'no', +)); + +$settings = <<<__HTML +<div id="twitterservice_site_settings"> + <div>$insert_view</div> + <div>$consumer_key_string $consumer_key_view</div> + <div>$consumer_secret_string $consumer_secret_view</div> + <div>$sign_on_with_twitter_string $sign_on_with_twitter_view</div> +</div> +__HTML; + +echo $settings; |