예제 #1
0
                $output .= '</div>';
                if (!$fullscreen) {
                    if ($fullwidth) {
                        $output .= '</div>';
                        //end sppb-contaniner
                        //$output .= '</div>';//end spppb-row
                    }
                }
                $output .= '</section>';
            }
            return htmlspecialchars_decode(AddonParser::spDoAddon($output));
        } else {
            return '<p>' . $content . '</p>';
        }
    }
}
function spAddonAtts($pairs, $atts, $shortcode = '')
{
    $atts = (array) $atts;
    $out = array();
    foreach ($pairs as $name => $default) {
        if (array_key_exists($name, $atts)) {
            $out[$name] = $atts[$name];
        } else {
            $out[$name] = $default;
        }
    }
    return $out;
}
AddonParser::getAddons();