コード例 #1
0
 function avada_slider($post_id)
 {
     $slider_type = avada_get_slider_type($post_id);
     $slider = avada_get_slider($post_id, $slider_type);
     if ($slider) {
         $slider_name = Avada_Helper::slider_name($slider_type);
         $slider_name = 'slider' == $slider_name ? 'layerslider' : $slider_name;
         $function = 'avada_' . $slider_name;
         $function($slider);
     }
 }
コード例 #2
0
function avada_slider($post_id)
{
    $slider_type = avada_get_slider_type($post_id);
    $slider = avada_get_slider($post_id, $slider_type);
    if ($slider) {
        $slider_name = avada_slider_name($slider_type);
        if ($slider_name == 'slider') {
            $slider_name = 'layerslider';
        }
        $function = 'avada_' . $slider_name;
        $function($slider);
    }
}