repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/hooks.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/hooks.php | <?php
/**
* Build the layout using the hooks.
*
* @package zues
*/
// Body hooks.
add_action( 'zues_body_open', 'zues_body_open_html', 10 );
add_action( 'zues_body_close', 'zues_body_close_html', 10 );
// Head hooks.
add_action( 'zues_header', 'zues_load_header_template', 10 );
add_action( 'zues_header_after', 'z... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/comments.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/comments.php | <?php
/**
* Template functions used for the site comments.
*
* @package zues
*/
if ( ! function_exists( 'zues_display_comments' ) ) {
/**
* Zues display comments
*/
function zues_display_comments() {
/*
* Returns a template file for the comments
*
* Usage:
* add_filter( 'zues_comments_template... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/post.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/post.php | <?php
/**
* Filters used to modify theme output.
*
* @package zues
*/
if ( ! function_exists( 'zues_content_area' ) ) {
/**
* Load the relevant page template (uses WordPress hierarchy).
*/
function zues_content_area() {
/**
* Fires before the content (outside the loop)
*/
do_action( 'zues_content_... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/primary-nav.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/primary-nav.php | <?php
/**
* Outputs the primary navigation.
*
* @package zues
*/
if ( ! function_exists( 'zues_nav_primary' ) ) {
/**
* Outputs primary navigation.
*/
function zues_nav_primary() {
$priority = array(
'template-parts/primary-nav.php',
'zues-framework/structure/template-parts/primary-nav.php',
);
... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/general.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/general.php | <?php
if ( ! function_exists( 'zues_body_open_html' ) ) {
/**
* Output opening body HTML.
*/
function zues_body_open_html() {
echo '<body '. zues_get_attr( 'body' ) .'>';
}
}
if ( ! function_exists( 'zues_body_close_html' ) ) {
/**
* Output opening body HTML.
*/
function zues_body_close_html() {
e... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/wrapper.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/wrapper.php | <?php
/**
* The wrapper used to build all front-facing pages.
*
* @package zues
*/
function zues() {
zues_head();
/**
* Fires before the <body> tag
*/
do_action( 'zues_body_open_before' );
/**
* The opening <body> tag.
*
* @hooked zues_body_open_html - 10
*/
do_action( 'zues_body_open' )... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/header.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/header.php | <?php
/**
* Functions used to build .site-header
*
* @package zues
*/
if ( ! function_exists( 'zues_head' ) ) {
/**
* Out put the website head.
*/
function zues_head() {
$priority = array(
'template-parts/head.php',
'zues-framework/structure/template-parts/head.php',
);
locate_template( $priori... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/filters.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/filters.php | <?php
/**
* Filters used to modify theme output.
*
* @package zues
*/
if ( ! function_exists( 'zues_excerpt_more' ) ) {
/**
* Filter default more text.
*
* @param $string $more Default 'read more link' html.
*/
function zues_excerpt_more( $more ) {
global $post;
return '<p><a class="moretag" href="'.... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/sidebar.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/sidebar.php | <?php
/**
* Filters used to modify theme output.
*
* @package zues
*/
if ( ! function_exists( 'zues_sidebar_primary' ) ) {
/**
* Output the primary sidebar and hooks.
*/
function zues_sidebar_primary() {
echo '<aside '. zues_get_attr( 'sidebar', 'primary' ) . '">';
/**
* Fires before the sidebar
... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/footer.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/footer.php | <?php
/**
* The template for displaying the footer.
*
* @package zues
*/
if ( ! is_active_sidebar( 'footer-1' )
&& ! is_active_sidebar( 'footer-2' )
&& ! is_active_sidebar( 'footer-3' )
&& ! is_active_sidebar( 'footer-4' ) ) {
return;
} ?>
<div class="footer-widgets">
<?php zues_widget_area( 'footer-1' ); ... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/comments-nav.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/comments-nav.php | <?php
/**
* Template used for the comment navigation.
*
* @package zues
*/
?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav id="comment-nav-above" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/head.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/head.php | <?php
/**
* Standard WordPress <head>.
*
* @package zues
*/
?>
<!DOCTYPE html>
<html <?php echo get_language_attributes(); ?>>
<head>
<meta charset="<?php echo get_bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<l... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/archive-header.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/archive-header.php | <?php
/**
* The template for displaying the archive header
*
* This can be overwitten by adding a file named archive-header.php to /template-parts
*
* @package zues
*/
if ( ! is_archive() ) {
return;
}
?>
<header <?php zues_attr( 'archive-header' ) ?>>
<h1 <?php zues_attr( 'archive-title' ) ?>>
<?php the_a... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/comment.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/comment.php | <?php
/**
* Template used for the site comments.
*
* @package zues
*/
?>
<?php $GLOBALS['comment'] = $comment; ?>
<li <?php zues_attr( 'comment' ); ?>>
<article>
<header class="comment-meta">
<div class="comment-author-avatar">
<?php echo get_avatar( $comment->comment_aut... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/primary-nav.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/primary-nav.php | <?php
/**
* Outputs the primary navigation.
*
* @package zues
*/
echo '<nav '. zues_get_attr( 'menu', 'primary' ) .'">';
/**
* Fires before the primary navigation
*/
do_action( 'zues_primary_nav_before' );
echo '<div class="wrap">';
wp_nav_menu(
array(
'theme_location' => 'primary',
'co... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/content-none.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/content-none.php | <?php
/**
* The template part for displaying a message that posts cannot be found.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package zues
*/
/**
* Fires before the 'no content' content
*/
do_action( 'zues_no_content_before' ); ?>
<section class="no-results not-found">
<header class="... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/header.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/header.php | <?php
/**
* Template used for the site heaader.
*
* @package zues
*/
echo '<div ' . zues_get_attr( 'branding' ) . '>';
if ( get_header_image() ) {
zues_image_header();
} else {
zues_text_header();
}
echo '</div><!-- .site-branding -->';
| php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/search-header.php | Docker/security/apparmor/wordpress/zues/zues-framework/structure/template-parts/search-header.php | <?php
/**
* Header for search results pages.
*
* @package zues
*/
if ( ! is_search() ) {
return;
} ?>
<header <?php zues_attr( 'archive-header' ) ?>>
<h1 <?php zues_attr( 'archive-title' ) ?>>
<?php printf( esc_html__( 'Search Results for: %s', 'zues' ), '<span>' . get_search_query() . '</span>' ); ?>
</h1>
... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/TGMPA/class-tgm-plugin-activation.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/TGMPA/class-tgm-plugin-activation.php | <?php
/**
* Plugin installation and activation for WordPress themes.
*
* Please note that this is a drop-in library for a theme or plugin.
* The authors of this library (Thomas, Gary and Juliette) are NOT responsible
* for the support of your plugin or theme. Please contact the plugin
* or theme author for suppor... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | true |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/customizer-library.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/customizer-library.php | <?php
/**
* Customizer Library
*
* @package Customizer_Library
* @author Devin Price, The Theme Foundry
* @license GPL-2.0+
* @version 1.3.0
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Continue if the Customizer_Library isn't already in use.
if ( ! class_exists( 'Cus... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/custom-controls/content.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/custom-controls/content.php | <?php
/**
* Add controls for arbitrary heading, description, line
*
* @package Customizer_Library
* @author Devin Price
*/
if ( ! class_exists( 'WP_Customize_Control' ) ) {
return null;
}
/**
* Add controls for arbitrary heading, description, line
*/
class Customizer_Library_Content extends WP_Customize_Cont... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/custom-controls/textarea.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/custom-controls/textarea.php | <?php
/**
* Customize for textarea, extend the WP customizer
*
* @package Customizer_Library
* @author Devin Price, The Theme Foundry
*/
if ( ! class_exists( 'WP_Customize_Control' ) ) {
return null;
}
/**
* Customize for textarea, extend the WP customizer
*/
class Customizer_Library_Textarea extends WP_Cust... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/fonts.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/fonts.php | <?php
/**
* Theme Customizer Fonts
*
* @package Customizer_Library
* @author The Theme Foundry
*/
if ( ! function_exists( 'customizer_library_get_font_choices' ) ) :
/**
* Packages the font choices into value/label pairs for use with the customizer.
*
* @since 1.0.0.
*
* @return array The fonts i... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | true |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/utilities.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/utilities.php | <?php
/**
* Customizer Utility Functions
*
* @package Customizer_Library
* @author Devin Price, The Theme Foundry
*/
/**
* Helper function to return defaults
*
* @since 1.0.0
*
* @param string
* @return mixed $default
*/
function customizer_library_get_default( $setting ) {
$customizer_library = Cust... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/interface.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/interface.php | <?php
/**
* Builds out customizer options
*
* @package Customizer_Library
* @author Devin Price
*/
if ( ! function_exists( 'customizer_library_register' ) ) :
/**
* Configure settings and controls for the theme customizer.
*
* @since 1.0.0.
*
* @param object $wp_customize The global cust... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/style-builder.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/style-builder.php | <?php
/**
* @package Customizer_Library
* @author The Theme Foundry
*/
if ( ! class_exists( 'Customizer_Library_Styles' ) ) :
/**
* Singleton to collect and print CSS based on user input.
*
* This class provides a mechanism to gather all of the CSS needed to implement theme options. It allows for handling
... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/preview.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/preview.php | <?php
/**
* Customizer Utility Functions
*
* @package Customizer_Library
* @author Devin Price, The Theme Foundry
*/
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/
function customizer_library_customize_preview_js() {
$path = str_replace( WP_CONTENT_DIR, WP_CONTENT... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/sanitization.php | Docker/security/apparmor/wordpress/zues/zues-framework/libraries/customizer/extensions/sanitization.php | <?php
/**
* Customizer Sanization
*
* @package Customizer_Library
* @author Devin Price, The Theme Foundry
*/
if ( ! function_exists( 'customizer_library_sanitize_text' ) ) :
/**
* Sanitize a string to allow only tags in the allowedtags array.
*
* @since 1.0.0.
*
* @param string $string The unsa... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/helpers.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/helpers.php | <?php
/**
* Zues helper functions
*
* @package zues
*/
/**
* Has the theme just been activated
*
* @return bool
*/
function zues_is_theme_activated() {
global $pagenow;
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow === 'themes.php' ) {
return true;
}
return false;
}
/**
* Automatically l... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/attr.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/attr.php | <?php
/**
* HTML attribute functions and filters. The purposes of this is to provide a way for theme/plugin devs
* to hook into the attributes for specific HTML elements and create new or modify existing attributes.
* This is sort of like `body_class()`, `post_class()`, and `comment_class()` on steroids. Plus, it
... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/generate-css.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/generate-css.php | <?php
/**
* Functions for outputting CSS.
*
* @package zues
*/
if ( ! function_exists( 'zues_generate_css' ) ) {
/**
* Generate CSS code
*
* @param string $selector The CSS selector.
* @param string $style The property to be styled.
* @param string $mod_name The style value.
* @param stri... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/widget-areas.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/widget-areas.php | <?php
/**
* Helper functions for working with the WordPress sidebar system. Currently, the framework creates a
* simple function for registering HTML5-ready sidebars instead of the default WordPress unordered lists.
*
* @package HybridCore
* @subpackage Functions
* @author Justin Tadlock <justin@justintad... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/templates.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/templates.php | <?php
/**
* Zues template functions
*
* @package zues
*/
/**
* Return a list of available header templates.
*
* @return array The list of templates.
* @todo check against child theme
*/
function zues_get_headers() {
require_once( ABSPATH . 'wp-admin/includes/file.php' );
WP_Filesystem();
global $wp_fi... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/functions/template-tags.php | Docker/security/apparmor/wordpress/zues/zues-framework/functions/template-tags.php | <?php
/**
* Zues Core - A WordPress theme development framework.
*
* @package zues
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array
*/
function zues_body_classes( $classes ) {
// Adds a class of group-blog to blogs with more t... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/zues-framework/classes/class-admin-notices.php | Docker/security/apparmor/wordpress/zues/zues-framework/classes/class-admin-notices.php | <?php
/**
* Class for displaying notices in wp-admin
*
* @package zues
*/
/**
* Admin notice class
*/
class Zues_Admin_Notice
{
/**
* Notice ID
*
* @var int
*/
public $notice_id = '';
/**
* Notice CSS class
*
* @var string
*/
public $class = '';
/**
* The message to be shown
*
* @var... | php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/template-parts/footers/footer-example.php | Docker/security/apparmor/wordpress/zues/template-parts/footers/footer-example.php | <?php
/**
* Footer Name: Example
*
* An example footer for our theme.
*
* @package zues
*/
| php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/template-parts/headers/header-example.php | Docker/security/apparmor/wordpress/zues/template-parts/headers/header-example.php | <?php
/**
* Header Name: Example
*
* An example header for our theme.
*
* @package zues
*/
| php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
56kcloud/Training | https://github.com/56kcloud/Training/blob/8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa/Docker/security/apparmor/wordpress/zues/template-parts/sidebars/sidebar.php | Docker/security/apparmor/wordpress/zues/template-parts/sidebars/sidebar.php | <?php
/**
* The sidebar containing the main widget area.
*
* @package zues
*/
if ( ! is_active_sidebar( 'sidebar-primary' ) ) {
return;
}
zues_sidebar_primary();
| php | Apache-2.0 | 8848b8430ccb65bbc790d6a7c34d2de3ab99b9fa | 2026-01-05T03:43:18.223274Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/collect.php | collect.php | <?php namespace OpenFuego;
/** This script connects to the Twitter stream
* and captures raw data into a queue for processing.
**/
use OpenFuego\app\Universe as Universe;
use OpenFuego\app\Collector as Collector;
use OpenFuego\lib\Logger as Logger;
use OpenFuego\lib\TwitterHandle as TwitterHandle;
if (!defined('PH... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/consume.php | consume.php | <?php namespace OpenFuego;
/** This script processes the data placed
* in the queue by collect.php.
**/
use OpenFuego\lib\DbHandle as DbHandle;
use OpenFuego\app\Consumer as Consumer;
use OpenFuego\lib\Logger as Logger;
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
die(__NAMESPACE__ . ' requires PHP... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/fetch.php | fetch.php | <?php namespace OpenFuego;
use OpenFuego\lib\Logger as Logger;
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
die(__NAMESPACE__ . ' requires PHP 5.3.0 or higher.');
}
if (php_sapi_name() != 'cli') {
die('This script must be invoked from the command line.');
}
require_once(__DIR__ . '/init.php');
if ... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/config-sample.php | config-sample.php | <?php
/**
* Hola.
* This is the primary configuration file for OpenFuego.
* You must edit the values below before getting started.
* You should not need to edit any other files.
*
* OpenFuego requires PHP >= 5.3.0 and MySQL 5.
* Only POSIX operating systems (not Windows) are supported.
* This program mu... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/init.php | init.php | <?php namespace OpenFuego;
/**
* Do not run this file directly.
* Edit config.php to set up the application.
* Then run fetch.php at the command line.
*
* This file must be included in scripts.
*
* Gracias.
**/
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
die(__NAMESPACE__ . ' requires PH... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/app/Universe.class.php | app/Universe.class.php | <?php namespace OpenFuego\app;
use OpenFuego\lib\TwitterHandle as TwitterHandle;
use OpenFuego\lib\DbHandle as DbHandle;
use OpenFuego\lib\Logger as Logger;
class Universe {
public $citizens;
private static $dbh;
protected function array_most_common($input) {
$counted = array_count_values($input);
arsort($co... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/app/Getter.class.php | app/Getter.class.php | <?php namespace OpenFuego\app;
use OpenFuego\lib\DbHandle as DbHandle;
use OpenFuego\lib\Metadata as Metadata;
class Getter {
protected $_dbh;
protected function getDbh() {
if (!$this->_dbh) {
$this->_dbh = new DbHandle();
}
return $this->_dbh;
}
public function getItems($quantity = 10, $hours = 24... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/app/Consumer.class.php | app/Consumer.class.php | <?php namespace OpenFuego\app;
use OpenFuego\lib\UrlExpander as UrlExpander;
use OpenFuego\lib\DbHandle as DbHandle;
use OpenFuego\app\Universe as Universe;
use OpenFuego\lib\Logger as Logger;
class Consumer {
/**
* Member attribs
*/
protected $_queueDir;
protected $_filePattern;
protected $_checkInterval;
... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/app/Collector.class.php | app/Collector.class.php | <?php namespace OpenFuego\app;
class Collector extends \OauthPhirehose {
/**
* Subclass specific constants
*/
const QUEUE_FILE_PREFIX = 'CollectorQueue';
const QUEUE_FILE_ACTIVE = '.CollectorQueue.current';
/**
* Member attributes specific to this subclass
*/
protected $queueDir;
protected $rotateInterval;... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/examples/getItems.php | examples/getItems.php | <?php
/**
* The Getter object has one method:
*
* getItems($quantity, $hours, $scoring, $metadata)
*
* $quantity (int): Number of links desired. Default 20.
* $hours (int): How far back to look for links. Default 24.
* $scoring (bool): TRUE to employ "freshness vs. quality" algorithm
* or FALSE to s... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/Curl.class.php | lib/Curl.class.php | <?php namespace OpenFuego\lib;
class Curl {
protected $_curlHandle;
protected $_options;
protected $_headers;
public $url;
public $error;
public function __construct() {
if (!function_exists('curl_init')) {
throw new Exception("cURL must be installed to continue.");
}
$this->_headers = array(
... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/Logger.class.php | lib/Logger.class.php | <?php namespace OpenFuego\lib;
class Logger {
public static $verbose = \OpenFuego\VERBOSE;
public static $tmp;
public static function debug($message) {
$messageFormatted = self::getTimestamp() . $message . "\n";
if (self::$verbose) {
echo $messageFormatted;
}
}
public static function info($mess... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/Metadata.class.php | lib/Metadata.class.php | <?php namespace OpenFuego\lib;
class Metadata {
private $_apiRoot;
private $_endpoint;
private $_apiKey;
private $_dbh;
public function __construct() {
$this->_apiRoot = 'http://api.embed.ly/1';
$this->_endpoint = defined('\OpenFuego\EMBEDLY_API_ENDPOINT') ? \OpenFuego\EMBEDLY_API_ENDPOINT : 'oembed';
i... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/UrlExpander.class.php | lib/UrlExpander.class.php | <?php namespace OpenFuego\lib;
class UrlExpander {
const BITLY_API_ROOT = 'https://api-ssl.bitly.com/v3/';
const GOOGL_API_ROOT = 'https://www.googleapis.com/urlshortener/v1/url';
const ISGD_API_ROOT = 'http://is.gd/forward.php';
const SUPR_API_ROOT = 'http://su.pr/api/expand?version=1.0';
protected $_curl;
pr... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/TwitterHandle.class.php | lib/TwitterHandle.class.php | <?php namespace OpenFuego\lib;
class TwitterHandle extends \TwitterOAuth {
private $consumerKey;
private $consumerSecret;
private $accessToken;
private $accessTokenSecret;
public function __construct() {
$this->consumerKey = \OpenFuego\TWITTER_CONSUMER_KEY;
$this->consumerSecret = \OpenFuego\TWITTER_CONSUM... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/DbHandle.class.php | lib/DbHandle.class.php | <?php namespace OpenFuego\lib;
class DbHandle extends \PDO {
public function __construct() {
$dsn = \OpenFuego\DB_DRIVER
. ":host=" . \OpenFuego\DB_HOST
. ';port=' . \OpenFuego\DB_PORT
. ';dbname=' . \OpenFuego\DB_NAME
. ';';
try {
parent::__construct($dsn, \OpenFuego\DB_USER, \OpenFuego\DB... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/Phirehose/Phirehose.class.php | lib/Phirehose/Phirehose.class.php | <?php
/**
* A class that makes it easy to connect to and consume the Twitter stream via the Streaming API.
*
* Note: This is beta software - Please read the following carefully before using:
* - http://code.google.com/p/phirehose/wiki/Introduction
* - http://dev.twitter.com/pages/streaming_api
* @author Fenn B... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | true |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/Phirehose/OAuthPhirehose.class.php | lib/Phirehose/OAuthPhirehose.class.php | <?php
require_once(__DIR__ . '/Phirehose.class.php');
/**
*
*
* @internal At time of writing thise overrides getAuthorizationHeader() from the parent class;
* all other functions are helper functions for that.
*/
abstract class OauthPhirehose extends Phirehose
{
protected $auth_method;
/**
* The Twitter co... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/TwitterOAuth/OAuth.class.php | lib/TwitterOAuth/OAuth.class.php | <?php
// vim: foldmethod=marker
/* Generic exception class
*/
class OAuthException extends \Exception {
// pass
}
class OAuthConsumer {
public $key;
public $secret;
function __construct($key, $secret, $callback_url=NULL) {
$this->key = $key;
$this->secret = $secret;
$this->callback_url = $callbac... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
niemanlab/openfuego | https://github.com/niemanlab/openfuego/blob/0f89cd430fafcf050b6d856fb647f01f3ea5f15a/lib/TwitterOAuth/TwitterOAuth.class.php | lib/TwitterOAuth/TwitterOAuth.class.php | <?php
/*
* Abraham Williams (abraham@abrah.am) http://abrah.am
*
* The first PHP Library to support OAuth for Twitter's REST API.
*/
/**
* Twitter OAuth class
*/
require_once('OAuth.class.php');
class TwitterOAuth {
/* Contains the last HTTP status code returned. */
public $http_code;
/* Contains the ... | php | MIT | 0f89cd430fafcf050b6d856fb647f01f3ea5f15a | 2026-01-05T03:45:57.857574Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$finder = PhpCsFixer\Finder::create()
->exclude('storage')
->exclude('bootstrap')
->exclude('tests/Feature/__snapshots__')
->in(__DIR__);
return (new PhpCsFixer\Config)
->setRules([
'@PSR2' => true,
'method_argument_space' => ['on_multiline' => 'ignore'],
'ordered_imp... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/LaravelCustomFieldsServiceProvider.php | src/LaravelCustomFieldsServiceProvider.php | <?php
namespace Givebutter\LaravelCustomFields;
use Givebutter\LaravelCustomFields\FieldTypes\FieldType;
use Givebutter\LaravelCustomFields\ResponseTypes\ResponseType;
use Illuminate\Support\ServiceProvider;
class LaravelCustomFieldsServiceProvider extends ServiceProvider
{
public function register()
{
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Exceptions/WrongNumberOfFieldsForOrderingException.php | src/Exceptions/WrongNumberOfFieldsForOrderingException.php | <?php
namespace Givebutter\LaravelCustomFields\Exceptions;
use Exception;
class WrongNumberOfFieldsForOrderingException extends Exception
{
/**
* WrongNumberOfFieldsForOrderingException constructor.
*
* @param $given
* @param $expected
*/
public function __construct($given, $expected... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Exceptions/FieldDoesNotBelongToModelException.php | src/Exceptions/FieldDoesNotBelongToModelException.php | <?php
namespace Givebutter\LaravelCustomFields\Exceptions;
use Exception;
class FieldDoesNotBelongToModelException extends Exception
{
/**
* FieldDoesNotBelongToModelException constructor.
*
* @param $field
* @param $model
*/
public function __construct($field, $model)
{
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/SelectResponseType.php | src/ResponseTypes/SelectResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class SelectResponseType extends ResponseType
{
const VALUE_FIELD = 'value_str';
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/TextareaResponseType.php | src/ResponseTypes/TextareaResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class TextareaResponseType extends ResponseType
{
const VALUE_FIELD = 'value_text';
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/ResponseType.php | src/ResponseTypes/ResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
use Givebutter\LaravelCustomFields\Models\CustomFieldResponse;
abstract class ResponseType
{
const VALUE_FIELD = 'value_str';
public function __construct(
protected CustomFieldResponse $response,
) {
//
}
public funct... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/RadioResponseType.php | src/ResponseTypes/RadioResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class RadioResponseType extends ResponseType
{
const VALUE_FIELD = 'value_str';
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/CheckboxResponseType.php | src/ResponseTypes/CheckboxResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class CheckboxResponseType extends ResponseType
{
const VALUE_FIELD = 'value_int';
public function formatValue(mixed $value): mixed
{
return filter_var($value, FILTER_VALIDATE_BOOLEAN);
}
public function getValueFriendly(): mi... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/NumberResponseType.php | src/ResponseTypes/NumberResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class NumberResponseType extends ResponseType
{
const VALUE_FIELD = 'value_int';
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/ResponseTypes/TextResponseType.php | src/ResponseTypes/TextResponseType.php | <?php
namespace Givebutter\LaravelCustomFields\ResponseTypes;
class TextResponseType extends ResponseType
{
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/SelectFieldType.php | src/FieldTypes/SelectFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
use Illuminate\Validation\Rule;
class SelectFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($at... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/CheckboxFieldType.php | src/FieldTypes/CheckboxFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
class CheckboxFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($attributes['required']),
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/TextareaFieldType.php | src/FieldTypes/TextareaFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
class TextareaFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($attributes['required']),
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/RadioFieldType.php | src/FieldTypes/RadioFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
use Illuminate\Validation\Rule;
class RadioFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($att... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/NumberFieldType.php | src/FieldTypes/NumberFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
class NumberFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($attributes['required']),
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/FieldType.php | src/FieldTypes/FieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
use Givebutter\LaravelCustomFields\Models\CustomField;
abstract class FieldType
{
protected string $validationPrefix = 'custom_fields.field_';
public function __construct(
protected CustomField $field,
) {
//
}
public fu... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/FieldTypes/TextFieldType.php | src/FieldTypes/TextFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\FieldTypes;
class TextFieldType extends FieldType
{
public function validationRules(array $attributes): array
{
return [
$this->validationPrefix . $this->field->id => [
$this->requiredRule($attributes['required']),
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Interfaces/CustomFieldable.php | src/Interfaces/CustomFieldable.php | <?php
namespace Givebutter\LaravelCustomFields\Interfaces;
interface CustomFieldable
{
/**
* Get the custom fields belonging to this model.
*
* @return mixed
*/
public function customFields();
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Traits/HasCustomFields.php | src/Traits/HasCustomFields.php | <?php
namespace Givebutter\LaravelCustomFields\Traits;
use Givebutter\LaravelCustomFields\Exceptions\FieldDoesNotBelongToModelException;
use Givebutter\LaravelCustomFields\Exceptions\WrongNumberOfFieldsForOrderingException;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\MorphM... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Traits/HasCustomFieldResponses.php | src/Traits/HasCustomFieldResponses.php | <?php
namespace Givebutter\LaravelCustomFields\Traits;
use Illuminate\Database\Eloquent\Model;
trait HasCustomFieldResponses
{
/**
* Get the custom field responses for the model.
*
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
*/
public function customFieldResponses()
{
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Collections/CustomFieldCollection.php | src/Collections/CustomFieldCollection.php | <?php
namespace Givebutter\LaravelCustomFields\Collections;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Illuminate\Database\Eloquent\Collection;
class CustomFieldCollection extends Collection
{
public function toValidationRules(): array
{
return $this->map(fn (CustomField $field): arra... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Enums/CustomFieldType.php | src/Enums/CustomFieldType.php | <?php
namespace Givebutter\LaravelCustomFields\Enums;
enum CustomFieldType: string
{
case CHECKBOX = 'checkbox';
case NUMBER = 'number';
case RADIO = 'radio';
case SELECT = 'select';
case TEXT = 'text';
case TEXTAREA = 'textarea';
public function requiresAnswers(): bool
{
retu... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Models/CustomFieldResponse.php | src/Models/CustomFieldResponse.php | <?php
namespace Givebutter\LaravelCustomFields\Models;
use Givebutter\LaravelCustomFields\ResponseTypes\ResponseType;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/src/Models/CustomField.php | src/Models/CustomField.php | <?php
namespace Givebutter\LaravelCustomFields\Models;
use Givebutter\LaravelCustomFields\Collections\CustomFieldCollection;
use Givebutter\LaravelCustomFields\FieldTypes\FieldType;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquen... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/TestCase.php | tests/TestCase.php | <?php
namespace Givebutter\Tests;
use Givebutter\LaravelCustomFields\LaravelCustomFieldsServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Str;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
class TestCase extends OrchestraTes... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/bootstrap.php | tests/bootstrap.php | <?php
require __DIR__ . '/../vendor/autoload.php';
date_default_timezone_set('UTC');
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Support/SurveyResponse.php | tests/Support/SurveyResponse.php | <?php
namespace Givebutter\Tests\Support;
use Givebutter\LaravelCustomFields\Traits\HasCustomFieldResponses;
use Illuminate\Database\Eloquent\Model;
class SurveyResponse extends Model
{
use HasCustomFieldResponses;
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Support/HasCustomFieldResponsesModel.php | tests/Support/HasCustomFieldResponsesModel.php | <?php
namespace Givebutter\Tests\Support;
use Givebutter\LaravelCustomFields\Traits\HasCustomFieldResponses;
use Illuminate\Database\Eloquent\Model;
class HasCustomFieldResponsesModel extends Model
{
use HasCustomFieldResponses;
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Support/Survey.php | tests/Support/Survey.php | <?php
namespace Givebutter\Tests\Support;
use Givebutter\LaravelCustomFields\Traits\HasCustomFields;
use Illuminate\Database\Eloquent\Model;
class Survey extends Model
{
use HasCustomFields;
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Support/HasCustomFieldsModel.php | tests/Support/HasCustomFieldsModel.php | <?php
namespace Givebutter\Tests\Support;
use Givebutter\LaravelCustomFields\Traits\HasCustomFields;
use Illuminate\Database\Eloquent\Model;
class HasCustomFieldsModel extends Model
{
use HasCustomFields;
}
| php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Support/Migrations/create_surveys_and_survey_responses_tables.php | tests/Support/Migrations/create_surveys_and_survey_responses_tables.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up()
{
Schema::create('surveys', function (Blueprint $table) {
$table->increments('id');
$ta... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/CustomFieldControllerTest.php | tests/Feature/CustomFieldControllerTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Givebutter\Tests\Support\Survey;
use Givebutter\Tests\Support\SurveyResponse;
use Givebutter\Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Http\Request;
use Illuminate\Support\Facad... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/HasCustomFieldResponsesTest.php | tests/Feature/HasCustomFieldResponsesTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Givebutter\LaravelCustomFields\Models\CustomFieldResponse;
use Givebutter\Tests\Support\Survey;
use Givebutter\Tests\Support\SurveyResponse;
use Givebutter\Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshData... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/ScaffoldingTest.php | tests/Feature/ScaffoldingTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
class ScaffoldingTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function both_tables_are_created_by_migrations()
{
... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/CustomFieldTest.php | tests/Feature/CustomFieldTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\LaravelCustomFields\Collections\CustomFieldCollection;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Givebutter\Tests\Support\Survey;
use Givebutter\Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CustomFieldTest exte... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/OrderingTest.php | tests/Feature/OrderingTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\LaravelCustomFields\Exceptions\FieldDoesNotBelongToModelException;
use Givebutter\LaravelCustomFields\Exceptions\WrongNumberOfFieldsForOrderingException;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Givebutter\Tests\Support\Survey;
use Givebutter\... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/tests/Feature/HasCustomFieldsTest.php | tests/Feature/HasCustomFieldsTest.php | <?php
namespace Givebutter\Tests\Feature;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Givebutter\Tests\Support\Survey;
use Givebutter\Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class HasCustomFieldsTest extends TestCase
{
use RefreshDatabase;
/** @test */
public fu... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/config/custom-fields.php | config/custom-fields.php | <?php
return [
'form-name' => env('CUSTOM_FIELDS_FORM_NAME', 'custom_fields'),
'tables' => [
'fields' => env('CUSTOM_FIELDS_TABLE', 'custom_fields'),
'field-responses' => env('CUSTOM_FIELD_RESPONSES_TABLE', 'custom_field_responses'),
],
'models' => [
'custom-field' => \Givebut... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
givebutter/laravel-custom-fields | https://github.com/givebutter/laravel-custom-fields/blob/55025c9f2b19fceb6c53c968a87026f7453cb1bf/database/factories/CustomFieldFactory.php | database/factories/CustomFieldFactory.php | <?php
namespace Database\Factories;
use Exception;
use Faker\Provider\Lorem;
use Givebutter\LaravelCustomFields\Enums\CustomFieldType;
use Givebutter\LaravelCustomFields\Models\CustomField;
use Illuminate\Database\Eloquent\Factories\Factory;
class CustomFieldFactory extends Factory
{
/**
* The name of the f... | php | MIT | 55025c9f2b19fceb6c53c968a87026f7453cb1bf | 2026-01-05T03:46:19.948509Z | false |
ActiveCampaign/postmark-php | https://github.com/ActiveCampaign/postmark-php/blob/ad4b80e1f9953e22a9f7e32cad9d1c4cfcf73c0e/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
/**
* PHP CS Fixer Configuration file for ActiveCampaign.
*
* This is a simple but highly opinionated rule set for `php-cs-fixer` which is
* fully compliant with the [PER Coding Style 2.0 Standard](https://www.php-fig.org/per/coding-style/).
*
* To apply these fixes run: `./vendor/bin/php-cs-fixer fix <pat... | php | MIT | ad4b80e1f9953e22a9f7e32cad9d1c4cfcf73c0e | 2026-01-05T03:46:14.677646Z | false |
ActiveCampaign/postmark-php | https://github.com/ActiveCampaign/postmark-php/blob/ad4b80e1f9953e22a9f7e32cad9d1c4cfcf73c0e/src/Postmark/PostmarkClient.php | src/Postmark/PostmarkClient.php | <?php
namespace Postmark;
use Postmark\Models\DynamicResponseModel;
use Postmark\Models\MessageStream\PostmarkMessageStream;
use Postmark\Models\MessageStream\PostmarkMessageStreamArchivalConfirmation;
use Postmark\Models\MessageStream\PostmarkMessageStreamList;
use Postmark\Models\PostmarkBounce;
use Postmark\Models... | php | MIT | ad4b80e1f9953e22a9f7e32cad9d1c4cfcf73c0e | 2026-01-05T03:46:14.677646Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.