$sources = array('design', 'time', 'user', 'site', 'meta');
foreach ($sources as $source) {
    include_once $source . '/shortcodes.php';
}
class USL_All
{
    public function shortcode()
    {
        global $shortcode_tags;
        global $usl_codes;
        if ($shortcode_tags) {
            foreach ($shortcode_tags as $tag => $v) {
                $check = strpos($tag, 'usl_');
                if ($check === false) {
                    $title = str_replace('_', ' ', $tag);
                    $usl_codes[] = array('Code' => $tag, 'Title' => $title, 'Description' => '', 'Atts' => '', 'Category' => usl_core_shortcodes($tag), 'Example' => '');
                } else {
                }
            }
        }
        $output = '<ul>';
        foreach ($usl_codes as $code) {
            $output .= '<li>' . $code['Title'] . '</li>';
        }
        $output .= '</ul>';
        return $output;
    }
}
$uslall = new USL_All();
add_usl_shortcode('usl_all', array($uslall, 'shortcode'), 'All Shortcodes', 'Gets a list of all the shortcodes', 'Site');
 public function __construct()
 {
     add_usl_shortcode('usl_id', array($this, 'id'), 'Post ID', 'Displays the id of the current post.', 'Meta');
     add_usl_shortcode('usl_author', array($this, 'author'), 'Post Author', 'Displays the author of the current post.', 'Meta');
     add_usl_shortcode('usl_title', array($this, 'title'), 'Post Title', 'Displays the title of the current post.', 'Meta');
     add_usl_shortcode('usl_published', array($this, 'published'), 'Published Date', 'Displays the published of the current post.', 'Meta');
     add_usl_shortcode('usl_status', array($this, 'status'), 'Post Status', 'Displays the status of the current post.', 'Meta');
     add_usl_shortcode('usl_type', array($this, 'type'), 'Post Type', 'Displays the post type of the current post.', 'Meta');
     add_usl_shortcode('usl_excerpt', array($this, 'excerpt'), 'Post Excerpt', 'Displays the excerpt of the current post.', 'Meta');
 }
 * @return string|void
 */
function usl_site_title($atts)
{
    $atts = shortcode_atts(array('par' => 'name'), $atts);
    return usl_site($atts);
}
add_usl_shortcode('usl_site_title', 'usl_site_title', 'Site Title', 'Gets the title of the current site.', 'Site');
/**
 * Site tagline
 *
 * @return string|void
 */
function usl_site_tagline($atts)
{
    $atts = shortcode_atts(array('par' => 'description'), $atts);
    return usl_site($atts);
}
add_usl_shortcode('usl_site_tagline', 'usl_site_tagline', 'Site Tagline', 'Gets the tagline of the current site.', 'Site');
/**
 * Site admin email
 *
 * @return string|void
 */
function usl_site_admin_email($atts)
{
    $atts = shortcode_atts(array('par' => 'admin_email'), $atts);
    return usl_site($atts);
}
add_usl_shortcode('usl_site_admin_email', 'usl_site_admin_email', 'Site Admin Email', 'Gets the admin email of the current site.', 'Site');
    return $output;
}
add_usl_shortcode('usl_user_capabilities', 'usl_user_caps', 'Current user role', 'Displays the user\'s role.', 'User');
/*-------------------------------
Get current user admin color
-------------------------------*/
function usl_user_admin_theme()
{
    $user = get_userdata(wp_get_current_user()->ID);
    return $user->admin_color;
}
add_usl_shortcode('usl_user_admin_theme', 'usl_user_admin_theme', 'Current user admin theme', 'Displays the user\'s admin theme.', 'User');
/*-------------------------------
Get current user primary blog
-------------------------------*/
function usl_user_primary_blog()
{
    $user = get_userdata(wp_get_current_user()->ID);
    return $user->primary_blog;
}
add_usl_shortcode('usl_user_primary_blog', 'usl_user_primary_blog', 'Current user primary blog', 'Displays the user\'s primary blog.', 'User');
/*-------------------------------
Get current user source domain
-------------------------------*/
function usl_user_source_domain()
{
    $user = get_userdata(wp_get_current_user()->ID);
    return $user->source_domain;
}
add_usl_shortcode('usl_user_source_domain', 'usl_user_source_domain', 'Current user source domain', 'Displays the user\'s source domain.', 'User');
Columns
-------------------------------*/
function usl_column_two($atts, $content = null)
{
    global $usl_add_style;
    $usl_add_style = true;
    return '<div class="usl-column-2">' . do_shortcode($content) . '</div>';
}
function usl_column_three($atts, $content = null)
{
    global $usl_add_style;
    $usl_add_style = true;
    return '<div class="usl-column-3">' . do_shortcode($content) . '</div>';
}
function usl_column_four($atts, $content = null)
{
    global $usl_add_style;
    $usl_add_style = true;
    return '<div class="usl-column-4">' . do_shortcode($content) . '</div>';
}
function usl_column_five($atts, $content = null)
{
    global $usl_add_style;
    $usl_add_style = true;
    return '<div class="usl-column-5">' . do_shortcode($content) . '</div>';
}
add_usl_shortcode('usl_column_two', 'usl_column_two', 'Column 2', 'Creates a nice column that is half the width of the container.', 'Design', 'N/A', '[usl_column_two]Lorem ipsum...[/usl_column_two]');
add_usl_shortcode('usl_column_three', 'usl_column_three', 'Column 3', 'Creates a nice column that is one third the width of the container.', 'Design', 'N/A', '[usl_column_three]Lorem ipsum...[/usl_column_three]');
add_usl_shortcode('usl_column_four', 'usl_column_four', 'Column 4', 'Creates a nice column that is one fourth the width of the container.', 'Design', 'N/A', '[usl_column_four]Lorem ipsum...[/usl_column_four]');
add_usl_shortcode('usl_column_five', 'usl_column_five', 'Column 5', 'Creates a nice column that is one fifth the width of the container.', 'Design', 'N/A', '[usl_column_five]Lorem ipsum...[/usl_column_five]');
-------------------------------*/
function usl_year()
{
    return date("Y");
}
add_usl_shortcode('usl_year', 'usl_year', 'Current year', 'Outputs the current year.', 'Time');
/*-------------------------------
Get current day (number)
-------------------------------*/
function usl_day_num()
{
    return date("j");
}
add_usl_shortcode('usl_day_num', 'usl_day_num', 'Day of the month', 'Outputs the current day of the month.', 'Time');
/*-------------------------------
Get current day
-------------------------------*/
function usl_day()
{
    return date("l");
}
add_usl_shortcode('usl_day', 'usl_day', 'Current day', 'Outputs the current day of the week.', 'Time');
/*-------------------------------
Day of the year
-------------------------------*/
function usl_day_of_year()
{
    return date("z");
}
add_usl_shortcode('usl_day_of_year', 'usl_day_of_year', 'Day of year', 'Outputs the current day of the current year.', 'Time');