public static function feeds_box($post) { global $post, $campaign_data, $cfg; //$cfg = get_option(WPeMatico :: OPTION_KEY); $campaign_feeds = @$campaign_data['campaign_feeds']; if (!$campaign_feeds) { $campaign_feeds = array(); } ?> <div class="submenu_dropdown"> <div id="domainsPlaceHolder"> <div class="filter_bar"> <span class="srchbdr0"> <?php _e('Please fill in at least one feed.', WPeMatico::TEXTDOMAIN); ?> <label title="<?php _e('A little Help', WPeMatico::TEXTDOMAIN); ?> " onclick=" jQuery('#feedhlp').fadeToggle();" class="m4 ui-icon QIco left"></label> </span> <span class="srchbdr0 hide" id="feedhlp"><?php _e('If you\'re not sure about the exact feed url, just type in the domain name, and the feed will be autodetected.', WPeMatico::TEXTDOMAIN); ?> </span> <div class="right srchFilterOuter"> <div style="float:left;margin-left:2px;"> <input id="psearchtext" name="psearchtext" class="srchbdr0" type="text" value=''> </div> <div class="srchSpacer"></div> <div id="productsearch" class="left mya4_sprite searchIco" style="margin-top:4px;"></div> </div> </div> <div id="domainsBlock"> <div id="feeds_edit" class="maxhe290"> <?php $id = 0; foreach ($campaign_feeds as $id => $feed) { ?> <div class="<?php if ($id % 2 == 0) { echo 'bw'; } else { echo 'lightblue'; } ?> "> <div class="pDiv jobtype-select"> <?php echo '<span class="left mp04 b">' . __('Feed URL:', WPeMatico::TEXTDOMAIN) . '</span> <input class="feedinput" type="text" value="' . $feed . '" id="feed_' . $id . '" name="campaign_feeds[]">'; ?> <?php if ($cfg['nonstatic']) { NoNStatic::feedat($feed, $cfg); } ?> <span class="wi10" id="feedactions"> <label title="<?php _e('Delete this item', WPeMatico::TEXTDOMAIN); ?> " onclick="if(confirm('Are you sure ?')){ jQuery(this).parents('div').children('input').attr('value',''); jQuery(this).parent().parent().fadeOut();}" class="m4 right ui-icon redx_circle"></label> <label title="<?php _e('Check if this item work', WPeMatico::TEXTDOMAIN); ?> " id="checkfeed_<?php echo $id; ?> " class="check1feed m4 right ui-icon yellowalert_small"></label><img src="<?php echo get_bloginfo('wpurl'); ?> /wp-admin/images/wpspin_light.gif" id="ruedita1" class="hide" Title="<?php _e('Checking', WPeMatico::TEXTDOMAIN); ?> "> </span> </div> </div> <?php } ?> <span id="newfeed"> <div class="pDiv jobtype-select"> <?php echo '<span class="left mp04 b">' . __('New Feed:', WPeMatico::TEXTDOMAIN) . '</span> <input class="feedinput" type="text" value="" id="feed_new" name="campaign_feeds[]">'; ?> <?php if ($cfg['nonstatic']) { NoNStatic::feedat('', $cfg); } ?> <span class="wi10" id="feedactions"> <label title="<?php _e('Delete this item', WPeMatico::TEXTDOMAIN); ?> " onclick="if(confirm('Are you sure ?')){ jQuery(this).parents('div').children('input').attr('value',''); jQuery(this).parent().parent().fadeOut();}" class="m4 right ui-icon redx_circle"></label> <label title="<?php _e('Check if this item work', WPeMatico::TEXTDOMAIN); ?> " id="checkfeed" class="check1feed m4 right ui-icon yellowalert_small"></label><img src="<?php echo get_bloginfo('wpurl'); ?> /wp-admin/images/wpspin_light.gif" id="ruedita1" class="hide" Title="<?php _e('Checking', WPeMatico::TEXTDOMAIN); ?> "> </span> </div> </span> </div> <?php if ($cfg['nonstatic']) { NoNStatic::feedlist(); } ?> </div> <div class="left he20"> <p class="m7"><a href="JavaScript:void(0);" class="button-primary" id="addmore" onclick="s=jQuery('#newfeed');s.children('div').show();jQuery('#feeds_edit').append( s.html() ); jQuery('#feeds_edit input:last').focus()" style="font-weight: bold; text-decoration: none;" ><?php _e('Add more', WPeMatico::TEXTDOMAIN); ?> .</a> <span class="button-primary" id="checkfeeds" style="font-weight: bold; text-decoration: none;" ><?php _e('Check all feeds', WPeMatico::TEXTDOMAIN); ?> . <img src="<?php echo get_bloginfo('wpurl'); ?> /wp-admin/images/wpspin_light.gif" id="ruedita" style="height:13px; display:none;" Title="<?php _e('Checking', WPeMatico::TEXTDOMAIN); ?> "></span> <?php if ($cfg['nonstatic']) { NoNStatic::bimport(); } ?> </p> </div> <div id="paging-params" class="hide" data-totalrecords="<?php echo $id + 1; ?> " data-totalpages="3" data-currentpage="1" data-pagesize="5"></div> <div id="paging-box"> <div class="p7"> <div class="leftText">Displaying <span id="pb-totalrecords" class="b"><?php echo $id + 1; ?> </span> <span id="pb-ptext">feeds </span></div> <div class="right"><label class="right ui-icon select_down" onclick="jQuery('#feeds_edit').toggleClass('maxhe290');jQuery(this).toggleClass('select_up');" title="<?php _e('Display all feeds', WPeMatico::TEXTDOMAIN); ?> "></label></div> </div> <div class="p7 hide"> <div class="leftText">Displaying <span id="pb-currentrecordblock" class="b">1-5</span> of <span id="pb-totalrecords" class="b"><?php echo $id + 1; ?> </span> <span id="pb-ptext">feeds </span></div> <div class="middleText">Results per page: </div> <div class="dd"><select name="pb-resultsperpage" id="pb-resultsperpage" class="t12"><option selected="selected" value="5">5</option><option value="10">10</option><option value="20">20</option></select></div> <div class="rightText"> <div id="page-first" class="mya4_sprite begin_active_arrow icoPad arrow_opacity"></div> <div id="page-prev" class="mya4_sprite prev_active_arrow icoPad arrow_opacity"></div> <div class="icoPad" style="padding-top:2px;"><span id="pb-currentpage" class="b">1</span> of <span id="pb-totalpages" class="b">3</span></div> <div id="page-next" class="mya4_sprite next_active_arrow icoPad"></div> <div id="page-last" class="mya4_sprite end_active_arrow icoPad"></div> </div> </div> </div> </div> </div> <?php }
public static function feeds_box($post) { global $post, $campaign_data, $cfg, $helptip; $campaign_feeds = $campaign_data['campaign_feeds']; ?> <div class="submenu_dropdown"> <div id="domainsPlaceHolder"> <div class="filter_bar"> <span class="srchbdr0"> </span> <div class="right srchFilterOuter"> <div style="float:left;margin-left:2px;"> <input id="psearchtext" name="psearchtext" class="srchbdr0" type="text" value=''> </div> <div class="srchSpacer"></div> <div id="productsearch" class="left mya4_sprite searchIco" style="margin-top:4px;"></div> </div> </div> <div id="domainsBlock"> <div id="feeds_edit" class="maxhe290"> <?php $id = 0; foreach ($campaign_feeds as $id => $feed) { ?> <div class="<?php if ($id % 2 == 0) { echo 'bw'; } else { echo 'lightblue'; } ?> "> <div class="pDiv jobtype-select"> <?php echo '<span class="left mp04 b">' . __('Feed URL:', WPeMatico::TEXTDOMAIN) . '</span> <input class="feedinput" type="text" value="' . $feed . '" id="feed_' . $id . '" name="campaign_feeds[]">'; ?> <?php do_action('nonstatic_feedat', $feed, $cfg); ?> <?php //if( $cfg['nonstatic'] ) { NoNStatic :: feedat($feed, $cfg); } ?> <span class="wi10" id="feedactions"> <label title="<?php _e('Delete this item', WPeMatico::TEXTDOMAIN); ?> " onclick="if(confirm('<?php _e('Are you sure ?', WPeMatico::TEXTDOMAIN); ?> ')){ jQuery(this).parents('div').children('input').attr('value',''); jQuery(this).parent().parent().fadeOut();disable_run_now();}" class="m4 right ui-icon redx_circle"></label> <label title="<?php _e('Check if this item work', WPeMatico::TEXTDOMAIN); ?> " id="checkfeed_<?php echo $id; ?> " class="check1feed m4 right"> <span id="ruedita" class="ui-icon yellowalert_small"></span> </label> </span> </div> </div> <?php } ?> <span id="newfeed"> <div class="pDiv jobtype-select"> <?php echo '<span class="left mp04 b">' . __('New Feed:', WPeMatico::TEXTDOMAIN) . '</span> <input class="feedinput" type="text" value="" id="feed_new" name="campaign_feeds[]">'; ?> <?php do_action('nonstatic_feedat', '', $cfg); ?> <?php // if( $cfg['nonstatic'] ) { NoNStatic :: feedat('', $cfg); } ?> <span class="wi10" id="feedactions"> <label title="<?php _e('Delete this item', WPeMatico::TEXTDOMAIN); ?> " onclick="if(confirm('<?php _e('Are you sure ?', WPeMatico::TEXTDOMAIN); ?> ')){ jQuery(this).parents('div').children('input').attr('value',''); jQuery(this).parent().parent().fadeOut();disable_run_now();}" class="m4 right ui-icon redx_circle"></label> <label title="<?php _e('Check if this item work', WPeMatico::TEXTDOMAIN); ?> " id="checkfeed" class="check1feed m4 right"> <span id="ruedita" class="ui-icon yellowalert_small"></span> </label> </span> </div> </span> </div> <?php if ($cfg['nonstatic']) { NoNStatic::feedlist(); } ?> </div> <div class="left he20"> <p class="m7"> <a href="JavaScript:void(0);" class="button-primary" id="addmore" onclick="s=jQuery('#newfeed');s.children('div').show();jQuery('#feeds_edit').append( s.html() ); jQuery('#feeds_edit input:last').focus()" style="font-weight: bold; text-decoration: none;" ><?php _e('Add more', WPeMatico::TEXTDOMAIN); ?> .</a> <span class="button-primary" id="checkfeeds" style="font-weight: bold; text-decoration: none;" ><?php _e('Check all feeds', WPeMatico::TEXTDOMAIN); ?> .</span> <?php if ($cfg['nonstatic']) { NoNStatic::bimport(); } ?> </p> </div> <div id="paging-box"> <div class="p7"> <div class="leftText"><?php _e('Displaying', WPeMatico::TEXTDOMAIN); ?> <span id="pb-totalrecords" class="b"><?php echo $id + 1; ?> </span> <span id="pb-ptext">feeds </span></div> <div class="right"><label class="right ui-icon select_down" onclick="jQuery('#feeds_edit').toggleClass('maxhe290');jQuery(this).toggleClass('select_up');" title="<?php _e('Display all feeds', WPeMatico::TEXTDOMAIN); ?> "></label></div> </div> <div id="paging-params" class="hide" data-totalrecords="<?php echo $id + 1; ?> " data-totalpages="3" data-currentpage="1" data-pagesize="5"></div> </div> </div> </div> <?php }