dominus77/yii2-social-likes-next-widget
Composer 安装命令:
composer require dominus77/yii2-social-likes-next-widget
包简介
Renders a Social Likes Next widget for Yii2.
README 文档
README
Renders a Social Likes Next widget for Yii2.
Beautiful share buttons for social networks: Facebook, Twitter, Google+, Pinterest, Telegram, LinkedIn, Vkontakte and Odnoklassniki.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require dominus77/yii2-social-likes-next-widget "~1.0"
or add
"dominus77/yii2-social-likes-next-widget": "~1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \dominus77\sociallikesnext\SocialLikes::widget([ 'theme' => \dominus77\sociallikesnext\SocialLikes::THEME_FLAT, // THEME_FLAT, THEME_LIGHT, THEME_BIRMAN, default(THEME_FLAT) 'title' => true, // Display name of social networks, set default true /*'containerOptions' => [ //'class' => 'social-likes_vertical', // All buttons in a column. 'data-url' => 'http://landscapists.info/', // URL of a shareable page. Current page by default. 'data-title' => 'Landscapists of Russia', // Title for Twitter and Vkontakte. Current page’s title by default. ],*/ 'items' => [ 'Pinterest' => [ 'title' => false, // Display name of social network, default global params 'serviceOptions' => [ 'title' => 'Share link on Pinterest', 'data' => [ 'service' => 'pinterest', 'media' => 'image link, required', ], ], ], 'Vkontakte' => [ 'serviceOptions' => [ 'title' => 'Share link on Vkontakte', 'data-service' => 'vkontakte', ], ], 'Odnoklassniki' => [ 'serviceOptions' => [ 'title' => 'Share link on Odnoklassniki', 'data-service' => 'odnoklassniki', ], ], 'Facebook' => [ 'serviceOptions' => [ 'title' => 'Share link on Facebook', 'data-service' => 'facebook', ], ], 'Twitter' => [ 'serviceOptions' => [ 'title' => 'Share link on Twitter', 'data-service' => 'twitter', ], ], 'Google+' => [ 'serviceOptions' => [ 'title' => 'Share link on Google+', 'data-service' => 'plusone', ], ], 'Telegram' => [ 'serviceOptions' => [ 'title' => 'Share link on Telegram', 'data-service' => 'telegram', ], ], 'LinkedIn' => [ 'serviceOptions' => [ 'title' => 'Share link on LinkedIn', 'data-service' => 'linkedin', ], ], // Add new button 'My World' => [ 'serviceOptions' => [ 'title' => 'Share link on My World', 'data-service' => 'mailru', ], ], ], // Register new buttons 'clientButtons' => [ 'mailru' => [ 'popupUrl' => 'http://connect.mail.ru/share?url={url}', 'popupWidth' => 550, 'popupHeight' => 360, ], ], // Css new buttons 'clientCss' => ' /* begin style My World link */ .social-likes__button_mailru, .social-likes__button_mailru:link, .social-likes__button_mailru:visited { padding-left: 22px; background: #168DE2; background: linear-gradient(top, #168DE2, #168DE2); color: #fff; border-color: #d4d4d4; border-bottom-color: #bcbcbc; text-decoration: none; } .social-likes__button_mailru:hover { background: #168DE2; background: linear-gradient(top, #168DE2, #168DE2); color: #fff; border-color: #d4d4d4; border-bottom-color: #bcbcbc; } .social-likes__icon_mailru { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAl9JREFUOI2dkktIlFEcxX/3zjfjvLQZZ0aNFlo+w40a4lLDqCQLFSIIapGMbTJoFbSyZYi7iLDHopBaRERIZQsJgyAqC6w0K5PpMeq8REdnnG/m+1pMM5OGUJ3NvXDvOf97zrnC0/+1Syd1WUrp4R+goQWlLr3C3T+7sBlZ/Fr1zUQ0LaBsJDvMkp6GfNorLZQ7jQgBMxGVh59iDI5HCaymsnellB5RNODLDmjalsf1gy6EENydXOF9UEUIqCs20VljJaWBdzjEmC+eE8lsKguN3O7y8GZepeman/vTMYptBiyK4MKzJRqv+nnxY42bHW6qXcaczcwLhjo9VBYqtNyYo6/ZwdFaG6/mEjjNkq12A9+WUlx5vcyJOjv+aIpj94IAKABOs6R1u5lzoxHaKiwc3mljz9A8U0EVAZzclc/5Zgd2k+TSy2UutrmwmwTRhJ62UOUyIoDn39foqLby4FOMqaCabWBwfJlIXAPgbUDFIKDCacxlkKkrqUGeQRBNaOvq0nVIpNJZKzLTwG8hfgynp9WXmHg8E2N/uQWHOZsvh6qsFNsMQLoRgC+RZC6DUEzjqS9OT0M+B27Ns7vMwpPjJYx8jlFkM9BaZiYc0/BYJUdqbYz54llLBtu+M30A7wIqpxsLqHGb6H0UxreUpHSLgj+a4uzoIgI41ViAWRF0D4cIxbT1NQK0lJoZbHehpnTuTK4ysZBAkYL6EhNDEyvYTYKZxSRz0dxvXCcA4LYa6K6zs7fcwg6HghDwIajSOxJmOqSyEcI9MBuQSPcfJ38BDX1BSl16NU0L/BdZx/sTN5bhRMzqNqQAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: -2px 2px; } .social-likes__widget_mailru { background: #168DE2; background: linear-gradient(top, #168DE2, #168DE2); } .social-likes__widget_notext .social-likes__icon_mailru { background-position: 0px 0px; } /* end style My World link */ ', ]); ?>
More Information
Please, check the Social Likes Next
License
The MIT License (MIT). Please see License File for more information.
Sensio Labs
dominus77/yii2-social-likes-next-widget 适用场景与选型建议
dominus77/yii2-social-likes-next-widget 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.75k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 09 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「widget」 「yii2」 「Dominus77」 「social-likes-next」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dominus77/yii2-social-likes-next-widget 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dominus77/yii2-social-likes-next-widget 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dominus77/yii2-social-likes-next-widget 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 2.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-20