Camp;rsquoest bon. Et u pb u post. Publier le contenu P,%% Order u class%%. Et u pb u BG u Layout u Dark. Et u pb u post. Publier le contenu P amp;lsquo,
amp;lsquocoloramp;rsquo = amp;gt
amp;lsquoLine _ heightamp;rsquo = amp;gt
Le plugin _ main amp;lsquo= amp;gt
()
()
amp;lsquomainamp;rsquo = amp;gt
« plugin _ main amp;lsquo= amp;gt
()
()
()
« border» = amp;gt Array
« important» = amp;gt « plugin _ only»,
()
()
)
$this amp;gt Custom _ CSS options = array
« titre» = amp;gt tableau
« sélecteur» = amp;gt. Titre de l’entrée»,
()
« sélecteur» = amp;gt. Post yuan»,
()
« sélecteur» = amp;gt. Wp u pagenavi»,
()
« featured picture» = amp;gt Array
« label» = amp;gt ESC u HTML uuuuuuuz (« Feature image», « et u builder»),
« sélecteur» = amp;gt. Et _ pb image container amp;lsquo,
()
« sélecteur» = amp;gt. e liens
()
)
}
* *
Obtenir des billets de blog pour le module Blog
* *
Et _ pb blog utilise le Param ètre @ Param Array
Renvoie lamp;rsquoétiquette du Journal de chaîne
*
Fonctions statiques get _ Blog posts ($args = array (), $Conditional Tag
Hortcode pour samp;rsquoassurer que le thème actuel namp;rsquoajoute aucun élément au module audio
Supprimer tous les filtres (
Supprimer le filtre _ all filter (
Supprimer le filtre « WP _ audio shortcode class»
$args = WP _ parse args ($args, $Defaults)
$overlay _ Output =
$Hover _ icon =
(amp;lsquoonamp;rsquo = $args [amp;lsquouse _ overlayamp;rsquo]) {
$Data _ icon =
Quoi? Sprintf Corporation
« icône de données = «% 1 $s»,
ESC _ ATTR (et pb Process font icon ($args [amp;lsquoHover icon]))
()
: »
$overlay _ Output = sprintf
amp;lsquo amp;lsquo,
(
$Data _ Icon
)
}
$overlay _ class = amp;lsquoonamp;rsquo = $args [amp;lsquouse overlayamp;rsquo]? amp;lsquo Et _ pb a override
$QUERY _ args = array
« posts _ per page» = amp;gt intval ($args [amp;lsquoposts Number]),
« post _ status» = amp;gt « publish»,
)
(défini (amp;lsquodoing _ Ajaxamp;rsquo) amp;amp amp;amp isset (amp;lsquocurrent page [amp;lsquo paged amp;lsquo) {
$page d = intval ($Current _ page [amp;lsquopageamp;rsquo)
1)
$QUERY _ args [amp;lsquooffsetamp;rsquo] = ($paged 1) * intval ($args [amp;lsquoposts Number]) + intval ($args [amp;lsquo offset Number])
have _ posts ()) {
(amp;lsquoonamp;rsquo! = = $Parameter [amp;lsquofullwidthamp;rsquo]) {
Echo
}
While ($QUERY amp;gt have _ posts ()) {
$QUERY amp;gt The _ Post ()
Global $et _ FB Processing shortcode Object
$global _ Processing original value = $et FB Processing shortcode Object
Réinitialiser le drapeau de traitement FB
$et _ FB Processing shortcode Object = false
$Thumb =
$width = = amp;lsquoonamp;rsquo = $Parameter [amp;lsquofullwidthamp;rsquo]? 1080: 400
$width = (int) Apply _ filters (amp;lsquoet pb blog image widthamp;rsquo, $width)
$height = = amp;lsquoonamp;rsquo = $Parameter [amp;lsquofullwidthamp;rsquo]? 675: 250
$height = (int) Apply _ filters (amp;lsquoet pb blog image heightamp;rsquo, $height amp;lsquo)
$classtext = amp;lsquoonamp;rsquo = $args [amp;lsquofullwidthamp;rsquo]? amp;lsquo Et _ pb post main image
$titletext = get Title ()
$Thumbnail = get _ miniature ($width, $height, $classtext, $titletext, $titletext, false, amp;lsquoblogimageamp;rsquo)
$Thumb = $miniature [
$no _ Thumb class =
$post u format = et u pb u post u format ()
(dans le tableau ($post u format, tableau (amp;lsquoVideoamp;rsquo, amp;lsquoGalleryamp;rsquo)
$no _ Thumb class =
}
Impression
? amp;gt
amp;gt
amp;lsquo,
$pouce
):
Imprimer f
amp;lsquo
1 $s
2 $s
amp;lsquo,
$Video _ overlay,
$First U Video
)
ElseIf (amp;lsquoGalleryamp;rsquo = $post _ format):
Et _ pb Gallery image (
ElseIf (
(amp;lsquoonamp;rsquo! = $args [amp;lsquofullwidthamp;rsquo) echo amp;lsquo amp;ltarticle id=amp;quotamp;quot amp;lsquo ?amp;gt
amp;lt?php
et_divi_post_format_content()
if ( ! in_array( $post_format, array( amp;039linkamp;039, amp;039audioamp;039, amp;039quoteamp;039 ) ) ) {
if ( amp;039videoamp;039 === $post_format amp;ampamp;amp false !== ( $first_video = et_get_first_video() ) ) :
$video_overlay = has_post_thumbnail() ? sprintf(
amp;039
amp;lsquo
EndIf
}
? amp;gt
amp;lta href=amp;quot
% 1 $s% 2 $s% 3 $s% 4 $s% 5 $s%
6 $s% 7 $s amp;lsquo,
(amp;lsquo)
amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ authoramp;rsquo]
Quoi? Et _ get Safe Localization (sprintf (amp;lsquoby% samp;rsquo,amp;rsquo et Builder amp;lsquo),amp;rsquo amp;lt?php
if ( amp;039onamp;039 !== $args[amp;039fullwidthamp;039] ) echo amp;039
amp;lsquo . Et _ pb get the author posts Link ().
()
(amp;lsquo)
(amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ authoramp;rsquo] amp;amp amp;lsquoonamp;rsquo = $args [amp;lsquoshow dateamp;rsquo])
()
(amp;lsquo)
amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ dateamp;rsquo]
Quoi? Et _ get Safe Localization (sprintf (% samp;rsquo, et Builder amp;lsquo), amp;lsquo . ESC _ HTML (get date ($args [amp;lsquoMeta dateamp;rsquo)
()
(amp;lsquo)
(
()
(amp;lsquo)
amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ categoriesamp;rsquo]
Quoi? Obtenir la liste des catégories (amp;lsquo,amp;rsquo)
()
(amp;lsquo)
(
()
(amp;lsquo)
amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ commentsamp;rsquo]
Quoi? Sprintf (ESC _ HTML (Nx (amp;lsquo% s Commentsamp;rsquo,amp;rsquo% s Commentsamp;rsquo, get comments number (), amp;lsquonumber of commentsamp;rsquo,amp;rsquo et Builder amp;lsquo), number format i18n (get comments number ())
()
)
}
$post _ content = et strip shortcode (et delete Post First Video (get the content ()), True)
Réinitialiser le drapeau de traitement FB
$et _ FB Processing shortcode Object = false
Définir le drapeau pour indiquer que nous travaillons sur le contenu interne
$et _ pb Rendering column content = true
Réinitialiser toutes les propriétés nécessaires pour générer correctement un style interne
Et _ Builder Element:: Clean Internal modules styles ()
Echo
(amp;lsquoonamp;rsquo = $args [amp;lsquoshow _ contentamp;rsquo]) {
Au dessus du dollar mondial
Le constructeur de page ne supporte pas plus de balises, donc il affiche
= $this amp;gt raccourci _ ATTS [amp;lsquobackground Layoutamp;rsquo]
$show _ more = $this amp;gt shortcode ATTS [amp;lsquoshow moreamp;rsquo]
$offset _ number = $this amp;gt shortcode ATTS [amp;lsquooffset numberamp;rsquo]
$Masonry _ tile Background color = $this amp;gt shortcode ATTS [amp;lsquoMasonry tile Background coloramp;rsquo]
$use _ dropshadow = $this amp;gt shortcode ATTS [amp;lsquouse dropshadowamp;rsquo]
$overlay _ icon COLOR = $this amp;gt shortcode ATTS [amp;lsquooverlay icon Coloramp;rsquo]
$Hover u overlay u COLOR = $this amp;gt raccourci u ATTS [amp;lsquoHover u overlay u Coloramp;rsquo]
$Hover _ icon = $this amp;gt raccourci ATTS [amp;lsquoHover iconamp;rsquo]
$use _ overlay = $this amp;gt shortcode ATTS [amp;lsquouse overlayamp;rsquo]
Global $Paging
$module _ class = et Builder Element:: Add module Order Class ($module class, $Function Name)
$Container _ is closed = false
Certains sujets namp;rsquoincluent pas ces styles scripts, donc nous devons les mettre en file damp;rsquoattente dans ce module pour prendre en charge le post Formatage audio
WP _ enqueue style (
Le script WP _ enqueue script (« WP Media element»)
Supprimez tous les filtres du WP audio shortcode pour assurer que le thème actuel namp;rsquoajoute aucun élément au module audio
Supprimer tous les filtres (
Supprimer le filtre _ all filter (
Supprimer le filtre « WP _ audio shortcode class»
(
Et _ Builder Element:: set style ($Function Name, Array)
« Selector amp;lsquo= amp;gtamp;rsquo%% Order u class%%. Et _ pb blog Grid. Et u pb u post amp;lsquo,
« Déclaration» = amp;gt sprintf
« couleur de fond:% 1 $s »,
ESC _ HTML ($Masonry tile Background color)
()
))
}
(
Et _ Builder Element:: set style ($Function Name, Array)
« Selector amp;lsquo= amp;gtamp;rsquo%% Order u class%%. Et u override: in
« Déclaration» = amp;gt sprintf
« couleur:% 1 $s! Important »
ESC _ HTML ($overlay icon Color)
()
))
}
(
Et _ Builder Element:: set style ($Function Name, Array)
« Selector amp;lsquo= amp;gtamp;rsquo%% Order u class%%. Et u override amp;lsquo,
« Déclaration» = amp;gt sprintf
« couleur de fond
, get _ comments number (), amp;lsquocomments numberamp;rsquo, amp;lsquoet Builderamp;rsquo, number format i18n (get comments number ())
()
)
}
Echo
Global $et _ pb Rendering column content
$post _ content = et strip shortcode (et delete Post First Video (get the content ()), True)
$et _ pb Rendering column content = true
(amp;lsquoonamp;rsquo = $afficher le contenu) {
Au dessus du dollar mondial
Page Builder ne supporte pas plus de balises, donc afficher _ content () lors de la publication damp;rsquoun article en utilisant page Builder
(et _ pb is pagebuilder used (get the ID ())) {
$plus = 1
Echo apply _ filters (amp;lsquothe contentamp;rsquo, $post content)
amp;lt Modifier
$plus = vide
Echo apply _ filters (amp;039the contentamp;039, and delete Post First Video (get the content (ESC HTML U (amp;039Read moreamp;039, amp;039et Builderamp;039)
}
amp;lt Modifier
(has _ Extract ())
_ extrait ()
amp;lt Modifier
Echo wpautop (et _ delete Post First Video (strip shortcode (truncate Post (270, false,,, True)))
}
}
$et _ pb Rendering column content = false
(amp;039onamp;039! = = $afficher le contenu) {
$more = amp;039show _ more inamp;039 = $? Sprintf (amp;039) % 2 $s amp;lsquo , ESC _ URL (get Permalink ()), ESC HTML U (amp;lsquoRead moreamp;rsquo, amp;lsquoet Builderamp;rsquo): amp;lsquo
Echo $plus
}
Echo
? amp;gt
amp;lta href=amp;quot
amp;lsquo
}
(amp;lsquoonamp;rsquo = $show _ pagination amp;amp! Is search () {
(fonction _ exists (amp;lsquoWP pagenviamp;rsquo) {
WP _ pagenavi ()
amp;lt Modifier
(et _ is Builder plugin active () {
Inclure (et _ Builder plugin dir)
amp;lt Modifier
Get _ Template part (amp;039includes navigationamp;039, amp;039indexamp;039)
}
}
Echo
$Container _ is closed = true
}
amp;lt Modifier
(et _ is Builder plugin active () {
Inclure (et _ Builder plugin dir)
amp;lt Modifier
Get _ Template part (amp;039includes no resultsamp;039,amp;039 index amp;039)
}
}
WP _ Reset Query ()
$posts = Ob _ get Contents ()
Ob _ end Clean ()