</div> <div class="item-job"> <label><?php _e("Title", ET_DOMAIN); ?> </label> <div class="input-job"> <input type="text" class="bg-default-input" id="title" name="title" value="<?php printf(__("Jobs from %s", ET_DOMAIN), get_option('blogname')); ?> "/> </div> </div> </div> <?php $id = JE_Jobroll::get_page_jobroll(); $url = get_permalink($id); $url = add_query_arg(array('jobroll_request' => 1, 'number' => 5, 'width' => 250, 'color' => 'd9d9d9'), $url); ?> <!-- view code --> <div class="main-title"><?php _e("CODE", ET_DOMAIN); ?> </div> <div class="code-view preview" id="preview"> <label><?php _e("Copy this code and paste into your website", ET_DOMAIN); ?> </label> <textarea class="code-content bg-grey-widget"><?php
/** * Outputs the HTML for this widget. * * @param array An array of standard parameters for widgets in this theme * @param array An array of settings for this widget instance * @return void Echoes it's output **/ function widget($args, $instance) { $id = JE_Jobroll::get_page_jobroll(); extract($args, EXTR_SKIP); echo $before_widget; echo $before_title; echo $instance['title']; // Can set this with a widget option, or omit altogether echo $after_title; echo '<p>'; _e(" Add jobs to your site! ", ET_DOMAIN); $url = get_permalink($id); ?> <a href="<?php echo $url; ?> " ><?php _e("Click here", ET_DOMAIN); ?> </a> <?php echo '</p>'; // // Widget display logic goes here // echo $after_widget; }