syamilmj / aqua-page-builder

Aqua Page Builder WordPress Plugin
238 stars 114 forks source link

ADDING BLOCK to new wodpress theme with the pluggin #111

Closed guididy closed 10 years ago

guididy commented 10 years ago

hello , this will might come easy for most of you, I have installed the Page builder plugin with its default 6 blocks.

I have used this plugin in other projects with my development team. I am now curious to see how i can import more blocks from previous projects to other theme where i plan to use the page_builder plugging.

So far i have been able to upload the blocks in the right ftp directory , and rename all file title to righ name

I have also replace the right name in my files and blocks still arent showing via admin panel: here is the section i would beleive im not doint right : Class name is

AQ_Clients_BLock

}

function block($instance) {
    extract($instance);

    $out = '';

    $out = '<div class="clients">';

        if ($slogan) {
            $out .= '<div class="info">';

                $out .= '<h2>'.do_shortcode(htmlspecialchars_decode($slogan)).'</h2>';
                $out .= '<h4>'.do_shortcode(htmlspecialchars_decode($caption)).'</h4>';             

            $out .= '</div>';
        }

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';} 
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_1)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_1)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_1)).'" alt="Clients" /></a>';
        $out .= '</div>';

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';}
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_2)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_2)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_2)).'" alt="Clients" /></a>';
        $out .= '</div>';

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';}
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_3)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_3)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_3)).'" alt="Clients" /></a>';
        $out .= '</div>';

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';}
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_4)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_4)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_4)).'" alt="Clients" /></a>';
        $out .= '</div>';

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';}
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_5)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_5)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_5)).'" alt="Clients" /></a>';
        $out .= '</div>';

        if ($bgoption=='yes') {$out .= '<div class="image aq_span2">';} else {$out .= '<div class="image aq_span2 nobg">';}
            $out .= '<span class="tooltip">'.do_shortcode(htmlspecialchars_decode($tooltip_6)).'</span><a href="'.do_shortcode(htmlspecialchars_decode($link_6)).'"><img src="'.do_shortcode(htmlspecialchars_decode($image_6)).'" alt="Clients" /></a>';
        $out .= '</div>';

    $out .= '</div>';

    echo $out;
}

thx for the help