function widget($args, $instance) { if (!empty($instance['Interface'])) { echo dt_renderInterface($instance['Interface']); } return; }
function dt_bindInterfaces($content) { global $post; if ($isBound = get_option('_dbtbinding_' . $post->ID)) { return $content . dt_renderInterface($isBound); } return $content; }
function includeinterface_processValue($Value, $Type, $Field, $Config, $EID, $Data) { //vardump($Data); if (!empty($Data)) { foreach ($Data as $Key => $Gets) { $_GET[$Key] = $Gets; } } return dt_renderInterface($Config['_includeInterface'][$Field]); //return $Value; }
function dt_customShortcode($args, $content, $code) { global $wpdb; $customShortCodes = $wpdb->get_results("SELECT `option_name`, `option_value` FROM {$wpdb->options} WHERE `option_name` LIKE 'dt_intfc%' AND `option_value` LIKE '%_shortCode%' AND `option_value` LIKE '%" . $code . "%' ", ARRAY_A); if (!empty($customShortCodes[0])) { //$_GET = $args; if (is_array($args)) { $_GET = array_merge($_GET, $args); } return dt_renderInterface($customShortCodes[0]['option_name']); } }
<?php /// This creates the actual view item field for displaying a view style form. // output is echoed not returned. /* Available Variables: $Config - Element Config $FieldSet - array(0=>fieldfolder, 1=>fieldtype); $Defaults - array with all fields and all data for each field $Field - the current field name $Element - Element data $Req - the form validation class, sets the field to required if configured to do so */ //vardump($Data); foreach ($Data as $Key => $Gets) { $_GET[$Key] = $Gets; } $Out .= dt_renderInterface($Config['_includeInterface'][$Field]); //$Out = 'ping';
function dr_callInterface($EID, $str) { parse_str($str, $_GET); return dt_renderInterface($EID); }
} $link = explode('&ftab', $_SERVER['REQUEST_URI']); echo '<li><a ' . $class . ' href="' . $link[0] . '&ftab=' . $tab['code'] . '">' . $tab['Title'] . $counter . '</a>' . $break . '</li>'; $index++; } ?> </ul> <?php } ?> <div class="clear"></div> <div id="poststuff"> <?php echo dt_renderInterface($_GET['renderinterface']); ?> </div> </div> <?php return; } /* * * * * * * Creating new Interface * *