PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / trunk
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions vtrunk
260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 120219 All 188 releases
s2member / src / includes / classes / sc-files.inc.php

sc-files.inc.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions trunk, at src/includes/classes/sc-files.inc.php

67 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // @codingStandardsIgnoreFile
3 /**
4 * Shortcode `[s2File /]`.
5 *
6 * Copyright: © 2009-2011
7 * {@link http://websharks-inc.com/ WebSharks, Inc.}
8 * (coded in the USA)
9 *
10 * Released under the terms of the GNU General Public License.
11 * You should have received a copy of the GNU General Public License,
12 * along with this software. In the main directory, see: /licensing/
13 * If not, see: {@link http://www.gnu.org/licenses/}.
14 *
15 * @package s2Member\s2File
16 * @since 110926
17 */
18 if(!defined('WPINC')) // MUST have WordPress.
19 exit("Do not access this file directly.");
20
21 if(!class_exists("c_ws_plugin__s2member_sc_files"))
22 {
23 /**
24 * Shortcode `[s2File /]`.
25 *
26 * @package s2Member\s2File
27 * @since 110926
28 */
29 class c_ws_plugin__s2member_sc_files
30 {
31 /**
32 * Handles the Shortcode for: `[s2File /]`.
33 *
34 * @package s2Member\s2File
35 * @since 110926
36 *
37 * @attaches-to ``add_shortcode("s2File");``
38 *
39 * @param array $attr An array of Attributes.
40 * @param string $content Content inside the Shortcode.
41 * @param string $shortcode The actual Shortcode name itself.
42 * @return string Value of the requested File Download URL, or null on failure.
43 */
44 public static function sc_get_file($attr = FALSE, $content = FALSE, $shortcode = FALSE)
45 {
46 return c_ws_plugin__s2member_sc_files_in::sc_get_file($attr, $content, $shortcode);
47 }
48 /**
49 * Handles the Shortcode for: `[s2Stream /]`.
50 *
51 * @package s2Member\s2File
52 * @since 130119
53 *
54 * @attaches-to ``add_shortcode("s2Stream");``
55 *
56 * @param array $attr An array of Attributes.
57 * @param string $content Content inside the Shortcode.
58 * @param string $shortcode The actual Shortcode name itself.
59 * @return string HTML markup that produces an audio/video stream for a specific player.
60 */
61 public static function sc_get_stream($attr = FALSE, $content = FALSE, $shortcode = FALSE)
62 {
63 return c_ws_plugin__s2member_sc_files_in::sc_get_stream($attr, $content, $shortcode);
64 }
65 }
66 }
67