Beispiel #1
0
                    <div class="td-section td-complete" style="display:none">
                        <div class="td-section-title">The demo is live! :)</div>
                        <p>That's it. Remember that you can always recreate the demo by just pressing the load demo button from this admin. It will not create duplicates, it will just rebuild the demo pages.</p>
                    </div>

                    <div class="td_progress_bar_wrap">
                        <div class="td_progress_bar">
                            <div></div>
                        </div>
                        <div><a href="#" class="td-progress-show-details">Show details</a></div>


                        <?php 
//return;
//new class
$td_demo_site = new td_demo_site();
$td_demo_site->total_progress_steps = 113;
//used for loading bar
// enable all thumbnails
td_util::update_option('tds_thumb_td_640x0', 'yes');
td_util::update_option('tds_thumb_td_0x420', 'yes');
td_util::update_option('tds_thumb_td_100x75', 'yes');
td_util::update_option('tds_thumb_td_80x60', 'yes');
td_util::update_option('tds_thumb_td_341x220', 'yes');
td_util::update_option('tds_thumb_td_300x160', 'yes');
td_util::update_option('tds_thumb_td_300x194', 'yes');
td_util::update_option('tds_thumb_td_300x350', 'yes');
td_util::update_option('tds_thumb_td_681x0', 'yes');
td_util::update_option('tds_thumb_td_1021x580', 'yes');
td_util::update_option('tds_thumb_td_180x135', 'yes');
td_util::update_option('tds_thumb_td_238x178', 'yes');
 /**
  * @param $wp_widgets_array
  * Array (
  * [testing] => Array (  //sidebar name
  *  [td_block4_widget] => Array (  //widget name
  *      [sort] => ra    //att_key => att value
  *      [custom_title] => test )
  *  )
  * )
  */
 private static function update_wp_widget($wp_widgets_array)
 {
     //print_r($wp_widgets_array);
     $td_demo_site = new td_demo_site();
     foreach ($wp_widgets_array as $sidebar => $widgets) {
         foreach ($widgets as $widget_name => $widget_atts) {
             $td_demo_site->add_widget_to_sidebar($sidebar, $widget_name, $widget_atts);
         }
     }
 }
Beispiel #3
0
                    <div class="td-section td-complete" style="display:none">
                        <div class="td-section-title">The demo is live! :)</div>
                        <p>That's it. Remember that you can always recreate the demo by just pressing the load demo button from this admin. It will not create duplicates, it will just rebuild the demo pages.</p>
                    </div>

                    <div class="td_progress_bar_wrap">
                        <div class="td_progress_bar">
                            <div></div>
                        </div>
                        <div><a href="#" class="td-progress-show-details">Show details</a></div>


                        <?php 
//return;
//new class
$td_demo_site = new td_demo_site();
$td_demo_site->total_progress_steps = 64;
//used for loading bar
/*  ----------------------------------------------------------------------------
       top menu
    */
$td_demo_site->create_menu('td_demo_top');
$td_demo_site->add_top_menu('Products review');
$td_demo_site->add_top_menu('Custom 404');
$td_demo_site->add_top_menu('Contact us');
$td_demo_site->activate_menu('top-menu');
/*  ----------------------------------------------------------------------------
       logo + ad
    */
$td_demo_site->update_logo(get_template_directory_uri() . '/images/demo/logo-top.png', get_template_directory_uri() . '/images/demo/logo-top-retina.png');
$td_demo_site->add_ad_spot('demo top ad', '', '<a href="#"><img src="' . $td_demo_site->get_demo_image('ad_top/ads-468.jpg') . '" alt="" /></a>', '<a href="#"><img src="' . $td_demo_site->get_demo_image('ad_top/ads-468.jpg') . '" alt="" /></a>', '<a href="#"><img src="' . $td_demo_site->get_demo_image('ad_top/ads-728.jpg') . '" alt="" /></a>');