Docy

Did You Know?

Elements

Source Code

Welcome to Docy ! Get familiar with the Docy products and explore their features, guides, tips and tools.

HTML Code Blocks

From a group of elements with one parent. Same as first one, but use this method if you are creating a popup from a list of elements in one container. Note that this method does not enable gallery mode, it just reduces the number of click event handlers; each item will be opened as a single popup. If you wish to enable gallery, add the gallery:{enabled:true} option.

                                    For example, <code><section></code> should be wrapped as inline.
                                
                        
                        
                        

post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
                        
                        
                        

post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
                        
                        
                        

post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>
post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;?>

CSS Source Code

                        
                        /********tabs start********/

.boxtabs {
    float: left;
    margin-top: -12px;
    width: 100%;
}

.boxtabs img {
    border: medium none;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    max-height: 185px;
    max-width: 300px;
    width: auto;
}

ul.tabs2 {
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 3px 0 0 0;
    float: left;
    height: 32px;
    list-style: none outside none;
    margin: 12px 0 0;
    padding: 0;
    width: 100%;
}

ul.tabs2 li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #cfcfcf;
	border-left: none;
	margin-bottom: margin: 0 0 -1px 1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	background: #e0e0e0;
	border-radius: 3px 3px 0 0;
}
ul.tabs2 li a {
    color: #000000;
    display: block;
    font-size: 16px;
    margin-top: 0;
    outline: medium none;
    padding: 0 20px;
    text-decoration: none;
}

ul.tabs2 li a:hover {
	background: #ccc;
}
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background: #fff;
	border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}

.tab2_container {
    background: none repeat scroll 0 0 #FFFFFF;
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 0 3px 3px 3px;
    border-right: 1px solid #CFCFCF;
    clear: both;
    float: left;
    overflow: hidden;
    width: 100%;
}

.tab2_content {
	padding: 20px;
	font-size: 1.2em;
}

/********tabs end********/                        
                        
                        
                        /********tabs start********/

.boxtabs {
    float: left;
    margin-top: -12px;
    width: 100%;
}

.boxtabs img {
    border: medium none;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    max-height: 185px;
    max-width: 300px;
    width: auto;
}

ul.tabs2 {
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 3px 0 0 0;
    float: left;
    height: 32px;
    list-style: none outside none;
    margin: 12px 0 0;
    padding: 0;
    width: 100%;
}

ul.tabs2 li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #cfcfcf;
	border-left: none;
	margin-bottom: margin: 0 0 -1px 1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	background: #e0e0e0;
	border-radius: 3px 3px 0 0;
}
ul.tabs2 li a {
    color: #000000;
    display: block;
    font-size: 16px;
    margin-top: 0;
    outline: medium none;
    padding: 0 20px;
    text-decoration: none;
}

ul.tabs2 li a:hover {
	background: #ccc;
}
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background: #fff;
	border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}

.tab2_container {
    background: none repeat scroll 0 0 #FFFFFF;
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 0 3px 3px 3px;
    border-right: 1px solid #CFCFCF;
    clear: both;
    float: left;
    overflow: hidden;
    width: 100%;
}

.tab2_content {
	padding: 20px;
	font-size: 1.2em;
}

/********tabs end********/                        
                        
                        
                        /********tabs start********/

.boxtabs {
    float: left;
    margin-top: -12px;
    width: 100%;
}

.boxtabs img {
    border: medium none;
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 6px;
    max-height: 185px;
    max-width: 300px;
    width: auto;
}

ul.tabs2 {
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 3px 0 0 0;
    float: left;
    height: 32px;
    list-style: none outside none;
    margin: 12px 0 0;
    padding: 0;
    width: 100%;
}

ul.tabs2 li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #cfcfcf;
	border-left: none;
	margin-bottom: margin: 0 0 -1px 1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	background: #e0e0e0;
	border-radius: 3px 3px 0 0;
}
ul.tabs2 li a {
    color: #000000;
    display: block;
    font-size: 16px;
    margin-top: 0;
    outline: medium none;
    padding: 0 20px;
    text-decoration: none;
}

ul.tabs2 li a:hover {
	background: #ccc;
}
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background: #fff;
	border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}

.tab2_container {
    background: none repeat scroll 0 0 #FFFFFF;
    border-bottom: 1px solid #CFCFCF;
    border-left: 1px solid #CFCFCF;
    border-radius: 0 3px 3px 3px;
    border-right: 1px solid #CFCFCF;
    clear: both;
    float: left;
    overflow: hidden;
    width: 100%;
}

.tab2_content {
	padding: 20px;
	font-size: 1.2em;
}

/********tabs end********/                        
                        

JavaScript Code

                        
                                                
                        
                        
                                                
                        
                        
                                                
                        
                        
                                                
                        
                        
                                                
                        
                        
                                                
                        

PHP Source Code

3 Comment

  • Issac Wise

    July 3, 2020 at 2:14 pm

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.

    Reply
    • Hans Down

      44 mins ago

      Thenks Demo User for Wouldn’t it be better practice to use get_the_title.

      Reply
    • Hans Down

      44 mins ago

      Dropped a clanger up the kyver easy peasy vagabond victoria sponge Charles tinkety tonk old fruit argy.!

      Reply
  • Chauffina Carr

    04 mins ago

    Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *