Example #1
0
 function _parse_theme_components($string)
 {
     global $active_show;
     if (FALSE === ($matches = $this->_match_methods($string, "theme"))) {
         return $string;
     }
     foreach ($matches[0] as $match) {
         $result = str_replace($this->l_delim . "theme:", '', $match);
         $result = str_replace($this->r_delim, '', $result);
         $view_path = "../.." . get_theme_path() . $result . ".php";
         $theme_view = $active_show->controller->load->view($view_path, null, true);
         $string = str_replace($match, $theme_view, $string);
     }
     return $string;
 }
 public function index()
 {
     if ($this->user->is_logged_in()) {
         redirect("/user/main/dashboard", 'location');
     } else {
         $this->load->model("builderengine");
         $data['builderengine'] =& $this->builderengine;
         if ($data['builderengine']->get_option('background_img')) {
             $url = base_url($data['builderengine']->get_option('background_img'));
         } else {
             $url = get_theme_path() . "assets/img/login-bg/bg-2.jpg";
         }
         $data['url'] = $url;
         $this->show->set_user_backend();
         $this->show->user_backend('registration', $data);
     }
 }
 /**
  * Controller.
  * 
  * This function will locate the associated element and display it in the
  * place of this function call
  * 
  * @param string $name
  */
 function bum_get_show_view($name = null)
 {
     //initializing variables
     $paths = set_controller_path();
     $theme = get_theme_path();
     $html = '';
     if (!($view = bum_find(array($theme), "views" . DS . $name . ".php"))) {
         $view = bum_find($paths, "views" . DS . $name . ".php");
     }
     if (!($model = bum_find(array($theme), "models" . DS . $name . ".php"))) {
         $model = bum_find($paths, "models" . DS . $name . ".php");
     }
     if (is_null($name)) {
         return false;
     }
     if (!$view && !$model) {
         return false;
     }
     do_action("byrd-controller", $model, $view);
     $path = $view;
     $html = false;
     if (file_exists($model)) {
         ob_start();
         $args = func_get_args();
         require $model;
         unset($html);
         $html = ob_get_clean();
     } else {
         ob_start();
         $args = func_get_args();
         require $path;
         unset($html);
         $html = ob_get_clean();
     }
     $html = apply_filters("byrd-controller-html", $html);
     return $html;
 }
Example #4
0
 /**
  * Resizes the specified image to the specified dimensions.
  * 
  * The crop will be centered relative to the image.
  * If the files do not exists will be created and saved into the tmp/ folder.
  * After first creation, the same file will be served in response to calling
  * this function.
  * 
  * @param string $src
  *   The path to the image to be resized.
  * @param int $width
  *   The width at which the image will be cropped.
  * @param int $height
  *   The height at which the image will be cropped.
  * @return string
  *   The valid URL to the resized image.
  * 
  * @ingroup helperfunc
  */
 function resize_image($src, $width, $height)
 {
     // initializing
     $save_path = get_theme_path() . '/tmp/';
     $img_filename = $save_path . md5($width . 'x' . $height . '_' . basename($src)) . '.jpg';
     // if file doesn't exists, create it ( else simply returns the image )
     if (!file_exists($img_filename)) {
         $to_scale = FALSE;
         $to_crop = FALSE;
         // Get orig dimensions
         list($width_orig, $height_orig, $type_orig) = getimagesize($src);
         // get original image ... to improve!
         switch ($type_orig) {
             case IMAGETYPE_JPEG:
                 $image = imagecreatefromjpeg($src);
                 break;
             case IMAGETYPE_PNG:
                 $image = imagecreatefrompng($src);
                 break;
             case IMAGETYPE_GIF:
                 $image = imagecreatefromgif($src);
                 break;
             default:
                 return;
         }
         // which is the new smallest?
         if ($width < $height) {
             $min_dim = $width;
         } else {
             $min_dim = $height;
         }
         // which is the orig smallest?
         if ($width_orig < $height_orig) {
             $min_orig = $width_orig;
         } else {
             $min_orig = $height_orig;
         }
         // image of the right size
         if ($height_orig == $height && $width_orig == $width) {
         } else {
             if ($width_orig < $width) {
                 $to_scale = TRUE;
                 $ratio = $width / $width_orig;
             } else {
                 if ($height_orig < $height) {
                     $to_scale = TRUE;
                     $ratio = $height / $height_orig;
                 } else {
                     if ($height_orig > $height && $width_orig > $width) {
                         $to_scale = TRUE;
                         $ratio_dest = $width / $height;
                         $ratio_orig = $width_orig / $height_orig;
                         if ($ratio_dest > $ratio_orig) {
                             $ratio = $width / $width_orig;
                         } else {
                             $ratio = $height / $height_orig;
                         }
                     } else {
                         if ($width == $width_orig && $height_orig > $height || $height == $height_orig && width_orig > $width) {
                             $to_crop = TRUE;
                         } else {
                             echo "ALARM";
                         }
                     }
                 }
             }
         }
         // we need to zoom to get the right size
         if ($to_scale) {
             $new_width = $width_orig * $ratio;
             $new_height = $height_orig * $ratio;
             $image_scaled = imagecreatetruecolor($new_width, $new_height);
             // scaling!
             imagecopyresampled($image_scaled, $image, 0, 0, 0, 0, $new_width, $new_height, $width_orig, $height_orig);
             $image = $image_scaled;
             if ($new_width > $width || $new_height > $height) {
                 $to_crop = TRUE;
             }
         } else {
             $new_width = $width_orig;
             $new_height = $height_orig;
         }
         // we need to crop the image
         if ($to_crop) {
             $image_cropped = imagecreatetruecolor($width, $height);
             // find margins for images
             $margin_x = ($new_width - $width) / 2;
             $margin_y = ($new_height - $height) / 2;
             // cropping!
             imagecopy($image_cropped, $image, 0, 0, $margin_x, $margin_y, $width, $height);
             $image = $image_cropped;
         }
         // Save image
         imagejpeg($image, $img_filename, 95);
     }
     // Return image URL
     return get_bloginfo("template_url") . '/tmp/' . basename($img_filename);
 }
