Skip to content

Commit

Permalink
Merge pull request RosDostup#19 from RosDostup/vkWidget
Browse files Browse the repository at this point in the history
Vk widget
  • Loading branch information
RosDostup committed Oct 1, 2012
2 parents 527db7c + e2bb023 commit 9c78237
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions protected/config/appConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
'reformal_prj_id' => '71829',
'reformal_prj_host' => 'rosdostup.reformal.ru',

//Information to connect VK widget http://vk.com/developers.php?o=-1&p=Like
'vkWidget_apiId' => '3152801',

//Search word for Twitter search plugin
'twtr_srchword'=>'rosdostup',

Expand Down
2 changes: 1 addition & 1 deletion protected/views/layouts/blank.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?22"></script>

<script type="text/javascript">VK.init({apiId: 2232074, onlyWidgets: true});</script>
<script type="text/javascript">VK.init({apiId: <?php echo Yii::app()->params['vkWidget_apiId'] ?>, onlyWidgets: true});</script>

</head>

Expand Down
2 changes: 1 addition & 1 deletion protected/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?22"></script>

<script type="text/javascript">VK.init({apiId: 2232074, onlyWidgets: true});</script>
<script type="text/javascript">VK.init({apiId: <?php echo Yii::app()->params['vkWidget_apiId'] ?>, onlyWidgets: true});</script>

</head>

Expand Down

0 comments on commit 9c78237

Please sign in to comment.