コード例 #1
0
function rpw_image_attachments_define_image_sizes()
{
    add_theme_support('post-thumbnails');
    $rpw_related_posts_settings = rpw_read_options();
    if (function_exists('add_image_size')) {
        add_image_size('rpw-thumb', $rpw_related_posts_settings['rpw_thumbw'], $rpw_related_posts_settings['rpw_thumbh'], true);
        ////(True = cropped)
    }
}
コード例 #2
0
    }
    //-----------------------------------------------------Get general options array values
    $default_thumb = $_POST["default_thumb"];
    if ($default_thumb == '') {
        $default_thumb = $rpwpluginsurl . '/images/noimage.png';
    }
    $rpw_related_posts_settings = array('rpw_show_thumbs' => $rpw_show_thumbs, 'rpw_thumbw' => $rpw_thumbw, 'rpw_thumbh' => $rpw_thumbh, 'rpw_posts_limit' => $rpw_posts_limit, 'rpw_show_excerpt' => $rpw_show_excerpt, 'rpw_excerpt_length' => $rpw_excerpt_length, 'rpw_use_css3_effects' => $rpw_use_css3_effects, 'rpw_css3_shadow' => $rpw_css3_shadow, 'rpw_css3_thumb_radius' => $rpw_css3_thumb_radius, 'default_thumb' => $default_thumb, 'rpw_Style' => $rpw_Style, 'rpw_image_direction' => $rpw_image_direction, 'rpw_text_direction' => $rpw_text_direction);
    if ($rpw_related_posts_settings != '') {
        update_option('rpw_settings', $rpw_related_posts_settings);
    } else {
        $deprecated = ' ';
        $autoload = 'no';
        add_option('rpw_settings', $rpw_related_posts_settings, $deprecated, $autoload);
    }
} else {
    $rpw_related_posts_settings = rpw_read_options();
}
?>

<style>

#rpw_admin_main {

text-align:left;

direction:ltr;

padding:10px;

margin: 10px;