Example #5
0
?>
"
	</script>

	<?php 
echo stylesheet_tag("lib/dijit/themes/claro/claro.css");
?>
	<?php 
echo stylesheet_tag("css/layout.css");
?>

	<?php 
if ($_SESSION["uid"]) {
    $theme = get_pref("USER_CSS_THEME", $_SESSION["uid"], false);
    if ($theme && theme_valid("{$theme}")) {
        echo stylesheet_tag(get_theme_path($theme));
    } else {
        echo stylesheet_tag("themes/default.css");
    }
}
?>

	<?php 
print_user_stylesheet();
?>

	<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
	<link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png" />

	<?php 
foreach (array("lib/prototype.js", "lib/scriptaculous/scriptaculous.js?load=effects,controls", "lib/dojo/dojo.js", "lib/dojo/tt-rss-layer.js", "errors.php?mode=js") as $jsfile) {
Example #6
0
   All Emoncms code is released under the GNU Affero General Public License.
   See COPYRIGHT.txt and LICENSE.txt.

    ---------------------------------------------------------------------
    Emoncms - open source energy visualisation
    Part of the OpenEnergyMonitor project:
    http://openenergymonitor.org
*/
if (!isset($session['read']) || !$session['read']) {
    return;
}
if (isset($_SESSION['editmode']) && $_SESSION['editmode'] == TRUE) {
    $logo = get_theme_path() . "/emoncms logo off.png";
    $viewl = $session['username'];
} else {
    $logo = get_theme_path() . "/emoncms logo.png";
    if ($session['write']) {
        $viewl = 'dashboard/list';
    } else {
        $viewl = '';
    }
}
/*<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
  <span class="icon-bar"></span>
</button>*/
if (isset($_SESSION['editmode']) && $_SESSION['editmode'] == TRUE) {
    echo "<a class='brand' href='#'>Emoncms3</a>";
}
?>
Example #7
0
 function test_get_theme_path()
 {
     $this->assertEqual('/mocked/file/path/to/mocked_root/mocked_theme', get_theme_path());
 }
Example #8
0
    function admin_select($var, $options, $title, $value = "")
    {
        echo '
			<link href="' . get_theme_path() . 'css/bootstrap.min.css" rel="stylesheet">
			<div class="form-group">
				<label>' . $title . '</label>
				<select name=' . $var . ' class="form-control">';
        foreach ($options as $val => $name) {
            if ($value == $val) {
                echo '<option selected value=' . $val . '>' . $name . '</option>';
            } else {
                echo '<option value=' . $val . '>' . $name . '</option>';
            }
        }
        echo '
				</select>
			</div>
			';
        /*echo"
        		<div class=\"control-group\">
                    <label class=\"control-label\" for=\"required\" style='width: 80px'><b>$title</b></label>
                    <div class=\"controls controls-row\" style='margin-left: 85px'>
                        <select name=\"$var\" class=\"span12\" >
                        ";
                        foreach($options as $val => $name)
                        {
                        	if($value == $val)
                        		echo "<option selected value='$val'>$name</option>";
                        	else
                        		echo "<option value='$val'>$name</option>";
                        }
                        echo"
                        </select>
                    </div>
                </div><!-- End .control-group  -->
                ";*/
    }
Example #9
0
?>
            <?php 
$line3->add_block($block1);
?>
            <?php 
$block2 = new Block('be-theme-pro-home-line-3-col-2');
?>
            <?php 
$block2->set_size('span6');
?>
            <?php 
$block2->html("{content}");
?>
            <?php 
$block2->set_content('
                <img src="' . get_theme_path() . 'img/beland1.jpg" alt="" />
                ');
?>
            <?php 
$line3->add_block($block2);
?>
			
<!-- 4th Line of Blocks --> 
			
            <?php 
$line4 = new Block("rpost-test");
?>
            <?php 
$line4->set_type('pro_rpost');
?>
            <?php 
Example #10
0
    function integrate_builderengine_js()
    {
        global $active_show;
        $user = $active_show->controller->user;
        ?>

            <script src="/builderengine/public/js/jquery.js"></script>
            <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" ></script>
            
            <script src="/builderengine/public/js/editor/ckeditor.js"></script>

            <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
            <script src="http://vitalets.github.io/angular-xeditable/dist/js/xeditable.js"></script>

            
            <script type="text/javascript">
                var page_path = "<?php 
        echo get_page_path();
        ?>
";
                var theme_path = "<?php 
        echo get_theme_path();
        ?>
";
                var blocks_for_reload = {};
                var disable_auto_block_reload = false;
                var getting_block = false;

                var has_focus = true;
                var var_editor_mode = "";

            </script>
            <script src="/builderengine/public/js/frontend-editor.js"></script>
            <script type="text/javascript">
                function reload_block(block_name, page_path, forced)
                {
                    //if(!has_focus)
                    //    return;
                    if(!forced && disable_auto_block_reload ){
                        alert('nope ' + forced);
                        return;
                    }
                    var getting_block = true;

                    jQuery.ajax({
                        type: "POST",
                        data: { page_path: page_path },
                         url:    '/layout_system/ajax/get_block/' +block_name + '?time='+new Date().getTime(),
                         success: function(data) {
                                    $('.block').each(function(){
                                        if($(this).attr("name") == block_name){

                                            old_data = $(this).html();

                                            cloned = $(this).clone();
                                            cloned = cloned.replaceWith(data);
                                            cloned_data = cloned.html();
                                            $(this).attr('class', cloned.attr('class'));
                                            cloned.remove();
                                            if(old_data != cloned_data || forced)
                                                $(this).replaceWith(data);
                                            if(var_editor_mode == "edit")
                                                initializeCustomEditorClickEvent();
                                            if(var_editor_mode == "style")
                                                initializeStyleEditorClickEvent();
                                                                            
                                        }
                                    }); 

                                    var getting_block = false;
                                    },
                         async:   true
                    });

                    
                }
                $(document).ready(function(){
                    if(window.parent.page_url_change)
                    window.parent.page_url_change(page_path);
                    jQuery(document).bind('editor_mode_change',  function (event, action){
                        if(action == "editModeEnable")
                            var_editor_mode = "edit";
                        if(action == "blockStyleModeEnable")
                            var_editor_mode = "style";

                        console.log('Received event '+action);
                        if(action == "blockStyleModeEnable" || action == "editModeEnable" || action == 'resizeModeEnable' || action == 'moveModeEnable' || action == 'addBlockModeEnable' || action == 'deleteBlockModeEnable')
                        {
                            disable_auto_block_reload = true;
                        }

                        if(action == "blockStyleModeDisable" || action == "editModeDisable" || action == 'resizeModeDisable' || action == 'moveModeDisable' || action == 'addBlockModeDisable' || action == 'deleteBlockModeDisable')
                        {
                            var_editor_mode = "";
                            disable_auto_block_reload = false;
                        }
                    });
                    <?php 
        $copied_block = $this->user->get_session_data("copied_block");
        if ($copied_block) {
            ?>
                        $("#paste-block-button").parent().removeClass("disabled");
                    <?php 
        }
        ?>
  


                    $("#editor-holder").css('display','none');
                    <?php 
        if ($user->is_member_of("Administrators") || $user->is_member_of("Frontend Editor") || $user->is_member_of("Frontend Manager")) {
            ?>
                    //$("body").css("padding-top", "45px");

                   
                    <?php 
        }
        ?>
                    //$("html").attr('ng-app','');
                    //$.getScript("http://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js");
                });
            </script>
            
            <script src="/builderengine/public/js/bootstrap-wysihtml5.js"></script>

            <?php 
    }
Example #11
0
?>
                        <?php 
$block5->set_content('
                              <h4>Fusce imperdiet ornare</h4>
                              <p>Fusce imperdiet ornare dignissim. Donec aliquet convallis tortor, et placerat quam posuere posuere. Morbi tincidunt posuere turpis eu laoreet.</p>
                              <div class="button"><a href="#">Learn More</a></div>
                              ');
?>
                        <?php 
$block6 = new Block('business-commodore-1-theme-features-line4-col2');
?>
                        <?php 
$block6->set_size('span6');
?>
                        <?php 
$block6->set_content('<img src="' . get_theme_path() . 'img/beland3.jpg" alt="" />');
?>
                        <?php 
$line4->add_block($block5);
?>
                        <?php 
$line4->add_block($block6);
?>

<!-- 5th Line of Blocks -->
         
                        <?php 
$line5 = new Block('business-commodore-1-theme-features-cta');
?>
                        <?php 
$line5->add_css_class('row');
Example #12
0
?>
     
                        <?php 
$block1 = new Block('business-commodore-1-theme-features-line3-col1');
?>
                        <?php 
$block1->set_size('span8');
?>
                        <?php 
$block1->set_content('<!-- Product title -->
                                    <h3>Project #1</h3>
                                    <!-- Product para -->
                                    <p>Sed justo dui, scelerisque ut consectetur vel, eleifend id erat. Morbi auctor adipiscing tempor. Phasellus condimentum rutrum aliquet. Quisque eu consectetur erat. Sed justo dui, scelerisque ut consectetur vel, eleifend id erat. Morbi auctor adipiscing tempor. Phasellus condimentum rutrum aliquet. Quisque eu consectetur erat.</p>
                                    <!-- Product image -->
                                    <div class="pimg">
                                       <a href="#"><img src="' . get_theme_path() . 'img/photos/1.jpg" alt="" /></a>
                                    </div>
									');
?>
                        
						<?php 
$block2 = new Block('business-commodore-1-theme-features-line3-col2');
?>
                        <?php 
$block2->set_size('span4');
?>
                        <?php 
$block2->set_content('
                               <div class="pdetails">
                                       <div class="ptable">
                                          <!-- Product details with font awesome icon. Don\'t forget the span class "pull-right". -->
Example #13
0
ClassLoader::addDirectories(File::directories(app_path() . '/plugins'));
/*
|--------------------------------------------------------------------------
| Theme functions
|--------------------------------------------------------------------------
|
| Built on top of Laravel is our custom theme functions, we need to make
| sure they're all loaded so there's no errors
|
*/
$functions = array('metadata', 'theme', 'page');
foreach ($functions as $function) {
    require app_path() . '/functions/' . $function . '.php';
}
View::addNamespace('theme', 'public/themes/' . Metadata::item('theme', 'default'));
View::addLocation(get_theme_path('layouts'));
/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
| is built on top of the wonderful Monolog library. By default we will
| build a basic log file setup which creates a single file for logs.
|
*/
Log::useFiles(storage_path() . '/logs/laravel.log');
/*
|--------------------------------------------------------------------------
| Application Error Handler
|--------------------------------------------------------------------------
Example #14
0
    public function generate_content()
    {
        $title = $this->block->data('title');
        $text = $this->block->data('text');
        $button_text = $this->block->data('button_text');
        $button_link = $this->block->data('button_link');
        $icon = $this->block->data('icon');
        $icon_font_color = $this->block->data('icon_font_color');
        $icon_font_size = $this->block->data('icon_font_size');
        $icon_font_weight = $this->block->data('icon_font_weight');
        $icon_animation = $this->block->data('icon_animation');
        $icon_animation_state = $this->block->data('icon_animation_state');
        $icon_animation_type = $this->block->data('icon_animation_type');
        $icon_animation_duration = $this->block->data('icon_animation_duration');
        $icon_animation_event = $this->block->data('icon_animation_event');
        $icon_animation_delay = $this->block->data('icon_animation_delay');
        $title_font_color = $this->block->data('title_font_color');
        $title_font_weight = $this->block->data('title_font_weight');
        $title_font_size = $this->block->data('title_font_size');
        $title_animation = $this->block->data('title_animation');
        $title_animation_state = $this->block->data('title_animation_state');
        $title_animation_type = $this->block->data('title_animation_type');
        $title_animation_duration = $this->block->data('title_animation_duration');
        $title_animation_event = $this->block->data('title_animation_event');
        $title_animation_delay = $this->block->data('title_animation_delay');
        $subtitle_font_color = $this->block->data('subtitle_font_color');
        $subtitle_font_weight = $this->block->data('subtitle_font_weight');
        $subtitle_font_size = $this->block->data('subtitle_font_size');
        $subtitle_animation = $this->block->data('subtitle_animation');
        $subtitle_animation_state = $this->block->data('subtitle_animation_state');
        $subtitle_animation_type = $this->block->data('subtitle_animation_type');
        $subtitle_animation_duration = $this->block->data('subtitle_animation_duration');
        $subtitle_animation_event = $this->block->data('subtitle_animation_event');
        $subtitle_animation_delay = $this->block->data('subtitle_animation_delay');
        $button_animation_type = $this->block->data('button_animation_type');
        $button_animation_duration = $this->block->data('button_animation_duration');
        $button_animation_event = $this->block->data('button_animation_event');
        $button_animation_delay = $this->block->data('button_animation_delay');
        $background_image = $this->block->data('background_image');
        $settings[0][0] = 'icon' . $this->block->get_id();
        $settings[0][1] = $icon_animation_event;
        $settings[0][2] = $icon_animation_duration . ' ' . $icon_animation_delay . ' ' . $icon_animation_type;
        $settings[1][0] = 'title' . $this->block->get_id();
        $settings[1][1] = $title_animation_event;
        $settings[1][2] = $title_animation_duration . ' ' . $title_animation_delay . ' ' . $title_animation_type;
        $settings[2][0] = 'subtitle' . $this->block->get_id();
        $settings[2][1] = $subtitle_animation_event;
        $settings[2][2] = $subtitle_animation_duration . ' ' . $subtitle_animation_delay . ' ' . $subtitle_animation_type;
        $settings[3][0] = 'button' . $this->block->get_id();
        $settings[3][1] = $button_animation_event;
        $settings[3][2] = $button_animation_duration . ' ' . $button_animation_delay . ' ' . $button_animation_type;
        add_action("be_foot", generate_animation_events($settings));
        if ($background_image == '') {
            $background_image = get_theme_path() . 'images/action-bg.jpg';
        }
        if ($title == '') {
            $title = 'CHECK OUT OUR CMS PLATFORM!';
        }
        if ($text == '') {
            $text = 'BuilderEngine CMS Platform Version 3 is Open Source software and is under the MIT License agreement.';
        }
        if ($button_text == '') {
            $button_text = 'Download Here';
        }
        if ($button_link == '') {
            $button_link = 'http://builderengine.org/page-cms-download.html';
        }
        if ($icon == '') {
            $icon = 'fa-check';
        }
        $icon_style = 'style="
                    color: ' . $icon_font_color . ' !important;
                    font-size: ' . $icon_font_size . ' !important;
                "';
        $title_style = 'style="
                    color: ' . $title_font_color . ' !important;
                    font-weight: ' . $title_font_weight . ' !important;
                    font-size: ' . $title_font_size . ' !important;
                "';
        $subtitle_style = 'style="
                    color: ' . $subtitle_font_color . ' !important;
                    font-weight: ' . $subtitle_font_weight . ' !important;
                    font-size: ' . $subtitle_font_size . ' !important;
                "';
        $output = '
			<link href="' . base_url('blocks/action_bar/style.css') . '" rel="stylesheet">
			<link href="' . base_url('builderengine/public/animations/css/animate.min.css') . '" rel="stylesheet" />
			<div id="action-box" class="blockcontent-action has-bg custom-content" data-scrollview="true" style="padding-left:15px;padding-right:15px;">
	            <div class="content-bg">
	                
	            </div>
	            <div data-animation="true" data-animation-type="fadeInRight">
	                <div class="row action-box" id="action_box">
	                    <!-- Column & Block -->
	                    <div class="col-md-9 col-sm-9">
	                        <div class="icon-large text-theme" id="icon' . $this->block->get_id() . '">
	                            <i ' . $icon_style . ' class="fa ' . $icon . '"></i>
	                        </div> 
	                        <h3 id="title' . $this->block->get_id() . '" ' . $title_style . '>' . $title . '</h3>
	                        <p id="subtitle' . $this->block->get_id() . '" ' . $subtitle_style . '>
	                           ' . $text . '
	                        </p>
	                    </div>
	                    <div class="col-md-3 col-sm-3">
	                        <a id="button' . $this->block->get_id() . '" href="' . $button_link . '" class="btn btn-outline btn-block">' . $button_text . '</a>
	                    </div>
	                </div>
	            </div>
	        </div>
            ';
        return $output;
    }
Example #15
0
 function backend($string, $data = array())
 {
     global $active_show;
     $data['BuilderEngine'] = $active_show->controller->get_builderengine();
     if (isset($active_show->breadcrumb[0])) {
         $data['breadcrumb'] = $active_show->breadcrumb;
     } else {
         $uri = $active_show->controller->uri->segment(2);
         $name = explode("_", $uri);
         foreach ($name as &$segment) {
             $segment[0] = strtoupper($segment[0]);
         }
         $name = implode(" ", $name);
         $data['breadcrumb'][0]['name'] = $name;
         $data['breadcrumb'][0]['url'] = "";
         $uri = $active_show->controller->uri->segment(3);
         $name = explode("_", $uri);
         foreach ($name as &$segment) {
             $segment[0] = strtoupper($segment[0]);
         }
         $name = implode(" ", $name);
         $data['breadcrumb'][1]['name'] = $name;
         $data['breadcrumb'][1]['url'] = "";
     }
     $data['user'] = $active_show->controller->get_user();
     $active_show->controller->load->view("../.." . get_theme_path() . $string . ".php", $data);
 }
Example #16
0
 public function userLogin()
 {
     if (isset($_POST['forgot'])) {
         $this->users->send_password_reset_email(urldecode($_POST['email']));
     }
     $this->load->model("builderengine");
     $data['builderengine'] =& $this->builderengine;
     if ($data['builderengine']->get_option('background_img')) {
         $url = base_url($data['builderengine']->get_option('background_img'));
     } else {
         $url = get_theme_path() . "assets/img/login-bg/bg-2.jpg";
     }
     $data['url'] = $url;
     $this->show->set_user_backend();
     $this->show->user_backend('index', $data);
 }
Example #17
0
    public function generate_admin()
    {
        $field1_name = $this->block->data('field1_name');
        $field1_active = $this->block->data('field1_active');
        $field1_required = $this->block->data('field1_required');
        $field2_name = $this->block->data('field2_name');
        $field2_active = $this->block->data('field2_active');
        $field2_required = $this->block->data('field2_required');
        $field3_name = $this->block->data('field3_name');
        $field3_active = $this->block->data('field3_active');
        $field3_required = $this->block->data('field3_required');
        $field4_name = $this->block->data('field4_name');
        $field4_active = $this->block->data('field4_active');
        $field4_required = $this->block->data('field4_required');
        $email_destination = $this->block->data('email_destination');
        $email_title = $this->block->data('email_title');
        $email_active = $this->block->data('email_active');
        $captcha_active = $this->block->data('captcha_active');
        ?>
            <link href="<?php 
        echo get_theme_path();
        ?>
css/bootstrap.min.css" rel="stylesheet">
            <div role="tabpanel">

                <ul class="nav nav-tabs" role="tablist" style="margin-left: -20px;">
                    <li role="presentation" class="active"><a href="#field_1" aria-controls="field_1" role="tab" data-toggle="tab">Field 1</a></li>
                    <li role="presentation"><a href="#field_2" aria-controls="field_2" role="tab" data-toggle="tab">Field 2</a></li>
                    <li role="presentation"><a href="#field_3" aria-controls="field_3" role="tab" data-toggle="tab">Field 3</a></li>
                    <li role="presentation"><a href="#field_4" aria-controls="field_4" role="tab" data-toggle="tab">Field 4</a></li>
                    <li role="presentation"><a href="#settings" aria-controls="settings" role="tab" data-toggle="tab">Settings</a></li>
                </ul>

                <div class="tab-content">
                    <?php 
        $bool_options = array("yes" => "Yes", "no" => "No");
        ?>
                    <div role="tabpanel" class="tab-pane fade in active" id="field_1">
                        <?php 
        $this->admin_input('field1_name', 'text', 'Name: ', $field1_name);
        $this->admin_select('field1_active', $bool_options, 'Active: ', $field1_active);
        $this->admin_select('field1_required', $bool_options, 'Required: ', $field1_required);
        ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="field_2">
                        <?php 
        $this->admin_input('field2_name', 'text', 'Name: ', $field2_name);
        $this->admin_select('field2_active', $bool_options, 'Active: ', $field2_active);
        $this->admin_select('field2_required', $bool_options, 'Required: ', $field2_required);
        ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="field_3">
                        <?php 
        $this->admin_input('field3_name', 'text', 'Name: ', $field3_name);
        $this->admin_select('field3_active', $bool_options, 'Active: ', $field3_active);
        $this->admin_select('field3_required', $bool_options, 'Required: ', $field3_required);
        ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="field_4">
                        <?php 
        $this->admin_input('field4_name', 'text', 'Name: ', $field4_name);
        $this->admin_select('field4_active', $bool_options, 'Active: ', $field4_active);
        $this->admin_select('field4_required', $bool_options, 'Required: ', $field4_required);
        ?>
                    </div>
                    <div role="tabpanel" class="tab-pane fade" id="settings">
                        <?php 
        $this->admin_input('email_destination', 'text', 'Destination email: ', $email_destination);
        $this->admin_input('email_title', 'text', 'Email title: ', $email_title);
        $this->admin_select('email_active', $bool_options, 'Contact form active: ', $email_active);
        $this->admin_select('captcha_active', $bool_options, 'Captcha: ', $captcha_active);
        ?>
                    </div>
                </div>

            </div>
            <?php 
    }
Example #18
0
    public function generate_content()
    {
        $author = $this->block->data('author');
        $quotation = $this->block->data('quotation');
        $from = $this->block->data('from');
        // style
        $quotation_font_color = $this->block->data('quotation_font_color');
        $quotation_font_weight = $this->block->data('quotation_font_weight');
        $quotation_font_size = $this->block->data('quotation_font_size');
        $author_font_color = $this->block->data('author_font_color');
        $author_font_weight = $this->block->data('author_font_weight');
        $author_font_size = $this->block->data('author_font_size');
        $from_font_color = $this->block->data('from_font_color');
        $from_font_weight = $this->block->data('from_font_weight');
        $from_font_size = $this->block->data('from_font_size');
        $background_image = $this->block->data('background_image');
        $animation_type = $this->block->data('animation_type');
        $animation_duration = $this->block->data('animation_duration');
        $animation_event = $this->block->data('animation_event');
        $animation_delay = $this->block->data('animation_delay');
        $settings[0][0] = 'quote' . $this->block->get_id();
        $settings[0][1] = $animation_event;
        $settings[0][2] = $animation_duration . ' ' . $animation_delay . ' ' . $animation_type;
        add_action("be_foot", generate_animation_events($settings));
        if ($background_image == '') {
            $background_image = get_theme_path() . 'images/quote-bg.jpg';
        }
        if ($quotation == '') {
            $quotation = 'Passion leads to design, design leads to performance, performance leads to success!';
        }
        if ($author == '') {
            $author = 'Sean Murphy';
        }
        if ($from == '') {
            $from = 'Web Guru';
        }
        $quotation_style = 'style="
                    color: ' . $quotation_font_color . ' !important;
                    font-weight: ' . $quotation_font_weight . ' !important;
                    font-size: ' . $quotation_font_size . ' !important;
                "';
        $author_style = 'style="
                    color: ' . $author_font_color . ' !important;
                    font-weight: ' . $author_font_weight . ' !important;
                    font-size: ' . $author_font_size . ' !important;
                    display: inline;
                "';
        $from_style = 'style="
                    color: ' . $from_font_color . ' !important;
                    font-weight: ' . $from_font_weight . ' !important;
                    font-size: ' . $from_font_size . ' !important;
                    display: inline;
                "';
        $output = '
			<link href="' . base_url('blocks/quote/style.css') . '" rel="stylesheet">
			<link href="' . base_url('builderengine/public/animations/css/animate.min.css') . '" rel="stylesheet" />
			<div id="quote" class="blockcontent-quote bg-black-darker has-bg" data-scrollview="true">
	            <div class="content-bg">
	                
	            </div>
	            <div class="" data-animation="true" data-animation-type="fadeInLeft">
	                <div class="row">
	                    <div id="quote' . $this->block->get_id() . '" class="col-md-12 quote" ' . $quotation_style . '>
	                        <i class="fa fa-quote-left"></i> ' . $quotation . '  
	                        <i class="fa fa-quote-right"></i>
	                        <small><div ' . $from_style . '>' . $author . '</div><div ' . $from_style . '>, ' . $from . '</div></small>
	                    </div>
	                </div>
	            </div>
	        </div>';
        return $output;
    }
Example #19
0
    public function show()
    {
        $freeModeClass = '';
        if (!$this->load()) {
            $this->is_new_block = true;
        }
        $content = $this->data('content');
        if (true) {
            $content = $this->generate_content();
        }
        $editor = $this->data('block-editor');
        if ($this->type == 'generic' || $editor != null && ($editor = 'inline-text-editor')) {
            $block_editor = 'ckeditor';
        } else {
            $block_editor = 'custom';
        }
        //$block_editor = 'ckeditor';
        if ($this->is_new_block) {
            PC::WARNING("This is new block - saving " . $this->name);
            $this->save();
        }
        $classes = "";
        if ($this->is_resizable()) {
            $classes .= " resizable " . $this->size() . " ";
        }
        $block_content = "<div class='block-content' block-type='{$this->type}' block-editor='{$block_editor}' block-name='{$this->name}'>" . $content . "</div>";
        $this->children_holder_classes = "";
        switch ($this->type) {
            case "header":
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>
                                        <div class="dropdown block-add-child-block">
                                            <a rel="tooltip" data-placement="top" title="Add Section" class="btn btn-xs  btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-th-large"></span>
                                            </a>

                                            <ul class="dropdown-menu " role="menu"
                                                aria-labelledby="dropdownMenu1">

                                            </ul>
                                        </div>
                                        ';
                $this->html .= $this->output_admin_options();
                $this->html .= "    </div>\r\n                                </div>";
                $classes .= " be-header-block be-container-block ";
                $this->children_holder_classes = " header-children ";
                break;
            case "page":
                $this->html .= '<div class="block-controls">
                                   <div class="block-controls-inner panel-heading-btn">
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>

                                        <div class="dropdown block-add-child-block">
                                            <a rel="tooltip" data-placement="top" title="Add Section" class="btn btn-xs  btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-th-large"></span>
                                            </a>

                                            <ul class="dropdown-menu " role="menu"
                                                aria-labelledby="dropdownMenu1">

                                            </ul>
                                        </div>
                                        ';
                $this->html .= $this->output_admin_options();
                $this->html .= "   </div>\r\n                                </div>";
                $classes .= " be-page-content-block be-container-block ";
                $this->children_holder_classes = " page-children ";
                break;
            case "footer":
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>

                                        <div class="dropdown block-add-child-block">

                                            <a rel="tooltip" data-placement="top" title="Add Section" class="btn btn-xs  btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-th-large"></span>
                                            </a>

                                            <ul class="dropdown-menu " role="menu"
                                                aria-labelledby="dropdownMenu1">

                                            </ul>
                                        </div>
                                        ';
                $this->html .= $this->output_admin_options();
                $this->html .= "   </div>\r\n                                </div>";
                $classes .= " be-footer-content-block be-container-block ";
                break;
            case "row":
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">

                                       <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                       <a rel="tooltip" data-placement="top" title="Minimize / Maximize" class="collapse-element btn btn-xs btn-warning"><i class="fa fa-minus"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>

                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>

                                        <div class="dropdown block-add-child-block">
                                            <a rel="tooltip" data-placement="top" title="Add Section" class="btn btn-xs btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-th-large"></span>
                                            </a>

                                            <ul class="dropdown-menu " role="menu"
                                                aria-labelledby="dropdownMenu1">

                                            </ul>
                                        </div>
                                        ';
                $this->html .= $this->output_admin_options();
                $this->html .= '
                                    </div>
                                </div>';
                $this->children_holder_classes = " row-children ";
                $classes .= " be-row-block row ";
                break;
            case "column":
                $classes = " be-column-block ";
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">


                                       <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                        <a rel="tooltip" data-placement="top" title="Minimize / Maximize" class="collapse-element btn btn-xs btn-warning"><i class="fa fa-minus"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>

                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>

                                    <div class="dropdown block-add-child-block">
                                        <a rel="tooltip" data-placement="top" title="Add Block" class="btn btn-xs  btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-plus-square"></span>
                                        </a>

                                        <ul class="dropdown-menu " role="menu"
                                            aria-labelledby="dropdownMenu1">

                                        </ul>
                                        </div>
                                    </div>
                                </div>';
                $this->children_holder_classes = " column-children ";
                break;
            case "generic":
                $freeModeClass = 'freeMode';
                $classes = " be-content-block ";
                $this->html .= '<div class="block-controls">
                                   <div class="block-controls-inner panel-heading-btn">

                                       <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>

                                     <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>
                                    <a rel="tooltip" data-placement="top" title="Undo" href="#undo" class="undo btn btn-xs btn-white"><i class="fa fa-undo"></i></a>
                                    </div>
                                </div>';
                break;
            case "content":
                $block_type_class = str_replace('_', '-', $this->type) . '-block';
                if ($this->type != 'container') {
                    $block_type_html_class = str_replace('_', '-', $this->type);
                } else {
                    $block_type_html_class = '';
                }
                echo '
                    <style>
                    .editor-mode-active .' . $block_type_class . ':before
                    {
                        content: "' . ucfirst(str_replace('_', ' ', $this->type)) . '";
                    }
                    </style>
                ';
                $classes = $block_type_class . ' ' . $block_type_html_class;
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">

                                        <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                        <a rel="tooltip" data-placement="top" title="Minimize / Maximize" class="collapse-element btn btn-xs  btn-warning" data-click="panel-collapse" data-original-title="" title=""><i class="fa fa-minus"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag drag-content btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>';
                if ($this->type != 'container' && $this->type != 'content') {
                    $this->html .= '
                                            <a rel="tooltip" data-placement="top" title="Settings" block-type="' . $this->type . '" block-name="' . $this->name . '" href="#settings" class="settings btn btn-xs  btn-white"><i class="fa fa-cog"></i></a>';
                }
                $this->html .= '
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>
                                        <div class="dropdown block-add-child-block">
                                            <a rel="tooltip" data-placement="top" title="Add Section" class="btn btn-xs btn-white dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"> <span class="fa fa-th-large"></span>
                                            </a>
	
                                            <ul class="dropdown-menu " role="menu"
                                                aria-labelledby="dropdownMenu1">
												<a role="menuitem" tabindex="-1" href="#" class="insert-block" block-type="row">Row</a>
                                            </ul>
                                        </div>';
                $this->html .= $this->output_admin_options();
                $this->html .= "</div>\r\n                                </div>";
                $this->children_holder_classes = " content-children ";
                break;
            case "container":
                $block_type_class = str_replace('_', '-', $this->type) . '-block';
                if ($this->type != 'container') {
                    $block_type_html_class = str_replace('_', '-', $this->type);
                } else {
                    $block_type_html_class = '';
                }
                echo '
                    <style>
                    .editor-mode-active .' . $block_type_class . ':before
                    {
                        content: "' . ucfirst(str_replace('_', ' ', $this->type)) . '";
                    }
                    </style>
                ';
                $classes = $block_type_class . ' ' . $block_type_html_class;
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">

                                        <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                        <a rel="tooltip" data-placement="top" title="Minimize / Maximize" class="collapse-element btn btn-xs  btn-warning" data-click="panel-collapse" data-original-title="" title=""><i class="fa fa-minus"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag drag-container btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>';
                if ($this->type != 'container' && $this->type != 'content') {
                    $this->html .= '
                                            <a rel="tooltip" data-placement="top" title="Settings" block-type="' . $this->type . '" block-name="' . $this->name . '" href="#settings" class="settings btn btn-xs  btn-white"><i class="fa fa-cog"></i></a>';
                }
                $this->html .= '
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>';
                $this->html .= $this->output_admin_options();
                $this->html .= "</div>\r\n                                </div>";
                $this->children_holder_classes = " container-children ";
                break;
            default:
                $freeModeClass = 'freeMode';
                $block_type_class = str_replace('_', '-', $this->type) . '-block';
                if ($this->type != 'container') {
                    $block_type_html_class = str_replace('_', '-', $this->type);
                } else {
                    $block_type_html_class = '';
                }
                echo '
                    <style>
                    .editor-mode-active .' . $block_type_class . ':before
                    {
                        content: "' . ucfirst(str_replace('_', ' ', $this->type)) . '";
                    }
                    </style>
                ';
                $classes = $block_type_class . ' ' . $block_type_html_class;
                $this->html .= '<div class="block-controls">
                                    <div class="block-controls-inner panel-heading-btn">

                                        <a rel="tooltip" data-placement="top" title="Remove" href="#close" class="remove btn btn-xs btn-danger"><i class="fa fa-times"></i></a>

                                        <a rel="tooltip" data-placement="top" title="Minimize / Maximize" class="collapse-element btn btn-xs  btn-warning" data-click="panel-collapse" data-original-title="" title=""><i class="fa fa-minus"></i></a>

                                        <span rel="tooltip" data-placement="top" title="Move" class="drag btn btn-xs btn-white"><i class="fa fa-arrows"></i></span>';
                if ($this->type != 'container' && $this->type != 'content') {
                    $this->html .= '
                                            <a rel="tooltip" data-placement="top" title="Settings" block-type="' . $this->type . '" block-name="' . $this->name . '" href="#settings" class="settings btn btn-xs  btn-white"><i class="fa fa-cog"></i></a>';
                }
                $this->html .= '
                                        <a rel="tooltip" data-placement="top" title="Style Settings" class="style btn btn-xs  btn-white" data-click="" data-original-title="" title=""><i class="fa fa-paint-brush"></i></a>
                                        <a rel="tooltip" data-placement="top" title="Undo" href="#undo" class="undo btn btn-xs btn-white"><i class="fa fa-undo"></i></a>';
                $this->html .= $this->output_admin_options();
                $this->html .= "</div>\r\n                                </div>";
                break;
        }
        //$block_content =  "Content ".$this->html;
        if ($this->type == 'row' || $this->type == 'column' || $this->type == 'footer' || $this->type == 'header' || $this->type == 'page' || $this->type == 'content') {
            $this->html = preg_replace('/{elements}/', $block_content, $this->html, 1);
        }
        $this->html = preg_replace('/{content}/', $block_content, $this->html, 1);
        $this->include_nested_elements();
        $css_attributes = $this->data('css_attributes');
        $arr = $this->data('style');
        if (isset($arr['custom_classes'])) {
            $add_classes = $arr['custom_classes'];
        } else {
            $add_classes = "";
        }
        $style = $this->build_style();
        $html_id = $this->data('html_id');
        $html_id_string = "";
        if ($html_id != null) {
            $html_id_string = " id=\"{$html_id}\" ";
        }
        $output = "<div {$html_id_string} block-type='{$this->type}' class='block " . $freeModeClass . " {$classes} {$add_classes} {$this->get_css_classes()}' style=\"{$style}\" name='{$this->name}'>" . $this->block_control_bar() . $this->html . "</div>";
        $output = str_replace("%site_root%", home_url('/'), $output);
        $output = str_replace("%theme_root%", get_theme_path(), $output);
        if ($this->output) {
            echo $output;
        } else {
            return $output;
        }
    }
Example #20
0
    function _integrate_builderengine_js($options = array())
    {
        global $active_show;
        $user = $active_show->controller->user;
        if (!isset($options['include_jquery']) || $options['include_jquery'] === true) {
            echo '<script src="' . home_url("/builderengine/public/js/jquery.js") . '"></script>';
        }
        ?>

            <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" ></script>
            
            <script src="<?php 
        echo home_url("/builderengine/public/js/editor/ckeditor.js");
        ?>
"></script>

            <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
            <script src="http://vitalets.github.io/angular-xeditable/dist/js/xeditable.js"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/js/absolute-json.js");
        ?>
"></script>

            
            <script type="text/javascript">
                var page_path = "<?php 
        echo get_page_path();
        ?>
";
                var theme_path = "<?php 
        echo get_theme_path();
        ?>
";
                var blocks_for_reload = {};
                var disable_auto_block_reload = false;
                var getting_block = false;

                var has_focus = true;
                var var_editor_mode = "";

            </script>
            <link rel="stylesheet" type="text/css" href="<?php 
        echo home_url("/builderengine/public/editor/css/main.css?4");
        ?>
" />
			

            <script type="text/javascript">

                $(document).ready(function(){
                    if(window.parent.page_url_change)
                    window.parent.page_url_change(page_path);
                    jQuery(document).bind('editor_mode_change',  function (event, action){
                        if(action == "editModeEnable")
                            var_editor_mode = "edit";
                        if(action == "blockStyleModeEnable")
                            var_editor_mode = "style";

                        console.log('Received event '+action);
                        if(action == "blockStyleModeEnable" || action == "editModeEnable" || action == 'resizeModeEnable' || action == 'moveModeEnable' || action == 'addBlockModeEnable' || action == 'deleteBlockModeEnable')
                        {
                            disable_auto_block_reload = true;
                        }

                        if(action == "blockStyleModeDisable" || action == "editModeDisable" || action == 'resizeModeDisable' || action == 'moveModeDisable' || action == 'addBlockModeDisable' || action == 'deleteBlockModeDisable')
                        {
                            var_editor_mode = "";
                            disable_auto_block_reload = false;
                        }
                    });
                    <?php 
        $copied_block = $user->get_session_data("copied_block");
        if ($copied_block) {
            ?>
                        $("#paste-block-button").parent().removeClass("disabled");
                    <?php 
        }
        ?>
  


                    $("#editor-holder").css('display','none');
                    <?php 
        if ($user->is_member_of("Administrators") || $user->is_member_of("Frontend Editor") || $user->is_member_of("Frontend Manager")) {
            ?>
                    //$("body").css("padding-top", "45px");

                   
                    <?php 
        }
        ?>
                    //$("html").attr('ng-app','');
                    //$.getScript("http://ajax.googleapis.com/ajax/libs/angularjs/1.2.8/angular.min.js");
                });
            </script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/remove_block.js");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/undo_block.js");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/resize.js");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/admin.js?v4");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/main.js?v4");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/editor/js/edit_off_sorts.js");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/js/frontend-editor.js");
        ?>
"></script>
            <script src="<?php 
        echo home_url("/builderengine/public/js/bootstrap-wysihtml5.js");
        ?>
"></script>
	
				
            <?php 
    }
Example #21
0
function get_logo_path()
{
    global $active_show;
    if ($url = $active_show->controller->BuilderEngine->get_option('logo_img')) {
        if (file_exists(APPPATH . '..' . $url)) {
            return $active_show->controller->BuilderEngine->get_option('logo_img');
        } else {
            return get_theme_path() . 'assets/img/builderengine-logo.png';
        }
    } else {
        return get_theme_path() . 'assets/img/builderengine-logo.png';
    }
}
                    required: "Please provide a password",
                    minlength: "Your password must be at least 5 characters long"
                },
                confirm_password: {
                    required: "Please cofirm your password",
                    equalTo: "Please please enter the same password"
                }
             }
        });
    });
    </script>
    <div class="container-fluid">
        <div id="login">
            <div class="login-wrapper" data-active="log">
               <a class="brand" href="dashboard.html"><img src="<?php 
echo get_theme_path();
?>
/images/builderengine_logo.png" alt="BuilderEngine Admin"></a>
                <div id="log">
                    
                    <div class="page-header">
                        <h3 class="center">Password recovery</h3>
                    </div>
                    <?php 
if (!$token) {
    ?>
                        <div class="row-fluid">
                            <div class="control-group">
                                <div class="controls-row">
                                    <h2>Invalid password reset link</h2>   
                                </div>
Example #23
0
                              </div>
                           ');
?>

                           <?php 
$block4 = new Block("business-commodore-1-theme-about-line2-col4");
?>
                           <?php 
$block4->set_size('span3');
?>
                           <?php 
$block4->set_content('
                              <!-- Staff #4 -->
                              <div class="staff">
                                 <div class="pic">
                                    <img src="' . get_theme_path() . 'img/jm.jpg" alt="" />
                                 </div>
                                 <div class="details">
                                    <div class="desig pull-left">
                                       <p class="name">Jim Murren</p>
                                       <em>Enterprise & Advisor</em>
                                    </div>
                                    <div class="asocial pull-right">
                                       <a href="#"><i class="icon-facebook"></i></a>
                                       <a href="#"><i class="icon-twitter"></i></a>
                                       <a href="#"><i class="icon-linkedin"></i></a>
                                    </div>
                                    <div class="clearfix"></div>
                                    <p class="adesc">Regional manager of the Industrial Development Authority Ireland for over 12 years, and business strategy advisor. </p>
                                 </div>
                              </div>