If I understood correctly you want to get in your phtml the content of your termes & conditions
set in Stores > under Settings > Terms and Conditions.
So 1st solution and the best is to add some function in your block module then you get that function in your phtml to avoid using directly the objectManager in a phtml, 2nd solution you can do it direclty in phtml without a block but it is not recommended.
1st solution:
app/code/{Vendor}/{Module}/Block/agreements.php
<?php
namespace {Vendor}\{Module}\Block;
class agreements extends \Magento\Framework\View\Element\Template
{
protected $_agreements;
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Magento\CheckoutAgreements\Model\Agreement $agreements
)
{
$this->_agreements = $agreements;
parent::__construct($context);
}
public function getAgreements($agreementId)
{
$agree = $this->_agreements->load($agreementId);
return $agree->getContent();
}
}
in test.phtml
you add this :
<?php echo $this->getAgreements(1); ?> //1 is the termes & conditions ID
2nd solution
test.phtml
<?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance();?>
<?php $agreements = $objectManager->create('Magento\CheckoutAgreements\Model\Agreement')->load(1);?> //here 1 is the ID of your termes & conditions.
<?php echo $agreements->getContent();?>