| 131 | | <# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { #> |
| 132 | | {{{ data.author.avatar }}} {{{ data.author.name }}}, |
| 133 | | {{{ data.timeAgo }}} <?php _e( 'ago' ); ?> |
| 134 | | ({{{ data.dateShort }}}) |
| 135 | | <# } #> |
| | 133 | <# if ( 'undefined' !== typeof data && 'undefined' !== typeof data.author ) { |
| | 134 | var format = '<?php echo $title_format; ?>', |
| | 135 | title = format |
| | 136 | .replace( /%1\$s/g, data.author.avatar ) |
| | 137 | .replace( /%2\$s/g, data.author.name ) |
| | 138 | .replace( /%3\$s/g, data.timeAgo ) |
| | 139 | .replace( /%4\$s/g, data.dateShort ) |
| | 140 | #> |
| | 141 | {{{ title }}} |
| | 142 | <# |
| | 143 | } #> |
| 160 | | <# if ( 'undefined' !== typeof data.from ) { #> |
| 161 | | {{{ data.from.attributes.author.avatar }}} {{{ data.from.attributes.author.name }}}, |
| 162 | | {{{ data.from.attributes.timeAgo }}} <?php _e( 'ago' ); ?> |
| 163 | | ({{{ data.from.attributes.dateShort }}}) |
| 164 | | <# } #> |
| | 168 | <# if ( 'undefined' !== typeof data.from ) { |
| | 169 | var format = '<?php echo $title_format; ?>', |
| | 170 | title = format |
| | 171 | .replace( /%1\$s/g, data.from.attributes.author.avatar ) |
| | 172 | .replace( /%2\$s/g, data.from.attributes.author.name ) |
| | 173 | .replace( /%3\$s/g, data.from.attributes.timeAgo ) |
| | 174 | .replace( /%4\$s/g, data.from.attributes.dateShort ) |
| | 175 | #> |
| | 176 | {{{ title }}} |
| | 177 | <# |
| | 178 | } #> |
| 172 | | <# if ( 'undefined' !== typeof data.to ) { #> |
| 173 | | {{{ data.to.attributes.author.avatar }}} {{{ data.to.attributes.author.name }}}, |
| 174 | | {{{ data.to.attributes.timeAgo }}} <?php _e( 'ago' ); ?> |
| 175 | | ({{{ data.to.attributes.dateShort }}}) |
| 176 | | <# } #> |
| | 186 | <# if ( 'undefined' !== typeof data.to ) { |
| | 187 | var format = '<?php echo $title_format; ?>', |
| | 188 | title = format |
| | 189 | .replace( /%1\$s/g, data.to.attributes.author.avatar ) |
| | 190 | .replace( /%2\$s/g, data.to.attributes.author.name ) |
| | 191 | .replace( /%3\$s/g, data.to.attributes.timeAgo ) |
| | 192 | .replace( /%4\$s/g, data.to.attributes.dateShort ) |
| | 193 | #> |
| | 194 | {{{ title }}} |
| | 195 | <# |
| | 196 | } #> |