0 ) : $sClassName = sanitize_html_class( $className ); print sprintf( 'class="%s"', esc_attr( $sClassName ) ); endif; endif; } /* fwp_form_class_attr() */ function fwp_selected_flag( /* mixed */ $arg = null, $key = null, $flag = "selected" ) { $bIsOn = false; $theArg = $arg; if (is_array($arg) and !is_null($key)) : if (array_key_exists($key, $arg)) : $theArg = $arg[$key]; else : $theArg = false; endif; endif; if (is_string($theArg)) : $bIsOn = (strlen($theArg) > 0); else : $bIsOn = !!($theArg); endif; if ( $bIsOn ) : print sprintf( '%s="%s"', esc_attr($flag), esc_attr($flag) ); endif; } /* fwp_selected_flag() */ function fwp_checked_flag( /* mixed */ $arg = null, $key = null ) { fwp_selected_flag( $arg, $key, "checked" ); } /* fwp_checked_flag() */ function fwp_update_set_results_message ($delta, $joiner = ';') { $mesg = array(); if (isset($delta['new'])) : $mesg[] = ' '.$delta['new'].' new posts were syndicated'; endif; if (isset($delta['updated']) and ($delta['updated'] != 0)) : $mesg[] = ' '.$delta['updated'].' existing posts were updated'; endif; if (isset($delta['stored']) and ($delta['stored'] != 0)) : $mesg[] = ' '.$delta['stored'].' alternate versions of existing posts were stored for reference'; endif; if (!is_null($joiner)) : $mesg = implode($joiner, $mesg); endif; return $mesg; } /* function fwp_update_set_results_message () */ function fwp_authors_single_submit ($link = NULL) { ?>
Tag $object as...
"; if (is_null($params['textarea_name'])) : $params['textarea_name'] = "tax_input[$tax_name]"; endif; if (is_null($params['textarea_id'])) : $params['textarea_id'] = "tax-input-${tax_name}"; endif; if (is_null($params['input_id'])) : $params['input_id'] = "new-tag-${tax_name}"; endif; if (is_null($params['input_name'])) : $params['input_name'] = "newtag[$tax_name]"; endif; if (is_null($params['id'])) : $params['id'] = $tax_name; endif; print $desc; $helps = __('Separate tags with commas.'); $box['title'] = __('Tags'); ?> cap->assign_terms) ) : ?> 0) : $idPrefix = $prefix.'-'; $idSuffix = "-".$prefix; $namePrefix = $prefix . '_'; else : $idPrefix = 'feedwordpress-'; $idSuffix = "-feedwordpress"; $namePrefix = 'feedwordpress_'; endif; $boxDivId = sanitize_html_class( $idPrefix . 'taxonomy-' . $taxonomy ); $tabsUlId = sanitize_html_class( $idPrefix . $taxonomy . '-tabs' ); $allTabId = sanitize_html_class( $idPrefix . $taxonomy . '-all' ); $chkLstId = sanitize_html_class( $idPrefix . $taxonomy . 'checklist' ); $addTaxId = sanitize_html_class( $idPrefix . $taxonomy . '-adder' ); $addTogId = sanitize_html_class( $idPrefix . $taxonomy . '-add-toggle' ); $addCatId = sanitize_html_class( $idPrefix . $taxonomy . '-add' ); $newTaxId = sanitize_html_class( $idPrefix . 'new' . $taxonomy ); $taxIdAddSubmit = sanitize_html_class( $idPrefix . $taxonomy . '-add-sumbit' ); ?>$mesg";
endforeach;
echo "\n";
else :
echo " completed in $dt second".(($dt==1)?'':'s')."\n";
endif;
flush();
}
function fwp_author_list () {
global $wpdb;
$ret = array();
$users = get_users();
if (is_array($users)) :
foreach ($users as $user) :
$id = (int) $user->ID;
$ret[$id] = $user->display_name;
if (strlen(trim($ret[$id])) == 0) :
$ret[$id] = $user->user_login;
endif;
endforeach;
endif;
return $ret;
}
function fwp_insert_new_user ($newuser_name) {
global $wpdb;
$ret = null;
if (strlen($newuser_name) > 0) :
$userdata = array();
$userdata['ID'] = NULL;
$userdata['user_login'] = apply_filters('pre_user_login', sanitize_user($newuser_name));
$userdata['user_nicename'] = apply_filters('pre_user_nicename', sanitize_title($newuser_name));
$userdata['display_name'] = $newuser_name;
$userdata['user_pass'] = substr(md5(uniqid(microtime())), 0, 6); // just something random to lock it up
$blahUrl = get_bloginfo('url'); $url = parse_url($blahUrl);
$userdata['user_email'] = substr(md5(uniqid(microtime())), 0, 6).'@'.$url['host'];
$newuser_id = wp_insert_user($userdata);
$ret = $newuser_id; // Either a numeric ID or a WP_Error object
else :
// TODO: Add some error reporting
endif;
return $ret;
} /* fwp_insert_new_user () */
function fwp_syndication_manage_page_links_table_rows ($links, $page, $visible = 'Y') {
$fwp_syndicated_sources_columns = array(__('Name'), __('Feed'), __('Updated'));
$subscribed = ('Y' == strtoupper($visible));
if ($subscribed or (count($links) > 0)) :
?>
| ${col}\n"; endforeach; print " | ||||
|---|---|---|---|---|
| link_rss) > 0) ? __('Switch Feed') : $caption=__('Find Feed') ); ?> | link_name); ?> | link_rss) > 0): ?>no feed assigned |
||
There are no websites currently listed for syndication. | ||||