当前位置: 首页>>代码示例>>PHP>>正文


PHP tbg_parse_text函数代码示例

本文整理汇总了PHP中tbg_parse_text函数的典型用法代码示例。如果您正苦于以下问题:PHP tbg_parse_text函数的具体用法?PHP tbg_parse_text怎么用?PHP tbg_parse_text使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了tbg_parse_text函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __

</div>
			<?php 
    }
    ?>
			<?php 
    echo __('Last updated at %time%, by %user%', array('%time%' => tbg_formatTime($article->getPostedDate(), 3), '%user%' => '<b>' . ($article->getAuthor() instanceof TBGIdentifiable ? '<a href="javascript:void(0);" onclick="showFadedBackdrop(\'' . make_url('get_partial_for_backdrop', array('key' => 'usercard', 'user_id' => $article->getAuthor()->getID())) . '\');" class="faded_out">' . $article->getAuthor()->getName() . '</a>' : __('System')) . '</b>'));
    ?>
		</div>
	<?php 
}
?>
	<?php 
if ($show_article) {
    ?>
		<div class="content"><?php 
    echo tbg_parse_text($article->getContent(), true, $article->getID(), array('embedded' => $embedded, 'article' => $article));
    ?>
</div>
	<?php 
}
?>
</div>
<?php 
if ($article->isCategory() && !$embedded && $show_category_contains) {
    ?>
	<br style="clear: both;">
	<div style="margin: 15px 5px 5px 5px; clear: both;">
		<?php 
    if (count($article->getSubCategories()) > 0) {
        ?>
			<div class="header"><?php 
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:_articledisplay.inc.php

示例2: image_tag

        echo image_tag($module->getAccountSettingsLogo(), array('style' => 'float: left;'), false, $module_name) . $module->getAccountSettingsName();
        ?>
</a></li>
						<?php 
    }
    ?>
					<?php 
}
?>
				</ul>
			</div>
			<div id="account_tabs_panes">
				<div id="tab_profile_pane">
					<?php 
if (TBGSettings::getAuthenticationBackend() != 'tbg' && TBGSettings::getAuthenticationBackend() != null) {
    echo tbg_parse_text(TBGSettings::get('changedetails_message'), null, null, array('embedded' => true));
} else {
    ?>
					<form accept-charset="<?php 
    echo TBGContext::getI18n()->getCharset();
    ?>
" action="<?php 
    echo make_url('account_save_information');
    ?>
" onsubmit="updateProfileInformation('<?php 
    echo make_url('account_save_information');
    ?>
'); return false;" method="post" id="profile_information_form">
						<div class="rounded_box borderless lightgrey cut_bottom" style="margin: 5px 0 0 0; width: 690px; border-bottom: 0;">
							<p class="content"><?php 
    echo __('Edit your profile details here, including additional information.');
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:myaccount.html.php

示例3: tbg_parse_text

<?php

$projectHasDescription = TBGContext::getCurrentProject()->hasDescription();
?>
<div id="project_description"<?php 
if (!$projectHasDescription) {
    echo ' class="none"';
}
?>
>
	<?php 
if ($projectHasDescription) {
    echo tbg_parse_text(TBGContext::getCurrentProject()->getDescription());
} else {
    echo __('This project has no description');
}
?>
</div>
<?php 
if (TBGContext::getCurrentProject()->hasOwner()) {
    ?>
	<div class="project_role">
		<div class="label"><?php 
    echo __('Owned by: %name', array('%name' => ''));
    ?>
</div>
		<div class="value">
		<?php 
    echo include_component(TBGContext::getCurrentProject()->getOwner() instanceof TBGUser ? 'main/userdropdown' : 'main/teamdropdown', array('user' => TBGContext::getCurrentProject()->getOwner()));
    ?>
		</div>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:31,代码来源:_dashboardviewprojectinfo.inc.php

示例4: tbg_parse_text

Buen d&iacute;a %user_buddyname%,<br>
El siguiente pedido ha sido creado por <?php 
echo $issue->getPostedBy()->getName();
?>
 :
<?php 
echo $issue->getIssuetype()->getName();
?>
 <?php 
echo $issue->getFormattedTitle(true);
?>
	
* El pedido ha sido creado con la siguiente descripci&oacute;n *
<?php 
echo tbg_parse_text($issue->getDescription());
?>
	
--
Ver el pedido : <?php 
echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false));
?>
Ver el panel de control del proyecto <?php 
echo $issue->getProject()->getName();
?>
 : <?php 
echo link_tag(make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false));
开发者ID:oparoz,项目名称:thebuggenie,代码行数:26,代码来源:_issuecreate.text.inc.php

示例5: tbg_parse_text

						<span id="project_name_span"><?php 
echo $selected_project->getName();
?>
</span><br>
						<span id="project_key_span"><?php 
echo $selected_project->getKey();
?>
</span>
					</div>
					<div>
						<span id="project_description_span">
							<?php 
