本文整理汇总了PHP中wppa_get_imgdir函数的典型用法代码示例。如果您正苦于以下问题:PHP wppa_get_imgdir函数的具体用法?PHP wppa_get_imgdir怎么用?PHP wppa_get_imgdir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wppa_get_imgdir函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: wppa_inject_js
function wppa_inject_js()
{
global $wppa_api_version;
// Things that wppa-tinymce.js AND OTHER MODULES!!! need to know
echo '<script type="text/javascript">' . "\n";
echo '/* <![CDATA[ */' . "\n";
echo "\t" . 'wppaImageDirectory = "' . wppa_get_imgdir() . '";' . "\n";
echo "\t" . 'wppaAjaxUrl = "' . admin_url('admin-ajax.php') . '";' . "\n";
echo "\t" . 'wppaPhotoDirectory = "' . WPPA_UPLOAD_URL . '/";' . "\n";
echo "\t" . 'wppaThumbDirectory = "' . WPPA_UPLOAD_URL . '/thumbs/";' . "\n";
echo "\t" . 'wppaTempDirectory = "' . WPPA_UPLOAD_URL . '/temp/";' . "\n";
echo "\t" . 'wppaFontDirectory = "' . WPPA_UPLOAD_URL . '/fonts/";' . "\n";
echo "\t" . 'wppaNoPreview = "' . __('No Preview available', 'wp-photo-album-plus') . '";' . "\n";
echo "\t" . 'wppaVersion = "' . $wppa_api_version . '";' . "\n";
echo "\t" . 'wppaSiteUrl = "' . site_url() . '";' . "\n";
echo "\t" . 'wppaWppaUrl = "' . WPPA_URL . '";' . "\n";
echo "\t" . 'wppaIncludeUrl = "' . trim(includes_url(), '/') . '";' . "\n";
echo "/* ]]> */\n";
echo "</script>\n";
}
开发者ID:msayagh,项目名称:Quercus-source-code-Maven,代码行数:20,代码来源:wppa-tinymce-shortcodes.php
示例2: widget
/** @see WP_Widget::widget */
function widget($args, $instance)
{
global $wpdb;
global $wppa;
$wppa['in_widget'] = 'potd';
$wppa['mocc']++;
require_once dirname(__FILE__) . '/wppa-links.php';
require_once dirname(__FILE__) . '/wppa-styles.php';
require_once dirname(__FILE__) . '/wppa-functions.php';
require_once dirname(__FILE__) . '/wppa-thumbnails.php';
require_once dirname(__FILE__) . '/wppa-boxes-html.php';
require_once dirname(__FILE__) . '/wppa-slideshow.php';
wppa_initialize_runtime();
extract($args);
$widget_title = apply_filters('widget_title', $instance['title']);
// get the photo ($image)
$image = wppa_get_potd();
// Make the HTML for current picture
$widget_content = "\n" . '<!-- WPPA+ Photo of the day Widget start -->';
$ali = wppa_opt('wppa_potd_align');
if ($ali != 'none') {
$align = 'text-align:' . $ali . ';';
} else {
$align = '';
}
$widget_content .= "\n" . '<div class="wppa-widget-photo" style="' . $align . ' padding-top:2px; ">';
if ($image) {
$id = $image['id'];
$w = wppa_opt('wppa_potd_widget_width');
$ratio = wppa_get_photoy($id) / wppa_get_photox($id);
$h = round($w * $ratio);
$usethumb = wppa_use_thumb_file($id, wppa_opt('wppa_widget_width'), '0');
$imgurl = wppa_fix_poster_ext($usethumb ? wppa_get_thumb_url($id, '', $w, $h) : wppa_get_photo_url($id, '', $w, $h), $id);
$name = wppa_get_photo_name($id);
$page = in_array(wppa_opt('wppa_widget_linktype'), $wppa['links_no_page']) ? '' : wppa_get_the_landing_page('wppa_widget_linkpage', __a('Photo of the day'));
$link = wppa_get_imglnk_a('potdwidget', $id);
$is_video = wppa_is_video($id);
$has_audio = wppa_has_audio($id);
if ($link['is_lightbox']) {
$lightbox = ($is_video ? ' data-videohtml="' . esc_attr(wppa_get_video_body($id)) . '"' . ' data-videonatwidth="' . wppa_get_videox($id) . '"' . ' data-videonatheight="' . wppa_get_videoy($id) . '"' : '') . ($has_audio ? ' data-audiohtml="' . esc_attr(wppa_get_audio_body($id)) . '"' : '') . ' ' . wppa('rel') . '="' . wppa_opt('lightbox_name') . '"';
} else {
$lightbox = '';
}
if ($link) {
if ($link['is_lightbox']) {
$cursor = ' cursor:url(' . wppa_get_imgdir() . wppa_opt('wppa_magnifier') . '),pointer;';
$title = wppa_zoom_in($id);
$ltitle = wppa_get_lbtitle('potd', $id);
} else {
$cursor = ' cursor:pointer;';
$title = $link['title'];
$ltitle = $title;
}
} else {
$cursor = ' cursor:default;';
$title = esc_attr(stripslashes(__($image['name'])));
}
// The medal if on top
$widget_content .= wppa_get_medal_html_a(array('id' => $id, 'size' => 'M', 'where' => 'top'));
// The link, if any
if ($link) {
$widget_content .= "\n\t" . '<a href = "' . $link['url'] . '" target="' . $link['target'] . '" ' . $lightbox . ' ' . wppa('lbtitle') . '="' . $ltitle . '">';
}
// The image
if (wppa_is_video($id)) {
$widget_content .= "\n\t\t" . wppa_get_video_html(array('id' => $id, 'width' => wppa_opt('wppa_potd_widget_width'), 'title' => $title, 'controls' => wppa_opt('widget_linktype') == 'none', 'cursor' => $cursor));
} else {
$widget_content .= '<img' . ' src="' . $imgurl . '"' . ' style="width: ' . wppa_opt('wppa_potd_widget_width') . 'px;' . $cursor . '"' . ' ' . wppa_get_imgalt($id) . ($title ? 'title="' . $title . '"' : '') . '/ >';
}
// Close the link
if ($link) {
$widget_content .= "\n\t" . '</a>';
}
// The medal if at the bottom
$widget_content .= wppa_get_medal_html_a(array('id' => $id, 'size' => 'M', 'where' => 'bot'));
// Audio
if (wppa_has_audio($id)) {
$widget_content .= wppa_get_audio_html(array('id' => $id, 'width' => wppa_opt('wppa_potd_widget_width'), 'controls' => true));
}
} else {
// No image
$widget_content .= __a('Photo not found.', 'wppa_theme');
}
$widget_content .= "\n" . '</div>';
// Add subtitle, if any
switch (wppa_opt('wppa_widget_subtitle')) {
case 'none':
break;
case 'name':
if ($image && $image['name'] != '') {
$widget_content .= "\n" . '<div class="wppa-widget-text wppa-potd-text" style="' . $align . '">' . wppa_get_photo_name($id) . '</div>';
}
break;
case 'desc':
if ($image && $image['description'] != '') {
$widget_content .= "\n" . '<div class="wppa-widget-text wppa-potd-text" style="' . $align . '">' . wppa_get_photo_desc($id) . '</div>';
}
break;
case 'owner':
//.........这里部分代码省略.........
开发者ID:billadams,项目名称:forever-frame,代码行数:101,代码来源:wppa-potd-widget.php
示例3: wppa_get_imgstyle_a
//.........这里部分代码省略.........
$height = $image_attr[1];
}
}
}
} else {
if ($type == 'cover' && wppa_switch('wppa_coversize_is_height') && (wppa_opt('wppa_coverphoto_pos') == 'top' || wppa_opt('wppa_coverphoto_pos') == 'bottom')) {
$height = $max_size;
$width = round($max_size * $image_attr[0] / $image_attr[1]);
} else {
if (wppa_is_landscape($image_attr)) {
$width = $max_size;
$height = round($max_size * $image_attr[1] / $image_attr[0]);
} else {
$height = $max_size;
$width = round($max_size * $image_attr[0] / $image_attr[1]);
}
}
}
switch ($type) {
case 'cover':
if (wppa_opt('wppa_bcolor_img') != '') {
// There is a border color given
$result['style'] .= ' border: 1px solid ' . wppa_opt('wppa_bcolor_img') . ';';
} else {
// No border color: no border
$result['style'] .= ' border-width: 0px;';
}
$result['style'] .= ' width:' . $width . 'px; height:' . $height . 'px;';
if (wppa_switch('wppa_use_cover_opacity') && !is_feed()) {
$opac = wppa_opt('wppa_cover_opacity');
$result['style'] .= ' opacity:' . $opac / 100 . '; filter:alpha( opacity=' . $opac . ' );';
}
if (wppa_opt('wppa_coverimg_linktype') == 'lightbox') {
$result['cursor'] = ' cursor:url( ' . wppa_get_imgdir() . wppa_opt('wppa_magnifier') . ' ),pointer;';
}
break;
case 'thumb':
// Normal
// Normal
case 'ttthumb':
// Topten
// Topten
case 'comthumb':
// Comment widget
// Comment widget
case 'fthumb':
// Filmthumb
// Filmthumb
case 'twthumb':
// Thumbnail widget
// Thumbnail widget
case 'ltthumb':
// Lasten widget
// Lasten widget
case 'albthumb':
// Album widget
if ($type == 'thumb' && wppa_get_get('hilite') == $id) {
$result['style'] .= ' border:2px solid blue;box-sizing:border-box;';
} else {
$result['style'] .= ' border-width: 0px;';
}
$result['style'] .= ' width:' . $width . 'px; height:' . $height . 'px;';
if ($xvalign == 'optional') {
$valign = wppa_opt('wppa_valign');
} else {
$valign = $xvalign;
开发者ID:billadams,项目名称:forever-frame,代码行数:67,代码来源:wppa-styles.php
示例4: wppa_set_defaults
function wppa_set_defaults($force = false)
{
global $wppa_defaults;
$npd = '
<a onClick="jQuery(\'.wppa-dtl\').css(\'display\', \'block\'); jQuery(\'.wppa-more\').css(\'display\', \'none\'); wppaOvlResize();">
<div class="wppa-more">
Camera info
</div>
</a>
<a onClick="jQuery(\'.wppa-dtl\').css(\'display\', \'none\'); jQuery(\'.wppa-more\').css(\'display\', \'block\'); wppaOvlResize();">
<div class="wppa-dtl" style="display:none;" >
Hide Camera info
</div>
</a>
<div class="wppa-dtl" style="display:none;">
<br />
<style>
.wppa-label { padding: 0 3px !important; border: none !important; }
.wppa-value { padding: 0 3px 0 12px !important; border:none !important; }
</style>
<table style="margin:0; border:none;" >
<tr><td class="wppa-label" >Date Time</td><td class="wppa-value" >E#0132</td></tr>
<tr><td class="wppa-label" >Camera</td><td class="wppa-value" >E#0110</td></tr>
<tr><td class="wppa-label" >Focal length</td><td class="wppa-value" >E#920A</td></tr>
<tr><td class="wppa-label" >F-Stop</td><td class="wppa-value" >E#829D</td></tr>
<tr><td class="wppa-label" >ISO Speed Rating</td><td class="wppa-value" >E#8827</td></tr>
<tr><td class="wppa-label" >Exposure program</td><td class="wppa-value" >E#8822</td></tr>
<tr><td class="wppa-label" >Metering mode</td><td class="wppa-value" >E#9207</td></tr>
<tr><td class="wppa-label" >Flash</td><td class="wppa-value" >E#9209</td></tr>
</table>
</div>';
$wppa_defaults = array('wppa_revision' => '100', 'wppa_prevrev' => '100', 'wppa_max_users' => '1000', 'wppa_i_responsive' => '', 'wppa_i_downsize' => '', 'wppa_i_source' => '', 'wppa_i_userupload' => '', 'wppa_i_rating' => '', 'wppa_i_comment' => '', 'wppa_i_share' => '', 'wppa_i_iptc' => '', 'wppa_i_exif' => '', 'wppa_i_gpx' => '', 'wppa_i_fotomoto' => '', 'wppa_i_video' => '', 'wppa_i_stereo' => '', 'wppa_i_done' => '', 'wppa_colwidth' => 'auto', 'wppa_initial_colwidth' => '640', 'wppa_resize_on_upload' => 'yes', 'wppa_resize_to' => '0', 'wppa_min_thumbs' => '1', 'wppa_bwidth' => '1', 'wppa_bradius' => '6', 'wppa_box_spacing' => '8', 'wppa_pagelinks_max' => '7', 'wppa_max_filename_length' => '0', 'wppa_max_photoname_length' => '0', 'wppa_fullsize' => '640', 'wppa_maxheight' => '480', 'wppa_enlarge' => 'no', 'wppa_fullimage_border_width' => '', 'wppa_numbar_max' => '10', 'wppa_share_size' => '32', 'wppa_mini_treshold' => '500', 'wppa_slideshow_pagesize' => '0', 'wppa_thumbsize' => '100', 'wppa_thumbsize_alt' => '130', 'wppa_thumb_aspect' => '0:0:none', 'wppa_tf_width' => '100', 'wppa_tf_width_alt' => '130', 'wppa_tf_height' => '150', 'wppa_tf_height_alt' => '180', 'wppa_tn_margin' => '4', 'wppa_thumb_auto' => 'yes', 'wppa_thumb_page_size' => '0', 'wppa_popupsize' => '150', 'wppa_use_thumbs_if_fit' => 'yes', 'wppa_max_cover_width' => '1024', 'wppa_cover_minheight' => '0', 'wppa_head_and_text_frame_height' => '0', 'wppa_text_frame_height' => '54', 'wppa_smallsize' => '150', 'wppa_smallsize_multi' => '100', 'wppa_coversize_is_height' => 'no', 'wppa_album_page_size' => '0', 'wppa_rating_max' => '5', 'wppa_rating_prec' => '2', 'wppa_gravatar_size' => '40', 'wppa_ratspacing' => '30', 'wppa_topten_count' => '10', 'wppa_topten_size' => '86', 'wppa_comten_count' => '10', 'wppa_comten_size' => '86', 'wppa_featen_count' => '10', 'wppa_featen_size' => '86', 'wppa_thumbnail_widget_count' => '10', 'wppa_thumbnail_widget_size' => '86', 'wppa_lasten_count' => '10', 'wppa_lasten_size' => '86', 'wppa_album_widget_count' => '10', 'wppa_album_widget_size' => '86', 'wppa_related_count' => '10', 'wppa_tagcloud_min' => '8', 'wppa_tagcloud_max' => '24', 'wppa_ovl_txt_lines' => 'auto', 'wppa_magnifier' => 'magnifier-small.png', 'wppa_ovl_border_width' => '8', 'wppa_ovl_border_radius' => '12', 'wppa_video_width' => '640', 'wppa_video_height' => '480', 'wppa_show_bread_posts' => 'yes', 'wppa_show_bread_pages' => 'yes', 'wppa_bc_on_search' => 'yes', 'wppa_bc_on_topten' => 'yes', 'wppa_bc_on_lasten' => 'yes', 'wppa_bc_on_comten' => 'yes', 'wppa_bc_on_featen' => 'yes', 'wppa_bc_on_tag' => 'yes', 'wppa_bc_on_related' => 'yes', 'wppa_show_home' => 'yes', 'wppa_show_page' => 'yes', 'wppa_bc_separator' => 'raquo', 'wppa_bc_txt' => htmlspecialchars('<span style="color:red; font_size:24px;">•</span>'), 'wppa_bc_url' => wppa_get_imgdir() . 'arrow.gif', 'wppa_pagelink_pos' => 'bottom', 'wppa_bc_slide_thumblink' => 'no', 'wppa_show_startstop_navigation' => 'yes', 'wppa_show_browse_navigation' => 'yes', 'wppa_filmstrip' => 'yes', 'wppa_film_show_glue' => 'yes', 'wppa_show_full_name' => 'yes', 'wppa_show_full_owner' => 'no', 'wppa_show_full_desc' => 'yes', 'wppa_hide_when_empty' => 'no', 'wppa_rating_on' => 'yes', 'wppa_dislike_mail_every' => '5', 'wppa_dislike_set_pending' => '0', 'wppa_dislike_delete' => '0', 'wppa_dislike_show_count' => 'yes', 'wppa_rating_display_type' => 'graphic', 'wppa_show_avg_rating' => 'yes', 'wppa_show_comments' => 'yes', 'wppa_comment_gravatar' => 'monsterid', 'wppa_comment_gravatar_url' => 'http://', 'wppa_show_bbb' => 'no', 'wppa_show_ubb' => 'no', 'wppa_show_start_stop_icons' => 'no', 'wppa_custom_on' => 'no', 'wppa_custom_content' => '<div style="color:red; font-size:24px; font-weight:bold; text-align:center;">Hello world!</div><div style="text-align:center;" >You can change this text in Table II-B15</div>', 'wppa_show_slideshownumbar' => 'no', 'wppa_show_iptc' => 'no', 'wppa_show_iptc_open' => 'no', 'wppa_show_exif' => 'no', 'wppa_show_exif_open' => 'no', 'wppa_share_on' => 'no', 'wppa_share_hide_when_running' => 'yes', 'wppa_share_on_widget' => 'no', 'wppa_share_on_thumbs' => 'no', 'wppa_share_on_lightbox' => 'no', 'wppa_share_on_mphoto' => 'no', 'wppa_share_qr' => 'no', 'wppa_share_facebook' => 'yes', 'wppa_share_twitter' => 'yes', 'wppa_share_google' => 'yes', 'wppa_share_pinterest' => 'yes', 'wppa_share_linkedin' => 'yes', 'wppa_facebook_comments' => 'yes', 'wppa_facebook_like' => 'yes', 'wppa_fb_display' => 'standard', 'wppa_facebook_admin_id' => '', 'wppa_facebook_app_id' => '', 'wppa_load_facebook_sdk' => 'yes', 'wppa_share_single_image' => 'yes', 'wppa_thumb_text_name' => 'yes', 'wppa_thumb_text_owner' => 'no', 'wppa_thumb_text_desc' => 'yes', 'wppa_thumb_text_rating' => 'yes', 'wppa_thumb_text_comcount' => 'no', 'wppa_thumb_text_viewcount' => 'no', 'wppa_thumb_text_virt_album' => 'yes', 'wppa_thumb_video' => 'no', 'wppa_thumb_audio' => 'yes', 'wppa_popup_text_name' => 'yes', 'wppa_popup_text_owner' => 'no', 'wppa_popup_text_desc' => 'yes', 'wppa_popup_text_desc_strip' => 'no', 'wppa_popup_text_rating' => 'yes', 'wppa_popup_text_ncomments' => 'yes', 'wppa_show_rating_count' => 'no', 'wppa_albdesc_on_thumbarea' => 'none', 'wppa_albname_on_thumbarea' => 'none', 'wppa_show_empty_thumblist' => 'no', 'wppa_edit_thumb' => 'yes', 'wppa_show_cover_text' => 'yes', 'wppa_enable_slideshow' => 'yes', 'wppa_show_slideshowbrowselink' => 'yes', 'wppa_show_viewlink' => 'yes', 'wppa_show_treecount' => 'no', 'wppa_show_cats' => 'no', 'wppa_skip_empty_albums' => 'yes', 'wppa_show_bbb_widget' => 'no', 'wppa_show_ubb_widget' => 'no', 'wppa_ubb_color' => '', 'wppa_show_albwidget_tooltip' => 'yes', 'wppa_ovl_theme' => 'black', 'wppa_ovl_bgcolor' => 'black', 'wppa_ovl_slide_name' => 'no', 'wppa_ovl_slide_desc' => 'yes', 'wppa_ovl_thumb_name' => 'yes', 'wppa_ovl_thumb_desc' => 'no', 'wppa_ovl_potd_name' => 'yes', 'wppa_ovl_potd_desc' => 'no', 'wppa_ovl_sphoto_name' => 'yes', 'wppa_ovl_sphoto_desc' => 'no', 'wppa_ovl_mphoto_name' => 'yes', 'wppa_ovl_mphoto_desc' => 'no', 'wppa_ovl_alw_name' => 'yes', 'wppa_ovl_alw_desc' => 'no', 'wppa_ovl_cover_name' => 'yes', 'wppa_ovl_cover_desc' => 'no', 'wppa_ovl_show_counter' => 'yes', 'wppa_ovl_add_owner' => 'no', 'wppa_ovl_show_startstop' => 'yes', 'wppa_ovl_show_legenda' => 'yes', 'wppa_show_zoomin' => 'yes', 'wppa_ovl_fs_icons' => 'yes', 'wppa_owner_on_new_line' => 'no', 'wppa_user_upload_on' => 'no', 'wppa_user_upload_login' => 'yes', 'wppa_ajax_upload' => 'yes', 'wppa_copyright_on' => 'yes', 'wppa_copyright_notice' => __('<span style="color:red" >Warning: Do not upload copyrighted material!</span>', 'wp-photo-album-plus'), 'wppa_watermark_user' => 'no', 'wppa_name_user' => 'yes', 'wppa_apply_newphoto_desc_user' => 'no', 'wppa_desc_user' => 'yes', 'wppa_fe_custom_fields' => 'no', 'wppa_fe_upload_tags' => 'no', 'wppa_up_tagselbox_on_1' => 'yes', 'wppa_up_tagselbox_multi_1' => 'yes', 'wppa_up_tagselbox_title_1' => __('Select tags:', 'wp-photo-album-plus'), 'wppa_up_tagselbox_content_1' => '', 'wppa_up_tagselbox_on_2' => 'no', 'wppa_up_tagselbox_multi_2' => 'yes', 'wppa_up_tagselbox_title_2' => __('Select tags:', 'wp-photo-album-plus'), 'wppa_up_tagselbox_content_2' => '', 'wppa_up_tagselbox_on_3' => 'no', 'wppa_up_tagselbox_multi_3' => 'yes', 'wppa_up_tagselbox_title_3' => __('Select tags:', 'wp-photo-album-plus'), 'wppa_up_tagselbox_content_3' => '', 'wppa_up_tag_input_on' => 'yes', 'wppa_up_tag_input_title' => __('Enter new tags:', 'wp-photo-album-plus'), 'wppa_up_tag_preview' => 'yes', 'wppa_custom_fields' => 'no', 'wppa_custom_caption_0' => '', 'wppa_custom_visible_0' => 'no', 'wppa_custom_caption_1' => '', 'wppa_custom_visible_1' => 'no', 'wppa_custom_caption_2' => '', 'wppa_custom_visible_2' => 'no', 'wppa_custom_caption_3' => '', 'wppa_custom_visible_3' => 'no', 'wppa_custom_caption_4' => '', 'wppa_custom_visible_4' => 'no', 'wppa_custom_caption_5' => '', 'wppa_custom_visible_5' => 'no', 'wppa_custom_caption_6' => '', 'wppa_custom_visible_6' => 'no', 'wppa_custom_caption_7' => '', 'wppa_custom_visible_7' => 'no', 'wppa_custom_caption_8' => '', 'wppa_custom_visible_8' => 'no', 'wppa_custom_caption_9' => '', 'wppa_custom_visible_9' => 'no', 'wppa_start_symbol_url' => wppa_get_imgdir('start.png', 'abs'), 'wppa_pause_symbol_url' => wppa_get_imgdir('pause.png', 'abs'), 'wppa_stop_symbol_url' => wppa_get_imgdir('stop.png', 'abs'), 'wppa_left_symbol_url' => '', 'wppa_right_symbol_url' => '', 'wppa_start_pause_symbol_size' => '48', 'wppa_start_pause_symbol_bradius' => '24', 'wppa_stop_symbol_size' => '48', 'wppa_stop_symbol_bradius' => '24', 'wppa_left_right_symbol_size' => '32', 'wppa_left_right_symbol_bradius' => '4', 'wppa_close_text' => 'Close', 'wppa_bgcolor_even' => '#eeeeee', 'wppa_bcolor_even' => '#cccccc', 'wppa_bgcolor_alt' => '#dddddd', 'wppa_bcolor_alt' => '#bbbbbb', 'wppa_bgcolor_thumbnail' => '#000000', 'wppa_bgcolor_nav' => '#dddddd', 'wppa_bcolor_nav' => '#bbbbbb', 'wppa_bgcolor_namedesc' => '#dddddd', 'wppa_bcolor_namedesc' => '#bbbbbb', 'wppa_bgcolor_com' => '#dddddd', 'wppa_bcolor_com' => '#bbbbbb', 'wppa_bgcolor_img' => '#eeeeee', 'wppa_bcolor_img' => '', 'wppa_bgcolor_fullimg' => '#cccccc', 'wppa_bcolor_fullimg' => '#777777', 'wppa_bgcolor_cus' => '#dddddd', 'wppa_bcolor_cus' => '#bbbbbb', 'wppa_bgcolor_numbar' => '#cccccc', 'wppa_bcolor_numbar' => '#cccccc', 'wppa_bgcolor_numbar_active' => '#333333', 'wppa_bcolor_numbar_active' => '#333333', 'wppa_bgcolor_iptc' => '#dddddd', 'wppa_bcolor_iptc' => '#bbbbbb', 'wppa_bgcolor_exif' => '#dddddd', 'wppa_bcolor_exif' => '#bbbbbb', 'wppa_bgcolor_share' => '#dddddd', 'wppa_bcolor_share' => '#bbbbbb', 'wppa_bgcolor_upload' => '#dddddd', 'wppa_bcolor_upload' => '#bbbbbb', 'wppa_bgcolor_multitag' => '#dddddd', 'wppa_bcolor_multitag' => '#bbbbbb', 'wppa_bgcolor_tagcloud' => '#dddddd', 'wppa_bcolor_tagcloud' => '#bbbbbb', 'wppa_bgcolor_superview' => '#dddddd', 'wppa_bcolor_superview' => '#bbbbbb', 'wppa_bgcolor_search' => '#dddddd', 'wppa_bcolor_search' => '#bbbbbb', 'wppa_bgcolor_calendar' => '#dddddd', 'wppa_bcolor_calendar' => '#bbbbbb', 'wppa_bgcolor_bestof' => '#dddddd', 'wppa_bcolor_bestof' => '#bbbbbb', 'wppa_bgcolor_stereo' => '#dddddd', 'wppa_bcolor_stereo' => '#bbbbbb', 'wppa_allow_ajax' => 'yes', 'wppa_ajax_non_admin' => 'yes', 'wppa_use_photo_names_in_urls' => 'no', 'wppa_use_album_names_in_urls' => 'no', 'wppa_use_short_qargs' => 'yes', 'wppa_use_pretty_links' => 'yes', 'wppa_update_addressline' => 'yes', 'wppa_render_shortcode_always' => 'no', 'wppa_track_viewcounts' => 'yes', 'wppa_auto_page' => 'no', 'wppa_auto_page_type' => 'photo', 'wppa_auto_page_links' => 'bottom', 'wppa_defer_javascript' => 'no', 'wppa_inline_css' => 'yes', 'wppa_custom_style' => '', 'wppa_use_custom_style_file' => 'no', 'wppa_use_custom_theme_file' => 'no', 'wppa_cre_uploads_htaccess' => 'no', 'wppa_debug_trace_on' => 'no', 'wppa_lazy_or_htmlcomp' => 'no', 'wppa_relative_urls' => 'no', 'wppa_thumbs_first' => 'no', 'wppa_login_links' => 'yes', 'wppa_enable_video' => 'yes', 'wppa_enable_audio' => 'yes', 'wppa_enable_stereo' => 'no', 'wppa_fullvalign' => 'center', 'wppa_fullhalign' => 'center', 'wppa_start_slide' => 'run', 'wppa_start_slideonly' => 'yes', 'wppa_start_slide_video' => 'no', 'wppa_start_slide_audio' => 'no', 'wppa_animation_type' => 'fadeover', 'wppa_slideshow_timeout' => '2500', 'wppa_animation_speed' => '800', 'wppa_slide_pause' => 'no', 'wppa_slide_wrap' => 'yes', 'wppa_fulldesc_align' => 'center', 'wppa_clean_pbr' => 'yes', 'wppa_run_wpautop_on_desc' => 'no', 'wppa_auto_open_comments' => 'yes', 'wppa_film_hover_goto' => 'no', 'wppa_slide_swipe' => 'no', 'wppa_slideshow_page_allow_ajax' => 'yes', 'wppa_list_photos_by' => '0', 'wppa_thumbtype' => 'default', 'wppa_thumbphoto_left' => 'no', 'wppa_valign' => 'center', 'wppa_use_thumb_opacity' => 'yes', 'wppa_thumb_opacity' => '95', 'wppa_use_thumb_popup' => 'yes', 'wppa_align_thumbtext' => 'no', 'wppa_list_albums_by' => '0', 'wppa_main_photo' => '0', 'wppa_coverphoto_pos' => 'right', 'wppa_use_cover_opacity' => 'yes', 'wppa_cover_opacity' => '85', 'wppa_cover_type' => 'default', 'wppa_imgfact_count' => '10', 'wppa_rating_login' => 'yes', 'wppa_rating_change' => 'yes', 'wppa_rating_multi' => 'no', 'wppa_allow_owner_votes' => 'yes', 'wppa_vote_needs_comment' => 'no', 'wppa_dislike_value' => '-5', 'wppa_next_on_callback' => 'no', 'wppa_star_opacity' => '20', 'wppa_vote_button_text' => __('Vote for me!', 'wp-photo-album-plus'), 'wppa_voted_button_text' => __('Voted for me', 'wp-photo-album-plus'), 'wppa_vote_thumb' => 'no', 'wppa_medal_bronze_when' => '5', 'wppa_medal_silver_when' => '10', 'wppa_medal_gold_when' => '15', 'wppa_medal_color' => '2', 'wppa_medal_position' => 'botright', 'wppa_topten_sortby' => 'mean_rating', 'wppa_comment_login' => 'no', 'wppa_comment_view_login' => 'no', 'wppa_comments_desc' => 'no', 'wppa_comment_moderation' => 'logout', 'wppa_comment_email_required' => 'yes', 'wppa_comment_notify' => 'none', 'wppa_com_notify_previous' => 'no', 'wppa_comment_notify_added' => 'yes', 'wppa_comten_alt_display' => 'no', 'wppa_comten_alt_thumbsize' => '75', 'wppa_comment_smiley_picker' => 'no', 'wppa_mail_upl_email' => 'yes', 'wppa_ovl_opacity' => '80', 'wppa_ovl_onclick' => 'none', 'wppa_ovl_anim' => '300', 'wppa_ovl_slide' => '5000', 'wppa_ovl_chrome_at_top' => 'yes', 'wppa_lightbox_global' => 'no', 'wppa_lightbox_global_set' => 'no', 'wppa_lb_hres' => 'no', 'wppa_ovl_video_start' => 'yes', 'wppa_ovl_audio_start' => 'yes', 'wppa_fontfamily_title' => '', 'wppa_fontsize_title' => '', 'wppa_fontcolor_title' => '', 'wppa_fontweight_title' => 'bold', 'wppa_fontfamily_fulldesc' => '', 'wppa_fontsize_fulldesc' => '', 'wppa_fontcolor_fulldesc' => '', 'wppa_fontweight_fulldesc' => 'normal', 'wppa_fontfamily_fulltitle' => '', 'wppa_fontsize_fulltitle' => '', 'wppa_fontcolor_fulltitle' => '', 'wppa_fontweight_fulltitle' => 'normal', 'wppa_fontfamily_nav' => '', 'wppa_fontsize_nav' => '', 'wppa_fontcolor_nav' => '', 'wppa_fontweight_nav' => 'normal', 'wppa_fontfamily_thumb' => '', 'wppa_fontsize_thumb' => '', 'wppa_fontcolor_thumb' => '', 'wppa_fontweight_thumb' => 'normal', 'wppa_fontfamily_box' => '', 'wppa_fontsize_box' => '', 'wppa_fontcolor_box' => '', 'wppa_fontweight_box' => 'normal', 'wppa_fontfamily_numbar' => '', 'wppa_fontsize_numbar' => '', 'wppa_fontcolor_numbar' => '#777777', 'wppa_fontweight_numbar' => 'normal', 'wppa_fontfamily_numbar_active' => '', 'wppa_fontsize_numbar_active' => '', 'wppa_fontcolor_numbar_active' => '#777777', 'wppa_fontweight_numbar_active' => 'bold', 'wppa_fontfamily_lightbox' => '', 'wppa_fontsize_lightbox' => '10', 'wppa_fontcolor_lightbox' => '', 'wppa_fontweight_lightbox' => 'bold', 'wppa_fontsize_widget_thumb' => '9', 'wppa_sphoto_linktype' => 'photo', 'wppa_sphoto_linkpage' => '0', 'wppa_sphoto_blank' => 'no', 'wppa_sphoto_overrule' => 'no', 'wppa_mphoto_linktype' => 'photo', 'wppa_mphoto_linkpage' => '0', 'wppa_mphoto_blank' => 'no', 'wppa_mphoto_overrule' => 'no', 'wppa_thumb_linktype' => 'photo', 'wppa_thumb_linkpage' => '0', 'wppa_thumb_blank' => 'no', 'wppa_thumb_overrule' => 'no', 'wppa_topten_widget_linktype' => 'photo', 'wppa_topten_widget_linkpage' => '0', 'wppa_topten_blank' => 'no', 'wppa_topten_overrule' => 'no', 'wppa_topten_widget_album_linkpage' => '0', 'wppa_featen_widget_linktype' => 'photo', 'wppa_featen_widget_linkpage' => '0', 'wppa_featen_blank' => 'no', 'wppa_featen_overrule' => 'no', 'wppa_slideonly_widget_linktype' => 'widget', 'wppa_slideonly_widget_linkpage' => '0', 'wppa_sswidget_blank' => 'no', 'wppa_sswidget_overrule' => 'no', 'wppa_widget_linktype' => 'single', 'wppa_widget_linkpage' => '0', 'wppa_potd_blank' => 'no', 'wppa_potdwidget_overrule' => 'no', 'wppa_coverimg_linktype' => 'same', 'wppa_coverimg_linkpage' => '0', 'wppa_coverimg_blank' => 'no', 'wppa_coverimg_overrule' => 'no', 'wppa_comment_widget_linktype' => 'photo', 'wppa_comment_widget_linkpage' => '0', 'wppa_comment_blank' => 'no', 'wppa_comment_overrule' => 'no', 'wppa_slideshow_linktype' => 'none', 'wppa_slideshow_linkpage' => '0', 'wppa_slideshow_blank' => 'no', 'wppa_slideshow_overrule' => 'no', 'wppa_thumbnail_widget_linktype' => 'photo', 'wppa_thumbnail_widget_linkpage' => '0', 'wppa_thumbnail_widget_overrule' => 'no', 'wppa_thumbnail_widget_blank' => 'no', 'wppa_film_linktype' => 'slideshow', 'wppa_film_blank' => 'no', 'wppa_film_overrule' => 'no', 'wppa_lasten_widget_linktype' => 'photo', 'wppa_lasten_widget_linkpage' => '0', 'wppa_lasten_blank' => 'no', 'wppa_lasten_overrule' => 'no', 'wppa_art_monkey_link' => 'none', 'wppa_art_monkey_popup_link' => 'file', 'wppa_artmonkey_use_source' => 'no', 'wppa_art_monkey_display' => 'button', 'wppa_art_monkey_on_lightbox' => 'no', 'wppa_allow_download_album' => 'no', 'wppa_download_album_source' => 'yes', 'wppa_album_widget_linktype' => 'content', 'wppa_album_widget_linkpage' => '0', 'wppa_album_widget_blank' => 'no', 'wppa_tagcloud_linktype' => 'album', 'wppa_tagcloud_linkpage' => '0', 'wppa_tagcloud_blank' => 'no', 'wppa_multitag_linktype' => 'album', 'wppa_multitag_linkpage' => '0', 'wppa_multitag_blank' => 'no', 'wppa_super_view_linkpage' => '0', 'wppa_upldr_widget_linkpage' => '0', 'wppa_bestof_widget_linkpage' => '0', 'wppa_supersearch_linkpage' => '0', 'wppa_album_navigator_widget_linktype' => 'thumbs', 'wppa_album_navigator_widget_linkpage' => '0', 'wppa_widget_sm_linktype' => 'landing', 'wppa_widget_sm_linkpage' => '0', 'wppa_widget_sm_linkpage_oc' => '1', 'wppa_cover_sublinks' => 'none', 'wppa_cover_sublinks_display' => 'none', 'wppa_owner_only' => 'yes', 'wppa_upload_owner_only' => 'no', 'wppa_user_album_edit_on' => 'no', 'wppa_upload_moderate' => 'no', 'wppa_upload_edit' => 'no', 'wppa_owner_moderate_comment' => 'no', 'wppa_upload_notify' => 'no', 'wppa_upload_backend_notify' => 'no', 'wppa_upload_one_only' => 'no', 'wppa_memcheck_frontend' => 'yes', 'wppa_memcheck_admin' => 'yes', 'wppa_comment_captcha' => 'none', 'wppa_spam_maxage' => 'none', 'wppa_user_create_on' => 'no', 'wppa_user_create_login' => 'yes', 'wppa_user_destroy_on' => 'no', 'wppa_upload_fronend_maxsize' => '0', 'wppa_void_dups' => 'no', 'wppa_home_after_upload' => 'no', 'wppa_editor_upload_limit_count' => '0', 'wppa_editor_upload_limit_time' => '0', 'wppa_author_upload_limit_count' => '0', 'wppa_author_upload_limit_time' => '0', 'wppa_contributor_upload_limit_count' => '0', 'wppa_contributor_upload_limit_time' => '0', 'wppa_subscriber_upload_limit_count' => '0', 'wppa_subscriber_upload_limit_time' => '0', 'wppa_loggedout_upload_limit_count' => '0', 'wppa_loggedout_upload_limit_time' => '0', 'wppa_blacklist_user' => '', 'wppa_un_blacklist_user' => '', 'wppa_photo_owner_change' => 'no', 'wppa_setup' => '', 'wppa_backup' => '', 'wppa_load_skin' => '', 'wppa_skinfile' => 'default', 'wppa_regen_thumbs' => '', 'wppa_regen_thumbs_skip_one' => '', 'wppa_rerate' => '', 'wppa_cleanup' => '', 'wppa_recup' => '', 'wppa_file_system' => 'flat', 'wppa_remake' => '', 'wppa_remake_skip_one' => '', 'wppa_errorlog_purge' => '', 'wppa_comp_sizes' => '', 'wppa_rating_clear' => 'no', 'wppa_viewcount_clear' => 'no', 'wppa_iptc_clear' => '', 'wppa_exif_clear' => '', 'wppa_apply_new_photodesc_all' => '', 'wppa_remake_index' => '', 'wppa_extend_index' => '', 'wppa_list_index' => '', 'wppa_list_index_display_start' => '', 'wppa_append_text' => '', 'wppa_append_to_photodesc' => '', 'wppa_remove_text' => '', 'wppa_remove_from_photodesc' => '', 'wppa_remove_empty_albums' => '', 'wppa_watermark_all' => '', 'wppa_create_all_autopages' => '', 'wppa_delete_all_autopages' => '', 'wppa_readd_file_extensions' => '', 'wppa_zero_numbers' => '5', 'wppa_leading_zeros' => '', 'wppa_add_gpx_tag' => '', 'wppa_optimize_ewww' => '', 'wppa_tag_to_edit' => '', 'wppa_new_tag_value' => '', 'wppa_edit_tag' => '', 'wppa_sync_cloud' => '', 'wppa_sanitize_tags' => '', 'wppa_sanitize_cats' => '', 'wppa_test_proc' => '', 'wppa_maint_ignore_concurrency_error' => 'no', 'wppa_html' => 'yes', 'wppa_check_balance' => 'no', 'wppa_allow_debug' => 'no', 'wppa_filter_priority' => '1001', 'wppa_shortcode_priority' => '11', 'wppa_shortcode_at_priority' => 'no', 'wppa_shortcode_at_priority_widget' => 'no', 'wppa_lightbox_name' => 'wppa', 'wppa_allow_foreign_shortcodes_general' => 'no', 'wppa_allow_foreign_shortcodes' => 'no', 'wppa_allow_foreign_shortcodes_thumbs' => 'no', 'wppa_arrow_color' => 'black', 'wppa_meta_page' => 'yes', 'wppa_meta_all' => 'yes', 'wppa_use_wp_editor' => 'no', 'wppa_hier_albsel' => 'yes', 'wppa_hier_pagesel' => 'no', 'wppa_alt_type' => 'fullname', 'wppa_photo_admin_pagesize' => '20', 'wppa_comment_admin_pagesize' => '10', 'wppa_jpeg_quality' => '95', 'wppa_geo_edit' => 'no', 'wppa_auto_continue' => 'yes', 'wppa_max_execution_time' => '30', 'wppa_adminbarmenu_admin' => 'yes', 'wppa_adminbarmenu_frontend' => 'yes', 'wppa_feed_use_thumb' => 'no', 'wppa_enable_shortcode_wppa_set' => 'no', 'wppa_set_shortcodes' => 'wppa_thumbtype,wppa_tn_margin,wppa_thumbsize', 'wppa_og_tags_on' => 'yes', 'wppa_add_shortcode_to_post' => 'no', 'wppa_shortcode_to_add' => '[wppa type="album" album="#related,desc"][/wppa]', 'wppa_use_scripts_in_tinymce' => 'no', 'wppa_import_preview' => 'yes', 'wppa_audiostub_upload' => '', 'wppa_audiostub' => '', 'wppa_confirm_create' => 'yes', 'wppa_use_language' => 'yes', 'wppa_import_root' => ABSPATH . 'wp-content', 'wppa_allow_import_source' => 'no', 'wppa_max_album_newtime' => '0', 'wppa_max_photo_newtime' => '0', 'wppa_max_album_modtime' => '0', 'wppa_max_photo_modtime' => '0', 'wppa_new_mod_label_is_text' => 'yes', 'wppa_lasten_limit_new' => 'no', 'wppa_lasten_use_modified' => 'no', 'wppa_new_label_text' => __('NEW', 'wp-photo-album-plus'), 'wppa_new_label_color' => 'orange', 'wppa_mod_label_text' => __('MODIFIED', 'wp-photo-album-plus'), 'wppa_mod_label_color' => 'green', 'wppa_new_label_url' => wppa_get_imgdir('new.png'), 'wppa_mod_label_url' => wppa_get_imgdir('new.png'), 'wppa_apply_newphoto_desc' => 'no', 'wppa_newphoto_description' => $npd, 'wppa_upload_limit_count' => '0', 'wppa_upload_limit_time' => '0', 'wppa_show_album_full' => 'yes', 'wppa_grant_an_album' => 'no', 'wppa_grant_name' => 'display', 'wppa_grant_parent' => '0', 'wppa_default_parent' => '0', 'wppa_default_parent_always' => 'no', 'wppa_max_albums' => '0', 'wppa_alt_is_restricted' => 'no', 'wppa_link_is_restricted' => 'no', 'wppa_covertype_is_restricted' => 'no', 'wppa_porder_restricted' => 'no', 'wppa_reup_is_restricted' => 'yes', 'wppa_newphoto_name_method' => 'filename', 'wppa_default_coverimage_name' => 'Coverphoto', 'wppa_copy_timestamp' => 'no', 'wppa_copy_owner' => 'no', 'wppa_frontend_album_public' => 'no', 'wppa_optimize_new' => 'no', 'wppa_default_album_linktype' => 'content', 'wppa_search_linkpage' => '0', 'wppa_excl_sep' => 'no', 'wppa_search_tags' => 'no', 'wppa_search_cats' => 'no', 'wppa_search_comments' => 'no', 'wppa_photos_only' => 'no', 'wppa_max_search_photos' => '250', 'wppa_max_search_albums' => '25', 'wppa_tags_or_only' => 'no', 'wppa_tags_not_on' => 'no', 'wppa_wild_front' => 'no', 'wppa_search_display_type' => 'content', 'wppa_ss_name_max' => '0', 'wppa_ss_text_max' => '0', 'wppa_search_toptext' => '', 'wppa_search_in_section' => __('Search in current section', 'wp-photo-album-plus'), 'wppa_search_in_results' => __('Search in current results', 'wp-photo-album-plus'), 'wppa_watermark_on' => 'no', 'wppa_watermark_file' => 'specimen.png', 'wppa_watermark_pos' => 'cencen', 'wppa_textual_watermark_type' => 'tvstyle', 'wppa_textual_watermark_text' => "Copyright (c) 2014 w#site \n w#filename (w#owner)", 'wppa_textual_watermark_font' => 'system', 'wppa_textual_watermark_size' => '10', 'wppa_watermark_upload' => '', 'wppa_watermark_opacity' => '20', 'wppa_watermark_opacity_text' => '80', 'wppa_watermark_thumbs' => 'no', 'wppa_slide_order' => '0,1,2,3,4,5,6,7,8,9,10', 'wppa_slide_order_split' => '0,1,2,3,4,5,6,7,8,9,10,11', 'wppa_swap_namedesc' => 'no', 'wppa_split_namedesc' => 'no', 'wppa_keep_source_admin' => 'yes', 'wppa_keep_source_frontend' => 'yes', 'wppa_source_dir' => WPPA_ABSPATH . WPPA_UPLOAD . '/wppa-source', 'wppa_keep_sync' => 'yes', 'wppa_remake_add' => 'yes', 'wppa_save_iptc' => 'yes', 'wppa_save_exif' => 'yes', 'wppa_exif_max_array_size' => '10', 'wppa_chgsrc_is_restricted' => 'no', 'wppa_ext_status_restricted' => 'no', 'wppa_desc_is_restricted' => 'no', 'wppa_newpag_create' => 'no', 'wppa_newpag_content' => '[wppa type="cover" album="w#album" align="center"][/wppa]', 'wppa_newpag_type' => 'page', 'wppa_newpag_status' => 'publish', 'wppa_pl_dirname' => 'wppa-pl', 'wppa_import_parent_check' => 'yes', 'wppa_iptc_need_utf8' => 'yes', 'wppa_keep_import_files' => 'no', 'wppa_cp_points_comment' => '0', 'wppa_cp_points_rating' => '0', 'wppa_cp_points_upload' => '0', 'wppa_use_scabn' => 'no', 'wppa_use_CMTooltipGlossary' => 'no', 'wppa_cdn_service' => '', 'wppa_cdn_cloud_name' => '', 'wppa_cdn_api_key' => '', 'wppa_cdn_api_secret' => '', 'wppa_cdn_service_update' => 'no', 'wppa_delete_all_from_cloudinary' => '', 'wppa_delete_derived_from_cloudinary' => '', 'wppa_max_cloud_life' => '0', 'wppa_gpx_implementation' => 'none', 'wppa_map_height' => '300', 'wppa_map_apikey' => '', 'wppa_gpx_shortcode' => '[map style="width: auto; height:300px; margin:0; " marker="yes" lat="w#lat" lon="w#lon"]', 'wppa_fotomoto_on' => 'no', 'wppa_fotomoto_fontsize' => '', 'wppa_fotomoto_hide_when_running' => 'no', 'wppa_fotomoto_min_width' => '400', 'wppa_widgettitle' => __('Photo of the day', 'wp-photo-album-plus'), 'wppa_widget_linkurl' => __('Type your custom url here', 'wp-photo-album-plus'), 'wppa_widget_linktitle' => __('Type the title here', 'wp-photo-album-plus'), 'wppa_widget_subtitle' => 'none', 'wppa_widget_album' => 'all', 'wppa_widget_photo' => '', 'wppa_potd_align' => 'center', 'wppa_widget_method' => '4', 'wppa_widget_period' => '24', 'wppa_widget_width' => '200', 'wppa_potd_widget_width' => '200', 'wppa_widget_status_filter' => 'none', 'wppa_toptenwidgettitle' => __('Top Ten Photos', 'wp-photo-album-plus'), 'wppa_thumbnailwidgettitle' => __('Thumbnail Photos', 'wp-photo-album-plus'), 'wppa_searchwidgettitle' => __('Search photos', 'wp-photo-album-plus'), 'wppa_comadmin_show' => 'all', 'wppa_comadmin_order' => 'timestamp', 'wppa_qr_size' => '200', 'wppa_qr_color' => '#000000', 'wppa_qr_bgcolor' => '#FFFFFF');
array_walk($wppa_defaults, 'wppa_set_default', $force);
return true;
}
开发者ID:msayagh,项目名称:Quercus-source-code-Maven,代码行数:35,代码来源:wppa-setup.php
示例5: _wppa_comment_admin
//.........这里部分代码省略.........
, this.value)">
<option value="pending" <?php
if ($com['status'] == 'pending') {
echo 'selected="selected"';
}
?>
><?php
_e('Pending', 'wp-photo-album-plus');
?>
</option>
<option value="approved" <?php
if ($com['status'] == 'approved') {
echo 'selected="selected"';
}
?>
><?php
_e('Approved', 'wp-photo-album-plus');
?>
</option>
<option value="spam" <?php
if ($com['status'] == 'spam') {
echo 'selected="selected"';
}
?>
><?php
_e('Spam', 'wp-photo-album-plus');
?>
</option>
</select>
<img id="wppa-comment-spin-<?php
echo $com['id'];
?>
" src="<?php
echo wppa_get_imgdir() . 'spinner.gif';
?>
" style="visibility:hidden" />
</td>
<?php
$url = wppa_dbg_url(get_admin_url() . 'admin.php?page=wppa_manage_comments&tab=edit&edit_id=' . $com['id']);
if (isset($_GET['wppa-page'])) {
$url .= '&compage=' . strval(intval($_GET['wppa-page']));
}
if (isset($_GET['commentid'])) {
$url .= '&commentid=' . strval(intval($_GET['commentid']));
}
?>
<?php
$delurl = wppa_dbg_url(get_admin_url() . 'admin.php?page=wppa_manage_comments&tab=delete&delete_id=' . $com['id']);
?>
<td style="color:green; cursor:pointer;" onclick="document.location='<?php
echo $url;
?>
'"><b><?php
_e('Edit', 'wp-photo-album-plus');
?>
</b></td>
<td style="color:red; cursor:pointer;" onclick="if (confirm('<?php
_e('Are you sure you want to delete this comment?', 'wp-photo-album-plus');
?>
')) document.location = '<?php
echo $delurl;
?>
';"><b><?php
_e('Delete', 'wp-photo-album-plus');
?>
</b></td>
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:67,代码来源:wppa-comment-admin.php
示例6: wppa_create_wppa_init_js
//.........这里部分代码省略.........
wppaNextP = "' . __('Next', 'wp-photo-album-plus') . '";
wppaAvgRating = "' . __('Average rating', 'wp-photo-album-plus') . '";
wppaMyRating = "' . __('My rating', 'wp-photo-album-plus') . '";
wppaAvgRat = "' . __('Avg.', 'wp-photo-album-plus') . '";
wppaMyRat = "' . __('Mine', 'wp-photo-album-plus') . '";
wppaDislikeMsg = "' . __('You marked this image as inappropriate.', 'wp-photo-album-plus') . '";
wppaMiniTreshold = ' . (wppa_opt('mini_treshold') ? wppa_opt('mini_treshold') : '0') . ';
wppaRatingOnce = ' . (wppa_switch('rating_change') || wppa_switch('rating_multi') ? 'false' : 'true') . ';
wppaPleaseName = "' . __('Please enter your name', 'wp-photo-album-plus') . '";
wppaPleaseEmail = "' . __('Please enter a valid email address', 'wp-photo-album-plus') . '";
wppaPleaseComment = "' . __('Please enter a comment', 'wp-photo-album-plus') . '";
wppaHideWhenEmpty = ' . (wppa_switch('hide_when_empty') ? 'true' : 'false') . ';
wppaBGcolorNumbar = "' . wppa_opt('bgcolor_numbar') . '";
wppaBcolorNumbar = "' . wppa_opt('bcolor_numbar') . '";
wppaBGcolorNumbarActive = "' . wppa_opt('bgcolor_numbar_active') . '";
wppaBcolorNumbarActive = "' . wppa_opt('bcolor_numbar_active') . '";
wppaFontFamilyNumbar = "' . wppa_opt('fontfamily_numbar') . '";
wppaFontSizeNumbar = "' . wppa_opt('fontsize_numbar') . 'px";
wppaFontColorNumbar = "' . wppa_opt('fontcolor_numbar') . '";
wppaFontWeightNumbar = "' . wppa_opt('fontweight_numbar') . '";
wppaFontFamilyNumbarActive = "' . wppa_opt('fontfamily_numbar_active') . '";
wppaFontSizeNumbarActive = "' . wppa_opt('fontsize_numbar_active') . 'px";
wppaFontColorNumbarActive = "' . wppa_opt('fontcolor_numbar_active') . '";
wppaFontWeightNumbarActive = "' . wppa_opt('fontweight_numbar_active') . '";
wppaNumbarMax = "' . wppa_opt('numbar_max') . '";
wppaLang = "' . $wppa_lang . '";
wppaNextOnCallback = ' . (wppa_switch('next_on_callback') ? 'true' : 'false') . ';
wppaStarOpacity = ' . str_replace(',', '.', wppa_opt('star_opacity') / '100') . ';
wppaSlideWrap = ' . (wppa_switch('slide_wrap') ? 'true' : 'false') . ';
wppaEmailRequired = "' . wppa_opt('comment_email_required') . '";
wppaSlideBorderWidth = ' . $fbw . ';
wppaAllowAjax = ' . (wppa_switch('allow_ajax') ? 'true' : 'false') . ';
wppaUsePhotoNamesInUrls = ' . (wppa_switch('use_photo_names_in_urls') ? 'true' : 'false') . ';
wppaThumbTargetBlank = ' . (wppa_switch('thumb_blank') ? 'true' : 'false') . ';
wppaRatingMax = ' . wppa_opt('rating_max') . ';
wppaRatingDisplayType = "' . wppa_opt('rating_display_type') . '";
wppaRatingPrec = ' . wppa_opt('rating_prec') . ';
wppaStretch = ' . (wppa_switch('enlarge') ? 'true' : 'false') . ';
wppaMinThumbSpace = ' . wppa_opt('tn_margin') . ';
wppaThumbSpaceAuto = ' . (wppa_switch('thumb_auto') ? 'true' : 'false') . ';
wppaMagnifierCursor = "' . wppa_opt('magnifier') . '";
wppaArtMonkyLink = "' . wppa_opt('art_monkey_link') . '";
wppaAutoOpenComments = ' . (wppa_switch('auto_open_comments') ? 'true' : 'false') . ';
wppaUpdateAddressLine = ' . (wppa_switch('update_addressline') ? 'true' : 'false') . ';
wppaFilmThumbTitle = "' . (wppa_opt('film_linktype') == 'lightbox' ? wppa_zoom_in(false) : __('Double click to start/stop slideshow running', 'wp-photo-album-plus')) . '";
wppaVoteForMe = "' . __(wppa_opt('vote_button_text'), 'wp-photo-album-plus') . '";
wppaVotedForMe = "' . __(wppa_opt('voted_button_text'), 'wp-photo-album-plus') . '";
wppaSlideSwipe = ' . (wppa_switch('slide_swipe') ? 'true' : 'false') . ';
wppaMaxCoverWidth = ' . wppa_opt('max_cover_width') . ';
wppaDownLoad = "' . __('Download', 'wp-photo-album-plus') . '";
wppaSlideToFullpopup = ' . (wppa_opt('slideshow_linktype') == 'fullpopup' ? 'true' : 'false') . ';
wppaComAltSize = ' . wppa_opt('comten_alt_thumbsize') . ';
wppaBumpViewCount = ' . (wppa_switch('track_viewcounts') ? 'true' : 'false') . ';
wppaBumpClickCount = ' . (wppa_switch('track_clickcounts') ? 'true' : 'false') . ';
wppaShareHideWhenRunning = ' . (wppa_switch('share_hide_when_running') ? 'true' : 'false') . ';
wppaFotomoto = ' . (wppa_switch('fotomoto_on') ? 'true' : 'false') . ';
wppaArtMonkeyButton = ' . (wppa_opt('art_monkey_display') == 'button' ? 'true' : 'false') . ';
wppaFotomotoHideWhenRunning = ' . (wppa_switch('fotomoto_hide_when_running') ? 'true' : 'false') . ';
wppaCommentRequiredAfterVote = ' . (wppa_switch('vote_needs_comment') ? 'true' : 'false') . ';
wppaFotomotoMinWidth = ' . wppa_opt('fotomoto_min_width') . ';
wppaShortQargs = ' . (wppa_switch('use_short_qargs') ? 'true' : 'false') . ';
wppaOvlHires = ' . (wppa_switch('lb_hres') ? 'true' : 'false') . ';
wppaSlideVideoStart = ' . (wppa_switch('start_slide_video') ? 'true' : 'false') . ';
wppaSlideAudioStart = ' . (wppa_switch('start_slide_audio') ? 'true' : 'false') . ';
wppaAudioHeight = ' . wppa_get_audio_control_height() . ';
wppaRel = "' . (wppa_opt('lightbox_name') == 'wppa' ? 'data-rel' : 'rel') . '";
wppaOvlRadius = ' . wppa_opt('ovl_border_radius') . ';
wppaOvlBorderWidth = ' . wppa_opt('ovl_border_width') . ';
wppaEditPhotoWidth = "' . (wppa_opt('upload_edit') == 'new' ? 500 : 960) . '";
wppaThemeStyles = "' . (wppa_switch('upload_edit_theme_css') ? get_stylesheet_uri() : '') . '";
wppaStickyHeaderHeight = ' . wppa_opt('sticky_header_size') . ';
wppaRenderModal = ' . (wppa_switch('ajax_render_modal') ? 'true' : 'false') . ';
wppaModalQuitImg = "url(' . wppa_get_imgdir('smallcross-' . wppa_opt('ovl_theme') . '.gif') . ')";
wppaBoxRadius = "' . wppa_opt('bradius') . '";
wppaModalBgColor = "' . wppa_opt('bgcolor_modal') . '";
wppaUploadEdit = "' . wppa_opt('upload_edit') . '";
wppaSvgFillcolor = "' . wppa_opt('svg_color') . '";
wppaSvgBgcolor = "' . wppa_opt('svg_bg_color') . '";
wppaOvlSvgFillcolor = "' . wppa_opt('ovl_svg_color') . '";
wppaOvlSvgBgcolor = "' . wppa_opt('ovl_svg_bg_color') . '";
wppaSvgCornerStyle = "' . wppa_opt('icon_corner_style') . '";
';
// Open file
$file = @fopen(WPPA_PATH . '/wppa-init.' . $wppa_lang . '.js', 'wb');
if ($file) {
// Write file
fwrite($file, $content);
// Close file
fclose($file);
$wppa_init_js_data = '';
} else {
$wppa_init_js_data = '<script type="text/javascript">
/* Warning: file wppa-init.' . $wppa_lang . '.js could not be created */
/* The content is therefor output here */
' . $content . '
</script>
';
}
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:101,代码来源:wppa-non-admin.php
示例7: wppa_admin_spinner
function wppa_admin_spinner()
{
$result = '<img' . ' id="wppa-admin-spinner"' . ' src="' . wppa_get_imgdir('loader.gif') . '"' . ' style="' . 'position:fixed;' . 'left:50%;' . 'top:50%;' . 'margin-left:-33px;' . 'margin-top:-33px;' . 'z-index:9999999;' . '"' . ' />' . '<script type="text/javascript" >' . 'jQuery( document ).ready( function() { ' . 'setTimeout( "wppaTestAdminReady()", 200 ); ' . '} );' . 'function wppaTestAdminReady() { ' . ' if ( document.readyState === "complete" ) {' . 'jQuery( "#wppa-admin-spinner" ).fadeOut(); ' . ' } else { ' . ' setTimeout( "wppaTestAdminReady()", 200 ); ' . '}' . '}' . '</script>';
echo $result;
}
开发者ID:msayagh,项目名称:Quercus-source-code-Maven,代码行数:5,代码来源:wppa-admin-functions.php
示例8: wppa_sphoto
function wppa_sphoto()
{
$id = wppa('single_photo');
$width = wppa_get_container_width();
$height = floor($width / wppa_get_ratio($id));
$usethumb = wppa_use_thumb_file($id, $width, $height);
$src = $usethumb ? wppa_get_thumb_url($id, '', $width, $height) : wppa_get_photo_url($id, '', $width, $height);
if (wppa_has_audio($id)) {
$src = wppa_fix_poster_ext($src, $id);
}
if (!wppa_in_widget()) {
wppa_bump_viewcount('photo', $id);
}
$autocol = wppa('auto_colwidth') || $width > 0 && $width <= 1.0;
// The initial width is $width if not autocol, else it should default to initial column width when auto
// or initial column width * fraction
if ($autocol) {
if ($width == 'auto') {
$contwidth = wppa_opt('initial_colwidth');
} else {
$contwidth = wppa_opt('initial_colwidth') * $width;
}
} else {
$contwidth = $width;
}
// Open the pseudo container
wppa_out('<div' . ' id="wppa-container-' . wppa('mocc') . '"' . ' class="' . (wppa('align') ? 'align' . wppa('align') : '') . ' wppa-sphoto-' . wppa('mocc') . '"' . ' style="width:' . $contwidth . 'px;position:relative;"' . ' >');
// The script for responsive
wppa_add_js_page_data("\n" . '<script type="text/javascript">');
if ($autocol) {
wppa_add_js_page_data("\n" . 'wppaAutoColumnWidth[' . wppa('mocc') . '] = true;');
if ($width > 0
|
请发表评论