Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Oct 11, 2009
2 parents c84311e + b4679ed commit 3de20d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rpx_now.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def contacts(identifier, options={})
def embed_code(subdomain,url,options={})
options = {:width => '400', :height => '240', :language => 'en'}.merge(options)
<<-EOF
<iframe src="https://#{subdomain}.#{Api::HOST}/openid/embed?token_url=#{url}&language_preference=#{options[:language]}"
<iframe src="https://#{subdomain}.#{Api::HOST}/openid/embed?token_url=#{url}&language_preference=#{options[:language]}&flags=#{options[:flags]}"
scrolling="no" frameBorder="no" style="width:#{options[:width]}px;height:#{options[:height]}px;">
</iframe>
EOF
Expand Down Expand Up @@ -102,7 +102,7 @@ def self.parse_user_data(response)

def unobtrusive_popup_code(text, subdomain, url, options={})
version = extract_version! options
%Q(<a class="rpxnow" href="https://#{subdomain}.#{Api::HOST}/openid/v#{version}/signin?token_url=#{url}&language_preference=#{options[:language]}">#{text}</a>)
%Q(<a class="rpxnow" href="https://#{subdomain}.#{Api::HOST}/openid/v#{version}/signin?token_url=#{url}&language_preference=#{options[:language]}&flags=#{options[:flags]}">#{text}</a>)
end

def obtrusive_popup_code(text, subdomain, url, options = {})
Expand All @@ -115,7 +115,7 @@ def obtrusive_popup_code(text, subdomain, url, options = {})
<script type="text/javascript">
//<![CDATA[
RPXNOW.token_url = "#{url}";
RPXNOW.flags = "#{options[:flags]}";
RPXNOW.realm = "#{subdomain}";
RPXNOW.overlay = true;
RPXNOW.language_preference = '#{options[:language]}';
Expand Down

0 comments on commit 3de20d5

Please sign in to comment.