MIT License

项目介绍

Pipits/pipit-sharing 是一个托管在 GitHub 上的开源项目,主要使用 PHP 编写,采用 MIT License 许可证,目前获得 3 个 Star、0 次 Fork。

仓库全名
Pipits/pipit-sharing
开源许可证
MIT License
Star 数
3
未关闭 Issue
1

README 摘要

Pipit Sharing The Sharing app enables you to quickly and easily add sharing links to your Perch site pages without JavaScript. Installation Download the latest version of the Sharing App. Unzip the download Place the pipitsharing folder in perch/addons/apps Add pipitsharing to your perch/config/apps.php Requirements Perch or Perch Runway 3.0 or higher Configuration Website URL By default Pipit Sharing uses…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pipit-sharing 用什么语言开发?

主要使用 PHP 编写,采用 MIT License 许可证,目前有 3 个 Star。

pipit-sharing 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pipit-sharing 的源码?

可以直接克隆仓库:git clone https://github.com/Pipits/pipit-sharing.git;安装与运行步骤见仓库 README。

pipit-sharing 最近还在维护吗?

仓库最近一次更新为 2020年3月2日,当前有 1 个未关闭 Issue;Star 数为 3,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

The Sharing app enables you to quickly and easily add sharing links to your Perch site pages without JavaScript.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
6
价值分
2
活跃状态
活跃

语言占比

HTML
PHP

Release

README

Pipit Sharing

The Sharing app enables you to quickly and easily add sharing links to your Perch site pages without JavaScript.

Installation

  • Download the latest version of the Sharing App.
  • Unzip the download
  • Place the pipit_sharing folder in perch/addons/apps
  • Add pipit_sharing to your perch/config/apps.php

Requirements

  • Perch or Perch Runway 3.0 or higher

Configuration

Website URL

By default Pipit Sharing uses $_SERVER['HTTP_HOST'] to get the website’s domain https://example.com.

You can tell it to get it from somewhere else. Under the Sharing app settings, there’s a select field “Get website URL from”. It has options:

Option What it means
Settings From the Website URL field in the Settings.
$_SERVER[‘HTTP_HOST’] A less secure alternative, but useful if sub-domains are used.
Perch configuration From Perch configuration file. Use the constant SITE_URL

Defining the constant SITE_URL:

define('SITE_URL', 'https://example.com');

SSL

If you are using the Website URL in the Settings option, whatever protocol (http or https) you set there will be used.

If you fail to add the protocol to Website URL or use the $_SERVER['HTTP_HOST'] option, the app will check whether you have enabled SSL in your Perch config file perch/config.php. If you do not have SSL enabled in your config, the app will check the page’s URL at runtime and will use whatever protocol is being used.

To enable SSL in your perch/config.php:

define('PERCH_SSL', true);

You can find out more about Perch SSL configuration in Perch’s documentation.

Usage

In a Perch template

<perch:sharing id="twitter" desc="Read: {postTitle}">

In PHP

pipit_sharing_link('twitter', ['desc' => 'Some text']);

For usage details and examples, visit the documentation.

  • Twitter
  • Facebook
  • Tumblr
  • Google+
  • LinkedIn
  • Reddit
  • Pinterest
  • Email
  • WhatsApp

You can now generate “add to” calendar links for:

  • Google
  • Yahoo
  • Outlook (web)
  • ICS - data URI (for iCal & Outlook)

Credits

Pipit Sharing uses the spatie/calendar-links package to generate calendar links.

评论

暂无评论