Ejemplo n.º 1
0
function get_widget_name_value()
{
    $development_myval = get_option('sidebars_widgets');
    foreach (get_widget_area() as $val) {
        foreach ($development_myval[$val] as $keys => $values) {
            $string_val = str_before($values, "-");
            $wid_val[$string_val] = 'widget_' . $string_val;
        }
    }
    return $wid_val;
}
Ejemplo n.º 2
0
      *******************/
 /******************
  *
  *   Widget Area
  *
  *******************/
 case 'widget_area':
     function get_widget_area()
     {
         ob_start();
         dynamic_sidebar(get_sub_field('widget_area'));
         $sidebar = ob_get_contents();
         ob_end_clean();
         return $sidebar;
     }
     $content = get_widget_area();
     break;
     /******************
      *
      *   History
      *
      *******************/
 /******************
  *
  *   History
  *
  *******************/
 case 'history':
     $class = 'history';
     $content .= '<div class="historyContainer"><div class="small-6 medium-6 large-6 columns yearContainer">';
     $year_count = $desc_count = '';