HEX
Server: Apache
System: Linux pdx1-shared-a1-11 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mollywopper (10344313)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/mollywopper/mollywoppersnyb.com/wp-content/themes/pagelines/includes/library.theming.php

<?php /** * * This file is for functions designed to make PageLines theming easier * **/ /** * Uses controls to find and retrieve the appropriate option value * * @param 'panel' the id of the option tab * @param 'option_id' the id of the individual setting * @param 'keep' whether to keep the default options settings at runtime * e.g. keep default color control settings although this panel won't be shown in admin. * **/ /** * * @TODO document * */ function pagelines_disable_settings( $args ){ global $disabled_settings; $defaults = array( 'option_id' => false, 'panel' => '', 'keep' => false ); $args = wp_parse_args( $args, $defaults ); $disabled_settings[$args['panel']] = $args; } /** * Support a specific section in a child theme * * @param 'key' the class name of the section * @param 'args' controls on how the section will be supported. * **/ function pl_support_section( $args ){ global $supported_elements; $defaults = array( 'class_name' => '', 'disable_color' => false, 'slug' => '', 'supported' => true ); $args = wp_parse_args( $args, $defaults ); $supported_elements['sections'][ $args['class_name'] ] = $args; } /** * Support a specific plugin in a child theme * * @param 'key' the slug of the plugin * @param 'args' controls on how the plugin will be supported. * **/ function pl_support_plugin( $args ){ global $supported_elements; $defaults = array( 'slug' => '', 'supported' => true, 'url' => null, 'desc' => null, 'name' => null ); $args = wp_parse_args( $args, $defaults ); if ( isset( $args['name'] ) ) $supported_elements['plugins'][ $args['name'] ] = $args; else $supported_elements['plugins'][ $args['slug'] ] = $args; } /** * * @TODO document * */ function pl_default_setting( $args ){ if(pagelines_activate_or_reset()){ global $new_default_settings; $default = array( 'key' => '', 'value' => '', 'parent' => null, 'subkey' => null, 'setting' => PAGELINES_SETTINGS, ); $set = wp_parse_args($args, $default); $new_default_settings[] = $set; } } /** * * @TODO document * */ function pagelines_activate_or_reset(){ $activated = ( isset($_GET['activated']) && $_GET['activated'] ) ? true : false; $reset = ( isset($_GET['reset']) && $_GET['reset'] ) ? true : false; if( $activated || $reset ){ if( $activated ) return 'activated'; elseif( $reset ) return 'reset'; }else return false; } /** * * @TODO document * */ function pl_welcome_plugins( $args ){ global $pl_welcome_plugins; $default = array( 'name' => '', 'url' => '', 'desc' => '', ); $plugin = wp_parse_args($args, $default); $pl_welcome_plugins[] = $plugin; }