Usage: echo FacebookPlugin::widget([ 'appId' => 'FACEBOOK_APP_ID', 'type' => FacebookPlugin::COMMENT, 'settings' => ['colorscheme' => 'dark'] ]);
Since: 1.0
Author: Kartik Visweswaran (kartikv2@gmail.com)
Inheritance: extends Widget
Example #1
0
                        </div>

                    </div>


                    <div class="clear"></div>


                    <div class="product-share clearfix">
                        <p> SHARE </p>

                        <div class="socialIcon">
                            <a href="#"> <i class="fa fa-facebook"></i></a>
                            <?php 
echo FacebookPlugin::widget(['appId' => '966762816751662']);
?>
                            <a href="#"> <i class="fa fa-twitter"></i></a>
                            <a href="#"> <i class="fa fa-google-plus"></i></a>

                        <br>
                    </div>


                    <div style="clear:both"></div>


                </div>
            </div>
            <!--/ right column end -->
Example #2
0
    $i++;
}
?>
                        </div>
                    </div>
                    <p><?php 
echo $cont->getTextRemoveImg();
?>
</p>
                </div>

                <div class="line"></div>
                <?php 
$social = Yii::$app->getModule('social');
echo FacebookPlugin::widget(['type' => FacebookPlugin::LIKE, 'settings' => ['share' => 'true', 'width' => '500px', 'href' => Yii::$app->urlManager->createAbsoluteUrl(['guide/view', 'id' => $model->id])]]);
echo FacebookPlugin::widget(['type' => FacebookPlugin::COMMENT, 'settings' => ['width' => '100%', 'href' => Yii::$app->urlManager->createAbsoluteUrl(['guide/view', 'id' => $model->id])]]);
?>
            </div>

            <!-- Sidebar
            ============================================= -->
            <div class="sidebar nobottommargin col_last clearfix">
                <div class="sidebar-widgets-wrap">
                    <div class="widget clearfix">
                        <h4><?php 
echo Yii::t('app', 'Location');
?>
</h4>
                        <?php 
echo $model->address;
?>
Example #3
0
    <head>
        <title>test</title>
        <meta property="og:type" content="website">
        <meta property = "og:url" content="http://etap.az/site/check">
        <meta property = "og:title" content="When the wind cries Mary!">
        <meta property = "og:image:width" content="800" >
        <meta property = "og:image:height" content="800" >
        <meta property = "og:image" content="http://etap.az/uploads/f228f144.jpg" >
        <meta property = "og:description" content="lorem ipsum dolor" >
    </head>
    <body>
        <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ru_RU/sdk.js#xfbml=1&version=v2.5&appId=185470815122836";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-share-button" data-href="http://etap.az/site/check" data-layout="button_count"></div>

        <div><?php 
echo FacebookPlugin::widget(['type' => FacebookPlugin::SHARE, 'settings' => []]);
?>
</div>
    </body>
</html>

    
Example #4
0
<?php

use kartik\social\FacebookPlugin;
use yii\helpers\Html;
?>


    
<html>

<body>
    <div> TEST </div>
    <?php 
echo FacebookPlugin::widget(['type' => FacebookPlugin::SHARE, 'settings' => ['appId' => '1651760685079651']]);
?>
    <!-- Load Facebook SDK for JavaScript -->
    <div id="fb-root"></div>
    <script>
    window.fbAsyncInit = function() {
    FB.init({
      appId      : '1651760685079651', // App ID
      channelUrl : '//www.etap.az/site/test', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });

    // Additional initialization code here
  };

  // Load the SDK Asynchronously
Example #5
0
echo FacebookPlugin::widget(['type' => FacebookPlugin::LIKE, 'settings' => []]);
?>
            </div>
            <div class="col-lg-4">
                <h2>Advantages</h2>
                <p>
                    Ease of use is a huge advantage. We've simplifiled RBAC and given you Free/Paid
                    user type out of the box. The Social plugins are so quick and easy to install,
                    you will love it!
                </p>
                <p>
                    <a class="btn btn-default" href="http://www.yiiframework.com/forum/">
                        Yii Forum &raquo;</a>
                </p>
                <?php 
echo FacebookPlugin::widget(['type' => FacebookPlugin::COMMENT, 'settings' => ['href' => 'http://www.yii2build.com', 'width' => '350']]);
?>
            </div>
            <div class="col-lg-4">
                <h2>Code Quick, Code Right!</h2>
                <p>
                    Leverage the power of the awesome Yii 2 framework with this enhanced template.
                    Based Yii 2's advanced template, you get a full frontend and backend
                    implementation that features rich UI for backend management.
                </p>
                <p>
                    <a class="btn btn-default" href="http://www.yiiframework.com/extensions/">
                        Yii Extensions &raquo;</a>
                </p>
            </div>
        </div>
Example #6
0
                    <div class="col-sm-4">
                        <h4>CONTACT US</h4>
                        <ul class="list-unstyled company-info">
                            <li><i class="icon-map-marker"></i> 1375 Richmond Avenue<br>Minneapolis, MN 90017</li>
                            <li><i class="icon-phone3"></i> 55 45 99148814</li>
                            <li><i class="icon-envelope"></i> <a href="mailto:footgolf@abfg.com.br">footgolf@abfg.com.br</a></li>
                            <li><i class="icon-alarm2"></i> Monday - Friday: <strong>8:00 am - 7:00 pm</strong><br>Saturday - Sunday: <strong>Closed</strong></li>
                        </ul>
                    </div>
                    
                    <div class="col-sm-4 hidden-xs">
                        <h4><i class="icon-facebook4"></i> FACEBOOK</h4>
                        <ul class="list-unstyled social-stream">
                            <li><?php 
echo FacebookPlugin::widget(['settings' => ['data-width' => 400, 'data-numposts' => 5, 'colorscheme' => 'dark']]);
?>
</li>
                        </ul>
                    </div>
                </div>
                <hr>
                <div class="row"> 
                    <div class="col-sm-6">
                        <p>Copyright &copy; 2014 by <a href="http://www.hubancreative.com" target="_blank">HubanCreative</a></p> 
                    </div>
                    <div class="col-sm-6 text-right">
                        <div class="social-links">
                            <a href="javascript:;">
                                <i class="icon-twitter4"></i>
                            </a>
Example #7
0
File: view.php Project: schw/SGE3
?>
        <div class="clear"></div>
    </div>
    <h2><?php 
echo $this->title;
?>
</h2>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['sigla', 'descricao', 'dataini', 'datafim', 'horaini', 'horafim', 'vagas', 'CargaHoraria', 'detalhe', 'tipo.titulo', 'local.descricao']]);
?>

	<div style="height: 30px; width: 100%; display: inline-block;">
	   <div style="float: left">
	   <?php 
echo FacebookPlugin::widget(['type' => FacebookPlugin::SHARE, 'settings' => ['layout' => 'button_count', 'href' => Yii::$app->request->absoluteUrl]]);
?>
		</div>
		<div style="margin: 1px 0 0 5px; float: left;" >
		<?php 
echo GooglePlugin::widget(['type' => GooglePlugin::SHARE, 'settings' => ['annotation' => 'bubble', 'height' => 20]]);
?>
		<?php 
echo TwitterPlugin::widget(['type' => TwitterPlugin::SHARE, 'settings' => ['size' => 'medium']]);
?>
</div>
	</div>