if ($selected_project->hasDescription()) {
    ?>
								<?php 
    echo tbg_parse_text($selected_project->getDescription());
    ?>
							<?php 
}
?>
						</span>
					</div>
					<div id="project_no_description"<?php 
if ($selected_project->hasDescription()) {
    ?>
 style="display: none;"<?php 
}
?>
>
						<?php 
echo __('This project has no description');
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:_projectinfosidebar.inc.php

示例6: __

echo __('Description') . ':';
?>
 *
<?php 
echo tbg_parse_text($issue->getDescription());
?>

<?php 
if ($issue->getReproductionSteps()) {
    ?>
    * <?php 
    echo __('Reproduction steps') . ':';
    ?>
 *
    <?php 
    echo tbg_parse_text($issue->getReproductionSteps());
}
?>

<?php 
echo __('Show issue:') . ' ' . $module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()));
?>

<?php 
echo __('Show %project project dashboard:', array('%project' => $issue->getProject()->getName())) . ' ' . $module->generateURL('project_dashboard', array('project_key' => $issue->getProject()->getKey()));
?>


<?php 
echo __('You were sent this notification email because you are related to the issue mentioned in this email.');
?>
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:_issuecreate.text.inc.php

示例7: tbg_parse_text

?>
            </ul>
        </div>
        <div id="account_tabs_panes">
            <div id="tab_profile_pane" style="<?php 
if ($selected_tab != 'profile') {
    ?>
 display: none;<?php 
}
?>
">
                <?php 
if (\thebuggenie\core\framework\Settings::isUsingExternalAuthenticationBackend()) {
    ?>
                    <?php 
    echo tbg_parse_text(\thebuggenie\core\framework\Settings::get('changedetails_message'), false, null, array('embedded' => true));
    ?>
                <?php 
} else {
    ?>
                    <form accept-charset="<?php 
    echo \thebuggenie\core\framework\Context::getI18n()->getCharset();
    ?>
" action="<?php 
    echo make_url('account_save_information');
    ?>
" onsubmit="TBG.Main.Profile.updateInformation('<?php 
    echo make_url('account_save_information');
    ?>
'); return false;" method="post" id="profile_information_form">
                        <h3><?php 
开发者ID:RTechSoft,项目名称:thebuggenie,代码行数:31,代码来源:myaccount.html.php

示例8: include_component

    ?>
</span> <?php 
}
?>
			</div>
			<div class="commenttitle">
				<?php 
include_component('main/userdropdown', array('user' => $commit->getAuthor(), 'size' => 'large'));
?>
			</div>
			<div class="commentdate" id="commit_<?php 
echo $commit->getID();
?>
_date">
				<?php 
echo tbg_formattime($commit->getDate(), 9);
?>
			</div>
		</div>

		<div class="commentbody article commit_main" id="commit_<?php 
echo $commit->getID();
?>
_body">
			<?php 
echo tbg_parse_text($commit->getLog());
?>
		</div>
	</div>
</div>
开发者ID:oparoz,项目名称:thebuggenie,代码行数:30,代码来源:_issuecommitbox.inc.php

示例9: image_tag

			</div>
			<div id="comment_delete_indicator_<?php 
echo $comment->getID();
?>
" style="display: none;">
				<?php 
echo image_tag('spinning_16.gif', array('class' => 'spinning'));
?>
			</div>
		</div>
		<div class="commentbody article" id="comment_<?php 
echo $comment->getID();
?>
_body">
			<?php 
echo tbg_parse_text($comment->getContent(), false, null, $options);
?>
		</div>
	</div>
	
	<div id="comment_edit_<?php 
echo $comment->getID();
?>
" class="comment_edit" style="display: none;">
		<form id="comment_edit_form_<?php 
echo $comment->getID();
?>
" action="<?php 
echo make_url('comment_update', array('comment_id' => $comment->getID()));
?>
" method="post" onSubmit="updateComment('<?php 
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:_comment.inc.php

示例10: __

									<div class="faded_out" id="no_reproduction_steps" <?php 
    if ($issue->getReproductionSteps() != '') {
        ?>
 style="display: none;" <?php 
    }
    ?>
><?php 
    echo __('Nothing entered.');
    ?>
</div>
									<div id="reproduction_steps_name" class="issue_inline_description">
										<?php 
    if ($issue->getReproductionSteps()) {
        ?>
											<?php 
        echo tbg_parse_text($issue->getReproductionSteps(), false, null, array('headers' => false, 'issue' => $issue));
        ?>
										<?php 
    }
    ?>
									</div>
								</div>
								<?php 
    if ($issue->isEditable() && $issue->canEditReproductionSteps()) {
        ?>
									<div id="reproduction_steps_change" style="display: none;">
										<form id="reproduction_steps_form" action="<?php 
        echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps'));
        ?>
" method="post" onSubmit="setField('<?php 
        echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps'));
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:viewissue.html.php

示例11: tbg_parse_text

Hi, %user_buddyname%!
A comment has been added to <?php 
echo TBGContext::getI18n()->__($issue->getIssueType()->getName());
?>
 <?php 
echo $issue->getFormattedIssueNo(true);
?>
 - <?php 
echo $issue->getTitle();
?>
 by <?php 
echo $comment->getPostedBy()->getName();
?>
:

<?php 
echo tbg_parse_text($comment->getContent());
?>

---
Show issue: <?php 
echo make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false);
?>
Show <?php 
echo $issue->getProject()->getName();
?>
 project dashboard: <?php 
echo make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false);
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:28,代码来源:_issuecomment.text.inc.php

示例12: tbg_parse_text

if ($reposname !== null) {
    ?>
<span class="commitrepos"><?php 
    echo $reposname;
    ?>
/</span> <?php 
}
?>
                <?php 
if ($branchname !== null) {
    ?>
<span class="commitbranch"><?php 
    echo $branchname;
    ?>
</span> <?php 
}
?>
            </div>
        </div>

        <div class="commentbody article commit_main" id="commit_<?php 
echo $commit->getID();
?>
_body">
            <?php 
echo tbg_parse_text(trim($commit->getLog()), false, null, array('target' => $commit));
?>
        </div>
    </div>
</div>
开发者ID:founderio,项目名称:thebuggenie,代码行数:30,代码来源:_issuecommitbox.inc.php

示例13: foreach

					<ul class="simple_list">
						<?php 
        foreach ($articles as $article) {
            ?>
						<li style="margin-bottom: 0;">
							<?php 
            echo link_tag(make_url('publish_article', array('article_name' => $article->getName())), $article->getName(), array('style' => 'font-size: 1.1em;'));
            ?>
<br>
							<div class="faded_out"><?php 
            echo __('Last updated %updated_at%', array('%updated_at%' => tbg_formatTime($article->getLastUpdatedDate(), 6)));
            ?>
</div>
							<div class="article_preview">
								<?php 
            echo tbg_parse_text(substr($article->getContent(), 0, 300), false, null, array('headers' => false, 'show_title' => false, 'show_details' => false, 'show_actions' => false, 'embedded' => true));
            ?>
							</div>
						</li>
						<?php 
        }
        ?>
					</ul>
				<?php 
    } else {
        ?>
					<div class="faded_out" style="font-size: 1.3em;"><?php 
        echo __('No articles found');
        ?>
</div>
				<?php 
开发者ID:ronaldbroens,项目名称:thebuggenie,代码行数:31,代码来源:findarticles.html.php

示例14: tbg_parse_text

<?php

if (TBGSettings::hasMaintenanceMessage()) {
    echo '<div class="offline_msg">' . tbg_parse_text(TBGSettings::getMaintenanceMessage()) . '</div>';
} else {
    ?>
						<div class="offline_msg">
							<div class="generic_offline rounded_box red borderless">
								<?php 
    echo __('This site has been temporarily disabled for maintenance. Please try again later.');
    ?>
							</div>
						</div>
						<?php 
}
开发者ID:oparoz,项目名称:thebuggenie,代码行数:15,代码来源:offline.inc.php

示例15: elseif

} elseif (mb_substr($link['url'], 0, 1) == '@') {
    ?>
        <?php 
    echo link_tag(make_url($link['url']), $link['description'] != '' ? tbg_parse_text($link['description'], false, null, array('embedded' => true)) : strip_tags($link['url']));
    ?>
    <?php 
} elseif ($link['url'] != '') {
    ?>
        <?php 
    echo link_tag($link['url'], $link['description'] != '' ? tbg_parse_text($link['description'], false, null, array('embedded' => true)) : strip_tags($link['url']));
    ?>
    <?php 
} elseif ($link['description'] != '') {
    ?>
        <?php 
    echo tbg_parse_text($link['description'], false, null, array('embedded' => true));
    ?>
    <?php 
} else {
    ?>
        &nbsp;
    <?php 
}
?>
    <?php 
if ($tbg_user->canEditMainMenu()) {
    ?>
        <?php 
    echo javascript_link_tag(image_tag('action_delete.png'), array('class' => 'delete-icon', 'style' => 'float: right;', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Please confirm') . "', '" . __('Do you really want to delete this link?') . "', {yes: {click: function() {TBG.Main.Link.remove('" . make_url('remove_link', array('target_type' => $link['target_type'], 'target_id' => $link['target_id'], 'link_id' => $link_id)) . "', '{$link['target_type']}', '{$link['target_id']}', " . $link_id . "); }}, no: {click: TBG.Main.Helpers.Dialog.dismiss}})"));
    ?>
    <?php 
开发者ID:JonathanRH,项目名称:thebuggenie,代码行数:31,代码来源:_menulink.inc.php


注:本文中的tbg_parse_text函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。