Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
ba1c5d60
Commit
ba1c5d60
authored
Dec 25, 2013
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auth clients "Choice" widget markup updated.
parent
b1f6354f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
90 additions
and
3 deletions
+90
-3
BaseClient.php
extensions/yii/authclient/BaseClient.php
+2
-1
Choice.php
extensions/yii/authclient/widgets/Choice.php
+2
-2
ChoiceAsset.php
extensions/yii/authclient/widgets/ChoiceAsset.php
+3
-0
authchoice.css
extensions/yii/authclient/widgets/assets/authchoice.css
+83
-0
authchoice.png
extensions/yii/authclient/widgets/assets/authchoice.png
+0
-0
No files found.
extensions/yii/authclient/BaseClient.php
View file @
ba1c5d60
...
...
@@ -10,6 +10,7 @@ namespace yii\authclient;
use
Yii
;
use
yii\base\Component
;
use
yii\base\NotSupportedException
;
use
yii\helpers\Inflector
;
use
yii\helpers\StringHelper
;
/**
...
...
@@ -178,7 +179,7 @@ abstract class BaseClient extends Component implements ClientInterface
*/
protected
function
defaultName
()
{
return
StringHelper
::
basename
(
get_class
(
$this
));
return
Inflector
::
camel2id
(
StringHelper
::
basename
(
get_class
(
$this
)
));
}
/**
...
...
extensions/yii/authclient/widgets/Choice.php
View file @
ba1c5d60
...
...
@@ -166,9 +166,9 @@ class Choice extends Widget
*/
protected
function
renderMainContent
()
{
echo
Html
::
beginTag
(
'ul'
,
[
'class'
=>
'auth-
service
s clear'
]);
echo
Html
::
beginTag
(
'ul'
,
[
'class'
=>
'auth-
client
s clear'
]);
foreach
(
$this
->
getClients
()
as
$externalService
)
{
echo
Html
::
beginTag
(
'li'
,
[
'class'
=>
'auth-
service
'
]);
echo
Html
::
beginTag
(
'li'
,
[
'class'
=>
'auth-
client
'
]);
$this
->
providerLink
(
$externalService
);
echo
Html
::
endTag
(
'li'
);
}
...
...
extensions/yii/authclient/widgets/ChoiceAsset.php
View file @
ba1c5d60
...
...
@@ -21,6 +21,9 @@ class ChoiceAsset extends AssetBundle
public
$js
=
[
'authchoice.js'
,
];
public
$css
=
[
'authchoice.css'
,
];
public
$depends
=
[
'yii\web\YiiAsset'
,
];
...
...
extensions/yii/authclient/widgets/assets/authchoice.css
0 → 100644
View file @
ba1c5d60
.clients
{
overflow
:
auto
;
}
.auth-icon
{
display
:
block
;
width
:
32px
;
height
:
32px
;
background
:
url(authchoice.png)
no-repeat
;
}
.auth-icon.google
,
.auth-icon.google_openid
,
.auth-icon.google_oauth
{
background-position
:
0
-34px
;
}
.auth-icon.twitter
{
background-position
:
0
-68px
;
}
.auth-icon.yandex
,
.auth-icon.yandex_openid
,
.auth-icon.yandex_oauth
{
background-position
:
0
-102px
;
}
.auth-icon.vkontakte
{
background-position
:
0
-136px
;
}
.auth-icon.facebook
{
background-position
:
0
-170px
;
}
.auth-icon.mailru
{
background-position
:
0
-204px
;
}
.auth-icon.moikrug
{
background-position
:
0
-238px
;
}
.auth-icon.odnoklassniki
{
background-position
:
0
-272px
;
}
.auth-icon.linkedin
{
background-position
:
0
-306px
;
}
.auth-icon.github
{
background-position
:
0
-340px
;
}
.auth-icon.live
{
background-position
:
0
-372px
;
}
.auth-link
:hover
.auth-icon
i
,
.auth-link
:focus
.auth-icon
i
{
display
:
block
;
width
:
32px
;
height
:
32px
;
background
:
url(authchoice.png)
0
0
no-repeat
;
}
.auth-clients
{
margin
:
0
0
1em
;
list-style
:
none
;
overflow
:
auto
;
}
.auth-client
{
float
:
left
;
margin
:
0
1em
0
0
;
}
.auth-clients
.auth-client
.auth-link
{
display
:
block
;
width
:
58px
;
}
.auth-client
.auth-link
.auth-icon
{
margin
:
0
auto
;
}
.auth-client
.auth-link
.auth-title
{
display
:
block
;
margin-top
:
0.4em
;
text-align
:
center
;
}
\ No newline at end of file
extensions/yii/authclient/widgets/assets/authchoice.png
0 → 100644
View file @
ba1c5d60
14.6 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment